Amarok kicked out the window. Hello Exaile!!

My god, what happend to Amarok. It used to be a great player. The latest version turned into a -non-intuitive-non-flexible-interface- audio player. As Brian says it very eloquently in Songbird vs. Amarok: How not to design a GUI, and currently working on interface design myself. Amarok .. WTF? After reading the Middle pane thread on [...]

January 4, 2010  Tags: , , ,   Posted in: All ENGLISH articles, Diepe zucht, Technical  2 Comments

Django: get distinct field selection

A function for Django that is a simple and safe solution to get a distinct (group by) field selection from a model.

December 16, 2009  Tags: ,   Posted in: All ENGLISH articles, Technical  No Comments

Django: QueryScreener, a record level ownership development auditor

QueryScreener is a middleware development tool that helps to avoid unwanted data disclosure once you go into production. It monitors queries to the models and warns you when queries are executed that lack a ownership clause.

October 26, 2009  Tags: , ,   Posted in: All ENGLISH articles, Technical  No Comments

“Walk-around” for pre lighttpd-1.4.23 feature “fix-root-scriptname”

Walk-around should ofcourse be workaround but it feels more like a walk around … Today I ‘moved’ the first version of my application from the Django development setup (run via “./manage runserver”) to a lighttpd/fcgi production setup. Been cleaning up code and concluded I wanted the app straight on the ‘/’ or docroot with a [...]

August 15, 2009  Tags: , ,   Posted in: All ENGLISH articles, Technical  No Comments

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 method for replacing with [...]

July 11, 2008  Tags: , , , ,   Posted in: All ENGLISH articles, Technical  10 Comments

A python function to capture an IP address or range

I recently 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 like self castigation. I looked [...]

June 12, 2008  Tags: , , , , ,   Posted in: All ENGLISH articles, Technical  No Comments

nexec, distributed terminal commands

I Developed this commandline tool to make it easier to maintain stuff on a groing amount of servers. nexec is a tool that can help you gather ad-hoc info when it’s needed quickly. nexec is written in python, it depends on codespeak’s pylib, and does all it’s communication over SSH. The only thing you need [...]

June 4, 2008  Tags: , ,   Posted in: All ENGLISH articles, Technical  One Comment

Watch command does not support ‘utf-8′ characters

This issue was found on Ubuntu 8.04 (Hardy Heron) Desktop. If your coding in python and trying to write utf-8 encoded files, save yourself some time. The ‘watch’ command on Ubuntu Hardy does not display utf-8 characters when watching the contents of a file that contains them. The file contents with the utf-8 character: “This [...]

May 22, 2008  Tags: , ,   Posted in: All ENGLISH articles, Technical  No Comments

My First Python: chkdir.py

First of all I would like to thank my -fun to work with- colleague JW for his elaborate teachings on how to properly code in python. Thanks a lot! 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. [...]

November 3, 2007  Tags: , ,   Posted in: All ENGLISH articles, Technical  No Comments