-
“Trism uses the touchscreen to manipulate the triangles on the screen, but in a really smart twist, the blocks will fall down in a different way, depending on which direction you’re tilting the phone”. Wonderful. Watch the video, and try not to grin.
Making bridges talk
28 February 2008
I’ve written before about how wonderful Twitter can be as a messaging bus for physical objects. The idea of overhearing machines talking about what they’re doing is, to my mind, quite delightful.
So when I found an untapped data source for such an object, I thought it was worth having a poke. Half an hour of scripting later and Tower Bridge was on Twitter. It tells you when it’s opening and closing, what vessel is passing through, and which way that vessel is going. The times are determined by taking the scheduled time for the “lift” and subtracting five minutes for the opening, and adding five minutes for closing – the official site suggests that, at rush hour, lifts should take five minutes to open and close tops.
That’s it, really; it’s just a simple case of scraping some data and outputting it. It’s not a hugely frequent event, so won’t disturb you very much; if anything, it’s just a little insight into the heartbeat of the Thames.
As a note on its design: it’s very important to me that the bridge should talk in the first person. Whilst I’m just processing publicly available data on its behalf, Twitter is a public medium for individuals; I felt it only right that if I was going to make an object blog, the object should express something of a personality, even if it’s wrapped up in an inanimate object describing itself as “I”.
And, if you want proof that it works… how about this:
I’d set the server up yesterday; suddenly, this morning, it twittered into life, and we charged out of the office around the corner to the bridge, where the MV Dixie Queen was getting into position for its lift. As it went through, I took a picture. That was a very satisfying moment.
(Thanks to Tom for helping me bash a crontab and a few other server-shaped things into shape. If you’re interested in the technology, which is really not very relevant, it’s about thirty lines of Ruby that glues together a combination of: wget, Hpricot, John Nunemaker’s Twitter gem, and cron.)
Updated June 22nd 2011 with the new URL for the bot, following this whole series of events.
-
“[GitHub] is my kind of social software. You want to “friend me”? Send me a patch. Fork me.” Nice post from Ryan Tomayko looking at GitHub from a slightly different angle.
-
“Webby is a fantastic little website management system. It would be called a content management system if it were a bigger kid. But, it’s just a runt with a special knack for transforming text.” A nice idea for simpler, single-user sites.
-
Some nice notes on using Webby to build sites. Now, if only I could get the gem working…
-
‘Each bet costs $10 and all the money bet will go to First Book, “a nonprofit organization with a single mission: to give children from low-income families the opportunity to read and own their first new books.”‘ Ten winners will get a prize. Lovely idea.
-
“In this year’s Hollywood Portfolio, Keira Knightley, Javier Bardem, Seth Rogen, and other stars channel iconic moments from [Hitchcock’s] greatest hits.” Strange, wonderful, ersatz photo shoot from Vanity Fair.
-
“Castanaut lets you write executable scripts for your screencasts.”
-
“I’ve written many times that the two most important skills for a programmer (IMHO) are communications and learning. In this book, I’m taking a hard look at expertise, thinking and learning.” Interesting looking new book from Andy Hunt.
-
Exciting-looking new title from O’Reilly, being developed and written via a wiki. Interesting seeing the emergence of several titles on software engineering as craft rather than science at the moment.
-
“I live in … Point Hope Alaska, the oldest continually inhabited settlement or village in ALL of North America.” Wow. Some remarkable photographs from Point Hope resident of 27 years.
-
“Botanicalls Twitter answers the question: What’s up with your plant? It offers a connection to your leafy pal via online Twitter status updates that reach you anywhere in the world.” Fun physical computing project.
-
“TimesMachine can take you back to any issue [of the NYT between 1851 and 1922]”. Some lovely flourishes in the interface, and some remarkable content, as you might expect.
-
“A Walking Skeleton is a tiny implementation of the system that performs a small end-to-end function. It … should link together the main architectural components. The architecture and the functionality can then evolve in parallel.”
-
“Graticule is a geocoding API for looking up address coordinates and performing distance calculations. It supports many popular APIs.”
-
“Visualizing Information: An Introduction to Information Design is a booklet I wrote and designed to introduce advocacy organizations to basic principles and techniques of information design.”
-
Wow. Bookmooch has some seriously comprehensive data available from it, if you fancing munging their entire dataset (security-sanitised, obviously).
-
“With these three agreements — which distilled months of social justice exploration into a few simple tenets of community use of resources — we returned the Legos to their place of honor in the classroom.” Wonderful article about education.
-
“The problem exists only with binary distributions of MySQL and is related to the installation location of the libraries for the MySQL client that DBD::mysql uses.” Ran into this problem today; wasted an hour on it. Never again.
-
“Finally some new footage of IGF competition finalist Fez.” Oh wow. This looks like it could be very good indeed.
-
Looks like a great diff-ing application; shame it’s Leopard only, as I’d be on it like a flash. Beyond Compare is still the one Windows app I kind-of miss.
-
…and I still haven’t finished _Les Gommes_. Time to dip back in, I think; a shame Robbe-Grillet is dead.