Greg's Photos on Flickr

What I'm Listening To...


Using Flickr's API and a PHP script to create Atom RSS feeds of entire Flickr PhotoSets

I recently picked up one of the fire-sale HP TouchPads. It's pretty damn useful and with full screen flash video gives the iPad a (short) run for its money. One of the uses I wanted to purpose it for was to act as a digital photo frame when not in use. The TouchPad comes with a photo management/slideshow tool as one of its native applications however you either have to copy the photos onto the device or hope that your images are on a service like Facebook that syncs with the TouchPad using the fantastic Synergy services. All my images are on Flickr and as yet there is no Synergy Service for Flickr.

I then started looking for an app that would help me do what I wanted. I downloaded an app called Flickr Mundo HD but was disappointed to find that it would not allow me to display slideshows of individual Flickr PhotoSets. Aside from that its a great app for browsing and using Flickr.

I then found an app called SlideRSS which performs the single task of taking an RSS feed of images and displaying them as a slideshow! "Problem solved!" I thought. I loaded up the Flickr RSS feed of my Project 365 PhotoSet and was disappointed to see that only the last 20 photos were pulled down. This appears to be a restriction of the Flickr RSS feeds.

So I started thinking. I knew Flickr has a great API and recently I have been working with a lot of pseudocode. So trying to code something to solve this problem was something I thought I would be capable of. Off to google I went to investigate Flickr's API.

The Flickr API documentation
is good but does not really provide a beginners guide to the service. However I soon found this page from Kyle Rush which gives a nice step by step guide of how to make an API call and what is returned. Armed with this I was ready to start coding.

As the returned API call is in XML I figured I could call it into a PHP script and then scrape the attributes of each photo and output a RSS feed with an entry for each of the photos. I came up with this code.

What it does is pull the returned XML in then it cycles through each of the photos and creates an Atom XML entry for each individual photo. The API call does not return the URL for the photo but instead provides you will all the information required to build the URL. As you can see. All I did then was load the file up to my web server and pointed SlideRSS at its URL and I had all my photos displaying on my TouchPad!

That was my first ever piece of PHP code, and I was rather happy with it! But then I got to thinking that I have a LOT of PhotoSets. I could do with some way of merging some of them into a single feed. So I put my mind to figuring out some way of pulling in multiple feeds and creating an RSS entry for each of the photos in ALL of the feeds. This is what I eventually came up with after much head scratching and conferences with my mate Dunc.

I now have all my Flickr photos on my TouchPad slide-showing away whenever I want them. And the great thing is that if I add more images to the sets then they will also be pulled down as these scripts are dynamic!

The Old Whores Of San Pedro - The Final Gig

Last month my band The Old Whores Of San Pedro played our farewell gig at The Plug in Sheffield. The Gig Was recorded and is presented here, in it's entirety, for your listening pleasure.

The Old Whores Of San Pedro - The Final Gig (Plug 9-7-2011) by Greg McMullin

Fine Champagne

Kodak Tri-X ISO400 using a Minolta Dynax 505si and 50mm f/1.4 lens.


A palm tree decoration in Barbados.

Kodak Tri-X ISO400 using a Minolta Dynax 505si and 50mm f/1.4 lens.

I Love You Will You Marry Me

This iconic piece of heartfelt graffiti has recently been immortalised in neon as part of the regeneration of park hill flats.

Taken on a photo excursion with Rob and Andy.

Vulcan In Silhouette

A long zoom shot of the statue of vulcan on the pinnacle of Sheffield Town Hall. Taken on a photo excursion with Rob and Andy.

Sheffield Sunset Panorama

Another view of Sheffield this time from behind the railway station, just as the sun had set. Taken on a photo excursion with Rob and Andy.

The view from our room at the Waves Hotel, Barbados.

A stiched panorama of the view from our room. Pretty pleased with ow this turned out. Please view the large image.

Beautiful Barbados

The sun setting. A cruse ship leaving. The Catamaran Cruising & a palm tree.

I want to go back.

Shot from our balcony at Waves Hotel & Spa Prospect Bay Barbados. Using a Sony A350 DSLR and a Sigma 18-50mm Lens @ 18mm, f/16 & 1/160th. A 2 stop graduated neutral density filter was also used.

Please click on the image to view in lightbox it looks a lot better on black.

Star Trails Over Barbados

The night sky was very clear on The Island so I thought I would try some star trail photography. This is the constellation of orion stetting in the west.

I took about 250 pictures at ISO800 f/3.2 30s then used startrails.exe to stack them. I didn't get a brilliant result. After I took all the shots I realised that the lens had not been set to focus to infinity so it was all slightly fuzzy. Bummer.

Syndicate content

Powered by Drupal Discovered in Southport