also available in rss format
04/04/09 @ 10:47:58
with this itchy rash of web 2.0 sites out thee i've found i have a host of sites that im updating (twitter being the most regular, i really do like micro-bloggin') and it's all been a bit disjointed. now for the the more techi amongst you, why would you want multiple feeds coming in from one person? just fills your newsreader with junk. it's also kinda annoying having to point people in the right direction whenever something get's updated, eg:
a new crop of photos have gone online and i give my old man a call: "hey dad, want to see my new photos?", "sure son, are they on that twithead thing you gave me?", "uhhh, no - they're on picasa, you know the photo-sharing place", "nope, don't recall - do you have a link?".
something had to be done.
RSS to the rescue
you might have seen the little orange rss buttons floating around the web?! basically they provide a link to the raw data of a webpage and are usually consumed by another electronic service somewhere to re-produce the headline, link and brief description of the original article. so, in a nutshell, im able to grab these rss feeds from the sites i post to (blog, twitter, youtube, picasa etc) mix them all together and chuck them back out in date order and in the format i decide.
technical challenges (management speak for "pains in the arse")
only bother reading on if you're a web techie... (if not just go to Luke's uberFeed you'll get the idea.
feeds can be slightly different to one another which means some intervention would be required to make them all play nice. for instance, an atom feed is different to an rss feed - to be honest im not sure of all the differences - something about harvard doing one and someone doing something else, and.. well i don't really care, all i know is if it's structured - i can get at it :-) which is what i did. coldfusion offers some excellent xml functions and with a little bit of messing you can soon pull the fields you need out.
simply put if you create an object by calling a url with cfhttp, then parse it with xmlParse you can then get at the data fairly easily:
something like:
<cfhttp url="http://lukenukum.blogspot.com/feeds/posts/default?alt=rss" method="get">
<cfset doc = xmlParse(cfhttp.fileContent) />
<cfoutput>#doc.rss.channel.item[1].title.xmlText#</cfoutput>
will bring you back my latest blog post title (swap the 1 for 2 to get the second title etc). you can then adapt this to get the url and description, it's not rocket science but it's a handy thing to know. all well and good, this enabled me to produce a pretty list and then repeat the process for my other feeds - all similarly tagged (albeit slightly differently) in the XML.
but how to get them mingled with each other so that they form a nice time line? a faux query of course. creating a query object from scratch means that once you have it you can query it just like you would say an SQL database, so using something like the following (ideally in a loop over your XML object):
<cfset thisCell = QuerySetCell(thisRss, "title", doc.rss.channel.item[1].title.XmlText) />
<cfset thisCell = QuerySetCell(thisRss, "published", doc.rss.channel.item[1].pubDate.XmlText) />
it populate that query object (thisRss) which you can then treat just as you would a database query (ie - select title from thisRss order by published) - magic. theres a whole bunch of other stuff going behind the scenes including date formatting and a fix for twitter which clears @[twittername] replies from tweets - they now get filtered out along with other bits of ugly HTML via some regular expressions.
tbh, im getting a bit bored of typing now, suffice to say im fairly happy with Luke's uberFeed (oh, and there's an rss spawn of it here). i know friendfeed is a very similar and far superior option *but* it's all a bit too much... i just don't need more than a link and brief description of something i posted.
i guess the only question that remains is why you'd want to efficiently bring together a bunch of prattle... good question, good question :-/
keep it real campers.

on 05/09/10 @ 10:23:11 posted from twitter
is dukenukem forever really gonna happen in 2011? linkage bring it on!

on 02/09/10 @ 19:15:28 posted from twitter
google's new artificial intelligence API linkage (aka skynet!)

on 17/08/10 @ 21:17:04 posted from google news
oh yes! stay on target.

on 03/08/10 @ 21:29:57 posted from google news
been using this for a while, can say it's rather excellent.

on 23/07/10 @ 16:54:02 posted from google news
believe it or not, whilst reading this - i got distracted :-/

on 23/07/10 @ 16:41:25 posted from google news
i'd missed this... how many more variations on the size of panel do we need?

on 02/06/10 @ 17:31:38 posted from google news
the classic DB5 up for auction, yeah - i'll be bidding...

on 28/04/10 @ 14:12:45 posted from newWord
bigot - a prejudiced person who is intolerant of any opinions differing from their own

on 04/04/10 @ 12:00:00 posted from picasa
an Easter bank holiday weekend away in Devon
5 photos after the jump!

on 07/03/10 @ 19:33:43 posted from picasa
a week's holiday in the Canaries, March 2010
33 photos after the jump!

on 11/02/10 @ 13:00:00 posted from picasa
a bunch of random photos taken when out and about
7 photos after the jump!

on 09/01/10 @ 17:51:42 posted from picasa
a chilly walk out across the Studland beach in Dorset
18 photos after the jump!

on 23/12/09 @ 16:21:46 posted from picasa
good ol' family xmas in Sparsholt, Oxfordshire 2009
17 photos after the jump!

on 05/10/09 @ 11:51:32 posted from youtube
time lapse test of me sat at my desk for a couple of hours (not exciting!). taken using sheado.net 'time-lapse' application on Android phone
42 second clip after the jump!

on 25/08/09 @ 06:44:33 posted from youtube
the stunning Eurofighter Typhoon seen at Bournemouth Air Festival 2009
170 second clip after the jump!

on 24/07/09 @ 17:39:54 posted from youtube
This video was uploaded from an Android phone.
20 second clip after the jump!

on 17/07/09 @ 13:35:48 posted from youtube
This video was uploaded from an Android phone.
14 second clip after the jump!

on 15/03/09 @ 21:23:31 posted from youtube
the lovely Durdle seen from the cliff above on a sunny Sunday in March
65 second clip after the jump!
Coldfusion
- a much faster homepage
- pop3 picture extraction and API fun
- lukes uberfeed
Random
- download festival 2009
- hashtag invented
- learn some new words
- xmas messages