-
By day, I'm a product manager serving a group of fantastic engineers at Square.
By night, I fight crime and solve mysteries with a robot pal of my own creation.
By midday, I like a snack, generally a cookie.
Part of this biography isn't true (hint, I like cookies and engineering, I don't own a robot)
-
Archives
-
Elsewhere
Category Archives: Python
My first Django snippet: Another Memcache status view
Hooray! I posted by first Django snippet today. It’s a [status view for your memcache server(s)](http://www.djangosnippets.org/snippets/597/). I had originally used [this snippet](http://www.djangosnippets.org/snippets/54/), but the regex and socket thing never quite sat right with me. Turns out that django.core.cache has a … Continue reading
Posted in Django, Python, Technology
Comments Off on My first Django snippet: Another Memcache status view
Journalism job description tag clouds
A colleague of mine, (whom may or may not remember me from my [Dow Jones Online Internship](http://indystar.com)), [Eric Ulken](http://ulken.com/blog/archive/000145.html) built a tag cloud of [keywords in postings to journalismjobs.com](http://ulken.com/blog/archive/000145.html). Not surprisingly, “blogs”, “interactive”, “flash” and “graphics” top the list — … Continue reading
Posted in Journalism, Python
Comments Off on Journalism job description tag clouds
AJC development group mentioned at APME
We’re in [film!](http://alt.coxnewsweb.com/ajc/soundslides/ajc_apme/soundslider.swf) Robin Henry, our Digital Managing Editor extraordinaire, spoke at a recent [Associated Press Managing Editors conference](http://www.apme.com/) and screened this [Soundslides presentation](http://alt.coxnewsweb.com/ajc/soundslides/ajc_apme/soundslider.swf) that Emily Murphy and the [AJC](http://www.ajc.com)’s multimedia group put together. I look and sound like a … Continue reading
Posted in Django, Journalism, Programming, Python, Technology
Comments Off on AJC development group mentioned at APME
One thing I absolutely love about Django’s template loading
Is the ability to specify a series of template folders in [your settings file](http://www.djangoproject.com/documentation/settings/#template-dirs). Here’s what we do at [work](http://www.ajc.com): TEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), “templates”), os.path.abspath(os.path.join(os.path.dirname(__file__), “..”, “ANOTHERSITE”, “templates”)), ) It allows us to easily share templates from ANOTHERSITE with … Continue reading
My duh moment – Django and it’s lack of strip filter
Had a total ‘duh’ moment today at work. I wanted to perform the equivalent of [Python’s string.strip method](http://www.python.org/doc/2.3/lib/module-string.html#l2h-819) on some [Django template output](http://www.djangoproject.com/documentation/templates/). I looked on the [Django documentation site](http://www.djangoproject.com/documentation/templates/) but I couldn’t find a strip filter. It took me … Continue reading
Posted in Django, Python
11 Comments