Other articles

  1. Subtotals and Grouping with Pandas

    For a long time, I've had this hobby project exploring Philadelphia City Council election data. I've learned no agency has this data collected or maintained in a consistent, normalized manner. From election to election, vote counts are presented in different ways (as explored in this blog post), candidate names are …

    read more
  2. 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
  3. Making files by the batch

    I had a list of names and I wanted to create an empty file with each of those names.

    First I saved my list of names to a file with the .md extension since they were all going to be markdown files.

    names.txt

    barack.md
    joe.md
    hillary.md …
    read more
  4. Not Hamburger Helper

    I grew up on food like Hamburger Helper (yes, that boxed mix that you mix with ground beef and water). I think that this recipe from Simply Recipes was inspired by the same thing. I've adapted this recipe here.

    Serves 4.

    • 3/4 lb. ground beef
    • 1 medium onion, diced …
    read more
  5. Stashing revisions in Git

    Tue 22 November 2016 | tags: git |

    Sometimes I'll be working on a project, having moved along a few steps from my last commit, only to remember there was something else I wnated to do before the point I'm at now. Since the point I'm at now isn't really ready for a commit, I don't want to …

    read more
  6. 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
  7. 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
  8. Grilled ahi steaks with cilantro pesto

    Another old printout of an old recipe my husband wanted to keep. This one is from Mark Bittman.

    • 1 cup loosely packed cilantro leaves
    • 2 cloves garlic, peeled
    • 2 tsp kosher salt
    • 1/2 cup olive oil
    • Juice of 1/2 lime
    • Ground black pepper to taste
    • 1 tuna steak …
    read more
  9. One skillet chicken and stuffing

    Sat 10 September 2016 | tags: chicken |

    This recipe is adapted from Cooks Country.

    Ingredients

    • One whole chicken (~4 pounds)
    • 6 tb butter
    • 2 tb minced fresh sage
    • 2 tb minced fresh thyme
    • Salt and pepper
    • 2 medium onions, chopped
    • 3 ribs celery, chopped
    • 5-6 cups cheap Italian bread, cut in 1/2 inch cubes
    • 1/3 …
    read more

Page 1 / 4 »

social