Estimated read time: 1 minutes
OK, this is probably not that interesting, but who knows... I just put out some code I did during this semester for this OpenGL course. It's available here.
Estimated read time: 1 minutes
OK, this is probably not that interesting, but who knows... I just put out some code I did during this semester for this OpenGL course. It's available here.
Estimated read time: 1 minutes
So this came up on IRC: ancient tag objects in git have no "tagger" line, and thus converting such a repo with git fast-export is not possible. And the usual way - I just reported it on the mailing list and Dscho quickly provided the necessary patch.
I hope the ubuntu guy (who is in CC) will at least give Dscho a "thanks", but who knows if it'll ever happen..
Estimated read time: 1 minutes
It seems that even if you use backsticks around tilde in asciidoc manpages, it will disappear from the text when you generate the manpage.
The git asciidoc.conf already has a {tilde} macro exactly for this purpose, so when a topic about the buggy git-daemon manpage came up on IRC, the fix was almost trivial.
In other news, I managed to write some OpenGL code to display a sphere without using gluSphere(). The result is not that interesting, since it matches the output of the original utility function. ;-)
(Quite a "reinvent the wheel" story, but my next exam at the uni on Monday will be like this, ie. solving problems without using glu* and such...)
Estimated read time: 1 minutes
One item in Python's magic word is that you don't have to really care about memory management. I already know if i want to "strdup" a list, then i need foo[:], but I did not notice that in case I iterate over a list _and_ modify it, then I need such a trick as well.
Example
l = ['a', 'b']
for i in l:
l.remove(i)
print l
So we remove each item from the list (an expensive version of "l = []").
However, the result will be "['b']". Now if you use "for i in l[:]:", everything will be fine, because you can iterate over the original list.
It's a shame that I do python for more than 2 years, and I did not know such a basic stuff. :(
Estimated read time: 3 minutes
I spent some time today to prepare some rpm packages for an RHEL4 box, it was an interesting experience. To preface to this story is that first I had to do the followings on Frugalware:
We have a newer (but compatible, since we still ship 5.0.x) mysql, but a simple git checkout gave me the old buildscript and then the patch applied perfectly.
Then the plan changed, I needed to do this on an RHEL4 box as well.
Steps:
Okay, this was enough. I finally finished the task, but I again just can make a "this is so much more efficient with Frugalware" note. ;-)
And no, I don't like to write about why foo sucks, but both this packaging system (or at least the default settings) a docbook sometimes really sucks.
Estimated read time: 1 minutes
It seems the method we used to have a custom date format (ie.: not the default mmddyy, but the yymmdd one) is no longer supported. I spent about an hour trying to figure out what's wrong with it, but it seems the solution is not so trivial and it just does not worth the effort. So it's dropped for now, sigh.
And if I'm at blaming docbook, then here it is: The git manpages still have a ".ft C" / ".ft" string pair around code blocks (or whatever they are called, think of the html <pre> tag), probably due to some broken custom asciidoc.conf.
I like docbook (since generating man/html/pdf is easy from it), but I really hate the fact that they break something with each release. ;-/
Estimated read time: 1 minutes
Estimated read time: 1 minutes
I just got some time to upgrade GHC to 6.10.whatever in Frugalware-current, and it seems they managed to create some screwed up bootstrap binaries, linked to lineedit. This is some BSD version of GNU readline, we did not even had it packaged and the docu says it's outdated in most distros. :-P
However, we still want to bootstrap using upstream binaries, so now we use it. At least I was able to get rid of the ugly LD_LIBRARY_PATH hack, caused by the old readline library they linked the binaries in the previous series.
Estimated read time: 1 minutes
I just found this test, it's an old one, almost 20 years old. It's funny to see what questions became outdated and which didn't.
Some of my favorite questions:
Of course the last one is because I still do have more than that - though I no longer have such a reader at home - would have to go to work to read them. ;-)
Estimated read time: 1 minutes
Mailed Christian Couder to cleanup up the Janitor page on the wiki a bit, since for example all the git_config_string refactoring is already done.
It's nice I did not really have to explain I do not want to destroy his work, it's just no longer necessary - he understood it just fine.