A new kind of music video: Radiohead’s “House of Cards”

Posted by Tom on July 16th, 2008 — in Programming, iPhone

Radiohead’s latest music video, “House of Cards”, was shot using LIDAR (Light Detection and Ranging) rather than cameras:

Learn more about how it was made at the Google Code Radiohead page. The coolest part is that Radiohead is making the data available to anyone who wants to play with it.

They provide some sample Processing code to [...]

JSON Diff

Posted by Tom on June 30th, 2008 — in JavaScript, Programming, Web

I released a new project yesterday, diff for JSON. It’s very simple, but useful. Simply paste two chunks of JSON you want to diff into the two fields, and click “Compare”:

JSON Diff

It shows the difference highlighted in yellow (changed), green (added), or red (removed).

Amazon S3 PHP helpers

Posted by Tom on April 18th, 2008 — in AWS, Internet, PHP, Programming, S3

The Amazon documentation for using S3 with PHP refers to an elusive function called “setAuthorizationHeader”. It’s apparently supposed to magically set the correct value for the Authorization header on a Pear HTTP_Request object. As far as I could tell, it didn’t actually exist — but I wanted it, so I wrote it:

Source

<?php

require_once ‘Crypt/HMAC.php’; require_once ‘HTTP/Request.php’;

define("S3URL", ‘http://s3.amazonaws.com’); define("AWSACCESSKEYID", [...]

Using command line tools to detect the most frequent words in a file

Posted by Tom on March 18th, 2008 — in Command line, Linux, Programming

Antonio Cangiano wrote a post about “Using Python to detect the most frequent words in a file“. It’s a nice summary of how to do it in Python, but (nearly) the same thing can be accomplished by stringing together a few standard command line tools.

I’m no command line ninja, but I’d like to think I [...]

Chipmunk Physics engine running on the iPhone

Posted by Tom on February 21st, 2008 — in Hacks, Programming, iPhone

A couple months ago I hacked together a demo of Chipmunk Physics engine running on the iPhone using the unofficial SDK. It shows the standard Chipmunk demos, but also it reads in accelerometer data using the method described on the Medallia blog.

For the most part it was a fairly simple translation from standard OpenGL to [...]

Overriding library functions in Mac OS X, the easy way: DYLD_INSERT_LIBRARIES

Posted by Tom on December 21st, 2007 — in GCC, Internet, Mac, Music, Programming

Back at MacHack 2003 Jonathan Rentzsch talked about how to override functions and inject code in Mac OS X using several neat tricks. He also released a framework called mach_star which has two components: mach_override and mach_inject. These are great, but overkill for some simple cases.

A much easier way of doing library function overrides is [...]

Presenting GCCalc: a horrible abuse of GCC

Posted by Tom on December 14th, 2007 — in C, Command line, GCC, Hacks, Linux, Mac, Programming

Following an interesting discussion on Reddit about first class functions in C, I was inspired to see what I could do with this new-found knowledge. The result is what I affectionately call “GCCalc”, for reasons that will become clear below.

GCCalc is a simple command line calculator, much like the common bc calculator on many Unix [...]



Warning: include(/home/tlrobinson/tlrobinson.net/_footer-analytics.php) [function.include]: failed to open stream: No such file or directory in /home/tlrobinson/tlrobinson.net/blog/wp-content/themes/clean-look-150/footer.php on line 13

Warning: include() [function.include]: Failed opening '/home/tlrobinson/tlrobinson.net/_footer-analytics.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/tlrobinson/tlrobinson.net/blog/wp-content/themes/clean-look-150/footer.php on line 13