Problem Solved: Using PIL with ImageMagick

Posted by: barbara | Date: Sep 28, 2012 | Category: Python

I was tasked with a fairly simple project:

  • Traverse a directory with several hundred subdirectories, each containing up to half a dozen images of different sizes
  • If a directory already contained an image where [-8:] == "_175.jpg", just delete the entire directory, it was not needed
  • If the directory ...

    Read More

Annoying Heroku Error Messages

Posted by: barbara | Date: Sep 27, 2012 | Category: Tools
(venv)[me@my project]$ heroku open
 !    A new version of the Heroku toolbelt is available, run `heroku update` to upgrade.

(venv)[me@my project]$ heroku update
 !    `heroku update` has been disabled in favor of autoupdate.

(venv)[me@my project]$ heroku autoupdate
 !    `autoupdate` is not a heroku command.
 !    See `heroku help` for a list of available commands.

(venv)[me@my project]$ autoupdate
autoupdate: `configure.ac' or `configure.in' is required


Read More

A Quick Note: Avoiding Those Pesky vim Backup Files

Posted by: barbara | Date: Sep 27, 2012 | Category: Mac OS X

I use vi in the OS X terminal pretty much exclusively. A few weeks ago I did something to blow away my original .vimrc file - I have no idea how I did that, which is a little scary. One of the results was that vi automatically started creating backup ...

Read More

DjangoCon 2012 Recap

Posted by: barbara | Date: Sep 10, 2012 | Category: Django DjangoCon

Note: I started writing this on the evening of the last day of sprints at this year's DjangoCon.

I can't believe the week is over already. It's Saturday night at the Hyatt in Crystal City, just south of Washington D.C. The last of the die-hard sprinters have packed up their ...

Read More

Coding for Good: Working with the Sunlight Labs APIs

Posted by: barbara | Date: Aug 29, 2012 | Category: Python

If you're looking to get your feet wet when it comes to working with open U.S. government data, I can think of no better place to start than with the Sunlight Laps APIs. They're not kidding when they say that using their APIs is absurdly easy.

Sunlight Labs is ...

Read More