Sarah Palin is a Parrot

October 14, 2008 at 11:08 pm | Posted in General | Comments Off

I really have to agree with John Cleese…

Deploying Projects With Capistrano

August 27, 2008 at 1:25 pm | Posted in General | Comments Off

Not too long ago at work, we added a few more servers to our production deployment to speed things up – however, this made deploying code changes a bit more complicated, as you had to remember to update several servers every time.  I decided to look into Capistrano, which I’d heard about before, and am glad to say it’s working very well, once I managed to figure it out.
Continue Reading Deploying Projects With Capistrano…

Useful form tricks in Django

July 24, 2008 at 12:46 am | Posted in django | 9 Comments

Not much text to put in this post, I just want to show a few useful things you can do with a ModelForm in django, so I can quit retyping examples :)
Continue Reading Useful form tricks in Django…

Spam bots suck

March 23, 2008 at 11:09 pm | Posted in General | Comments Off

Today my blog was hacked, erasing the most recent post in favor of spam links. Thankfully, I was able to recover it from Google’s cache, but I’m tired of all the issues maintaining my own blog.

As a result, I’ve decided to move my blog here, so that I don’t have to deal with the hassle anymore.

Editing multiple objects in Django with forms

February 18, 2008 at 1:45 pm | Posted in django | 6 Comments

A common problem I see when helping people in the Django IRC channel is people who are trying to create or edit multiple objects, but for some reason try to make a single form object to deal with them – this makes things quite convoluted and much harder than they have to be. My goal here is to explain a much simpler method using multiple form objects.
Continue Reading Editing multiple objects in Django with forms…

Tab-Complete and a Persistent History in Python

November 17, 2006 at 9:15 pm | Posted in python | 4 Comments

Earlier today, in #django on freenode, the topic of tab-complete in the python shell happened to come up – at first, I thought it wasn’t possible in standard python, and only in other python interpreters.

Thankfully, a link was posted with info on the readline and rlcomplete modules – at first, I couldn’t get their example working to load on startup, so upon further investigation, not only did I get that quirk worked out, but I stumbled across another module that lets you hook on start/exit to save/load a history file, much like bash.

Continue Reading Tab-Complete and a Persistent History in Python…

« Previous PageNext Page »

Create a free website or blog at WordPress.com. | The Pool Theme.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.