I’ve just released PyFTGL which makes it possible to take advantage of FreeType and FTGL to render text in OpenGL program using TrueType, Type 1 or OpenType fonts. PyFTGL wraps the functionality of FTGL into a Python module so it can be used in conjunction with PyOpenGL. Note that the bindings are still in alpha: […]
Tag Archives: Coding
During the weekend I decided to hack together my own last.fm radio player in Python. I had found the My Playlist station pretty useless after being treated to the same three songs over and over again, and set out to code a player that would autoskip any songs I’ve already listened to once during a […]
Not many new posts have showed up here in a while due to the fact that a) I have nothing web or code worthy to say and b) I have been busy getting my native Swedish blog going. But don’t despair. During my summer break this year I’ve started to code a new application in […]
I’ve done a translation of the Sandbox theme for my swedish section of the site using the GNU gettext tools. It’s pretty simple.
One thing I’ve been fiddling around with lately in the WordPress default theme Kubrick is navigation. I have enhanced the Archives navigation in the sidebar and split up what used to be Categories into “Sections” and “Topics”, and finaly restyled “Topics” into a tagcloud.
I wrote a simple header image rotator today to be able to substitute the boring blue “thing” with a 4th of July photo. The script is a variation on the
header-img.php script included with the Kubrick 1.5 shipped with WordPress as default theme.
I’ve given up on implementing Python classes using C API since I couldn’t get instancing in the C API to work properly. No helpfull error messages, either segfault or “wrong arguments in Objectsclassobjects.cpp line 504″, no helpfull documentation, and me to tired to even type gdb. I’m going back to write a simple module and […]
I finally figured out how to implement classes in Python using C API — the right way. Namely as a new type using the PyTypeObject complete with get and set attribute calls and plain members. But I tought my previous hack for building a class at runtime is still slim enough to share, especially if […]
Ok. I haven’t posted anything in a (relative) long time. To tell the truth — there isn’t much to report.