November 18, 2009 at 11:03
· Posted in mobile, php, webdev

Image by miss604 via Flickr
Browsing the updated Foursquare development documents I came across a real nice hidden gem: it appears that the Flickr folks have enabled so called machine tags to associate a photo with a Foursquare venue.
The almost hidden quote from the Flickr Developer blog:
This is the part where I casually mention that we’ve also added machine tags extra love for Four Square venues IDs. I’m just saying…
Now how cool would it be to display a little photo on my Foursquare Layar venue detail pages?
Remembering @codepo8’s execellent talk at the Fronteers conference last week, I realized that this is where the really cool YQL engine comes in really handy.
And indeed, the following query does it all:
select * from flickr.photos.search
where machine_tags="foursquare:venue=132009"
limit 1
Just save the REST command url, wrap it in a little PHP handler and we’re good to go (homework for next time: process the YQL response in XML format with js/e4x and skip the PHP part altogether).
So now you will see a little thumbnail picture for every venue which has a photo tagged on Flickr. There aren’t many yet, but hey, it’s a start!
See it in action in the Foursquare Layar app on your phone (iPhone, Android) or read my announcement for more background information about the foursquare layar app.
Popularity: 5%
Tweet This
Delicious
Reddit This Post
Stumble This Post
Tags: AR, Flickr, foursquare, layar, webdev, yql
Permalink
March 2, 2009 at 11:25
· Posted in blog, experiment
I just found out (not surprisingly, through Twitter) that Skittles turned their website inside out (so to say, in my words).
They replaced their content pages by what others are saying about them: their twitter stream (live search for #skittles), their entry at Wikipedia, their friends at Facebook and more (videos at Youtube, pictures at Flickr, you get the idea).
The own Skittles content is reduced to just one floating content banner, providing minimal information (as if it were a IAB banner box) and also functions as “glue” between all linked social sites.
The linked content seems not to be filtered, the Twitter feed at least displays profanity just as entered.
So what is this?
- A stunt which will last just for a day or so
- Crowd-sourcing at its most extreme
- The end of internet marketing as we know it…
In other words, is this indeed a brave move or just plain stupid? The Twitter jury is still out…
- By now they have removed the twitter stream as home backdrop, got a bit too hot maybe.
- It appears that Modernista was far ahead with this concept: Modernista! letting others define its identity about a year ago.
Popularity: 13%
Tweet This
Delicious
Reddit This Post
Stumble This Post
Tags: Facebook, Flickr, marketing, skittles, social media, Twitter, Wikipedia, Youtube
Permalink
July 27, 2006 at 15:38
· Posted in firefox, greasemonkey, webdev
Greasemonkey is a great tool for changing a web page, just after it has been loaded. But this does not work for all those Ajaxified web 2.0 pages, where content is loaded on the fly.
There is a solution, though: just listen for DOM events which modify the page’s content. Keep up with the DOM changes so to say!
Background
In the days before Flickr was acquired by Yahoo, I made a Greasemonkey user script: Flickr – Link Original Image that inserts direct links to the original uploaded photos on top of thumbnails. This worked fine, by parsing the DOM just after page load and looking for every occurrence of photo thumbnails.
Now, after the recent relaunch of Flickr with dynamic Ajax loading, this script fails for those dynamically inserted thumbnails. Simply because they do not exist in the DOM when the page completes loading.
Solution
DOM level 2 specifies a couple of Mutation events. Now I register an event handler for the relevant events and take action whenever an image gets inserted, removed or moved around.
Read the rest of this entry »
Popularity: 33%
Tweet This
Delicious
Reddit This Post
Stumble This Post
Tags: ajax, DOM, Flickr, yahoo
Permalink