How to get started blogging

The first step is to think of a really good name. Like Apertura! Then have your hubbie set up your blog. Then write stuff!

January 16, 2014 · 1 min · jra

Taking an MQTT server out for a few holes on the code golf course

A while ago at work, I needed to learn a little about MQTT. After reading the spec and finding this package that handles reading and writing the messages themselves, I decided to write a server. The result is here: https://github.com/jeffallen/mqtt. After I finished, I wanted to know if my server was comparable to Mosquitto, so I wrote some load testing tools. I found that my Go server was generally comparable to Mosquitto, in that it had the same order of magnitude for transaction rate and latency (but it was strictly slower than Mosquitto; there is a cost to pay for the benefits Go gives you). As usual, Go programs compare quite favorably to C programs in terms of memory safety, overall length, and readability. It is also useful to consider that my implementation took only a couple of days to get finished. A C program with equivalent safety, correctness, and speed would take much longer to write. I’ve written them, I know. ...

December 5, 2013 · 4 min · jra

Qz for Mobile Phones

I love Quartz. however, I find that the best time/place for me to read it is on the train during my commute. And Quartz’s overly clever and overly dynamic website hates my phone’s browser. So I made Mobile Quartz to help me read it. The front page has the current top articles from Quartz. Click the links to see the article. I used this as a chance to write some Go on Google Appspot code, and it was really a pleasure. ...

June 14, 2013 · 1 min · jra

Making a time-lapse in Debian

Make a script like this called “save”. Make it executable. #!/bin/sh ct=0 if [ -f "ct" ]; then ct=`cat ct` fi ct=`expr $ct + 1` mv snap.jpg snap-$ct.jpg echo $ct > ct Run “uvccapture -x648 -y480 -c./save -t20” to take a photo every 20 seconds. Then you can use a script like this to continually re-encode it and send it to your webserver: #!/bin/sh while true do rm out.mpg cat snap-*.jpg | ./ffmpeg -f image2pipe -r 1 -r 20 -vcodec mjpeg -i - out.mpg scp out.mpg jeff_allen@nella.org:nella.org/jra/geek/3d done ...

May 6, 2013 · 1 min · jra

The best safecracking scene EVAR

The Best Safecracking Scene, EVAR. ‘Nuff said.

April 9, 2013 · 1 min · jra

What I want: a Chrome plugin to report spelling errors

Here’s what I want to do: See an error on a web page Select it and right click In the popup, choose “report a spelling error”. Have a box come up with three fields and a pair of ok/cancel buttons. The three fields are “change from”, “change to”, and Twitter id. The “change from” and Twitter id are auto-populated. The “change to” could be auto-populated using a web service that suggests spelling corrections. When I click on “OK”, it sends a Tweet announcing to the world that: ...

December 7, 2012 · 1 min · jra

Double take

The nicest thing happened to me on the way home from work… I got one of those movie-perfect double takes from a guy I passed. Of course, it was probably due to the pretty rainbow umbrella I was carrying, while cruising along on my unicycle. Years ago I realized that if it’s a grey rainy day it is nice to have bright colours overhead. Black umbrellas should be outlawed!

October 26, 2012 · 1 min · jra

Typically Swiss

We love local products, so we love TerraSuisse. And we love their new advertisements:

October 19, 2012 · 1 min · jra

A Dinosaur Story

Once upon a time, long ago, long long ago… no… long long long ago, lived two dinosaurs. They had a wonderful life to themselves, since they came after the plants but before the humans. They had a land full of plants with no humans to bug them. They had clouds and rainbows and rivers and waterfalls. And they had plants. Lots of plants. Which was a good thing, because Bobby the Brontosaurus loved eating plants. He ate like this: “omm nom nom” and he even ate while he talked like this. (Add omm nom nom’s into your talking. If your kid laughs, your doing it right. Then again, if he laughs he won’t go to sleep, so you might not be doing it right afterall.) ...

October 19, 2012 · 3 min · jra

Sugru

I had a great first Sugru experience! I scratched my finger on the way to work on my unicycle. I thought, dammit, I’m gonna fix that! So I bought some from my phone on the train. Cool! A few days later, it arrived in the post. I was having a hard time explaining why I was so excited about it to my wife. So I sat down, cut open my first packet and started fixing. My wife got interested, fast! She asked, would this stick to the door handle to make a bumper? I said, go try! And off she ran with my Sugru, leaving me grinning and cutting open a new packet… ...

October 10, 2012 · 1 min · jra