I had a minor fight with south earlier today, where someone had created a migration with south 0.7, and I needed it to work with south 0.6.
Needless to say that it would be a pain to manually convert it from the better 0.7 format back into 0.6, so I wrote a fairly small python script, that does the job.
Continue reading Converting a south 0.7 migration back to 0.6
I had to get some statistics about file sizes today, but couldn’t really find a tool for the job, so naturally, I wrote one.
Continue reading Figuring out largest/smallest/median filesizes
Seeing as there is no really easy way to do a HTTP
HEAD request from python, I wrote up the following small method:
In advance I’d like to apologize for the method that assemblies the request path.
Update: Added handling of redirects.
I needed to send an email, so I came up with this:
Not rocket science, but it gets the job done.
At work we yestoday decided to update our internal url structure for our client test sites, issue management systems and such arround a bit. Seeing as we decided on purchasing a genuine signed ssl wildcard certificate, we needed to change our url’s a bit.
Continue reading Fun with mod_macro and django
The code for a very simple asynchronous socket server written in python utilizing the asynchat module. It’s all in good fun.
Continue reading Asynchronous socket server in python