PaiMei on Python 2.5

The PaiMei page says that you need Python 2.4, which turns out to be true due to it shipping with a compiled for Python 2.4 version of pydasm. Of course it’s possible to compile pydasm yourself, it’s even fairly easy just as long as you have the correct version of Visual Studio installed. You could …

Continue reading ‘PaiMei on Python 2.5’ »


Django is cute

I’ve been playing around a bit more with django, and writing simple web services in it. I have to say it’s cute! Building on my simple authentication middleware I added a second decorator that extract argument out of the URL and passes them to the function as regular arguments: def extract_arguments(required, optional): def _wrapper(func): def …

Continue reading ‘Django is cute’ »


Some stuff (30/08/2006)

I enjoyed reading this article on how an XSS attack works. I’ve always just done the alert(“Game over!”) XSS which isn’t really an attack at all, just a proof that there’s a possibility for an attack. That trusted computing is bad for consumers is something I’ve known for a while, but apparently TC is bad …

Continue reading ‘Some stuff (30/08/2006)’ »


Rolling your own authentication in Django

For various reasons I wanted to see just what was required to roll my own basic authentication using Django. I am aware there’s a built-in authentication module, django.contrib.auth, but it’s overkill for my ultimate goal and it depends on the session module in ways that only further study can reveal. I heard rumours that the …

Continue reading ‘Rolling your own authentication in Django’ »


Jendela – change of implementation language

Unfortunately it seems the Python bindings for wnck aren’t quite up to scratch. I’m getting numerous run-time warnings and sometimes even segmentation faults when doing some stuff (e.g. when shading all windows on the current desktop). I’ve “verified” it’s a problem in the Python binings by hacking together a quick and dirty program in C …

Continue reading ‘Jendela – change of implementation language’ »


Epilicious ready to be localised

The current version in BZR, that’d be version 0.8pre1, has internationalisation support. Currently there’s only one language, Swedish, but I’m looking forward to receiving onther languages to add to the list. (I’m more than happy to receive any pointers regarding the language in epilicious, be it English, Swedish, or any other language.) The actual implementation …

Continue reading ‘Epilicious ready to be localised’ »


CherryPy sessions

I almost started pulling my hair over this. The part of the CherryPy book on sessions said that the following code would turn on sessions in CherryPy 2.1: cherrypy.config.update({‘session_filter.on’ : True}) However trying to access session data after that resulted in a “500 Internal Error” page telling me that sessions weren’t enabled. Huh? Luckliy I …

Continue reading ‘CherryPy sessions’ »