Category Archives: Python

Speaking at Mongo SV 2010

By | November 17, 2010

I’ve very excited to be speaking on Logging Application Behavior to MongoDB at Mongo SV 2010 in Mountain View on December 3rd. Interest in the conference has soared and 10Gen is now expecting 500 attendees. Just a week ago, they were at 300 attendees. They had to add a fourth track of talks to handle… Read More »

Django on DreamHost VPS

By | June 1, 2010

I recently successfully migrated my first Django app from DreamHost shared hosting to a DreamHost VPS (virtual private server). I hope this info will be useful to others. The following two blog posts were absolutely key to me getting this working, especially the first one. Thanks Preston and Graham! Setting up Pinax on DreamHost Private Server… Read More »

Django Bash Shell Completion

By | January 10, 2010

Django includes a Bash shell completion script, which can save a lot of time. The tutorial recommends installing it, but doesn’t explain how. Fortunately, its the same as for any other Bash shell completion script. Here’s how I did it for Django. Add an environment variable for the location where you installed Django. For example,… Read More »

MySQL, Python and Snow Leopard

By | December 29, 2009

I just updated an old post on using Python with MySQL on OS X. The good news is that you don’t need to create an extra directory of symbolic links anymore. The not really bad news is that you have to be careful about 32-bit versus 64-bit. Ideally, you’ll first upgrade to a 64-bit version… Read More »

Population after Katrina

By | July 22, 2008

While analyzing a bunch of US Census data at work to build out an even more comprehensive geographical database for Voxify’s speech apps, I ran into an unexpected error. I wrote a Python script to parse a CSV file that contains population data from 2000 and estimates for 2001-2007. The code extracted the data I… Read More »

MySQL Support from Python on OS X

By | February 19, 2008

It was more work than it should have been, but you can get access to a MySQL database from Python on OS X 10.5 by following the instructions at this blog post. If you’re using Pydev in Eclipse, be sure /Library/Python/2.5/site-packages is in the System PYTHONPATH. Bring up the Preferences dialog, open Pydev in the… Read More »