Beef up your RSS2 template for consumption with the Google Feed API Slide Show Control
There can be no doubt about it, RSS Feeds became the connecting backplane for the internet. Like Yahoo Pipes a while ago, the new Google Feed API is building its functionallity on top off standartized RSS feeds. For the feeds API, just providing a standardized RSS feed is enough to offer you a free ride. And a jolly good ride it is. The Slide Show Control is rich in features. Most major photo banks are supported and the actual controls allows for fine grained control of timings and sizes. The funny thing is, the API pretty much covers most of what we discussed at work on the friday before the weekend the API was released.
For the public timeline of our all-online-in-browser-photobooth-application foto-foo at /i-d media we wanted to add RSS feeds from which to build slide show like applications displaying a constant stream of fresh images. I decided to give it try and found this RSS2 rxml template on dzone.com which i filled with my data.
Various things happend, but no image was to be seen and the browser stalled a couple of times. First thing i found out was, “standard” Feed actually means it uses the Media RSS extension. This means the feed header has include the Media RSS namespace:
xmlns:media="http://search.yahoo.com/mrss/"
xmlns:dc="http://purl.org/dc/elements/1.1/"> which in rxml looks like:xml.rss "version" => "2.0", \
"xmlns:dc" => "http://purl.org/dc/elements/1.1/", \
"xmlns:media" => "http://search.yahoo.com/mrss/" doNext thing to do is adding a <media:group> to all the feed items: <media:group>
<media:title>"#{img.title}"</media:title>
<media:content type="#{img.type}" medium="image" url="#{img.url}"/>
<media:credit role="#{img.credit.role">#{img.credit.txt}</media:credit>
<media:description type="plain">"#{img.desc}"</media:description>
<media:keywords>"#{img.keywords}"</media:keywords>
<media:thumbnail
width="#{img.thumbnail.width" height="#{img.thumbnail.height"
url="#{img.thumbnail.url}"/>
</media:group> your media group Bonus: feed reader compliance
handling images in RSS feeds is part of the vaguely borderline of rich media feeds where things like the Media RSS extension are actually made for. For Atom it seems media handling is defined a little better but the Feed API depends on RSS2. All this variations are hard to grok for some feedreaders but I wanted to have my foto-foo RSS stream also in my Reader, but the
<description><a href='#{img.link}'><img src='#{img.url}'/></a></description>
and voila, your Slide Show complient rss image feed works equally well in your normal feed reader.i know this is all rough and dirty, but it works for me, might help you a bit, and i dont like to drown in spec reading for to long today. Find my RSS2 rxml code snippet on dzone and mess it up in any way you like.
have fun.
Technorati Tags: rss, mrss, ruby, rxml, rails, foto-foo, google-feed-api
“A new version of Second Life is available”
doesn’t that sound strange? The recent hype around all things virtual drove down normality of these ephemeral worlds to a new level. A lot is in the name, and readings like these constant flow of update messages from Linden Labs reminds me to the the supermarket announcer coming from the speakers above my head with: “please switch to another channel. this reality is not longer supported”, while i was just pondering about my weekend shoppings. Or was it? Just kidding, I’m still part of the real world, am I? Distant associations to forgotten utopian views from the past. “Welt am Draht”, welcome on the next level.
Technorati Tags: secondlife, fassbinder, virtualworlds, utopia
rug-b -> ruby user group berlin has new home
as you all might warm up already for railsconf europe in berlin later this year i would like to let you know that the berlin user group got its own wiki now. After Florian Gersdorf did restart the meetings earlier this year we are happy to host the rug-b meeting every first thursday of the month at our place in /i-d media. And now, thanks to Benjamin Krause, we got our own place at http://www.rug-b.com/ where we set up the instiki wiki for a better overview on the berlin activities. Have a look over there for agenda, locations, timeings, whatsoever.
For all of our conference guest in berlin in september the rug-b started brainstorming about some special events and/or try to arrange for some benefits with berlin infrastructure. So come to Berlin, hope to see you soon!
I’m in no way linked to O’Reilly or the conference but in any case i’m quite willing to help making the berlin rails conference an even better one than the last. So when you have question or ideas for some socializing events around the rug-b or berlin just drop me a note.
UPDATE: wer des englischen nicht maechtig ist, dem soll versichert sein das “we are happy to host the rug-b meeting” nicht bedeutet, dass ich oder mein arbeitgeber der Veranstalter sind, sondern nur der Gastgeber. Scheinbar hat das der Kommentator nicht ganz mitbekommen. Ansprechpartner sind oben also genannt, aber wer will kann selbstverstaendlich auch mich ansprechen. Oder lieber anonym kommentieren, ganz wie es beliebt.
cheers.
Technorati Tags: railsconf, ruby, usergroup, berlin, idmedia, rug-b
Fortran for Playstations…?
actually not quite, but i could not skip these. IBM released a Fortran compiler for the Cell processor, thank you. Cell is the CPU which superpowers the PS3 for those amongst you how didn’t knew already. Now i jump and dig up my old medical volumen renderer code and might port it the the Playstation3! But as an old fellow of mine always said: “you can write bad fortran in any language”, and i prefer ruby nowerdays.
Technorati Tags: cell, ps3, fortran, ruby, ibm
DHH snapshot with foto-foo

what’s there more left to say? As steffen already posted on our company/product blog he managed to shoot the man himself! David(of ruby on rails fame) in front of our foto-foo webcam snapshot solution. This is best practice par excellence, right there, on location, from there to internet with no inbetween. That is foto-foo: no files, no upload, no hazzle, and, Thanks! David! You are the man, have a good time over there at the rails conf in portland and hope to see you all back in berlin in september!
cheers