Recent Posts

Archive

2012

2011

2010

2009

2008

2007

2006

Tags

Authors

Brad Montgomery

Feeds

RSS / Atom

Blog

Viewing posts tagged python

PostgreSQL 9.1.2 via homebrew on OS X 10.7.2

Dec. 12nd, 2011 In: None By: Brad Montgomery 0 comments

I just picked up a snazzy new Macbook Air, and I'm working on setting up my development environment(s). For the most part this has been fairly easy. I pull in my repos from github and bitbucket, and I use virtualenv and pip to organize all my python packages (mostly installing from requirements files). Most of the other command-line tools get intalled with homebrew, and this time around I decided to install PostgreSQL with homebrew.

read more

Chosen.js in the Django admin

Dec. 12th, 2011 In: None By: Brad Montgomery 0 comments

Quite some time ago, I ran across the chosen.js plugin for jQuery and Prototype (I'm using the jQuery flavor). My first thought upon seeing this was, "This would rock in Django's admin app." Yet for some reason, I didn't make that happen.

read more

A case for values_list

July 7th, 2010 In: None By: Brad Montgomery 3 comments

Here's the Scenario: I have a model (lets call it Contact) with two Foreign Keys, one of which is related to User in Django's contrib.auth app. I need to build a form that lets me select an existing object, and a new user.

read more

Dealing with Unicode and ASCII using Python

March 3th, 2010 In: None By: Brad Montgomery 3 comments

Dealing with Character Encodings is (sometimes) hard. It's especially confusing for those who've never done it before. Converting text from unicode to ascii can be tricky.

read more

Tracking a Laser pointer with Python and OpenCV

Jan. 1th, 2008 In: None By: Brad Montgomery 13 comments

A recent thread on the OpenCV mailing list (entitled: "Tracking laser dots") discussed techniques that could be used to track the dot from a laser pointer. This sounded like something fun, so I finally got around to trying it out. Essentially this could be done acheived by the following algorithm:

read more

Page 1 of 1:

  • 1