Managing mp3 Files with eyeD3

Posted by: barbara | Date: Oct 12, 2011 | Category: python

I'm more than a little bit OCD when it comes to managing my music collection. It's huge, and I like to keep the files named with a certain pattern so that when I look at the archive I can see, at a glance, what I have without having to open ...

Read More

Quick and Dirty Lat/Lng Values from the Google Geocoding API

Posted by: barbara | Date: Oct 11, 2011 | Category: python

This past week, I had to assign lat/long values to a large batch of addresses we had sitting around in our database.

To get those values, I posted to the Google Geocoding API and parsed the resulting XML.

This script isn't particularly polished - I didn't spend much time ...

Read More

Image resizing on file uploads. Doing it the easy way.

Posted by: barbara | Date: Jan 13, 2010 | Category: django python

Let me start with this proviso: Math is not my strong subject (okay, just stop right there with the Barbie jokes). I'll do just about anything to avoid writing complex equations. And most of the time, I don't have to. Most of the time, I can find alternative solutions, dependent ...

Read More

cElementTree ftw!

Posted by: barbara | Date: Jan 07, 2010 | Category: python

My mission was simple - to crawl all of our artist databases, extract names and email addresses from a couple of different tables, and spin out some custom XML.

The tables - one for complete user profiles and another for users who have signed up to receive emails only - ...

Read More

New Year's Python meme

Posted by: barbara | Date: Jan 05, 2010 | Category: python

A few days too late ...

  1. What's the coolest Python application, framework or library you have discovered in 2009?
  2. PIL. Okay, maybe it wasn't exactly a new discovery, but I'd never used it before to the extent that I did in the last quarter of 2009, and ...

    Read More