<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
    <channel rdf:about="http://www.severnsolutions.co.uk/twblog/syndicate/rss1.0/">
        <title>Tom Wright's Web Log :: Web Explorations and Voyages of Discovery</title>
        <link>http://www.severnsolutions.co.uk/twblog/syndicate/rss1.0/</link>
        <description>Web Standards, Accessibility, PHP, DOM Scripting and General Peregrinations</description>
        <dc:date>2008-05-01T15:27:15+00:00</dc:date>
        <dc:publisher>Severn Solutions</dc:publisher>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:language>en-gb</dc:language>
        <dc:rights>Copyright 2003 - 2008 Tom Wright</dc:rights>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2008/05/01/osx-come-back-to-me"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2008/04/29/vista-maelstrom"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2008/04/29/back-again"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2007/11/10/ipod-touch-accelerometer"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2007/11/06/world-distance-surfing-record-china-tidal-bore"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/world-record-surfing-distance-1"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/ipod-touch-ebook-reader"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/wifi-music-songs-lost"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/array-merge-assoc"/>
                <rdf:li rdf:resource="http://www.severnsolutions.co.uk/twblog/archive/2007/10/25/leopard-upgrade"/>
            </rdf:Seq>
        </items>
    </channel>
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2008/05/01/osx-come-back-to-me">
        <title>OS X Come Back to Me!</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2008/05/01/osx-come-back-to-me</link>
        <description><![CDATA[<p>Well haven&#039;t really had much time to delve into my newly acquired Vista platform but today with some urgent testing required for a completion the time had come.</p>&#013;<p>Ok I was prepared for the multitude of software bloat I might find on the Acer 5920 when it arrived and actually it wasn&#039;t too bad! Just a case of removing a few irrelevant games, some dodgy looking attempt at <acronym title="Digital Video Disc">DVD</acronym> authoring software and finally making the decision to replace NIS with BitDefender. Actually this was only after, having installed and updated NIS, I discovered when I awoke Aristotle (yes all my platforms are philsophers!)  this afternoon that my 3 month subscription to NIS had expired in 1 day!? All looked a bit time consuming having to deal with support and no way I was restoring this puppy so off it went. Fortunately an uninstall process that was far less painful than I recall encountering with my old Win98 box many years ago - thanks of course to RegSupreme.</p>&#013;<p>Great so I have a secure system, I have removed the unwanted software and killed the odd unwelcome service. Nice sleek, clean Vista platform ready to begin software install for development. No time to deal with all the usual software tools initially as I had to crack straight on with testing. Joining the wireless network was not an issue - although file sharing was (for another post perhaps!). And soon I had the sandbox up for testing in IE7 on Vista. Great! Now time to download the Virtual <acronym title="Personal Computer">PC</acronym> so I can get on with legacy testing&#8230;..&#013;Arrrrrggggghhhh&#8230;&#8230;! Virtual <acronym title="Personal Computer">PC</acronym> doesn&#039;t support Windows Vista Home <strong>PREMIUM</strong>. But I thought Premium means all the <em>bells and whistles</em>. Well according to MicroDollar it clearly doesn&#039;t! In fact it only seems to be a few more quid than Windows Vista Basic!? So what is the actual point of all these different versions. It seems to me I have wound up with Windows Media version and am looking at another hundred quid to get it updated to a version that will allow me to do all those lovely developer like things I like to do with all my <em>philosophers</em>. Nice one MicroDollar! </p>&#013;<p>I thought it would save me time and money getting a laptop with Vista to do M$ testing rather than going down upgrading route on <em>Socrates</em> - my iMac box running Tiger at present. But now I guess not. Painful&#8230; </p>&#013;<p>To be continued I am sure&#8230;</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2008-05-01T15:24:26+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>Operating Systems</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2008/04/29/vista-maelstrom">
        <title>Into The Vista Maelstrom</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2008/04/29/vista-maelstrom</link>
        <description><![CDATA[<p>Nearly three years ago this very week I switched platforms with the acquisition of my <a href="http://www.severnsolutions.co.uk/twblog/archive/2005/05/05/awolexplained" rel="nofollow">first ibook</a>. I have certainly fallen for the Apple candy and a 24&quot; iMac and iPod Touch have been added to the arsenal.&#013;With a final loss of patience in the very old and hacked Dell platform I have been running Windows testing off, and a total lack of time to even contemplate upgrading my principle platform to Leopard for Windows Boot Camp I decided to pick up a budget Acer laptop to fill the gaps. With a few windows-centric jobs looming it will also allow me to tread the shaky path that is Windows Vista for the first time. &#013;While I wait on delivery a bit of preparation has been in order including:</p>&#013;<ul>&#013;<li>Getting my head around Vista&#039;s services thanks to <a href="http://www.blackviper.com/WinVista/servicecfg.htm">Black Viper&#039;s Service Guide</a></li>&#013;<li>Tracking down the <a href="http://service1.symantec.com/SUPPORT/tsgeninfo.nsf/docid/2005033108162039?Open&amp;src=&amp;docid=2004093015165236&amp;nsf=tsgeninfo.nsf&amp;view=docid&amp;dtype=&amp;prod=&amp;ver=&amp;osv=&amp;osv_lvl=" rel="nofollow">Norton Removal Tool</a> since that will be the first thing going.</li>&#013;<li>Verifying the compatibility of old faithful system maintenance tools including <a href="http://www.ccleaner.com/" rel="nofollow">CCleaner</a> and <a href="http://www.macecraft.com/" rel="nofollow">RegSupreme</a></li>&#013;</ul>&#013;<p>The platform will principally be used just for testing so I will also be after Virtual <acronym title="Personal Computer">PC</acronym> and the Windows XP disc image to allow standalone versions of the legacy exploders. Will blog on this in due course&#8230;</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2008-04-29T09:27:50+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>Operating Systems</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2008/04/29/back-again">
        <title>Back Again!?</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2008/04/29/back-again</link>
        <description><![CDATA[<p>Once again apologies for a long spell of absence&#8230;! No excuses. I have been absorbing my time with our beautiful daughter, Olive. It has taken four months but finally we have found a balanced routine. </p>&#013;<p>So, with my first footsteps into Vista looming on the horizon I felt this was a good time to try and return to some informative blogging.</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2008-04-29T09:13:39+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>Blogging</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2007/11/10/ipod-touch-accelerometer">
        <title>iPod Touch Accelerometer Rotation Tips</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2007/11/10/ipod-touch-accelerometer</link>
        <description><![CDATA[<p>There are two things my friends want to do when I flash out my new iPod Touch: pinch zoom and spin that accelerometer into action. Both great features. Especially the latter when rotating into cover flow mode. But more often than not the accelerometer fails to respond to my demonstrations and we are left in expectation of what might happen as the accelermometer does not work.</p>&#013;<p>I was starting to share the feeling of others on the web that this might be a repairable bug until I discovered last night that it is all down to the position I hold the iPod Touch. If the Touch is being held vertically (at right angles to the ground) the accelerometer seems to be flawless in its performance. The problem only arises when the Touch is held horizontal (parallel to the ground) - I assume because the detection mechanism does not work in this plane. Seems to resolve any issues and while I generally prefer to hold it fairly flat in my hand I will be prepared next time a friend asks to see my iPod Touch.</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-10T10:27:50+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>iPod Touch</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2007/11/06/world-distance-surfing-record-china-tidal-bore">
        <title>China Tidal Bore Unofficial World Record Distance Surfing Record</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2007/11/06/world-distance-surfing-record-china-tidal-bore</link>
        <description><![CDATA[<p>Following the early reports of <a href="http://journal.tomwright.me.uk/history/29">the distance surfing world record smashed on the Qiantang Dragon tidal bore in China</a> the news is now officially out in the open. The official press release states that:</p>&#013;<blockquote><p>Following expedition leader Antony <em>Yep</em> Colas first scouting river trip on a jetski, Eduardo Bag&#233; (Brazil) on a longboard and Patrick Audoy (France) on a stand-up board, managed to ride the bore for 1 hour and 10 minutes on a distance assessed at 17.1km.</p></blockquote>&#013;<p>The local papers headlined with <em>foreigners break the law and a surfing world record</em> and went on to report several altercations between the surfers and the local police following complaints from locals but in his press release <em>Yep</em> followed this up:</p>&#013;<blockquote><p>The situation changed when Chinese Authorities started to smell the economical potential of creating a possible surfing show on the river. Law has not changed yet but when surfers got wet again, many helped them to catch up with the bore hitching rides along the riverbanks!</p></blockquote>&#013;<p>While this is unlikely to be accepted as an official world record due to lack of GPS and an official adjudicator to observe that the very strict guidelines were adhered to it is an excellent acheivement and clearly opens up the doors for the Qiantang Dragon to become a new playground for surfers from everywhere! As Yep finished up:</p>&#013;<blockquote><p>Beyond an unofficial record, the main point here is that surfers have been changing Chinese Authorities perception of the recreational use of the river during the bore. If any surfing demonstration should be done for the next Olympics Games in China 2008, there it should happen !</p></blockquote>&#013;<p>I have to say my one disappointment from the news is seeing how dramatically the bore has been effected by the construction of the <a href="http://en.wikipedia.org/wiki/Hangzhou_Bay_Bridge" rel="nofollow">Hangzhou Bay bridge</a> in the estuary - the world&#039;s longest trans-oceanic bridge. Before the turn of the century I made an agreement with my good buddy Steve King to surf all the tidal bores of the world. At the time international bore surfing was in its infancy and since has become the attention of the global surfing industry such that my personal goals have now changed. However while we set our ultimate goal at being the feared and infamous Qiantang Dragon I think on <a href="http://www.surfersvillage.com/surfing/31247/news.htm" rel="nofollow">seeing the photos</a> I feel the goal posts should be moved to the far more impressive and untouched Araguari river which Sergio has surfed at 4 metres plus. </p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-06T10:55:02+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>Surf and Travel</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/world-record-surfing-distance-1">
        <title>New Surfing World Record</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/world-record-surfing-distance-1</link>
        <description><![CDATA[<p>Rumour of another <a href="http://journal.tomwright.me.uk/history/29">distance world record for bore surfing</a> - this time smashing the 10 mile barrier on the Qiantang Dragon in China.</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2007-10-30T16:37:57+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>Surf and Travel</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/ipod-touch-ebook-reader">
        <title>iPod Touch E-book Reader</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/ipod-touch-ebook-reader</link>
        <description><![CDATA[<p><em>No, don&#039;t get excited as this is not a blog about a great new e-book reader application for the iPod Touch post jailbreak. It simply outlines how I organised my e-books on my local network so I could access them efficiently from Safari on the Touch.</em></p>&#013;<p>Currently I have chosen not to jailbreak my iPod Touch since it will invariably lead to far too much time preoccupied with installing and testing 3rd party applications! After all it is an MP3 player not a phone so do I really need all those extra applications? </p>&#013;<p>But the one thing I do <em>really</em> need is an e-book reader and this was one of my main reasons behind investing in an iPod Touch to allow me to read my e-book collection on a more portable device than my iBook. Accessing <acronym title="Portable Document Format">PDF</acronym> files on the Touch is simply a case of visiting the <acronym title="Portable Document Format">PDF</acronym> <acronym title="Uniform Resource Identifier">URI</acronym> in Safari. This is fine for my purposes and the clarity and sharpness of the screen make reading <acronym title="Portable Document Format">PDF</acronym>s very enjoyable. A few important features such as bookmarking are absent but this serves as an adequate stop-gap for me at present. So I just had to find a simple way to access all my <acronym title="Portable Document Format">PDF</acronym> files from my iMac harddrive. Fortunately this wasn&#039;t too hard since I have recently been test driving the excellent <a href="http://mekentosj.com/papers/" rel="nofollow">Papers</a> for archiving all my e-books and journals and have them indexed in a library directory with sub-folders for each year of release.</p>&#013;<p>So, I just needed to configure Apache to access that directory so I could load up my e-books in Safari on my iPod Touch. Since my apache server also serves my sandbox for web development I wanted to keep access to my e-books separate. The normal approach to this would be to create a new <samp>name-based virtual host</samp> and update the machine entries in <samp>NetInfo Manager</samp>. But without jailbreaking my iPod Touch there is no way to override the local <acronym title="Domain Name System">DNS</acronym> (i.e. lack of a <samp>NetInfo Manager</samp> and shell access to <samp>lookupd</samp>).</p>&#013;<p>Instead, the best solution was to enable another port in the apache configuration, and then all requests on this port can redirect to the e-book directory:</p>&#013;<pre><code>&#013;Listen 192.168.1.65:99&#013;</code></pre>&#013;<p>Port 99 seemed like a nice easy number to remember. So after enabling port access in the firewall and a little bit of Apache virtual host configuration later:</p>&#013;<pre><code>&#013;NameVirtualHost *:99&#013;&lt;VirtualHost *:99&gt;&#013;        DocumentRoot /Path-to-Papers-Library&#013;        &lt;Directory /Path-to-Papers-Library&gt;&#013;          Allow from all        &#013;          Options FollowSymLinks Indexes&#013;          IndexOptions +SuppressHTMLPreamble +FancyIndexing +NameWidth=* +SuppressDescription&#013;          IndexIgnore *.papers* Unknown .svn ._* .DS* Spotlight&#013;        &lt;/Directory&gt;&#013;        &#013;&lt;/VirtualHost&gt;&#013;</code></pre>&#013;<p>The virtual host is enabled on port 99 and the root directory for this site will point to the Papers library. I then just used a few rules from the <a href="http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html" rel="nofollow">mod_autoindex module</a> to make the directory index available in a simple to browse layout.</p>&#013;<p><img src="http://www.severnsolutions.co.uk/twblog/photos/ipod-touch-ebook-reader/cef2c_001.jpg" height="308" width="400" alt="Screen capture of the browser window with index of year folders" class="center"/></p>&#013;<p>And there it is. I can now load up Safari on my iPod Touch and browse to <samp>http://192.168.1.65:99</samp> on my local network and have ready access to all my e-books. Of course this requires I am within range of my local network. Taking my e-books away with me would require hosting on a network available outside my <acronym title="local area network">LAN</acronym>.</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2007-10-30T13:43:10+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>Apache, iPod Touch</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/wifi-music-songs-lost">
        <title>Where Have My WiFi Music Store Tunes Gone?</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/wifi-music-songs-lost</link>
        <description><![CDATA[<p><ins datetime="2007-10-31T12:45:00">Total respect to Apple&#039;s iTunes Store support team since in <em>just</em> less than 24 hours since I lost my song and posted this blog they have made the song available to me again via the <samp>Check for purchases</samp> in the <samp>Store</samp> menu. In hindsight I realise that allowing users the ability to download songs multiple times could affect the <acronym title="Digital Rights Management">DRM</acronym> of the files so perhaps it is right that download is one time only. Anyway, not many support teams that I have dealt with that are that efficient! Thankyou.</ins></p>&#013;<p>The iPod Touch is great. The iTunes WiFi music store is great. <strong>But</strong> do not reset your iPod Touch if you have manual syncing and have not manually transferred (is that even possible?) your purchases to your iTunes library!</p>&#013;<p>Yes I have just kissed good bye to my first purchase from the iTunes WiFi store - fortunately only one song. My iTunes library is way too large to utilise automatic syncing with my iPod Touch (as I am sure is the case for most people). But with manual syncing set-up it would appear that any music purchased through the iTunes WiFi store on the iPod Touch is not transferred to the iTunes library automatically. I assume (and hope!) there is a way to drag and drop instead - I cannot try this since there is no way for me to reacquire the song I have lost from my iTunes account. So will have to buy some more music first.</p>&#013;<p>Anyway this is an unfortunate flaw in the iPod Touch integration and will more than likely deter me from using the WiFi store for anything other than just listening to previews of new releases. After all it is just a simple one click <em>Restore</em> to again kiss good bye to all those purchases. </p>&#013;<p>I also think it is wrong that I cannot download the songs I have purchased a second time. It is my account, no-one else has access to it, so how can this breach any legalities (other than affecting the download count at the store - a little bit of code perhaps). It is not often I am disgruntled with Apple but this sucks a little&#8230;</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2007-10-30T13:21:39+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>iPod Touch</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/array-merge-assoc">
        <title>PHP Function: array_merge_assoc</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2007/10/30/array-merge-assoc</link>
        <description><![CDATA[<p>Doing lots of <acronym title="PHP Hypertext Processor">PHP</acronym> coding at the moment to upgrade my code base for a server migration. One routine I regularly run into is merging data from one array into a map of predefined indexes. For example when POST data is submitted by a form a will fill a map with this data using predefined indexes to ensure no unexpected keys are passed in to exploit the application. The normal approach to this being a <samp>foreach</samp> loop through the POST data filling in keys that exist as I go. In streamlining my code to use <acronym title="PHP Hypertext Processor">PHP</acronym>&#039;s inbuilt functions I decided to simplify this to a couple of calls to the array function library as follows:</p>&#013;<pre><code>&#013;function array_merge_assoc($map, $data) {&#013;  $data_clean = array_intersect_key($data, $map);&#013;  return array_merge($map, $data_clean);&#013;}&#013;</code></pre>&#013;<p>The first call to <samp>array_intersect_key</samp> strips any invalid keys from the <var>$data</var> array hence making it safe to then merge the two arrays in the second function call.</p>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2007-10-30T12:07:06+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>PHP</dc:subject>
       
    </item>    
    <item rdf:about="http://www.severnsolutions.co.uk/twblog/archive/2007/10/25/leopard-upgrade">
        <title>Leopard - a beautiful upgrade?</title>
        <link>http://www.severnsolutions.co.uk/twblog/archive/2007/10/25/leopard-upgrade</link>
        <description><![CDATA[<p><a href="http://www.apple.com/macosx/" rel="nofollow">Apple OS X Leopard</a> is coming to a computer near you soon!</p>&#013;<p>Personally I will be jumping on the Leopard train as soon as I have invested in a <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html" rel="nofollow">reliable backup solution</a> to boot my older Tiger off an external drive if I so wish.</p>&#013;<blockquote><p>Finally, a <acronym title="Personal Computer">PC</acronym> Unix that everyone can love. OS X Leopard is a triumph of customer-focused engineering <cite><a href="http://weblog.infoworld.com/yager/archives/2007/10/take_me_home_le.html" rel="nofollow">Apple OS X Leopard: A beautiful upgrade. Tom Yager</a></cite></p></blockquote>&#013;]]></description>
        <dc:format>text/html</dc:format>
        <dc:date>2007-10-25T09:09:39+00:00</dc:date>
        <dc:creator>developer[at]tomwright[dot]me[dot]uk (Tom Wright)</dc:creator>
        <dc:subject>OSX</dc:subject>
       
    </item>    
</rdf:RDF>
