Recent Blog Posts

Northern lights - capturing time-lapse video clips from webcams

photography

2013-01-26 12:00:00

I've always wanted to see the northern lights in person, but in the meantime I experimented with capturing time-lapse video from web-cams set up on the Nature of Jokkmokk site.

While being careful not to overload the site, I set up a job to download images from one of the site's webcams every 5 minutes over a 5 day period, and found that the northern lights lit up the night of the 23rd/24th January 2013. It was then fairly simple to stitch the images from this night together using ffmpeg and some advice in Paul Rouget's blog post.

More...

pyworksheet, an online tool for experimenting with python

python

2013-01-01 12:00:00

I was recently inspired by the Scala worksheet plugin for Eclipse and could see how it was a great resource for learning to program in Scala. I started working on trying to create something similar for Python.

I've hosted an initial effort hosted on Google App Engine. To try it, visit http://pyworksheet.appspot.com. You can enter Python code into the widget and press the Go button to execute it - execution results are pasted into the code as comments and the widget display is refreshed.

The widget uses the excellent CodeMirror JavaScript library (http://codemirror.net) to provide the code editor component with Python-specific smart indenting and syntax coloring (CodeMirror also supports a large number of other languanges).

More...

More blog posts...

Code Snippets

This site includes a number of blog posts and short, documented code snippets on a range of topics (mostly related to web development), and code from a larger project I worked on a few years ago to build an experimental python to javascript compiler.

You can access these via the links on the right hand side of this page, or click on a tag in the tag cloud. Be sure to leave feedback at the bottom of the pages if you have an opinion on anything.

Most recent Snippet

twitstreamer

python

2012-12-01 21:00:00

This snippet, twitstreamer, is a simple command line tool, written in python3, for retrieving tweets via the twitter streaming API, v1.1. The tweets are written to standard output as CSV or JSON formatted lines.

The tool will read from either of two twitter streaming APIs.

More...

More code snippets...