Category Archives: python

WordPress to blogger

I wanted to move this blog to blogger for more flexible css and java script manipulation, so I wrote this py-w2b project to do that. So far I’m able to transfer blog posts, but not comments, since every comment posted … Continue reading

Posted in python | Leave a comment

bug in python-opengl + mesa

Since like forever, I have never succeed in executing python-opengl demos on debian lenny.  It always segfault during glutInitDisplayMode.  After some debugging, here is why. One should be able to call glGetError at any time.  If there’s nothing wrong, it … Continue reading

Posted in C, OpenGL, python | 1 Comment

generate object methods at runtime

I have been working on a dialer button class since yesterday. It makes sense to use the command design pattern here, and I want to separate the commands and the buttons so I can change the functionality of every button … Continue reading

Posted in programming, python | Leave a comment

python-efl on ubuntu gutsy

hey if you have a extremely slow laptop (Pentium III) like me yet you still want to use python-efl on it, here is how. first, compiling the whole e17 from scratch is not an option. it will take forever. there’s … Continue reading

Posted in python | 3 Comments

A small tip for PIL

PIL stands for Python Imaging Library. It is fairly useful when it comes to handling images under python. However, it comes with a pet peeve to me: the show() method of a Image object will execute sh xv <imagefile>I don’t … Continue reading

Posted in python | Leave a comment

Hello World?

Guess this is appropriate for a blog about software. >>> print “Hello, world!” Hello, world!

Posted in programming, python | Leave a comment