Tag Archives: Coding

Python FTGL Bindings

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: […]

Posted in General | Also tagged , , | Comments closed

Last.fm Radio Protocol

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 […]

Posted in Besserwisser | Also tagged , , , | Comments closed

import time as summer

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 […]

Posted in General | Also tagged | Comments closed

Playing With Gettext in the Sandbox

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.

Posted in Tutorials | Also tagged , , , | Comments closed

Blog Overcast: Tagclouds

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.

Posted in Tutorials | Also tagged , , , | Comments closed

Spin ye’ head

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.

Posted in General | Also tagged , , | Comments closed

That Python Is Strangling Me!

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 […]

Posted in General | Also tagged , , | Comments closed

And Now Something Completely Different …

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 […]

Posted in Tutorials | Also tagged , , | Comments closed

A Singleton Not Named Bridget

Ok. I haven’t posted anything in a (relative) long time. To tell the truth — there isn’t much to report.

Posted in Tutorials | Also tagged , | Comments closed