Flickr.Net Example Code

Example code has been moved:

* [Examples – Part 1](/flickr/flickr-api/examples-part-1)
* [Examples – Part 2](/flickr/flickr-api/examples-part-2)

See the general [Flickr.Net API page](/flickr/flickr-api) for the latest at any time.

Flickr.Net Gallery Web Control

I’ve been working on some .Net web controls to place Flickr album-like controls on ASP.Net web pages. This is my first proper release of the code to let anyone who is interested play along. You’ll need a copy of [Flickr.Net API](http://www.wackylabs.net/flickr/flickr-api/) and the following visual studio project (which includes a debug .DLL).

FlickrGalleryControls0.1.zip

You can see a example page on [this](http://dotnet.wackylabs.net/AlbumTest.aspx) web page.

To use, include the dll in your project, and add to your toolbar, then drag and drop onto the web form and change the properties in the property viewer.

Optionally include the following in your HTML page if doing it manually.

At the top register the control:

< %@ Register TagPrefix="cc1" Namespace="FlickrGalleryControls" Assembly="FlickrGalleryControls" %>

Then put the following wherever on the page you require the control:


As you can see I’ve set some of the properties of the album control here, but most are optional.

Let me know what you think.

Update: Fixed the download link above.

Flickr.Net Library Source Code Release 1.4.1 (Updated)

Its here!

The next version of the source code now fully supports the new Authentication methods (the older method is no longer supported).

[Download Latest Source](/flickr/flickr-api).

It features lots of changes including:

* AuthGetFrob()
* AuthCalUrl()
* AuthCalcWebUrl() – Often better to use the short url provided by Flickr
* AuthGetToken()
* AuthCheckToken()
* Constructors now take up to 3 parameters, Api Key, Shared Secret and Api Token.
* Support for .config configuration of api key, caching settings and web proxy.

See the Flickr Api page for more details.

Update: minor bug spotted which affects all methods with parameters that can take spaces in them (e..g people.findByUsername where username has a space in it). The signature generation was including the URL encoded version, rather than the original and hence was incorrect. I’ve also added a couple of extra properties, ApiKey, ApiSecret and ApiToken for getting/setting the relevant properties of the Flickr object. V1.4.1 has therefore been released.

Enough to make you cry

I’m not really an emotional person in real life, I bottle things up and ignore stuff rather than face things that might make me sad, a form of self defence no doubt.

But sometime, for no apparent reason something will just cause a tear or two to well up in my eyes, touching something deep within. Flickr has provided me with three of these occasions so far, pictures, usually with words, which have touched me for various reasons.

The first, and most recent is from Special. I suggest you go to Flickr and read the description. There are many things bad about the internet, but it does provide a certain amount of outlet for so many people – you can say things to no-one that you could never say to anyone.

Beneath
Beneath
Originally uploaded by Special.

The second wasn’t so much the picture, but the text that went with it. Although the picture and caption tell a story in themselves.

Please don't Crush Me
Please don’t Crush Me
Originally uploaded by !efatima.

The third one (or first taken in chronological order) was just one of those photos, I just stared for a while, the look in the eyes speaking volumes. The vulnerability, trying to hide behind the cushion, but the camera seeing all.

Of Me Looking Back
Of Me Looking Back
Originally uploaded by Shooz.

Entrances to Hell




Hell

Originally uploaded by Shooz.

I’m a co-admin of a wonderful group on Flickr that tries to contain only entrances to the underworld domain of hell. (Being an admin isn’t all fun – I have to delete some pictures that don’t seem to have anything to do with entrances, or hell for that matter!)

Well we’ve now been FlickrBlogged, a term which means we’ve been mentioned on the Flickr Blog website (and usually meaning hits go sky high!).

Such is the life of fame (I have previously been FlickrBlogged for my screensaver!)

Flickr.Net Source Release 1.3

Well after the last upload of source code I finally managed to work out how to log into dragnet, the bug tracker, and discovered a load of bugs had been logged. Damn! (Login as “guest”/”guest”)

So I fixed all the changes and am releasing this new version as 1.3.

Download Latest Version.

Nothing major in this release.

What’s Next

Well don’t know if you’re aware but Flickr are changing the authentication mechanism for us API users, so I’ve got quite a bit of work to do to get the Flickr.Net library up and running. Thats my next task.

Bye

Flickrwall – Flickr Project in Newcastle

A while ago I took a photo of a bit of chalked graffiti in Newcastle. There is an old alley (one of a pair) that leads off Pilgrim Street and down to Carliol Square. The chalk graffiti reads “Secret Entrance”, with an arrow. Aside from the fact that the alley provides a perhaps little know short cut there is (as far as we can tell) no secret entrance to be found. There is an old gated door further down the alley but this is less of a secret, and more of a mess.

 Secret Entrance
Secret Entrance

Secure Rubbish
Not Very Secret Entrance

Since I uploaded this photo a group of mad newcastle residents have taken this alley, and its chalkyness to their hearts. From what started as my own secret alley has now become a haven for random scribbles and flickr-esque nonsense.

I blame this man!

Since the day he first posted, suggesting that other Flickrites should add their own contributions things have not been the same. The wall is now awash with glib graffiti of the most nerdy type, with flickr names being banded about with little regard for anyones safety.

So far we have the following namechecks (in no particular order): brendada, babyspark, Gentilelikeafrog, Failed Hetrosexual, mafleen, Akuppa, and most recently snood. I’m fairly sure more have, or will soon add to the wall as well.

Some pictures of progress so far on the wall:

New Game
Two games of Noughts and Crosses (By various players)

Someone spotted Pig 2,982
A Pig (by Akuppa)

Similes
Poetry?

We even have our own on-going mystery – a photo of someone taking a photo of the flickrwall, and we still don’t know who it is…

Gotcha!
Secret Snapper

Well enought from me, if you live in Newcastle come down and chalk (we leave some hidden nearby), otherwise just enjoy our small slice of Flickr community.

Flickr.Net Source Release 1.2

Well I’ve finally got around to releasing the next packaged version of the Flickr Source.

Download Latest Version.

It features lots of changes including:

* POST methods – meaning methods which change things now work
* LastRequest property details last url sent
* FlushCache to delete cache details, either entire or per url (used with above to delete last request)
* GetCachePictures – provides information about already downloaded images – then simply use DownloadPicture to get the data from the cache
* new methods, such as PhotosetsAddPhoto (I think I’ve got them all in here now, let me know if any are missing).
* CacheTimeout and CacheSizelimit variables for managing the cache in a bit more detail (CacheSizeLimit is in bytes, defaults to 50MB).

I’ll try and post some example code using the above at a later date, but for now I’m off to finish off the screensaver.

Bye

Trackback Translation needed…

I get various trackbacks for the Flickr Screensaver posts. but quite a few seem to be almost identical posts on different web site.

Unfortunately they are in Chinese (or japanese, I don’t even know the difference!).

So if anyone would like to translate this page and let me know what it says I’d be grateful… (Lazyweb anyone?)

FlickrScreensaver feedback

“A gentleman put it together” – quoting Major Nelson in recent blogcast.

Yes, you heard right, Major Nelson (Xbox Live Director of Programming, Larry Hyrb) uses the Flickr Screensaver.

On that note I’m trying to get some feedback on the screensaver. I’m very near to doing a new release, with some interesting new features.

The number one requested feature is for a shorter time between pictures. Currently the minimum time between photos is 1 minute. I’m considering reducing this, to say 15 second intervals.

I have noted all feedback in the comments and its all been good.

Thoughts, or other comments welcome.