<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Imbimp</title>
	<atom:link href="http://www.imbimp.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imbimp.com</link>
	<description>Technology, Craft &#038; other Geekery</description>
	<lastBuildDate>Wed, 11 May 2011 08:53:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Self Portrait Collage</title>
		<link>http://www.imbimp.com/2011/02/self-portrait-collage/</link>
		<comments>http://www.imbimp.com/2011/02/self-portrait-collage/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 16:03:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Craft]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/?p=1141</guid>
		<description><![CDATA[My friends and I cut a sunday newspaper to bits, combined the clippings with some ripped up old books and embellished the resulting mess with a few dabs of paint. A feast for the eyes&#8230;]]></description>
			<content:encoded><![CDATA[<p>My friends and I cut a sunday newspaper to bits, combined the clippings with some ripped up old books and embellished the resulting mess with a few dabs of paint.</p>
<p>A feast for the eyes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2011/02/self-portrait-collage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release Animals</title>
		<link>http://www.imbimp.com/2011/02/release-animals/</link>
		<comments>http://www.imbimp.com/2011/02/release-animals/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 21:38:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Craft]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/?p=1136</guid>
		<description><![CDATA[A couple of days ago I had to do a presentation about a few different release options in relation to a case study we were working on. It seemed a good idea to liken the releases to various animals/creatures. No one found this particularly funny or amusing and I died a bit of a death [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago I had to do a presentation about a few different release options in relation to a case study we were working on.</p>
<p>It seemed a good idea to liken the releases to various animals/creatures. No one found this particularly funny or amusing and I died a bit of a death in front of the group.</p>
<p>It beat bullet points though. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2011/02/release-animals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>100 Mile Journey</title>
		<link>http://www.imbimp.com/2011/02/100-mile-journey/</link>
		<comments>http://www.imbimp.com/2011/02/100-mile-journey/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 21:26:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Craft]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/2011/02/100-mile-journey/</guid>
		<description><![CDATA[Was subjected to some slightly dubious psycho-theory in some training this week. Had to do a skit to &#8220;teach-back&#8221; to the rest of the group and ended up making this huge alignment block which explains some of the terminology Its amazing what materials can be found in the mail-room of most modern conference centres!]]></description>
			<content:encoded><![CDATA[<p>Was subjected to some slightly dubious psycho-theory in some training this week. Had to do a skit to &#8220;teach-back&#8221; to the rest of the group and ended up making this huge alignment block which explains some of the terminology<br />
<span id="more-1133"></span><br />
Its amazing what materials can be found in the mail-room of most modern conference centres!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2011/02/100-mile-journey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boni from Trap Door Costume</title>
		<link>http://www.imbimp.com/2011/02/boni-from-trap-door-costume/</link>
		<comments>http://www.imbimp.com/2011/02/boni-from-trap-door-costume/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 21:03:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Craft]]></category>
		<category><![CDATA[boni]]></category>
		<category><![CDATA[costume]]></category>
		<category><![CDATA[trap door]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/2011/02/boni-from-trap-door-costume/</guid>
		<description><![CDATA[I recently made a costume based on the character &#8220;Boni&#8221; from 80&#8242;s cartoon series Trap Door. The project was pretty complex but even more excellent when paired up with the Drummer who went as Berk. Here is a picture of both of us&#8230; The construction process was, as usual, cardboard-based and I captured the whole [...]]]></description>
			<content:encoded><![CDATA[<p>I recently made a costume based on the character &#8220;Boni&#8221; from 80&#8242;s cartoon series <a href="http://www.youtube.com/watch?v=f-dapSswWTQ">Trap Door</a>.</p>
<p><span id="more-1128"></span></p>
<p>The project was pretty complex but even more excellent when paired up with the Drummer who went as Berk. Here is a picture of both of us&#8230;</p>
<p><img class="aligncenter" title="Boni &amp; Berk" src="http://farm6.static.flickr.com/5257/5422615452_e158c630de.jpg" alt="" width="500" height="334" /></p>
<p>The construction process was, as usual, cardboard-based and I captured the whole construction process using a mixture of time-lapse and regular photography. See here&#8230;</p>
<p><iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/kfZiY_M9fHo" frameborder="0" allowfullscreen></iframe></p>
<p>I used some special <a href="http://www.diy.com/diy/jsp/bq/nav.jsp?action=detail&amp;fh_secondid=9414851&amp;fh_location=//catalog01/en_GB/categories%3C{9372013}/categories%3C{9372030}/categories%3C{9372123}/specificationsProductType=spray_paints&amp;tmcampid=4&amp;tmad=c&amp;ecamp=cse_go&amp;CAWELAID=266950531">glow in the dark paint</a> for the purposes of making the whole thing glow. The stuff was pretty good, but it has to be really dark to get any effect. I think I just didn&#8217;t use anywhere near enough. One can apparently only covers a metre square and there was a lot more than this on the costume.</p>
<div class="wp-caption aligncenter" style="width: 510px"><img title="Glowing Boni" src="http://farm6.static.flickr.com/5255/5416767597_d3bf79a45b.jpg" alt="" width="500" height="421" /><p class="wp-caption-text">Boni Glows!</p></div>
<p>On the whole the party itself went pretty well, although getting through doors was much more challenging than I had thought. Plus the lighting at the venue meant there was not quite enough light to charge up the glow-in-the-dark paint, and not quite enough darkness to see any glowing. Rubbish&#8230;</p>
<p>Given the theme of the party was cartoons, there were a bunch of really good costumes &#8211; the best being a pair of milk cartons from the Blur Coffee &amp; TV music video. Very nicely done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2011/02/boni-from-trap-door-costume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monster Cake!</title>
		<link>http://www.imbimp.com/2010/09/monster-cake/</link>
		<comments>http://www.imbimp.com/2010/09/monster-cake/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 11:05:46 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/2010/09/monster-cake/</guid>
		<description><![CDATA[This is the cake Clarkson made for my 30th Birthday. It came out a million times better than I could ever have imagined. I obviously insisted that the legs were properly cut out and that it was not just going to be a picture of a monster on a cake. But that was pretty much [...]]]></description>
			<content:encoded><![CDATA[<p>This is the cake Clarkson made for my 30th Birthday. It came out a million times better than I could ever have imagined.<br />
<span id="more-825"></span><br />
I obviously insisted that the legs were properly cut out and that it was not just going to be a picture of a monster on a cake. But that was pretty much where my help ended&#8230;</p>
<p>There is also a little upside me in the corner to avoid spoiling the monster with candles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2010/09/monster-cake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sinclair ZX Spectrum +2 Costume</title>
		<link>http://www.imbimp.com/2010/09/sinclair-zx-spectrum-2-costume/</link>
		<comments>http://www.imbimp.com/2010/09/sinclair-zx-spectrum-2-costume/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 10:51:32 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Craft]]></category>
		<category><![CDATA[Stuff]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/2010/09/sinclair-zx-spectrum-2-costume/</guid>
		<description><![CDATA[The theme of the party was &#8220;What you wanted to be when you grew up&#8221;. Now this opened up the gates to all sorts of cliches such as astronauts, rock stars, pilots and other off the shelf and over-used dressing up outfits. Instead I thought it might be interesting to do something based on something [...]]]></description>
			<content:encoded><![CDATA[<p>The theme of the party was &#8220;What you wanted to be when you grew up&#8221;.<br />
<span id="more-817"></span><br />
Now this opened up the gates to all sorts of cliches such as astronauts, rock stars, pilots and other off the shelf and over-used dressing up outfits.</p>
<p>Instead I thought it might be interesting to do something based on something I was almost completely attached to when growing up. This was of course my very first computer, the Sinclair ZX Spectrum +2.</p>
<p><a href="http://www.flickr.com/photos/ymuflk/4450338827/" title="IMGP4297 by Tim Tim Tim, on Flickr"><img class="aligncenter" src="http://farm5.static.flickr.com/4051/4450338827_cf38f72084.jpg" width="334" height="500" alt="IMGP4297" /></a></p>
<p>Mostly you only hear about its predecessor the 48K spectrum, with the rubber keys. Fortunately I didn&#8217;t have that. Instead I had to post-Sinclair and Amstrad-built model, with integrated cassette recorder and plastic keys. A truly fantastic machine. Here is the real thing&#8230;</p>
<p><a href="http://www.flickr.com/photos/ymuflk/4392944736/" title="IMGP4280 by Tim Tim Tim, on Flickr"><img src="http://farm3.static.flickr.com/2749/4392944736_2e28cef04f.jpg" width="500" height="334" alt="IMGP4280" /></a></p>
<p>To get a realistic look and feel I needed to think of some gimmicks that would lift the outfit from merely a grey box with some decoration (which it actually turned out pretty close to) The key gimmick would be fully sprung keys. I proceeded to create over 70 springs from garden wire. This took bloody ages and was not only boring, but took quite a toll on my fingers, while winding wire round a biro again and again and again. I then had to create over 70 little boxes that I would then need to attach the spring too. I then had to attach the sprung keys and make sure they all fitted. This was the most stressful bit of the whole project &#8211; since this was the bit where the idea turned into a reality and would be the difference between an ok costume and a really great one.</p>
<p>The next gimmick was the super-size plugs and sockets on the size. I had some really big plans for these&#8230;but I kind of lost inspiration after the mental turmoil of springing the keys.</p>
<p><a href="http://www.flickr.com/photos/ymuflk/4392944046/" title="IMGP4276 by Tim Tim Tim, on Flickr"><img src="http://farm3.static.flickr.com/2773/4392944046_2943c6b7a3.jpg" width="500" height="334" alt="IMGP4276" /></a></p>
<p>Hannah kindly made me some perspex for the tape recorder opening &#8211; that had obvious fogging up implications. And that was that&#8230;a few other pictures below, including Clarkson&#8217;s elephant costume &#8211; a much better effort than mine. The key question is&#8230;why would anyone ask if we made these costumes??? and when I answered that we got them from John Lewis, why would anyone believe us???</p>
<p><a href="http://www.flickr.com/photos/ymuflk/4413874505/" title="IMG_0506 by Tim Tim Tim, on Flickr"><img src="http://farm3.static.flickr.com/2754/4413874505_ba82949f8d.jpg" width="500" height="333" alt="IMG_0506" /></a></p>
<p>Last but not least, the whole exercise would not be complete without a trip to PC World&#8230;.</p>
<p><a href="http://www.flickr.com/photos/ymuflk/4414780392/" title="IMGP4289 by Tim Tim Tim, on Flickr"><img src="http://farm5.static.flickr.com/4015/4414780392_da17d599ed.jpg" width="500" height="334" alt="IMGP4289" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2010/09/sinclair-zx-spectrum-2-costume/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Video Project for Rimmer&#8217;s Wedding</title>
		<link>http://www.imbimp.com/2010/09/video-project-for-rimmers-wedding/</link>
		<comments>http://www.imbimp.com/2010/09/video-project-for-rimmers-wedding/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 20:30:08 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/?p=804</guid>
		<description><![CDATA[I recently spent a whole load of time creating a video for my good friend Rimmer in order that it be played out during an appropriate moment during his wedding to Clare. The video below is the result of my efforts, helpfully aided by Neil on some sneaky vocal duties. It was a much more [...]]]></description>
			<content:encoded><![CDATA[<p>I recently spent a whole load of time creating a video for my good friend Rimmer in order that it be played out during an appropriate moment during his wedding to Clare. The video below is the result of my efforts, helpfully aided by Neil on some sneaky vocal duties.<br />
<span id="more-804"></span><br />
<object width="480" height="385" data="http://www.youtube.com/v/LidJ9sqMvCs?fs=1&amp;hl=en_US" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/LidJ9sqMvCs?fs=1&amp;hl=en_US" /><param name="allowfullscreen" value="true" /></object></p>
<p>It was a much more complex project to produce than I first thought. Despite having some grand plans, I had no idea what would actually be possible in the time available and more importantly, what would be appropriate to a wedding audience of all ages and tastes. Gathering the content together was a mammoth task, since I had various snippets of video kicking around on a variety of ageing and mostly rusty old PCs &#8211; all in a variety of formats. For some reason all the MPG clips from old cameras would not import so I had to use MPEG StreamClip that did a really good job of re-encoding some pretty dreadful little clips without reducing the quality still further. I also had a photo library of 8000+ photos, where Rimmer appeared regularly, that I wanted to trawl for suitable images to include. This was before I had even worked out what animation elements to include and how to hang the whole thing together so it didn&#8217;t just look like I had discovered the zoom function on a video camera.</p>
<p>I started thinking the whole thing could be jumbled together using iMovie. This was a pretty ridiculous assumption. Helpful as iMovie is, it has relatively poor compositing support and doesn&#8217;t really give you the control over the video that you get with things like Final Cut Express and Final Cut Pro. I settled for FCE in the end, mainly because I managed to quite quickly work out how to do green screen stuff reliably and quickly.</p>
<p>The first piece to complete was actually the ending. I had thought a while ago that the ending of Fight Club would make a good mash-up and seemed like a good way to set a high bar to live up to for the rest of the video. I also didn&#8217;t want to rely too heavily on the video content I already had &#8211; since most of it was pretty low quality and really not good enough to make anything worth watching. To start with I had to download a Blu-ray rip of the film, which at over 8GB, took a very long time. The animated heads were created on Flash and Photoshop using the standard jaw-cut-out technique that is tried and tested and is funny without having to put any specific effort in. I made the background a very bright green so that FCE would have no problem chroma-keying it out when I started laying things together. At first I hadn&#8217;t quite worked out how to keyframe layered videos together so I end result looked a bit wrong. I later moved the heads and changed their scale, but left the one of clare, because for some reason the expression suits that kind of static image. Not sure why. For the vocal bit I ended up balancing my phone on a window sill and videoed myself saying the line &#8220;You met me at a very strange time in my life&#8221;, but with a green piece of paper over my face with a mouth sized hole cut out. I am sure there are better ways of doing this, but this worked ok.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-813" title="The FCE complexity of the middle section" src="http://www.imbimp.com/wp-content/uploads/2010/09/fce.jpg" alt="fce" width="472" height="380" /></p>
<p>Having spent some time on a few animation bits I set to work trying to piece everything together. The plan was to set it all to music, but I wasn&#8217;t sure whether to have a single track or to mix a load of relevant stuff together. Having experimented with a few things it was easier to stick with a single song&#8230;I chose the track &#8220;My Girls&#8221; by Animal Collective, because it has a kind of mellow start, with few vocals that gave plenty of opportunity to stick in plenty of clips that had existing sound and then build up to some kind of climax by throwing together some of the shorter more visual clips.</p>
<p>Clarkson gave me the idea to use the clips I had of Rimmer jumping into the Norfolk Broads to form a kind of narrative throughout. This worked pretty well since there is a kind of build of expectation of him jumping in. But then when he does it is a bit of an anti-climax &#8211; which was much better than just showing all the clips together. The other thing that really helped tie everything together is the clip I start with. (after the initial Flash animation) Not only is the clapping scene fairly ridiculous, but it really comes into its own when sped up and synced with the music in the last third. In fact the best bits of the video are the ones that seem to directly go with the music&#8230; Notably the muppet drumming, Gorniki drumming and the dance machine stuff.</p>
<p>The video showing went down really well in the end. Much better than I had expected. After spending so long on things, it became ever more difficult to critique the whole thing. The main goal was of course to try and do something that no-one else could ever do and that was definitely achieved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2010/09/video-project-for-rimmers-wedding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vodafone Micro SIM iPhone 4 Confusion</title>
		<link>http://www.imbimp.com/2010/06/vodafone-micro-sim-iphone-4-confusion/</link>
		<comments>http://www.imbimp.com/2010/06/vodafone-micro-sim-iphone-4-confusion/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 18:34:44 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[iphone 4]]></category>
		<category><![CDATA[iphone4]]></category>
		<category><![CDATA[micro]]></category>
		<category><![CDATA[micro-sim]]></category>
		<category><![CDATA[sim]]></category>
		<category><![CDATA[vodafone]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/?p=799</guid>
		<description><![CDATA[Having ordered my SIM-free iphone 4 on Tuesday morning super-quick before the Apple store got smudged, I then set about trying to aquire a micro-SIM. This has been a rather arduous task. I would quite like to stay with Vodafone, since they seem to have the best network generally but am not hugely fussed. Quite [...]]]></description>
			<content:encoded><![CDATA[<p>Having ordered my SIM-free iphone 4 on Tuesday morning super-quick before the Apple store got smudged, I then set about trying to aquire a micro-SIM. This has been a rather arduous task.<br />
<span id="more-799"></span><br />
I would quite like to stay with Vodafone, since they seem to have the best network generally but am not hugely fussed. Quite staggeringly though, none of the UK networks seem to have any firm details on what happens come launch day. Probably due to how miffed they are at not getting any allocation of phones to sell on to their moronic hoards.</p>
<p>Today I went round every shop in Westfield, Shepherds Bush trying to find out what each operator is doing, not to mention various calls to customer services. No information other than a slightly dubious chap at O2 who promised phones and SIMs on launch day.</p>
<p>Luckily when I arrived home I had received a micro-SIM from Vodafone (destined for an iPad given the associated documentation) but confirmed to work in the new iPhone 4 according to customer services. Apparently I just need to call 03333040044 to activate it on the 24th.</p>
<p>The key seems to be that although you can&#8217;t use an iPad activated SIM in an iPhone 4, you can use an unactivated micro-SIM in an iPhone 4.</p>
<p>All very confusing&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2010/06/vodafone-micro-sim-iphone-4-confusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating AIR Application with iTunes</title>
		<link>http://www.imbimp.com/2009/10/integrating-air-application-with-itunes/</link>
		<comments>http://www.imbimp.com/2009/10/integrating-air-application-with-itunes/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 21:15:22 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/?p=781</guid>
		<description><![CDATA[iTunes has long been a closed platform and Adobe AIR is not designed to natively launch or interact with other applications except for the browser. I needed a solution to add MP3 files downloaded through an AIR application to iTunes or any other media player that the user may have installed. Option 1&#8230; Modifying the [...]]]></description>
			<content:encoded><![CDATA[<p>iTunes has long been a closed platform and Adobe AIR is not designed to natively launch or interact with other applications except for the browser. I needed a solution to add MP3 files downloaded through an AIR application to iTunes or any other media player that the user may have installed.<br />
<span id="more-781"></span><br />
<strong>Option 1&#8230;</strong></p>
<p>Modifying the iTunes library XML file could potentially be done, but this has risks. Firstly, the XML file can get prohibitively big, and given AIR can only use the DOM method for parsing XML, it could crash the application and do untold damage to the XML library itself, which brings up the issue to backing up the library first. Also unknown is the behavior if iTunes tries to modify the library at the same time as the AIR application, not to mention the requirement to restart iTunes after the change to reflect the changes. All in all this was not a good option, with lengthy development, risky outcome and poor user experience.</p>
<p><strong>Option 2&#8230;</strong></p>
<p>iTunes has a COM api library accessible from a native java or .Net application, which in turn could be initiated by AIR. This is far from ideal due to having a second application running on the user&#8217;s computer, the volume of development effort to create the application and the complexity.</p>
<p><strong>Option 3&#8230;</strong></p>
<p>Users can commonly add songs to iTunes by dragging files into it. This is accompanied by the fact that iTunes launches when double-clicking on any file associated with it such as .mp4 or .mp3 and of course .m3u playlist files. By launching an m3u file with a collection of track paths contained within it, iTunes will launch, songs will be added to the library and user experience is not compromised and development is simple. Although AIR cannot natively launch iTunes, it can launch files, via the browser, thus launching any application that is associated with the file-type. m3u files are commonly associated with iTunes, but also windows media player and any other media player worthy of use.</p>
<p>The key area of development is to dynamically create m3u playlists before calling them with a URLRequest. This function uses Fzip to unzip any zip files that may have been downloaded and creates a collection of paths to write to the playlist file. The playlist data is stored in memory with each download item until the user decides to add the item.</p>
<blockquote><p>private function generatePlaylist():void {<br />
	var playlistName:String = (tmpFile.name.split(&#8216;.&#8217;))[0]<br />
	var os:String = Capabilities.os.substr(0, 3).toLowerCase();</p>
<p>	var playlistpath:String<br />
	if (os == &#8220;mac&#8221;) {<br />
		if (productType == &#8220;album&#8221;) {<br />
			playlistpath = unzip(File.desktopDirectory.resolvePath(tmpDownloadURL + artistPath + tmpFile.name.replace(&#8220;.tmp&#8221;,&#8221;")).url,File.desktopDirectory.resolvePath(tmpDownloadURL + artistPath).url);<br />
		} else {<br />
			playlistpath = viewableDownloadURL + artistPath + tmpFile.name.replace(&#8220;.tmp&#8221;,&#8221;");<br />
		}<br />
	} else {<br />
		if (productType == &#8220;album&#8221;) {<br />
			playlistpath = unzip(File.desktopDirectory.resolvePath(tmpDownloadURL + artistPath + tmpFile.name.replace(&#8220;.tmp&#8221;,&#8221;")).url,File.desktopDirectory.resolvePath(tmpDownloadURL + artistPath).url);<br />
		} else {<br />
			playlistpath = viewableDownloadURL + artistPath.replace(/\//g, &#8220;\\&#8221;) + tmpFile.name.replace(&#8220;.tmp&#8221;,&#8221;");<br />
		}<br />
	}<br />
	this.Playlist = playlistpath;<br />
}</p></blockquote>
<p>I kind of got into a mini pickle over forward slashes and back slashes that causes this function to be a little more complicated than is probably necessary, but you get the idea. Next it is necessary to create the playlist file and do the URLRequest after a button-click&#8230;</p>
<blockquote><p>public function addToItunes(e:MouseEvent):void {<br />
	var playlistfile:File = File.applicationStorageDirectory.resolvePath(&#8220;playListCache/&#8221; + e.currentTarget.data[6] + &#8220;.m3u&#8221;);<br />
	var playliststream:FileStream = new FileStream();<br />
	var dlManager:DownloadManager;</p>
<p>	for (var i:uint = 0; i < downloadManagerObjects.length; i++) {<br />
		dlManager = DownloadManager(downloadManagerObjects[i]);</p>
<p>		if (e.currentTarget.data[2] == dlManager.FileID) {<br />
			playliststream.open(playlistfile, FileMode.WRITE);<br />
			playliststream.writeUTFBytes(dlManager.Playlist);<br />
			playliststream.close();<br />
		}<br />
	}<br />
	navigateToURL(new URLRequest(playlistfile.url), 'quote');<br />
	stage.nativeWindow.alwaysInFront = true;<br />
	stage.nativeWindow.alwaysInFront = false;<br />
}</p></blockquote>
<p>Notably I do a bit of mucking about with the stage to make sure the application stays in front when launching the URL through the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2009/10/integrating-air-application-with-itunes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom Flex WordPress Frontend</title>
		<link>http://www.imbimp.com/2009/09/custom-flex-wordpress-frontend/</link>
		<comments>http://www.imbimp.com/2009/09/custom-flex-wordpress-frontend/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 12:12:44 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://www.imbimp.com/?p=787</guid>
		<description><![CDATA[Creating a front-end for wordpress is incredibly easy and great for making weird and unnecessary versions of the site with UI swoops and swishes. All the data you need is available in the RSS feed for the site. You could even add a special feed specifically for the purpose of supporting a flash version of [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a front-end for wordpress is incredibly easy and great for making weird and unnecessary versions of the site with UI swoops and swishes.<br />
<span id="more-787"></span><br />
All the data you need is available in the RSS feed for the site. You could even add a special feed specifically for the purpose of supporting a flash version of the site. Just make sure you change the settings to add a good number of full posts to the feed. You can always link back to the site for anything older than that.</p>
<p>The flex version of Imbimp just went live and it tries to improve on the standard Imbimp cardboard interface by keeping everything on one page, where arrows allow the user to browse new content. The widget sidebar is also combined with the navigation. There are no huge benefits to either party (ie me or random imbimp reader) but it&#8217;s a good proof of concept of what can be rustled together using Flex in about a day.</p>
<p>Fetching the RSS feed is as easy as calling an httpService&#8230;</p>
<blockquote><p>
result=&#8221;loadWordpressXML(event)&#8221; /&gt;</p></blockquote>
<p>and&#8230;</p>
<blockquote><p>private function loadWordpressXML(evtObj:ResultEvent):void {<br />
var myURLPattern1:RegExp = /content:encoded/g;<br />
var myXMLString:String = evtObj.result.toString().replace(myURLPattern1,  &#8220;content&#8221;);<br />
wordpressXML = XML(myXMLString);<br />
}</p></blockquote>
<p>From here you can then use the XML in whichever way suits your design&#8230; For example, here I am creating the navigation dynamically&#8230;</p>
<blockquote><p>private function generateNavigation():void {<br />
for each (var itemXML:XML in wordpressXML.channel.item) {<br />
var navigationItemHBox:VBox = new VBox;<br />
navigationItemHBox.styleName = &#8220;navigationBackground&#8221;;<br />
navigationItemHBox.width = 280;<br />
navigationItemHBox.height = 37;<br />
var navigationLabel:Label = new Label;<br />
navigationLabel.text = itemXML.title;<br />
navigationLabel.width = 240;<br />
navigationLabel.styleName = &#8220;navigationText&#8221;;<br />
navigationLabel.truncateToFit = true;<br />
navigationLabel.buttonMode = true;<br />
navigationLabel.useHandCursor = true;<br />
navigationLabel.mouseChildren = false;<br />
navigationLabel.data = itemXML.guid;<br />
navigationLabel.addEventListener(MouseEvent.CLICK,selectPost);<br />
navigationItemHBox.addChild(navigationLabel);<br />
navigation.addChild(navigationItemHBox);<br />
}<br />
}</p></blockquote>
<p>The most difficult part was to position the main post elements in the right place before whizzing them into view. There is a little bit of dubious logic required to do that. Look at the attached source for that.</p>
<p>Also given the increased size of the feed &#8211; ie it loads 100 post in one go (not including images) it&#8217;s important to have some kind of preloader in place while things load up.</p>
<p><a href="http://www.imbimp.com/imbimp-flash.zip">Download an earlyish version of the source here</a> to see how I did&#8230;</p>
<p>&#8230;and see the <a href="http://www.imbimp.com/flash/">finished version here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imbimp.com/2009/09/custom-flex-wordpress-frontend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

