Django: get distinct field selection

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...
Solved python regex raising exception “unmatched group”

Solved python regex raising exception “unmatched group”

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...
A python function to capture an IP address or range

A python function to capture an IP address or range

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...
Puppet SSL issue with CommonName under Debian etch

Puppet SSL issue with CommonName under Debian etch

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...

My First Python: chkdir.py

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...