Other articles

  1. Looping through Python command line arguments

    I have a Python script that does some image manipulation and outputs a new file. From the command line, it takes two arguments, the old file and new file:

    python image_converter.py oldfile.jpg newfile.jpg
    

    I wanted to run this over a bunch of files, and used this bash …

    read more
  2. Django Databases and Date Ranges

    I'm continuing to work on my project analyzing data about Philadelphia City Council - elections, demographics, terms of service, etc., even as heartbroken and terrified I am about the recent Presidential election. A very crude version of this project is here. A big thing that this never did was to look …

    read more
  3. Jupyter Notebook and the Django shell

    I've been working on a project analyzing data about Philadelphia City Council - elections, demographics, terms of service, etc. A very crude version of this project is here. I want to make this more robust, and a big part of doing so includes playing with code. One of my favorite ways …

    read more
  4. If __name__ == __main__

    Tue 01 July 2014 | tags: Python |

    When you work in python, you’ll see this if __name__ = '__main__' all over the place. It took me forever to really understand what it means. Actually, I still often have to think through each time I see or use it (but I don’t really use it myself).

    I …

    read more
  5. About this site

    This website is built in Pelican, a static site generator built in Python. This blog post is where I'm storing all my notes on how I built it. I've backdated it so it always ends up as my earliest post, but I'll continually maintain the post.

    I'm running Ubuntu 16 …

    read more

Page 1 / 1

social