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

2010 New Year's Resolutions

Posted by: barbara | Date: Dec 30, 2009 | Category: Personal

I don't need to lose any weight, I've already quit smoking, and although I could probably stand to get back into my weight training, it looks like the pedestrian challenges are out of the way. The path has been cleared for me to tackle three big goals in 2010.

...

Read More

Image Resizing with Python and ImageMagick (bleh)

Posted by: barbara | Date: Dec 11, 2009 | Category: Python

Let me first give a little background on this project, and then I'll break down the script.

I'm working with a legacy image handling system that's more than a little convoluted. Source images for different music artists are uploaded through a multi-tenant CMS to a media server, to a DAV-enabled ...

Read More