#python
2026
New Pelican Plugin: Obsidian-Style Callouts
I write all my notes and drafts in …
2025
Printing from Python on a Mac
I recently automated the download of one of my favorite cryptic crosswords, both because I am nerdy and because it went behind an extravagantly high paywall. In the process I decided I wanted Sunday mornings to be even more leisurely and made the script …
2017
Autocomplete in Python Shell on Windows
Because I drive myself insane replicating this when I find I want autocomplete on Windows, here are the steps (as of January 2017 anyway):
pip install pyreadlinepip install ipython[shell]
Except right now step 2 fails when installing scandir so I grabbed it …
2014
wxPython on OSX Mavericks with or without Homebrew
Just a short note for anyone else who runs into this nonsense: I could not get the current version of wxPython to install in a useful way using homebrew. brew install wxmac --python --devel to install into my Homebrew-controlled Python install worked …
2014
Django Profiling Bug
I’m doing some work profiling a large Django application and I was running into this weird error when I tried to aggregate the stats with gather_profile_stats.py which comes with Django. It kept throwing TypeError: zip argument #1 must support iteration if there were two profile …
2013
Django Command to Back Up to Amazon S3 with Python
If it’s of use to anyone, I wrote this fairly thick-headed script to look for the most recent versions of files matching one or more patterns in a directory, zip them up and back them up to Amazon’s …
2013
MySQL and Python on OSX
Because I rarely use MySQL nowadays and because how often do you set up a new machine, this is a reminder to myself on how to get mysql-python installed in a virtualenv
- Add /usr/local/mysql/bin to your path (permanently in your .profile)
- If …
2010
Fidelity: Broker Information Site
Private web site that brings encrypted XML data about funds into Expression Engine which displays the information in HTML and PDF formats.
A massive undertaking in three parts
This client has a large mutual fund business with a number of channels they sell …