Christian Heilmann

Author Archive

Retrieve and display Flickr photos the easy way with getFlickrBy

Saturday, May 9th, 2009

As part of my talk on YQL for Open Hack London I’ve thought of an easy way to get Flickr photos that you are allowed to display in your products and hacks.

The wrapper API getFlickrBy works around the somewhat convoluted data returned from Flickr’s API methods and uses YQL to cut the information you want down to the bare necessities. Furthermore the API only returns photos that are licenced with Creative Commons’ “By” license to avoid you using photos you have no right to use (which is a big thing with the Flickr crowd).

The API endpoint is:

http://isithackday.com/api/getFlickrBy.php

You have several parameters to play with:

location
The location you want photos of as defined in the Yahoo Geo API
search
A word you want to search for
format
The format of the returned data, XML, HTML or JSON - preset is XML
callback
A name of a JavaScript function call to wrap the JSON data in, in case you want to use the API in a script node
amount
The amount of photos returned, max is 100 – preset is 20
size
the photo size, “s” for 75×75px, “t” for thumbnail, “m” for medium, omit to get big size

The API returns only what you need: the image title, the owner, the url of the image and the link to Flickr. If you use html as the output format it returns an HTML list of linked images. For output demos and explanations simply call the API without any parameters

Here are some examples how to use the API:

YQL and BOSS cheatsheets for Open Hack Day

Tuesday, May 5th, 2009

With the final planning steps for the London Open Hack Day this weekend, YDN just released two sweet handouts that explain the workings of BOSS and YQL on two pages each:

YQL and BOSS cheatsheets for Open Hack Day by  you.

You can download them from the YDN test server, in case you want them in the office:

TTMMHTM: Happy Star Wars Day!

Monday, May 4th, 2009

Things that made me happy this morning:

Flickr copy and paste embed – a GreaseMonkey script

Friday, May 1st, 2009

I love flickr to bits and I especially like the copy and paste boxes for embedding photos on my own photo stream when I check photos in different sizes.

What annoyed me is that this is not available on other people’s photos. That’s why I wrote a small GreaseMonkey script that embeds a text box with the a link and the medium sized image of the photo you’re currently checking out:

Copy and Paste photo greasemonkey script by  you.

If you want to have the same comfort, simple Install the GreaseMonkey script flickr embed and save yourself some annoying steps of copy and paste.

Seven things Yahoo offers developers – my talk at the developer evening at La Cantine in Paris,France

Thursday, April 30th, 2009

I just came back from Paris where I talked apparently very animated to around 50 developers about all the goodies Yahoo offers developers:

I like to move it, move it

I’ve spent the ride on the Eurostar editing the recording of the talk. I simply used Audacity and the built-in microphone of my MacBook Pro so the quality is not stunning but does the trick.

I like being in Paris, developers have very good and challenging questions there, the coffee and food simply rocks and I can be in and out in a matter of hours without having to wait at airports and spend hours in the air being unable to use my laptop. We’re now waiting for feedback what other talks people in Paris want us to give and I am sure I will be back before long.