<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Kyan Blog</title>
    <link>http://blog.kyanmedia.com</link>
    <language>en</language>
    <webMaster>info@kyanmedia.com (Kyanmedia)</webMaster>
    <copyright>Copyright 2007-2009</copyright>
    <ttl>60</ttl>
    <pubDate>Wed, 01 Jul 2009 10:12:00 GMT</pubDate>
    <description />
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/kyanblog" type="application/rss+xml" /><item>
      <title>A plug-in free browsing future?</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/HEtLugg6LfU/</link>
      <pubDate>Wed, 01 Jul 2009 09:21:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/7/1/a_plugin_free_browsing_future/</guid>
      <author>paul@kyanmedia.com (Paul Sturgess)</author>
      <summary />
      <description>&lt;p&gt;There is a vision of the future where browsing the web will no longer require third party plugins for videos and audio playback, that it will be native to the browser. All made possible through the adoption of &lt;span class="caps"&gt;HTML 5&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;Google strongly supports this view and at its&amp;#8217; recent I/O conference it showcased &lt;a href="http://htmlfive.appspot.com/"&gt;numerous demos of html 5&lt;/a&gt; and the capabilities it will bring to modern browsers &amp;#8211; &lt;a href="http://www.webmonkey.com/blog/Google_Throws_Its_Weight_Behind_HTML_5"&gt;Web Monkey has a good write-up.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;One example showed how you could browse &lt;a href="http://www.youtube.com/html5"&gt;YouTube&lt;/a&gt; without the requirement for Adobe Flash Player.&lt;/p&gt;&lt;p&gt;However, this vision will only become a reality if all of the various browser vendors adopt a common audio &amp;#38; video codec and this is where the problem lies.&lt;/p&gt;&lt;p&gt;It had been thought that the open source Ogg Theora codec would be the answer and would be part of the &lt;span class="caps"&gt;HTML 5&lt;/span&gt; specification.&lt;/p&gt;&lt;p&gt;In fact Firefox 3.5 ships with full native support for media playback using the Ogg Theora and Ogg Vorbis codecs. Google Chrome supports Ogg and the H.254 codec.&lt;/p&gt;&lt;p&gt;Other browsers vendors (Such as Apple) prefer the H.264 codec. Yet it requires costly patent licenses that both Mozilla and Opera do not want to pay.&lt;/p&gt;&lt;p&gt;Without getting into the details of the ins and outs of why the various browser vendors prefer specific codecs the bottom line is that no consensus on which codec should be implemented across all browsers has been agreed.&lt;/p&gt;&lt;p&gt;As a result the &lt;a href="http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-June/020620.html"&gt;&lt;span class="caps"&gt;W3C&lt;/span&gt; have updated the draft &lt;span class="caps"&gt;HTML 5&lt;/span&gt; spec to no longer recommend web browsers support audio and video playback using a specific codec&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Going forward the &lt;span class="caps"&gt;W3C&lt;/span&gt; have said that should a single codec emerge as the common codec they will consider updating the specification.&lt;/p&gt;&lt;p&gt;So a plug-in free browsing future hangs in the balance. For now.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/HEtLugg6LfU" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/apple">apple</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/browser">browser</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/codecs">codecs</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/google">google</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/html">html</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/kyan">kyan</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/video">video</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/w3c">w3c</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/youtube">youtube</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/7/1/a_plugin_free_browsing_future/</feedburner:origLink></item>
    <item>
      <title>UX London</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/bzTPzBUS9Pc/</link>
      <pubDate>Thu, 18 Jun 2009 14:51:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/6/18/ux_london_conference/</guid>
      <author>jon@kyanmedia.com (Jon Lamb)</author>
      <summary />
      <description>&lt;p&gt;&lt;img src="http://kyanmedia.net/images/ux_two.jpg" alt="UX London presentation image"&gt;&lt;/p&gt;&lt;p&gt;We ventured into town recently to attend the &amp;#8216;UX London&amp;#8217; user experience event organised by &lt;a href="http://clearleft.com"&gt;Clearleft&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Proceedings started with presentations by some heavyweights of web usability. Notable speakers were &lt;a href="http://www.uie.com/about/"&gt;Jared Spool&lt;/a&gt; on creating an &amp;#8216;intuitive&amp;#8217; website and &lt;a href="http://en.wikipedia.org/wiki/Donald_Norman"&gt;Don Norman&lt;/a&gt; in favour of complexity.&lt;/p&gt;&lt;p&gt;On the second day, I went to a workshop on brainstorming techniques. In response to a fictional brief, our group scribbled ideas onto tons of post-it notes which we stuck to the walls. We then discussed ways to evaluate and organise our concepts using design principles.&lt;/p&gt;&lt;p&gt;Another interesting workshop was held by &lt;a href="http://www.uie.com/about/"&gt;Jared Spool&lt;/a&gt; based around observations from his usability studies. He showed how to direct website visitors to relevant content by ensuring that links contain an information &amp;#8216;scent&amp;#8217;. He was a passionate speaker with strong views that provoked plenty of discussion amongst ourselves afterwards.&lt;/p&gt;&lt;p&gt;One of the best aspects of the event was meeting interesting people who&amp;#8217;d come from far and wide. The meet-ups were informal and good for chatting and exchanging ideas over a drink.&lt;/p&gt;&lt;p&gt;Back in the studio, I&amp;#8217;m looking forward to using some techniques I picked up at the event on forthcoming projects.&lt;/p&gt;&lt;p&gt;&lt;img src="http://kyanmedia.net/images/ux_one.jpg" alt="UX London workshop image"&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/bzTPzBUS9Pc" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/clearleft">clearleft</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/event">event</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/usability">usability</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/ux">ux</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/6/18/ux_london_conference/</feedburner:origLink></item>
    <item>
      <title>We love Ruby on Rails</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/5BMkiDXCE2M/</link>
      <pubDate>Fri, 29 May 2009 10:43:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/5/29/we_love_ruby_on_rails/</guid>
      <author>paul@kyanmedia.com (Paul Sturgess)</author>
      <summary />
      <description>&lt;p&gt;We&amp;#8217;ve been using Ruby on Rails to build websites and web applications for a few years now. We might even consider ourselves one of the leading UK Ruby on Rails specialists.&lt;/p&gt;&lt;p&gt;We thought it was about time we wrote about reasons we use it and why it&amp;#8217;s great for our clients.&lt;/p&gt;&lt;p&gt;&lt;a href="http://kyanmedia.com/about/uk_based_ruby_on_rails_development"&gt;Read all about our approach to Ruby on Rails development&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/5BMkiDXCE2M" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/application">application</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/kyan">kyan</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/rails">rails</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/ruby">ruby</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/5/29/we_love_ruby_on_rails/</feedburner:origLink></item>
    <item>
      <title>Random Typography Spot: &lt;br /&gt;No. 03</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/V-AomN-047o/</link>
      <pubDate>Fri, 22 May 2009 12:46:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/5/22/random_typography_spot_no_03/</guid>
      <author>gavin@kyanmedia.com (Gavin Shinfield)</author>
      <summary />
      <description>&lt;p&gt;Oh err&amp;#8230; My local Post Office (Guildford High Street) has come over all touchy-feely. You no longer have to queue up, you take a delicatessan style ticket and relax on the red faux-leather banquette sofas. The good Burghers of Guildford however still prefer to form an orderly line unencumbered by bollards — Gawd bless &amp;#8216;em.&lt;/p&gt;&lt;img src="http://farm3.static.flickr.com/2126/3554188460_254b54ee71.jpg?v=0" /&gt;&lt;img src="http://farm4.static.flickr.com/3393/3554173888_3cc604dff7_o.png" style="padding:20px 0 15px 20px;" /&gt;&lt;p&gt;To go alongside this new customer experience the PO designers have left their traditional typographic shackles behind and opted to use Chevin Bold, a cracking little font from Nick Cooke&amp;#8217;s G-Type collection, available from purveyors of fine typefaces &lt;a href="http://www.fontshop.com/fonts/singles/gtype/chevin_bold/"&gt;Font Shop&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Not sure about the updated queuing system and furniture, but the typography&amp;#8217;s great.&lt;/p&gt;&lt;img src="http://farm3.static.flickr.com/2432/3553349155_636a1ca48a.jpg?v=0" style="margin-bottom:15px;" /&gt;&lt;p&gt;&lt;img src="http://farm4.static.flickr.com/3628/3554156270_8a5d01f5b6.jpg?v=0" /&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/V-AomN-047o" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/design">design</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/font">font</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/typeface">typeface</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/typography">typography</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/5/22/random_typography_spot_no_03/</feedburner:origLink></item>
    <item>
      <title>Lego vs Frank Lloyd Wright</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/du10bAe4Cj4/</link>
      <pubDate>Thu, 21 May 2009 16:24:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/5/21/lego_vs_frank_lloyd_wright/</guid>
      <author>gavin@kyanmedia.com (Gavin Shinfield)</author>
      <summary />
      <description>&lt;p&gt;&lt;img src="http://kyanmedia.net/gavin/lego_frank_lloyd_wright_fw.png"&gt;&lt;p&gt;This has got to be the most inspired lego franchise yet, it just makes so much sense.&lt;/p&gt;&lt;/p&gt;&lt;p&gt;How come no-one had thought of this before? Build the world&amp;#8217;s most architecturally significant structures &amp;mdash; in Lego!&lt;/p&gt;&lt;p&gt;Apparently there will be 6 models in the range, starting with the iconic Falling Water and the Guggenheim Museum. Here&amp;#8217;s a vote for the &lt;a href="http://en.wikipedia.org/wiki/File:Ennis_House_front_view_2005.jpg"&gt;Enis Brown House&lt;/a&gt; AKA Deckard&amp;#8217;s appartment in Bladerunner.&lt;/p&gt;&lt;p&gt;Of course none of this sort of thing is new to afficianados of the original construction toy, Meccano &amp;mdash; who come up with awesome concepts like a scale model of &lt;a href="http://www.selmec.org.uk/gallery_model_view.aspx?ID=E313AC2E-9F66-4EB8-B3AE-26D0AA690F89"&gt;The Forth Railway Bridge&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Now all we need is a Plasticine model of Mies Van Der Rohe&amp;#8217;s &lt;a href="http://en.wikipedia.org/wiki/Barcelona_Pavilion"&gt;Olympic Pavilion&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So, just in case you were all wondering what to get me for Christmas&amp;#8230;&lt;/p&gt;&lt;p&gt;[via &lt;a href="http://www.prairiemod.com/prairiemod/2009/05/frank-lloyd-wright-lego-sets.html"&gt;PrarieMod&lt;/a&gt;]&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/du10bAe4Cj4" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/architecture">architecture</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/lego">lego</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/5/21/lego_vs_frank_lloyd_wright/</feedburner:origLink></item>
    <item>
      <title>Daily brand timeline portrait</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/qZ6aKgdeEGI/</link>
      <pubDate>Thu, 21 May 2009 12:34:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/5/21/daily_brand_timeline_portrait/</guid>
      <author>piers@kyanmedia.com (Piers H Palmer)</author>
      <summary />
      <description>&lt;p&gt;I stumbled across a really interesting idea at &lt;a href="http://dearjanesample.wordpress.com/brand-timeline-portraits/"&gt;Dear Jane Sample&lt;/a&gt;, for anyone interested in marketing and the power of brand; documenting your daily interaction with brands via a timeline.&lt;/p&gt;&lt;p&gt;I was so intrigued I decided to give it a go. You can see the results below. I stuck with the brands that were bubbling at the fore-front of my consciousness so it&amp;#8217;s not a completely inclusive list and my online life has been kept stripped down. However an interesting exercise!&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.kyanmedia.net/fatped/brand_timeline.jpg" alt="Image of my brand timeline" style="margin:20px 0;"/&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/qZ6aKgdeEGI" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/brand">brand</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/kyan">kyan</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/marketing">marketing</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/5/21/daily_brand_timeline_portrait/</feedburner:origLink></item>
    <item>
      <title>SEO success</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/pU0xBo5Wm6E/</link>
      <pubDate>Mon, 27 Apr 2009 14:36:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/4/27/seo_success/</guid>
      <author>paul@kyanmedia.com (Paul Sturgess)</author>
      <summary />
      <description>&lt;p&gt;Our article about optimising websites for search engines has now achieved number one status in Google for the term &amp;#8220;Number one in Google&amp;#8221; (&lt;a href="http://i40.tinypic.com/300qh5z.jpg"&gt;View screenshot&lt;/a&gt;).&lt;/p&gt;&lt;p&gt;&lt;a href="http://blog.kyanmedia.com/archives/2009/2/25/number_one_in_google/"&gt;Read all about our &lt;span class="caps"&gt;SEO&lt;/span&gt; approach&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/pU0xBo5Wm6E" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/google">google</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/kyan">kyan</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/search">search</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/seo">seo</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/4/27/seo_success/</feedburner:origLink></item>
    <item>
      <title>The Flip Mino</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/Qr_0fr4qWI0/</link>
      <pubDate>Tue, 07 Apr 2009 15:46:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/4/7/the_flip_mino/</guid>
      <author>paul@kyanmedia.com (Paul Sturgess)</author>
      <summary />
      <description>&lt;p&gt;Time for another random gadget review, the &lt;a href="http://www.flipvideo.co.uk/"&gt;flip mino&lt;/a&gt;, it&amp;#8217;s a tiny video camera and that&amp;#8217;s it and that&amp;#8217;s the beauty of it.&lt;/p&gt;&lt;p&gt;&lt;img src="http://i39.tinypic.com/eq738.jpg" alt="Image of the flip mino" style="margin:20px 0;" /&gt;&lt;/p&gt;&lt;p&gt;It fires up in seconds, you press the big red button to start recording and press it again to stop. So simple, so good. It&amp;#8217;s light and will easily fit in your pocket.&lt;/p&gt;&lt;p&gt;You can&amp;#8217;t replace the storage, it&amp;#8217;s built in. You can&amp;#8217;t adjust any recording settings like white-balance, contrast etc. You can only connect &amp;amp; charge via usb &amp;#8211; but that means no external cables are required.&lt;/p&gt;&lt;p&gt;There are plenty of reviews out there from people who point to their digital cameras and mobile phones that already have video recording functionality. But they&amp;#8217;re missing the point, try giving your phone or point &amp;#38; shoot to your tech illiterate friend and see if they can record video with it&amp;#8230;&lt;/p&gt;&lt;p&gt;Kyan has recently invested in the brand new HD version so expect a Vimeo (or another video site) channel to spark into life in the near future featuring our shenanigans.&lt;/p&gt;&lt;p&gt;This is the epitome of a feature-less product that does one thing and it does it really well.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/Qr_0fr4qWI0" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/camera">camera</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/flip">flip</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/mino">mino</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/video">video</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/vimeo">vimeo</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/4/7/the_flip_mino/</feedburner:origLink></item>
    <item>
      <title>Very late to the party</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/F_C6drCGZns/</link>
      <pubDate>Tue, 07 Apr 2009 12:20:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/4/7/very_late_to_the_party/</guid>
      <author>steven@kyanmedia.com (Steven Wake)</author>
      <summary>Do I need Twitter?</summary>
      <description>&lt;p&gt;Of late I&amp;#8217;ve been missing lots of comms from all over.&lt;/p&gt;&lt;p&gt;Eighteen months ago I signed up to &lt;a href="http://twitter.com/professorwake"&gt;Twitter&lt;/a&gt; to see what all the fuss was about &amp;#8211; I very quickly decided I hated it. &amp;#8216;I am doing this&amp;#8217;, &amp;#8216;I have just done that&amp;#8217; &amp;#8211; why do I need to know this? Another form of communication that I had to keep tabs on. I already have IM, email and a mobile phone why would I choose to run another application to monitor something that I&amp;#8217;m not interested in? &lt;span class="caps"&gt;BAH&lt;/span&gt;!&lt;/p&gt;&lt;p&gt;Whether I like it or not Twitter is becoming more and more important. All manner of individuals and organizations are now lending us a small window into their lives via Twitter. I am now seeing it everywhere. Acquisition rumors are rampant, the consensus is it is only a matter of time before one of the big boys sweeps in.&lt;/p&gt;&lt;p&gt;So when I received a free Mac app &amp;#8216;&lt;a href="http://thecosmicmachine.com/"&gt;EventBox&lt;/a&gt;&amp;#8217; courtesy of those kind guys at &lt;a href="http://macheist.com"&gt;MacHeist&lt;/a&gt;, I decided to fight against my &lt;a href="http://en.wikipedia.org/wiki/Refusenik"&gt;refusenik&lt;/a&gt;  nature and have embarked on a little experiment.&lt;/p&gt;&lt;p&gt;I will try to keep an open mind, but I would like to know if my first assessment of Twitter were right or not. I will try and tweet regularly for about a week and find out.&lt;/p&gt;&lt;p&gt;I did a little research about available clients, updated my profile a little inspired &lt;a href="http://twitter.com/ormeski"&gt;@ormeski&lt;/a&gt; and &lt;a href="http://twitter.com/mrmatthamm"&gt;@mrmatthamm&lt;/a&gt; and immersed myself in the Twitterverse.&lt;/p&gt;&lt;p&gt;I have installed &lt;a href="http://www.atebits.com/tweetie-iphone/"&gt;Tweetie&lt;/a&gt; on my iPhone and will continue using EventBox for now, unless someone can suggest a better Mac client (the free-er, the better)?&lt;/p&gt;&lt;p&gt;Professor Wake will report back with his findings in another post.&lt;/p&gt;&lt;p&gt;I still refuse to use &lt;a href="http://www.facebook.com/"&gt;Facebook&lt;/a&gt; though.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/F_C6drCGZns" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/iphone">iphone</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/mac">mac</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/refusenik">refusenik</category>
      <category domain="http://blog.kyanmedia.com/archives/tags/twitter">twitter</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/4/7/very_late_to_the_party/</feedburner:origLink></item>
    <item>
      <title>Currency conversion in JS</title>
      <link>http://feedproxy.google.com/~r/kyanblog/~3/2o7f5hRyJAM/</link>
      <pubDate>Fri, 20 Mar 2009 10:34:00 GMT</pubDate>
      <guid isPermaLink="false">http://blog.kyanmedia.com/archives/2009/3/20/converting_currency_to_numbers_and/</guid>
      <author>robin@kyanmedia.com (Robin Whittleton)</author>
      <summary />
      <description>&lt;p&gt;I recently had to make a couple of JavaScript currency conversion functions for a current project, so I thought I’d put them up here.&lt;/p&gt;&lt;p&gt;The project had a requirement for all currency values to be formatted as £xx,xxx.xx (commas to separate thousand blocks, and two digits of precision). The functions we came up with are:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function currency2number(currency) {
	return parseFloat(currency.slice(1).replace(/,/,''),10);
}
function number2currency(number) {
	number = Number(number).toFixed(2).split('.');
	number[0] = number[0].split("").reverse().join("");
	number[0] = number[0].match(/\d{1,3}/g).join(",");
	number[0] = number[0].split("").reverse().join("");
	return '£'+number[0] + '.' + number[1];
}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;code&gt;currency2number&lt;/code&gt; is simple enough – it removes the ‘£’ symbol and commas, and converts it from a string to a float. The only gotcha is passing in 10 as the radix; this prevents leading zeros causing the number to be parsed as octal, an old but recurrent JavaScript problem.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;number2currency&lt;/code&gt; caused me a few more problems, the main one being that adding the comma separators has to start from the decimal point and work backwards. Let’s work through our solution:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;First, take the number, wrap with with a Number object and use the toFixed method to get the correct number of decimal places&lt;/li&gt;
&lt;li&gt;Next, split that number on the decimal place so we can work on the left hand side&lt;/li&gt;
&lt;li&gt;Add the commas. Because we need to start from the right and work backwards it’s easier just to reverse the string and work from the left. Unfortunately Javascript lacks a String.reverse function. Best we can do is Array.reverse, so: split the string into an array, reverse it, rejoin it, find blocks of three numbers and join them with commas, split into an array again, reverse back to normal and rejoin. Phew!&lt;/li&gt;
&lt;li&gt;Finally, simply tack on a £ symbol and join everything together&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So there you go, hope this helps someone. If anyone’s got any better ways of doing this then definitely let us know.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/kyanblog/~4/2o7f5hRyJAM" height="1" width="1"/&gt;</description>
      <category domain="http://blog.kyanmedia.com/archives/tags/javascript">javascript</category>
    <feedburner:origLink>http://blog.kyanmedia.com/archives/2009/3/20/converting_currency_to_numbers_and/</feedburner:origLink></item>
  </channel>
</rss>
