Butter Mountain Rotating Header Image

Posts under ‘code’

Django: a simple whitelist decorator to ‘protect’ views

I’ve recently been working on a project where I wanted to restrict access to my admin views by ip address in the form of a white list. With the aim being that it would provide an extra level of protection ontop of the existing login process.
The idea is fairly simple, if the requesters ip address [...]

PXE / Net booting Open Solaris 200805 release.

Introduction
After the disk in my laptop recently died I decided that it would be a good time to try and install the latest version of Open Solaris onto my laptop. Unfortunately the only option I have for installing new operating systems onto this laptop is via PXE boot, this has not been an issue [...]

Referential Integrity and Django.

Since late 2007 I’ve been working on a project involving Django, initially we started developing the software using 0.96 stable release, however recently made the decision to move to the SVN release. One of the main reasons behind this was the availability of new features and of course plenty of bug fixes.
During some initial testing [...]

High cpu usage from eog / gnome-panel ? blame gtk’s recent-manager.

After re-organising a large number of photos using eog I started to notice spikes of cpu usage while moving from image to image. At first this was just inconvenient but as time went on (and as more photos were viewed) the cpu usage spikes became longer and longer. Is my Ubuntu install getting slower? [...]

Which Jython?

After reading about Sun hiring some Jython developers I decided to install it myself under Debian testing to see what all the fuss is about. As a big Python fan a world without the GIL (Gloabl Interpreter Lock) of CPython sounds just lovely.
After installing it I had a little poke about, along the way [...]