by GerardJP | Dec 16, 2009 | Tech
I recently have been dinging around in Django’s ORM because I needed a certain ‘fields … group by’ selection. I was very impressed by the logic that the Django developers put in there. Especially the joins and aggregations that have been...
by GerardJP | Oct 26, 2009 | Tech
During the development stage of a Django app I’m working on I was exploring how to best implement rowlevel user ownerships. There are several ways to overwrite methods on object managers and even the Django admin interface is properly configurable to take a...
by GerardJP | Jul 11, 2008 | Tech
If your a regex guru, and you know why you came here, you can go straight to the brief explanation. If not just keep reading. I found a workaround for python bug 1519638. It most definitely will not solve all of the puzzles out there but it stops breaking the sub...
by GerardJP | Jun 12, 2008 | Tech
I needed a function that validates an IP address or network range. Since my python application will pass it as a parameter to iptables it needs to be correct and not ‘close to’. So I dug in … Validating an IP address or range with just a regex seems...
by GerardJP | Dec 19, 2007 | Tech
The change in the Ruby SSL library broke puppet in the case that you connect your clients via a different IP and FQDN then the internal hostname of the server running the puppetmaster (e.g. a backend network). This article shows a quick summary what needs to be done...
by GerardJP | Nov 3, 2007 | Tech
The script: chkdir.py Description The script emails differences on a directory’s listing. So if you’re monitoring changes in a specific directory you can use this script. Run it under CRON every 5 minutes and on any changes you’ll get an email...