Home > The Offive > Archives

Posts Tagged ‘os x screensaver’:

RSS Screensaver & Snow Leopard

August 30th, 2009 by Brian Michalski

A few weeks ago I battled to get Concerto’s RSS output in a format that was friendly to OS X (10.5)’s RSS screensaver.  It turned out the file extension was important to Leopard, so I used mod_rewrite with an .htaccess file to serve images at URL’s like image_1.jpg?select=content&select_id=1.  Clearly the file extension, in that case, is .jpg… everything else (being the select=content&select_id=1) is the querystring.

Snow Leopard was released this week and much to my dismay our RSS feeds were no longer working, the screensaver was reporting that no pictures were available in the feed.

I set off on my mission to make it work again, starting with a flickr feed.  Essentially I pair the feed down to one element and start massaging the different attributes with Concerto content to see if it works.  I ended up discovering that the URL for an image now needs to end in a file extension, so something like http://farm3.static.flickr.com/2498/3869968920_9a53de458a_m.jpg?bananas=4 wouldn’t work (despite being a valid image) while something like this http://farm3.static.flickr.com/2498/3869968920_9a53de458a_m.jpg?bananas=.jpg would.

Since this change is slightly more confusing than a simple bugfix (we have to detect if the image Concerto is about to serve is a jpeg, png, gif?, etc) I committed a new revision to the API.  The important changes to the previous version (008)  start with a comment referencing 10.6 (so using find > 10.6 would bring you right to it).

If I had more time on my hands I would work on an OS X screensaver that didn’t rely on such strange image detection methods.  There are certainly attributes available exposing the mime type if certain file types can’t be shown.  I might be able to understand using the file extension to do some detection, but the last few characters of the query string… I think that’s a little outlandish.

Windows 7 + RSS = PC Users finally getting some Concerto Feed Action…

July 10th, 2009 by Haris Khan

Well, Hello. It seems like this is my first post on this blog, first of many I hope. I usually leave Brian Zaik to the blogging as he seems to enjoy it very much so. For the first time I have something to say that has not been a collaboration with him.  Now don’t get too excited, it’s nothing too special, just a couple minutes of googling for an interesting effect.

For weeks I’ve seen Brian Zaik and August Fietkau have a RSS Screensaver. While Brian Michalski is developing something for us PC users, I grew impatient (as I always do). So I found an alternative, a RSS Wallpaper. Now It may not be as flashy as the OSX RSS Screensaver, but it does the job well.

All you need to do is open up a Windows 7 .theme file and insert the following code.

[Slideshow]
Interval=30000
Shuffle=1
RSSFeed=http://signage.rpi.edu/content/render/?select_id=1&range=all&type=graphics

A couple things to note.
The range variable. Possible values are -> all, future, past,live. Pretty self explanatory.
The select_id variable. This is just an integer value correlating to a Concerto feed. (1 is service and community)
The type variable. We want graphics here, Text isn’t going to be very useful as a Desktop Background.

OS X RSS Picture Screensaver

June 28th, 2009 by Brian Michalski

I’ve been working on getting the RSS that Concerto provides via its API to be as compatible as possible.  Adding media RSS support seemed pretty straightforward and enabled us to do cool thing with some RSS visualizers like Cooliris and Google’s Photo Screensaver, but the built in OS X RSS Picture Screensaver never worked with any of our generated feeds. Feeds from Picasa, NASA, Flickr, and alike all worked well in OS X so I tried copying and pasting different formats to no avail.  It seemed no matter what I did, substituting the urls for our images crashed the feed.

Turns out, the file extension is important to the OS X screensaver.  Since the Concerto API is self-contained, it links back to itself to render images in various sizes.  The PHP script that handles the requests responds just like an image with a correct mime-type, some caching headers, and valid image data.  Calling this ‘index.php’ with the GET parameters (like index.php?&select=content&select_id=2911&format=raw) makes the screensaver display “The feed you have selected doesn’t have any pictures” or something like, because it thinks all the feed has is PHP files.  While it does only have PHP files, those files are outputting image data… not HTML, JavaScript, or text.  Maybe this is the quick way Apple avoids downloading files that it doesn’t want to handle like a doc, mov, etc… but the media:content field clearly has a mime-type parameter describing the mime-type of the content.

The solution I came up with: use mod_rewrite and a .htaccess file to send all requests in the API directory to index.php.  That way, I can link to something like image_2911.jpg and index.php will get to handle it like it is suppose to.

I can’t take all the credit for finding this bug, August directed me towards the file extension area… I was thinking it was more related to the image headers.