Analytics and Visualization

100 Monkeys Flip 100 Light Bulbs…

I was once asked the following interview question and told to answer it programmatically and analytically. There are 100 light bulbs lined up in a row in a long room. Each bulb has its own switch and is currently switched off. The room…

A Quick and Dirty MTG Proxy Maker / Deck Assembler

Cards_5fff-300x211

This is a quick and dirty Python script to assemble a deck from the collection of images I gathered in the previous post. Works well and uses the Python Imaging Library (PIL). Were I to repeat this, I would strip all white space…

Screen Scraping and Image Grabbing with Python, Beautiful Soup and Mechanize

I recently decided I wanted an image copy of every Magic the Gathering card, and wrote this script in Python to grab them from the awesome magiccards.info. I used Beautiful Soup and Mechanize to automate the process. Beautiful Soup is a fantastic Python…