Code Name: Adventur

October 16th, 2017

I'm starting a new game development project, the one I've been wanting to do for a long time. It's a top-down RPG meant to resemble the original Fallout games. My plan is to use LibGDX for the development library and Blender for the graphics. Stay tuned!

Python and the WordPress Jetpack Stats API

May 31st, 2015

I found myself refreshing the WordPress Jetpack stats page a lot, so I wrote a short script to take care of that for me. It refreshes every 10 minutes hour. Don't forget to add your Jetpack API key. And your own sites.

(assumptions: you have Python installed and have a plain-text editor handy. PyCharm and Emacs are probably overkill for this exercise, but that's all I've got.)

# your API key, maybe hidden in your dashboard somewhere?
api_key = 'your_api_key'
refresh_rate = 3600 # in seconds, so, every hour.

# all of your sites you care about and are allowed to check
sites = [

import urllib2
import time
from datetime import datetime

# make the url that gets the data
def get_api_string(key, blog_uri):
    return '' + key + '&blog_uri=' \
        + blog_uri + '&table=views&days=1&summarize'

# get the views from the url that gets the data
def get_views(key, uri):
    views_url = get_api_string(key, uri)
    response = urllib2.urlopen(views_url)
    result =
    views = result.split("\n")[1]
    return views

# do the things!
while True:
    print str(
    for site in sites:
        print site + ": " + get_views(api_key, site)

Then run it like this in a terminal window:


Then kind of resize the window and put it someplace.

Terminal Image

And you're all set!

Let’s fix up a ThinkPad X300

December 11th, 2014

I wanted a lightweight laptop as an on-the-couch programming machine to run PyCharm, Emacs, and make some things with Python. Something with a good keyboard, screen resolution higher than 1280x800, and one of those trackpoint mouse things. Budget: $200 Read the rest of this entry »


July 9th, 2014

More Javascript, trying to make something like the classic Wizardry: Proving Grounds of the Mad Overlord. Read the rest of this entry »

The Amok Bros.

June 5th, 2014

Check out my latest comic series: The Amok Bros.! Read the rest of this entry »

Python Editing for Blender (Part Two)

September 25th, 2013

Welcome back! If you missed the first installment of Python Editing for Blender, it was mostly about getting set up and adding keyword completion to PyCharm. Read the rest of this entry »

Python Editing for Blender (Part One)

September 11th, 2013

A few things I've done since I started working with Python scipting in Blender: Read the rest of this entry »

Doctor Robot

June 6th, 2012

My Javascript game is up, here's a quick video: Shoot some robots! Read the rest of this entry »

Canvas Test One

December 13th, 2011

Finally getting to work with html5 a little. I'll be updating it shortly (and, I hope, quickly). x: fire z: jet pack left and right: move Update: This turned into Doctor Robot a couple of months later. Read the rest of this entry »

Manga Studio EX Tip

March 2nd, 2011
Shift-Space: Rotate Canvas This, for me, is a huge deal. Also, I picked up a Belkin n52te Razer Nostromo to use as a left-hand controller.