Shane O'Sullivan's technical blog… really ties the room together

Archive for the ‘Flickr’ Category

Using Flickr Mundo to make your webOS app better

Posted by Shane O'Sullivan on November 14, 2010

If you are a webOS developer with an interest in Flickr, you can now greatly improve your users experience by integrating your app with Flickr Mundo. (thanks to @rparvez for the idea to integrate with @neato_webos)

I’ve added the ability for other webOS apps to launch Flickr Mundo with a Flickr URL.  This gives a far better experience to the user than simply loading Flickr in the browser – they’ve already purchased the app, it is built natively for webOS and can do many things that the web interface cannot.

For example, loading the link

Many different patterns of Flickr URLs are supported.  However if you pass a URL that is not supported, Flickr Mundo will simply launch the browser at that URL.

To make this work just takes a few lines of code.  From within any Mojo scene assistant, simply use the followinf JavaScript code:

var url = "";
this.controller.serviceRequest("palm://com.palm.applicationManager", {
  method: 'open',
  parameters: {
    id: 'com.chofter.flickrmundo',
    params: {
      target: url

As you can see, you can even upload photos to Flickr using this method. So if you have some kind of photo app, would like to be able to upload to Flickr but don’t want to have to go to all the trouble of correctly authenticating a user, you can just use Flickr Mundo to do it for you.

The version of Flickr Mundo with this included, v1.4.0, was submitted for review today, Nov 14th 2010, and should hopefully be available for download in a couple of days. Many different URL patterns are supported, but if you find one that isn’t, please let me know and I’ll look into adding it.

A future version will also include the ability to specify the file to upload – v1.4.0 asks the user to pick the file, similar to the stock Photos app on webOS.

Posted in Ajax, apps, Flickr, Flickr Mundo, Javascript, Palm, WebOS | 3 Comments »

Flickr Mundo for Palm webOS

Posted by Shane O'Sullivan on September 5, 2010

I am very happy to announce the release of Flickr Mundo, a fully featured Flickr app for Palm webOS devices.  It is packed full of pretty much everything that a Flickr addict could possibly want, including:

  • Photo upload and download, with multiple simultaneous supported for both.
  • Read & add comments to photos and photo sets
  • Add/remove favourites
  • Bulk editing, e.g. choose 6 photos and add tags to them all in one go, add/remove them from a set or group, add/remove person tags…. and much more.
  • A great browsing experience, jump from one user to another,  open photo sets, groups and galleries.  Swipe from photo to photo.
  • Auto rotated wallpapers.   All the functionality from my other app Flickr Addict is included in Flickr Mundo.  Automatically download images in the background based on many different criteria and change the phone wallpaper on a schedule chosen by you.  No more boring backgrounds!
  • Context sensitive ‘Just Type’ search.  Wherever you are in the app, either hit the search icon or just start typing to search Flickr.  If you’re looking at a user, you can choose to just search that user. If looking at a photo group, you can search just that group.
  • Group search, find a photo group.
  • Location based search.  Find photos near you using GPS, or search for photos close to anywhere else you name.
  • Fullscreen slideshows with an optional audio playlist for playing music while watching your photos.

and much, much more, all wrapped in a highly polished UI that maximises the space of a small screen to the best effect.

A special thank you goes out to Jake and all the guys on the Palm Pre group on Flickr who did huge amounts of user testing on the beta version of the app. They spotted many obscure bugs, and made many suggestions for features and tweaks, most of which have ended up in the app.  Without them Flickr Mundo wouldn’t be anywhere near as complete, functional and fun as it is.

Flickr Mundo will be submitted to the Palm App Catalog in the next 24 hours, and should be available to everyone as soon as Palm approves it!

Update: Flickr Mundo has now been submitted to the App Catalog

Posted in Ajax, Flickr, Flickr Addict, Flickr Mundo, Javascript, json, mobile, Palm, Technical, wallpaper, WebOS | 62 Comments »

Use YQL to cache your queries

Posted by Shane O'Sullivan on August 5, 2010

Quick tip: For faster access to remote data, you can’t beat using Yahoo’s YQL to cache your data.  See HERE to read more on this.

When accessing data from remote services, e.g. Flickr, often the data won’t change too frequently.  Some data can also be very expensive to generate, and services forbid you from polling it on a regular basis.  For example, a device is not allowed to retrieve the latest activity on a users Flickr account more than once per hour.

You could roll your own solution to this problem, store the data locally and check its timestamp.  However, this is a lot of work for something that can be so much simpler.

Simply access the XML or JSON data using the Yahoo Query Language, and set the _maxage parameter to the length of time you want to cache the data for.  And you’re done.  Yahoo will cache the data for you, refresh it when the specified time elapses, and serve it to you faster than the original query since it doesn’t have to calculate anything.

Also, the service provider will be happier as you’re not hitting their server so often for duplicate data.

Posted in Ajax, Flickr, Javascript, json, mobile, Technical | Leave a Comment »

Dojo’s new Mobile App Project

Posted by Shane O'Sullivan on June 13, 2010

Dojo v1.5, which should be released in the coming weeks, will contain an early beta of a new infrastructure for building Mobile Apps.  Currently it is called, but that is expected to change.  Check out the test apps (the bottom section) at , which work best in WebKit, so use Safari or Chrome for best results.

Jared Jurkiewicz and Yoshiroh Kamiyama recently added the project.  It provides some very nice widgets for use on mobile phones, such as views that can transition between each other, rounded lists, tab containers etc.

However, the focus of is to be very small, so as to suit websites formatted for mobile devices.  When writing cross device apps that are hosted on a phone, the size of the JavaScript is less of a concern, so a much more powerful experience can be created.

Hence, is born.

It is built on top of, but adds many new features, with more on the way.

  • Templated views that can be pushed and popped off the stack of views, all of which are lazily loaded.
  • Templated lists
  • Input widgets
  • Image Gallery
  • Dialog Boxes
  • Popup Menus

are all available now.  The structure of a application is modeled very closely to a webOS app.  The templates and code are in a similar folder structure, and the lifecycle for creating and destroying (popping) scenes/views are very similar.

The goal of is NOT to replace or duplicate the functionality in PhoneGap.  PhoneGap provides low level access to many phone features. aims to provide an easy to use, flexible application structure, and many widgets that you will find useful, all themed to appear native to each platform.  In a real world app, it would make most sense to use both PhoneGap and

One of the cooler widgets currently available is the ImageView widget, check it out at .  Some of its features include

  • Canvas based
  • Touch capable
  • Swipe across to change images
  • Tap to zoom in, and then swipe to move around an image
  • Progressive loading of images – first load a small version of an image, and later a larger version is currently tested mostly on the iPhone, but will soon support webOS and Android also.  The mobile world is an exciting place to be right now, and Dojo is jumping in feet first 😉

Posted in Ajax, demo, dojox, Flickr, Image Gallery, Javascript, mobile, open source, Palm, Technical, templating, WebOS | 7 Comments »

Flickr Addict for Palm Pre adds Groups & Blocking

Posted by Shane O'Sullivan on January 26, 2010

Flickr Addict and Flickr Addict Lite v0.2.1 have just been released on the Palm App Catalog.  This release adds two features that many users have asked for:

  • Group selection.  Previous versions of Flickr Addict allowed you to download photos from two Flickr groups, iPhoneWallpapers and PalmPreWallpapers.  This version allows you to add any group you like.
  • Photo and user blocking.  Sometimes images are downloaded which you might not like, and you can now block both individual images, and all images from a particular user.  You can also manage your blocked list to unblock images and users later.

The video below is of the previous version, v0.2.0.  Try it out for free with Flickr Addict Lite.

Posted in Ajax, Dojo, Flickr, Flickr Addict, Palm, Technical, WebOS | 11 Comments »

Flickr Addict v0.1.9 released on Palm App Catalog

Posted by Shane O'Sullivan on January 8, 2010

The latest version of Flickr Addict is now available on the Palm App Catalog!  This is a huge upgrade which I blogged about a short while ago when I submitted it for review.  Check out the video below to see what it can do.  If you would like to try it out before you buy it, the free version, called Flickr Addict Lite, is also available on the Palm App Catalog.  Enjoy!

Posted in Ajax, Flickr, Flickr Addict, Image Gallery, Javascript, Palm, WebOS | 12 Comments »

Flickr Addict Lite v0.1.9 released

Posted by Shane O'Sullivan on January 5, 2010

Flickr Addict Lite v0.1.9 has been released in the Palm App Catalog. See here for more info.

The full version of Flickr Addict v0.1.9 is still in review.  However as it was submitted before the lite version, it should hopefully be approved quite soon.  If you have downloaded both the Lite and full versions, and are wondering why they are so different, this is the reason – there was a massive rewrite since the last version.  You’ll have it soon 😉

Update Jan 8th 2009: Flickr Addict v0.1.9 is now also available in the App Catalog.

Posted in Ajax, chofter, Flickr, Flickr Addict, Palm, Technical, WebOS | Leave a Comment »

Flickr Addict gets a huge upgrade

Posted by Shane O'Sullivan on December 22, 2009

Flickr Addict, my very cool (if I do say so myself) Dojo powered application for the Palm Pre & Pixi smartphones, has just been given a massive upgrade. Flickr Addict automatically downloads photos from Flickr and sets them as your wallpaper at set intervals.  It is completely configurable, and very easy to use.

Following some very helpful user feedback, I have added the following features:

  1. New image gallery, very similar to the Palm Photos app, which makes it very quick and simple to view all your downloaded photos.
  2. Full screen preview of all wallpapers.
  3. The ability to randomize the selection of photos from a user.
  4. The Palm Pre Wallpapers group on Flickr is now selectable, in addition to the iPhone Wallpapers group.

See the video below for a demo.  This version of Flickr Addict and Flickr Addict Lite is currently in review for the App Catalog, and will hopefully make it in soon.  However the previous version is in there now and available for download, and will be updated automatically when the new version is out.

Posted in Ajax, Dojo, Flickr, Flickr Addict, Palm, Technical, WebOS | Tagged: , , , | 15 Comments »

webOS tip: Linking to an app in the App Catalog

Posted by Shane O'Sullivan on December 17, 2009

If you’re writing a webOS application, and want to open the App Catalog to show a particular app, Palm have provided a ‘magic’ URL you can open in a browser which causes the app catalog to show an application.

For example, I have a ‘lite’ version of Flickr Addict, called imaginatively Flickr Addict Lite, that offers the user a choice to go to the full version in the app catalog.  The code for this, given that the app ID for the app is “com.chofter.flickraddict”, is:

new Mojo.Service.Request('palm://com.palm.applicationManager', {
    method: "open",
    parameters:  {
        target: ''

Posted in Flickr, Palm, WebOS | 1 Comment »

Flickr Addict – New Dojo powered app for the Palm Pre

Posted by Shane O'Sullivan on December 1, 2009

Flickr Addict, my second Dojo powered mobile application for the Palm Pre and Pixi has just been released in the Palm App Catalog.  Flickr Addict automatically downloads and displays a rotating set of great wallpapers for your Palm phone.

For users who just want very high quality wallpapers on their phone, auto-downloaded and changed on a regular basis, Flickr Addict gives you all you need.

For Flickr members who want to show their own photos, or the latest images from contacts, Flickr Addict gives you the control to select users and photo sets to download.

There are also a number of other options such as searching for photos that match a particular tag, or photos from the iPhone Wallpapers group.

For those interested in technical matters, Flickr Addict was written using Palm’s SDK and the Dojo Ajax Toolkit.


Posted in Ajax, Dojo, Flickr, Palm, Technical, WebOS | Tagged: | 22 Comments »

%d bloggers like this: