Dopploadr at Yahoo! Open Hack Day 2008/09/14
My hat's off to Yahoo! for putting on a great show this weekend. More than one person told me how much more excited they are about Yahoo! after experiencing Hack Day. It really does bring out the best in everyone. Plus, the Girl Talk set Friday night was killer.
MikeD and I showed up proudly wearing our OpenDNS t-shirts and were taken aback by the number of excited OpenDNS users we encountered — thanks, guys. Mike did the vast majority of the work on our main hack, a reworking of the OpenDNS Guide to use Yahoo!'s BOSS search API. We're excited about the prospects of integrating our user's preferences directly into search results. My part in all of this was to wrangle the markup and CSS. We really could roll this out next week and we wanted it to look that way. In the demo, Mike mentioned (casually) that we could throw a few million queries per day at BOSS. We aren't kidding.
Enough OpenDNS, tell me about the cheating
Before I sat down to crank out the eye-candy for the OpenDNS Guide, I built an extension for the Flickr Uploadr. But I wrote the Flickr Uploadr. This is totally cheating. I'd like to think that the Flickr judges felt the same way and that's why I didn't win any prizes but it doesn't matter because some people I really admire graciously complimented my work and I expect it will see quite a bit of day-to-day use. I hope it can also serve as a good starting point for future extensions. Without further ado:
Dopploadr is an extension for the open-source, Mozilla-based Flickr Uploadr. As I said in the demo, it works just like a Firefox extension because it is. The Uploadr includes Mozilla's Extension Manager.
Once you install Dopploadr, Uploadr will take you to Dopplr to
authenticate. My apologies for the copy & paste step but there's
no equivalent of
flickr.auth.getToken in the Dopplr API.
One other catch that should be mentioned is that Dopplr's API must be
accessed over SSL and (at Yahoo! and during my demo, at least) their
servers or certificates frequently and randomly fail. Try again.
Once you're authenticated, there's really no UI to it. The status
bar will indicate you're signed in, saying "Dopploadr for rcrowley"
or some such but the real magic happens behind the scenes. Each time
Uploadr thumbnails a photo, it hands off the date-taken field during the
after_thumb event and Dopploadr decides where you were at
that time, noting the latitude/longitude and some tags like:
- dopplr:trip=207163 (if you were on a trip)
When you upload a batch, Uploadr will again be really secretive but Just
before_one_upload event will combine the user's tags
with the geo tags above and then let Uploadr continue with the upload. When
Uploadr finishes, it hands off the photo's ID to Dopploadr during the
after_one_upload event so Dopploadr can call
flickr.photos.geo.setLocation with the stored
My official monkeypatch count sits at 3. First was adding the
after_logout event that I still haven't actually used (see also
version 0.2). Second was a short walk around the DOM to insert Dopploadr's
counter for outstanding Dopplr API calls and making the
buttons.upload.enable() method sensitive to the count to prevent
uploading before everything's been geotagged.
Here's the photo I uploaded during my demo: http://flickr.com/photos/rcrowley/2853699765/. (See, it really works!)
My sincerest thanks once more to the folks all over Yahoo! that made Hack Day happen.