programming

Teaching a Python Bootcamp

This weekend I taught an Intro to Python class on behalf of the Philadelphia Python Users Group (PhillyPUG). I’ve taught this kind of workshop before but a few things made this one different. Continue reading

Advertisements
programming

Struggles with WordPress, jQuery, and more

A couple of years ago, I randomly stumbled upon a tweet about a template to create a searchable, interactive mobile maps. It was a wonderful find for a relatively new programmer, because there was enough that was set up to be a simple, fill-in-the-blanks program. There was enough that I could try to customize as a learning experience. I learned a lot about Javascript from working with this template. I used it to create the Toynbee Tile Map. Continue reading

Philadelphia City Council, programming

Philadelphia City Council: Pie charts & Stacked bar charts (10/12)

Next I wanted to be able to visualize the racial, party, and gender makeup of City Council in any given year. I had an html GET request to let the user select a year. It was embedded in a try/except block and an if/else conditional block. Since it’s possible for a user to enter a query in the url directly, I wanted a safeguard against query terms that are not integers and against integers that are outside the range of my data. Continue reading

Philadelphia City Council, programming

Philadelphia City Council: d3 visualizations (9/12)

I’ve come across many javascript libraries used to make data visualizations like pie charts, bar charts, timelines, etc. The easier they are to use, the less customizable they are. In a very early version of my city council project I used highcharts. This produced some great charts but I wanted to be able to customize them more. Enter d3. Continue reading