2009
11.20

Long time no post and this isn’t a particularly interest post either, but if you ever need to change the order of a predefined form classes fields, this could be helpful. I hacked around a bit on this one and could only find one answer and that was to remove the form field completely and than reinsert it where I wanted it. If anyone has a better, cleaner option – please leave a comment.

form = FormClass()
some_field = form.fields['some_field']
del form.fields['some_field']
form.fields.insert(2, 'some_field', some_field)
2009
10.18

This is a small helper function I wrote this morning in PHP to delete a directory containing multiple directories and files inside it. Its pretty simple to follow, however the one snag I encountered was distinguishing between files and directories has to be done using an absolute path:

Read More >>

2009
10.11

Just noticed an urgent security update available on the django website. The django team’s description of the vulnerability:

Read More >>

2009
10.10

One of the things that used to bug me a bit about using the python interactive console was that it didn’t support tab completion. So here a short “how to”, written for Linux and Mac users. Windows users – please see the tailing note.

Read More >>

2009
10.08

Always up for debate, I though I’d put my opinion out there as to the best Python Editors or IDEs currently available. The most important thing to look for in an Editor is the comfort, ease of use and GUI, effective code completion, scalability, debugging capability, and speed. I’ve decided to profile five Python IDEs / Editors and rate each on these criteria. I’ve also decided to only mention editors available on the three main operating systems, Linux (Gnome), OSX, Windows and are either open source or freeware.

Read More >>