Filed under

#python

Posts

New Pelican Plugin: Obsidian-Style Callouts

I write all my notes and drafts in …

Read the full piece
Posts

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 …

Read the full piece
Posts

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 pyreadline
  • pip install ipython[shell]

Except right now step 2 fails when installing scandir so I grabbed it …

Read the full piece
Posts

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 …

Read the full piece
Posts

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 …

Read the full piece
Posts

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 …

Read the full piece
Posts

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

  1. Add /usr/local/mysql/bin to your path (permanently in your .profile)
  2. If …
Read the full piece
Portfolio

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 …

Read the full piece