Posts

Python Quine

A quine is a program that outputs its own source code. Here’s one I wrote in Python.

Wine Rating Data

I tasted and rated 32 wines in Introduction to Wines and I thought the data would be fun to explore. Do I like reds more than whites? French wines more than US wines? Does price correlate with my wine preference?

Town Hall Alerts

The Town Hall Project makes it easy to find local town halls with your state and federal representatives. To get this information, volunteers spend time searching through politicians’ Twitter feeds for town hall announcements. I wrote a script to help do this faster and less painfully.

CV of Failures

You may have heard of this before; academic websites, CVs, and Twitter feeds typically catalogue successes, obscuring the many failures and rejections that are a natural part of any academic career. Following many others, and in the spirit of openness, here is a CV of my own failures.

Site Graph

I really wanted to see the link graph of websites, but didn’t find user-friendly tools for doing this. So, I wrote my own. In this post, I describe how the script works, how to run it, how to customize the visualizations, and what issues I ran into along the way. Most importantly, I have some pretty pictures and an embedded interactive graph of this very site.

Discrete Choice Models

Choosing is one of the most common and important actions people take: we choose where to work, how to get there, who to vote for, and what to have for lunch. These scenarios are studied in economics, psychology, and (recently) computer science under the umbrella of “discrete choice” (as opposed to continuous choices, like how much milk to put in your coffee). In a discrete choice setting, we’re presented with a set of options (the choice set) and we make a selection from the available items.