As many other dwm users do, I customized my .xinitrc file and the dwm status bar in to display some useful information. Here is my configuration: .xinitrc This is what my .xinitrc looks like: # set keyboard layout to Swiss German setxkbmap ch # Load .Xresources file xrdb -merge ~/.Xresources # Start xbindkeys xbindkeys & […]
Author: Danilo Bargen
django-sphinx sorting
Unfortunately, the django-sphinx module is not very thoroughly documented. One thing which I could not figure out is how to do sorting. I thought that I had to set some kind of keyword argument on the SphinxSearch instance… (I have to admit though that the sorting is indeed demonstrated in the project README.rst, I simply […]
Django Forms with Multiple Inheritance
Sometimes you want to validate only parts of a Django form. A use case for this would be a user profile. A user may have an extensive user profile, but sometimes you only want to validate a subset of the form fields, e.g. the city and the phone number, when providing a profile edit form. […]
Show MySQL Storage Engines
If you have ever wanted to know the storage engine type of every table in one of your MySQL databases, you know how tedious that can be. I have written a Python script that will simplify that task. You can get it on Github. Usage: $ ./show-engines.py or $ python show-engines.py Download: https://github.com/dbrgn/MySQL-Show-Storage-Engines
Use easy_install under Arch Linux or Ubuntu
If you want to use Python’s easy_install, you need to install an additional package. Under Arch Linux, you need python2-distribute. $ pacman -S python2-distribute If you’re an Ubuntu user, install python-setuptools. $ apt-get install python-setuptools
Why some software project websites suck and others don’t
Today I gave some thoughts to what distinguishes a good software project website from a bad software project website (especially for open source projects). I came up with a few must-have criteria for a good software project website: On the very first page, state what the software does, and what the goal of the project […]