Fun with Auckland bus data
A couple of days ago I discovered that Auckland Regional Transport Authority (ARTA) make all of their bus schedule data available for download from the maxx.co.nz site. The data is in the Google Transit Feed format, which means that it consists of a bunch of comma separated value text files, describing things like stops, routes, trips and calendars.
I decided to see what I could do with this data. Below is my first attempt. It is a “density” map of all the bus stops in Auckland.
Click here for a hi-res version that allows you to pan and zoom.
The initial version of the map only took about 30 minutes to create but I have spent a few hours tinkering with it since then.
Quick guide
Here is quick guide to the process if you want to try something like this yourself:
- I extracted stops.txt from the data set
- I then gpsvisualizer.com to plot out the stops as data points on map. I got it to output a 4096 pixel wide .svg file
- Next I used Inkscape to edit the .svg file, adding the text & zoomed area and exporting the result as a .png file.
- Lastly I used the Google Maps Image Cutter to generate the pannable and zoomable version. The Google Maps Image Cutter is a pretty neat tool. It takes any big image, chops it into different resolution tiles and then spits out some html which uses the Google Maps API to view your chopped up image.
Next steps
If I get some more time I will try create some more visualizations. I’m thinking it would be interesting to merge the bus stop density data with some population data. Also an animation showing 24hrs of bus movement compressed into a couple of minutes would be pretty nice too.
SvnViz 1.0.0 Released
Finally got off my butt and packaged up version 1.0.0 of SvnViz. It can be downloaded from sourceforge.
SvnViz builds visualizations of the activity within a Subversion repository. Here is an example of the default visualization run against the project that I am currently working on. Green dots indicate file adds, blue dots are modified files and red dots are deleted files. The greater the activity of the user the higher their score.
SvnViz also provides a framework for creating your own visualizations. Simply extend the FrameViz class and implement the generateFrame method. To run your vizualization class, instead of the default class, just pass the fully qualified name of your class to the application using the -vc parameter.
Source files can be downloaded from here. All code is released under the GPL.
Have fun and drop me a line if you come up with an interesting visualization.
I made a light tent
So I wanted to take some close up photos of some Lego blocks (don’t ask) and I wanted them to be on a clean white background like you see in swanky product shots.
After doing some digging around on the web it turns out that what I wanted was a light tent which would allow me to take nicely lit macro shots of items on a “horizon-less” white background.
After some further digging I turned up a number of links on how to build your own light tent which would work just as well as a bought one! This appealed to me since I’m a cheapskate :)
This link: http://digital-photography-school.com/blog/how-to-make-a-inexpensive-light-tent/ seemed to provide the best set of instructions and had some very nice end result pictures. Digging through all the junk in my garage for about 20 minutes turned up all the bits and pieces I needed and after another 30 minutes or so of cutting and gluing, I had my light tent (or more accurately my light box).
The only dampener on the proceedings is that I have skillfully put my mini-tripod somewhere “safe” and I now cannot find it :(
Balancing the lamp on top of the box, I turned on my camera and furiously took pictures of every small item on my desk using my S7000′s macro mode. The images looked great on the camera’s tiny LCD but when transferred to my PC the levels were all wrong and no amount of tinkering with photoshop (with my feeble photoshop-fu) seemed to fix them.
Going back to the web it turns out that I need to set up the white balance for my camera. I did this but still wasn’t getting quite the effect what I was after. I believe that my problem is that the lamp I am using is not putting out a particularly strong nor white light.
In the end I set my camera to take RAW images and then manipulated the heck out of the images in photoshop to get what I was after. I’m very pleased with the results, here are some pics of the light box and some of the Lego blocks:
What the last 12 presidents did in their first 100 days
Fantastic chart showing what the last 12 US presidents did in their first 100 days in office:







