<?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>Ciaran's Random Writings</title>
	<atom:link href="http://ciarang.com/feed" rel="self" type="application/rss+xml" />
	<link>http://ciarang.com</link>
	<description>Random things I've written about stuff</description>
	<lastBuildDate>Tue, 09 Mar 2010 22:59:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SlideType Keyboard and Yak Shaving</title>
		<link>http://ciarang.com/posts/slidetype-keyboard-and-yak-shaving</link>
		<comments>http://ciarang.com/posts/slidetype-keyboard-and-yak-shaving#comments</comments>
		<pubDate>Tue, 09 Mar 2010 22:59:15 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=921</guid>
		<description><![CDATA[
Something that was bugging me about Android was the touch screen keyboard. I found it impossible to type anything with acceptable speed or accuracy. Unless you have child-sized fingertips, you&#8217;re relying on the dictionary guessing to figure out what word you mean, which is crap at the best of times, and useless if you&#8217;re not [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ciarang.com/wp-content/uploads/2010/03/slidetype.png" alt="Slidetype Keyboard" title="Slidetype Keyboard" width="200" class="alignright size-full wp-image-922" /></p>
<p>Something that was bugging me about Android was the touch screen keyboard. I found it impossible to type anything with acceptable speed or accuracy. Unless you have child-sized fingertips, you&#8217;re relying on the dictionary guessing to figure out what word you mean, which is crap at the best of times, and useless if you&#8217;re not typing dictionary words. A side issue &#8211; I&#8217;ve noticed that if you *do* have child-sized fingers, it&#8217;s hard to get the touch screen to register at all, when you want it to. I don&#8217;t have child-sized fingers, of course, but my children do. When they want to press things, they have to hold their finger on the screen for a while, and sometimes it registers, sometimes it doesn&#8217;t. On the other hand, if they approach from behind and stab at the screen while you&#8217;re in the middle of doing something, it invariably registers straight away.</p>
<p>Anyway, before I got side-tracked by children&#8217;s fingers, I was going to say: But then I discovered the <a href="http://slidetype.blogspot.com/">SlideType Keyboard</a>!</p>
<p><span id="more-921"></span></p>
<p>The way this works (see the screenshot) is that pressing the buttons gives you the numbers, while pressing and sliding a short distance in the appropriate direction gives you the letters. Pressing Alt switches you to and from a second layout with symbols instead of letters. Additionally, you can &#8216;long-press&#8217; a letter key to get a pop-up menu of accented versions of those letters. This is a really good idea, and I found I could type reasonably quickly with it straight away, and with perfect accuracy. The one thing lacking is the ability to customise the layout. In particular, I didn&#8217;t want to have to switch to the symbol layout and back just to get an apostrophe. This is simple requirement was where the <a href="http://www.catb.org/~esr/jargon/html/Y/yak-shaving.html">yak shaving</a> started&#8230;</p>
<p>Getting the <a href="http://code.google.com/p/slidetypekeyboard/source/checkout">source code</a> was easy enough. Setting up Eclipse and the Android SDK was painful, but no big deal. Unfortunately though, I don&#8217;t get on with IDEs in general, and particularly not Eclipse. Although I got the minor changes I wanted done in 5 minutes, I spent the next 55 wrestling with bugs in Eclipse before I realised the error of my ways.</p>
<p>At this point, I ditched Eclipse and used <a href="http://ant.apache.org/">Ant</a> to build it instead. This was much better, and now I could easily build my modified keyboard application and run it in the emulator. To run it on a real device though, the package needs signing. After more messing about (generate key, sign package, &#8216;zipalign&#8217; package), I had that side of things sorted out and had something I could, in theory, install on my phone.</p>
<p>The sensible way to do this is using &#8216;adb&#8217;, the Android Debug Bridge. In theory, you plug the phone into the USB port, type &#8216;adb install mypackage.apk&#8217; and you&#8217;re done. In practice, it didn&#8217;t work due to various bugs and incompatibilities. For reference, using Karmic and a Samsung device, you have to do the following:</a></p>
<ol>
<li>Create <i>/etc/udev/rules.d/99-android.rules</i>, with a+rx permissions, with the following line in it: <i>SUBSYSTEM==&quot;usb&quot;, ATTRS{idVendor}==&quot;04e8&quot;, SYMLINK+=&quot;android_adb&quot;, MODE=&#8221;0666&#8243;</i>.</li>
<li>Restart udev &#8211; <i>sudo service restart udev</i></li>
<li>Build a non-broken version of adb &#8211; see <a href="http://code.google.com/p/android/issues/detail?id=5027">the bug</a></li>
</ol>
<p>Note that if the device is not a Samsung, you need to change the 04e8 to the appropriate vendor ID, which you can see as the first 4 digits of the device ID if you run <i>lsusb</i> with the device plugged in. You probably also don&#8217;t need the adb bug fix in that case.</p>
<p>Finally, two hours later, I have quote and an apostrophe on the &#8216;1&#8242; button on the keyboard. I don&#8217;t know many year&#8217;s worth of typing I&#8217;ll have to do on it for the time saved to come close to those two hours, but at least I now have a decent Android development environment set up.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/slidetype-keyboard-and-yak-shaving/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Android FTP Server</title>
		<link>http://ciarang.com/posts/android-ftp-server</link>
		<comments>http://ciarang.com/posts/android-ftp-server#comments</comments>
		<pubDate>Thu, 04 Mar 2010 09:34:29 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=914</guid>
		<description><![CDATA[Stuart Langridge passed on a great idea that hadn&#8217;t occurred to me &#8211; running an FTP server on an Android phone. Although my i7500 is pretty much permanently connected via USB when I&#8217;m in the house, on account of needing to be sure the battery will be charged when I leave the house, I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kryogenix.org/days/2010/03/03/browsing-my-android-phone-over-wifi-at-home">Stuart Langridge</a> passed on a great idea that hadn&#8217;t occurred to me &#8211; running an FTP server on an Android phone. Although my i7500 is pretty much permanently connected via USB when I&#8217;m in the house, on account of needing to be sure the battery will be charged when I leave the house, I don&#8217;t particularly want to have to mount the USB drive and manually transfer things. Apart from requiring ME to do the work, which defeats the whole object of machines, the computer I connect it to isn&#8217;t necessarily the one I want to transfer files to/from. Also, a card can only be mounted to one device at once, so by mounting it to the remote computer, you snatch it away from the Android device, which isn&#8217;t always ideal.</p>
<p>Stuart tracked down an Android application called <a href="http://www.cyrket.com/p/android/com.bw.onair/">On Air</a>, which he seems mostly happy with. I gave it a quick whirl, and didn&#8217;t like it at all. Clearly we&#8217;re all different. What didn&#8217;t I like?</p>
<p><span id="more-914"></span></p>
<ul>
<li>It generates a random &#8216;password&#8217; (actually a 4-digit number) every time you run it. This makes automating anything impossible.</li>
<li>The user interface. It&#8217;s horrible. To me, that is. I guess some people like a great big arty fart drawing of a button the size of the screen, with the actually user interface relegated to a tiny dot in the corner. Usable software trumps software that (to some) looks nice. Especially when the giant button picture is taking up storage space, which is not infinite.</li>
<li>You can only get to /sdcard, not the rest of the filesystem.</li>
<li>It&#8217;s closed source. All my gripes, and Stuart&#8217;s minor ones, are simple five minute fixes. But not if the developer deliberately makes it impossible. Very annoying.</li>
</ul>
<p>A bit of a washout then? No &#8211; the gem was the idea, not the software, and I found something much better. <a href="http://code.google.com/p/swiftp/">SwiFTP</a> is GPL licensed, already includes all the required functionality that On Air was lacking, and has a sane user interface. Clearly the developer spent his &#8216;drawing a great big stupid button&#8217; time on useful things instead.</p>
<p>A few things I will be using this for:</p>
<ul>
<li>Automatically transferring data to the phone from a queue &#8211; e.g. the latest <a href="http://ratholeradio.org/">Rathole Radio</a>, for listening to in the car.</li>
<li>Automatically backing up data from the phone.</li>
<li>Automatically retrieving specific things, e.g. GPS tracks, photos, and putting them in the appropriate database.</li>
<li>All kinds of other geeky and anal things beginning with the word &#8216;automatically&#8217; that I haven&#8217;t thought of yet.
</ul>
<p>So, thanks to Stuart for sharing the idea, and thanks to Dave Revell for sharing the software.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/android-ftp-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Communicating With The Young</title>
		<link>http://ciarang.com/posts/communicating-with-the-young</link>
		<comments>http://ciarang.com/posts/communicating-with-the-young#comments</comments>
		<pubDate>Mon, 01 Mar 2010 23:41:02 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=897</guid>
		<description><![CDATA[
Even at the best of times, there&#8217;s nothing more embarrassing than a politician trying to &#8220;communicate with the young&#8221;. But Ed Balls managed to take this one step further by engaging a bunch of manufactured gangsters to spearhead a &#8216;beat cyber-bullying&#8217; campaign, as depicted in the artist&#8217;s impression opposite. The fake hoodlum standing alongside bully-boy [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/dcsfgovuk/4098220676"><img src="http://ciarang.com/wp-content/uploads/2010/03/monkeyballs.png" alt="Ed Balls and a miniature gangster" title="Artist&#039;s Impression" width="262" height="330" class="alignright size-full wp-image-898" /></a></p>
<p>Even at the best of times, there&#8217;s nothing more embarrassing than a politician trying to &#8220;communicate with the young&#8221;. But <a href="http://www.edballs.co.uk/">Ed Balls</a> managed to take this one step further by engaging a bunch of manufactured gangsters to spearhead a &#8216;beat cyber-bullying&#8217; campaign, as depicted in the artist&#8217;s impression opposite. The fake hoodlum standing alongside <a href="http://www.telegraph.co.uk/education/6374776/Ed-Balls-branded-a-bully-by-MP.html">bully-boy Balls</a> is Dappy, of N-Dubz, who shortly afterwards <a href="http://news.bbc.co.uk/1/hi/8461267.stm">stole the mobile number</a> of a Radio 1 listener who sent in a less than complimentary message about him, and used it to harass her, culminating in sending her a death threat. You couldn&#8217;t make this stuff up.</p>
<p>Behind the farce though, lurk more serious problems. How did we reach this sorry state where, in order to try and convince school children to stop bullying each other, it seems like a good idea to enlist the help of dubious role models who make a living pretending to be (or in this case actually being) illiterate thugs?</p>
<p><span id="more-897"></span></p>
<p>Balls, in his role as Secretary of State for Children, Schools and Families, presides over the state machinery that&#8217;s entrusted by most (and imposed by force on others, if he gets his way) with the education of their children. This is carried out in institutions (that&#8217;s the schools part) that tend to breed a culture bullying and violence &#8211; hence the need for this kind of campaign, and for <a href="http://news.bbc.co.uk/1/hi/education/7198633.stm">metal detectors</a>. Children are sectioned off into groups, all the same age, and left to formulate their own social structure, culture and rules, Lord of the Flies style, while lone adults known as teachers attempt to impose order &#8211; a task made more difficult as Ed and co relentlessly continue to turn the teaching profession into a job of administering tests, ticking boxes and imparting snippets of politically correct knowledge meticulously detailed by Westminster bureaucrats. Any other adults are suspected paedophiles, only allowed within a mile of children if armed with a &#8220;CRB check&#8221; &#8211; proof they haven&#8217;t been caught yet, and a nice little money-spinner for various parties too.</p>
<p>In the meantime, ever-younger children are force-fed sex, violence and &#8220;gangsters are cool&#8221; by the media and the music industry, and while the government Ed is a prominent member of meets the demands of this industry by imposing <a href="http://onlinejournalismblog.com/2010/03/01/how-do-i-hate-thee-digital-economy-bill-let-me-count-the-ways/">ill-conceived legislation</a> to prop up it&#8217;s failing 20th century business model, Ed himself acknowledges the failure of the whole system by standing there next to one of these self-styled gangsters in a desperate and doomed attempt to get a message across to the inmates of his failing schools.</p>
<p>So there&#8217;s the schools part. What about children and families? Hang on a minute, aren&#8217;t they the same thing &#8211; aren&#8217;t children part of families? You might think so, but Balls is very keen of late on positioning himself as an arbitrator between parents and their children, as if he knows best and has some kind of right to say so. Phrases like &#8220;striking a balance between the rights of parents and the rights of children&#8221; crop up frequently in the rhetoric of Ed and his cronies. What? But in Ed&#8217;s world, families are not to be trusted with their children &#8211; they need to be monitored and inspected to be sure they&#8217;re not beating and starving them, or worse still teaching them things not in keeping with the politically-motivated dumbed-down drivel proscribed by the DCSF. Do you think it&#8217;s an accident that Schools comes in between Children and Families in the department&#8217;s title? I&#8217;m not so sure.</p>
<p>The modus operandi is the same as what we&#8217;re seeing with the dubious spectre of terrorism that seems to have us cowering, snivelling and slipping further into a police state for our own protection. In the past, when there was a real threat in the form of the IRA, this kind of thing would have properly been seen as giving in to the terrorists, letting them win. But not when it suits the agenda of a government obsessed with controlling everything and everyone. Likewise with children, one-off incidents are whipped up into a media frenzy and <a href="http://blogs.telegraph.co.uk/news/geraldwarner/100027537/totalitarian-propagandists-exploit-khyra-ishaq-case-to-discredit-homeschooling/">used to justify all manner of state intrusion</a> where it doesn&#8217;t belong, all in the name of protection.</p>
<p>I think the Dappygate fiasco perfectly sums up this government and the nasty culture they&#8217;ve nurtured &#8211; characterised by bullying and incompetence, and like the majority of people in this country I can&#8217;t wait to see the back of them.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/communicating-with-the-young/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Exercise Regime</title>
		<link>http://ciarang.com/posts/new-exercise-regime</link>
		<comments>http://ciarang.com/posts/new-exercise-regime#comments</comments>
		<pubDate>Thu, 25 Feb 2010 17:55:03 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=887</guid>
		<description><![CDATA[I&#8217;ve decided I&#8217;m not getting enough exercise. This wasn&#8217;t a problem last summer, when was easy to finish work, eat, get the children off to bed and then take the dog for a long walk and still have daylight to spare. It got slightly harder in autumn, with one particularly memorable walk ending up with [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided I&#8217;m not getting enough exercise. This wasn&#8217;t a problem last summer, when was easy to finish work, eat, get the children off to bed and then take the dog for a long walk and still have daylight to spare. It got slightly harder in autumn, with one particularly memorable walk ending up with me stuck in the dark in the middle of some pitch black woods on account of having to go off-piste to avoid some cows that took exception to the dog.</p>
<p><span id="more-887"></span></p>
<p>In winter, walks in daylight seemed impossible, what with it getting dark mid-afternoon. But that&#8217;s ridiculous, I realised. The vast majority of the time I work from home, so it should be no problem to get out in daylight. On the other hand, the only real downside of working from home is that even though you tend to start earlier and finish later than the office-folk, they still tend to assume you&#8217;re sitting there all that time. Even putting the computer aside for lunch can mean a stream of irate messages when you return.</p>
<p>I think you probably make these expectations yourself though. I rarely do actually put the computer aside for lunch, preferring to drop crumbs in the keyboard instead, so I suppose it&#8217;s reasonable to be surprised when someone who&#8217;s pretty much always there is not there. However, with that in mind I&#8217;m going to make a new expectation which is that I&#8217;ll be taking a long walk, along with my trusty hound dog, in the middle of the day from now on. (Albeit with telephone, email and instant messaging in my pocket).</p>
<p>Of course, it&#8217;s easy to say you&#8217;re going to do something every day &#8211; harder to actually keep doing it. One really busy day leads into a really busy week and before you know it you&#8217;ve forgotten about the whole thing. So I decided to keep track of the walks on here, like this: <a href="http://ciarang.com/wiki/page/Walk_WoodHallDrive">today</a> and <a href="http://ciarang.com/wiki/page/Walk_WoodsNearWothersome">yesterday</a>. Will that help, or is it just an excuse to play with technology? Only time will tell.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/new-exercise-regime/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Complaining to the BBC</title>
		<link>http://ciarang.com/posts/complaining-to-the-bbc</link>
		<comments>http://ciarang.com/posts/complaining-to-the-bbc#comments</comments>
		<pubDate>Thu, 25 Feb 2010 15:39:31 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=882</guid>
		<description><![CDATA[You know you&#8217;re getting old when you start complaining to the BBC about things. I&#8217;d like to think I&#8217;m not getting that old yet, but even so, this dreadful article made me do this:


I wish to make a formal complaint about this article regarding the tragic death of Khyra Ishaq.
Despite the fact that Ishaq was [...]]]></description>
			<content:encoded><![CDATA[<p>You know you&#8217;re getting old when you start complaining to the BBC about things. I&#8217;d like to think I&#8217;m not getting that old yet, but even so, <a href="http://news.bbc.co.uk/1/hi/education/8532779.stm">this dreadful article</a> made me do this:</p>
<p><span id="more-882"></span></p>
<blockquote><p>
I wish to make a formal complaint about this article regarding the tragic death of Khyra Ishaq.</p>
<p>Despite the fact that Ishaq was NOT electively home educated, but simply removed from school (technically a truant) for the vast majority of the period in question, you have for some reason chosen to devote a large portion of the article to providing a platform for the discredited Graham Badman to attempt to link this case to his shoddy review of home education.</p>
<p>Home education is entirely irrelevant to this case. The measures the Government hopes to put in place regarding home education following Badman&#8217;s recommendations would not have affected the outcome here. You say in the article that Badman says &#8220;children could still be &#8216;hidden&#8217; from the system. &#8221; The children involved in this case, the majority of whom were attending school anyway, were not hidden from the system at all. They were known to be at risk by several parties, all of whom failed to act.</p>
<p>By allowing Graham Badman (and indirectly the Government) to use this tragic case to make unrelated points about legislation which is currently being fiercely contested in parliament, you have shown the BBC, or at least the writer of the piece, to be biased and not impartial.</p>
<p>In relation to this, I specifically draw your attention to section 5.13 of the broadcasting code, which reads &#8220;Broadcasters should not give undue prominence to the views and opinions of particular persons or bodies on matters of political or industrial controversy and matters relating to current public policy in all the programmes included in any service (listed above) taken as a whole.&#8221;</p>
<p>I suggest that this is exactly what has happened here.
</p></blockquote>
<p><b>Update:</b> For some real insight into this issue, try reading <a href="http://blogs.telegraph.co.uk/news/geraldwarner/100027537/totalitarian-propagandists-exploit-khyra-ishaq-case-to-discredit-homeschooling/">Gerald Warner</a> or <a href="http://www.renegadeparent.net/post/Khyra-Ishaq-my-own-thoughts.aspx#top">Renegade Parent</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/complaining-to-the-bbc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook, XMPP and a privacy leak</title>
		<link>http://ciarang.com/posts/facebook-xmpp-and-a-privacy-leak</link>
		<comments>http://ciarang.com/posts/facebook-xmpp-and-a-privacy-leak#comments</comments>
		<pubDate>Thu, 11 Feb 2010 21:35:10 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[XMPP]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=873</guid>
		<description><![CDATA[It&#8217;s been in the works a long time, but Facebook have finally switched on their XMPP functionality. Suddenly something like 400m users inside the Facebook walled garden are contactable from the outside world. I don&#8217;t know if this makes it the largest single deployment of XMPP &#8211; Google may be in a position to argue [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been in the works a long time, but Facebook have finally switched on their XMPP functionality. Suddenly something like 400m users inside the Facebook walled garden are contactable from the outside world. I don&#8217;t know if this makes it the largest single deployment of XMPP &#8211; Google may be in a position to argue there, although I&#8217;ve sometimes been inclined to call their implementation almost-but-not-quite-XMPP.
<p><span id="more-873"></span></p>
<p>Connecting to Facebook&#8217;s server is as simple as adding a new account in your favourite client, with chat.facebook.com as the server and your Facebook username as the user. Obviously then, they&#8217;re only contactable from the outside world by people who have an account within the walled garden already, but it&#8217;s a start. Anyway, it&#8217;s handy for people like me who have an account there but, for reasons of taste, common sense, downright dislike of having adverts stuck in their face, etc., don&#8217;t ever log in to it.</p>
<p>My first impressions are that their implementation is solid and well thought out. This is to be expected &#8211; despite any other criticisms I might have, Facebook have always struck me as a very technically capable organisation. Only one small problem is apparent to me so far, and it&#8217;s this: Say Bob is on the Facebook web site and Alice is using her XMPP client. Bob is browsing through the messages on the &#8216;I Dress Up As A Goat and Eat My Wife&#8217;s Underwear&#8217; page, something he does regularly but (uncharacteristically, for a Facebook user) doesn&#8217;t want to tell the world about. At this point, Alice uses XMPP to send Bob a link to something on her web site. Bob clicks the link, and blam &#8211; his goat/underwear fetish is revealed in Alice&#8217;s server logs as the HTTP Referrer.</p>
<p>While I&#8217;m thinking of Facebook, something I&#8217;ve mentioned elsewhere but is worth repeating, is in relation to <a href="http://www.dailymail.co.uk/news/article-1244351/Police-probe-baby-cigarette-photo-posted-Facebook.html">this story</a>. Read the story, then look at the two images &#8211; in particular the copyright notice on those images. Do Facebook really claim copyright on those images, or have the Daily Mail got it wrong? Either way, it&#8217;s definitely something that should be making you go hmmmmm.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/facebook-xmpp-and-a-privacy-leak/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lord of Ignorance?</title>
		<link>http://ciarang.com/posts/lord-of-ignorance</link>
		<comments>http://ciarang.com/posts/lord-of-ignorance#comments</comments>
		<pubDate>Wed, 10 Feb 2010 18:19:15 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Education]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=867</guid>
		<description><![CDATA[It&#8217;s understandable, I suppose, for someone who&#8217;s never given home education much thought to bring up the old chestnut of &#8217;socialisation&#8217;. Although it&#8217;s a ridiculous suggestion in reality, you could forgive someone for having the idea that home educated children spend all day at home in a classroom-style environment, the only difference being nobody else [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s understandable, I suppose, for someone who&#8217;s never given home education much thought to bring up the old chestnut of &#8217;socialisation&#8217;. Although it&#8217;s a ridiculous suggestion in reality, you could forgive someone for having the idea that home educated children spend all day at home in a classroom-style environment, the only difference being nobody else is there. Nothing could be further from the reality, of course. Home educated children have far more opportunity for socialisation (and in a far more appropriate context), as well as the other activities she claims they are missing out on.</p>
<p>But what if that someone is a member of the House of Lords, <a href="http://lordsoftheblog.net/2010/02/08/schoolgirls/">commenting</a> in public on an issue she is shortly to be charged with scrutinising legislation for? In that case it&#8217;s no longer forgiveable, it&#8217;s a shameful display of downright ignorance.</p>
<p>The comments on <a href="http://lordsoftheblog.net/2010/02/08/schoolgirls/">that post</a> do a fine job of rebutting Baroness Deech&#8217;s ill-informed assumptions, so I won&#8217;t waste my time doing that. One thing did amuse me though. She made these comments in the context of talking about a visit to a &#8220;Girls&#8217; School&#8221;. The idea that an appropriate way to gain the social skills needed for the real world would be spending all day in the company of only children of the exact same age, while being told to sit down and shut up, is questionable enough in itself. When you also add the &#8216;only children of the same gender&#8217; restriction it becomes totally preposterous.</p>
<p>I&#8217;m thankful Baroness Deech will not be descending on my children to lecture them on how great the Lords are, particularly the &#8220;expertise&#8221; part. Perhaps though, she was not referring to herself when she talked of expertise, because there are Lords who make the effort to understand before they speak. Just not this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/lord-of-ignorance/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>More Books</title>
		<link>http://ciarang.com/posts/more-books</link>
		<comments>http://ciarang.com/posts/more-books#comments</comments>
		<pubDate>Mon, 08 Feb 2010 20:31:51 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Books]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=783</guid>
		<description><![CDATA[
This is the third list of books I&#8217;ve been reading. (One and two). I&#8217;m not sure what made me start doing this. Even writing a couple of sometimes sarcastic comments about each book can be hard work. It&#8217;s worth doing though, I reckon. To be accurate, the first two of these should have really been [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ciarang.com/gallery/general/booksfeb2010.jpg"><img class="ZenphotoPress_thumb ZenphotoPress_right " alt="Some books" title="Some books" src="http://ciarang.com/gallery/zp-core/i.php?a=general&amp;i=booksfeb2010.jpg&amp;w=200&amp;h=" style="float:right; " /></a></p>
<p>This is the third list of books I&#8217;ve been reading. (<a href="http://ciarang.com/posts/the-year-in-fiction">One</a> and <a href="http://ciarang.com/posts/fiction-the-next-batch">two</a>). I&#8217;m not sure what made me start doing this. Even writing a couple of sometimes sarcastic comments about each book can be hard work. It&#8217;s worth doing though, I reckon. To be accurate, the first two of these should have really been included in the last batch, but I forgot about them so they&#8217;re here instead. Anyway, without any further ado, here is the list:</p>
<p><span id="more-783"></span></p>
<p><b>Victory &#8211; Joseph Conrad</b>: I really enjoyed this, particularly all the very interesting and utterly dislikeable characters. I&#8217;ll definitely be reading more of Joseph Conrad&#8217;s books.</p>
<p><b>Time and Tide &#8211; Edna O&#8217;Brian</b>: I remember the quality of this being a refreshing change after whichever crap I&#8217;d read before it, but for some reason by about half way through I&#8217;d lost track of who was who and what was supposed to be going on, so I cast it aside. Probably my fault, not the book&#8217;s.</p>
<p><b>Angels and Insects &#8211; A. S. Byatt</b>: Two novellas in one book. The first, Morpho Eugenia, is superb. The second, The Conjugal Agent, has it&#8217;s moments, but is ultimately pretty tedious.</a></p>
<p><b>Doors Open &#8211; Ian Rankin</b>: I bought this at the supermarket because the supply of books of unknown origin lying around the house had run out. I tend to like Ian Rankin&#8217;s stuff, and also everything else Morrison&#8217;s had to offer looked absolutely awful. Literary masterpiece, it was not. Good read and entertaining, it was.</p>
<p><b>Consider Phlebas &#8211; Iain M Banks</b>: I bought this one off eBay. I love anything by Iain M Banks, or at least what I&#8217;ve read so far, so obviously I loved this.</p>
<p><b>Matter &#8211; Iain M Banks</b>: I actually bought this one from a real bookshop. It lived up to expectations, which is to say it was just as great as all his other work, except for Look To Windward which is so good it would be nearly impossible to match.</p>
<p><b>Lord Jim &#8211; Joseph Conrad</b>: After enjoying Victory so much, I expected great things of Lord Jim, but I was a bit disappointed with it. Apart from being heavy going, writing an entire lengthy novel in speech marks is a very strange thing to do. I remember several &#8220;someone said that someone said&#8221; kind of situations where it ended up nested three levels deep in the pesky things. As I programmer, I ought to be able to cope with that kind of thing better than most, but I just found it annoying.</p>
<p><b>Heart of Darkness &#8211; Joseph Conrad</b>: Another speech marks extravaganza. This time there was an occasional oasis of non-in-speech-marks narrative which, although it usually lasted only a sentence or two, was a blessed relief. That aside, I found the whole thing rather vague and tedious, despite Conrad&#8217;s excellent writing.</p>
<p><b>Tom Hodgkinson &#8211; How To Be Idle</b>: There&#8217;s a lot I could have said about this, but I decided to stay in bed an for extra couple of hours and ponder the patterns on the ceiling instead.</p>
<p><b>Sleepers of Mars &#8211; John Wyndham</b>: Five stories by John Wyndham. Some better than others. A recurring theme in his work is that some new technology can be invented, but then the inventor destroy their work (or someone else can) and it&#8217;s gone. This is preposterous. Pretty much all new technology is but an incremental improvement on the previous thing. If I &#8216;invent&#8217; something new, then destroy all my work, it makes no difference because umpteen other people will have invented the same thing at the same time, or soon will. This is one of several reasons I dislike the whole idea of patents. Software patents, in particular, are completely ridiculous. This has nothing to do with the book whatsoever though.</p>
<p><b>Permutation City &#8211; Greg Egan</b>: Very refreshing, in fact unprecedented I think, for me to read a book about technology and software where the author actually has a clue what he&#8217;s talking about. An excellent book. <i>(Andy, thanks for the loan &#8211; I&#8217;ve added this to the pile of borrowed books I&#8217;m supposed to be giving back to you!)</i></p>
<p><b>Equinox &#8211; Michael White</b>: This was a great book, and it was also a pleasant surprise to find that Isaac Newton was a major character in it. A surprise because I didn&#8217;t read the back of the book. I never read the back of books &#8211; I think it spoils the story to have it summarised before you&#8217;ve even started. You shouldn&#8217;t have read this really.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/more-books/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Samsung i7500 Galaxy Re-boxing</title>
		<link>http://ciarang.com/posts/galaxy-re-boxing</link>
		<comments>http://ciarang.com/posts/galaxy-re-boxing#comments</comments>
		<pubDate>Tue, 02 Feb 2010 07:58:50 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=842</guid>
		<description><![CDATA[
If you&#8217;re unlucky you&#8217;ll have heard of unboxing videos, where someone laboriously unpacks their latest gadget purchase, appreciatively describing each piece of cardboard and polystyrene in excruciating detail, and videoing the whole thing for the &#8216;benefit&#8217; of the world. Frequently the gadget in question seems to be made by Apple, because who else but a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ciarang.com/gallery/general/technical/i7500rebox.jpg"><img class="ZenphotoPress_thumb ZenphotoPress_right " alt="Samsung i7500 Reboxing" title="Samsung i7500 Reboxing" src="http://ciarang.com/gallery/zp-core/i.php?a=general/technical&amp;i=i7500rebox.jpg&amp;w=200&amp;h=" style="float:right; " /></a></p>
<p>If you&#8217;re unlucky you&#8217;ll have heard of unboxing videos, where someone laboriously unpacks their latest gadget purchase, appreciatively describing each piece of cardboard and polystyrene in excruciating detail, and videoing the whole thing for the &#8216;benefit&#8217; of the world. Frequently the gadget in question seems to be made by Apple, because who else but a purchaser of Apple products would do such a thing? Anyway, not to be outdone, here is my re-boxing post and photograph.</p>
<p><span id="more-842"></span></p>
<p>The star of the show is a Samsung i7500 Galaxy, which I suppose you would describe as an Android-based smartphone. In other words it&#8217;s like an iPhone but better, not least because you can run any software you want on it without having to ask Steve Jobs for permission. Unfortunately, this particular specimen is under the impression that a ghostly hand is pressing the buttons down the right-hand side of the phone at random intervals, especially when it&#8217;s making a noise. This has many annoying side effects, not least that every incoming call gets cut off and sent to voicemail &#8211; fair enough, since that&#8217;s my most common response to an incoming call. I&#8217;d rather have the choice though, so it&#8217;s gone back in the box and O2 are (hopefully) bringing a replacement today.</p>
<p>Apart from this irritating behaviour, first impressions are good. I&#8217;ve had it about a week and the only real complaint I have is the battery life. Poor battery life is a common feature of all these new-fangled phones though, and turning things off when you&#8217;re not using them (especially GPS and background sync) makes things a lot better.</p>
<p>The only other issue is that it ships with Android 1.5, and Samsung are currently saying they won&#8217;t be shipping a 2.0 upgrade for this model. Right now I&#8217;m not that bothered, but I know I will be later. If they stick to that, then like many others I won&#8217;t touch another Samsung product as long as I live. The option is always there to re-flash the whole thing with an unofficial Android 2 build anyway.</p>
<h2>Applications</h2>
<p>All the data I have on the phone is synced online to various places, so replacing it is no great hassle. The only thing I&#8217;ll have to do is reinstall the various applications I&#8217;ve installed so far, a job that will take less than five minutes, especially as I&#8217;ve made this list:</p>
<ul>
<li><b>ConnectBot</b> &#8211; SSH client. Using this with a touchscreen keyboard is sheer hell &#8211; it took me over 5 minutes to type &#8216;tail /var/log/rabbitmq/rabbit.log&#8217;, for example. Handy for emergencies only.</li>
<li><b>GPS Speedometer</b> &#8211; it&#8217;s a speedometer. Not all that useful in itself, but it&#8217;s the only application I&#8217;ve found so far that holds the GPS open permanently. Without it, if you&#8217;re using Google Maps and switch away to another application, you can end up losing the GPS lock and have to wait for it to get it again when you switch back.</li>
<li><b>Compass (Snaptic)</b> &#8211; does what it says on the tin.</li>
<li><b>GPSTest</b> &#8211; good for figuring out what&#8217;s going on with the GPS, what satellites it&#8217;s using, what accuracy you&#8217;re getting, etc. Probably unnecessary, but my 2001-vintage handheld GPS shows all this by default when it&#8217;s powering up, so I feel lost without it.</li>
<li><b>Google Sky Map</b> &#8211; brilliant &#8211; point it at the sky and it tells you what you&#8217;re looking at. I normally use <a href="http://www.stellarium.org/">Stellarium</a> for this, but a PC doesn&#8217;t know which direction you&#8217;re looking, and you have to tell it where you are. Plus, you rarely have one in the pocket of your jeans.</li>
<li><b>Ultimate Stopwatch and Timer</b> &#8211; everyone needs a stop watch, don&#8217;t they?</li>
<li><b><a href="http://macno.org/mustard">Mustard</a></b> &#8211; StatusNet-compatible microblogging client.</li>
<li><b>Bubble</b> &#8211; not so many people need a spirit level, but it comes in handy.</li>
<li><b>Barcode Scanner</b> &#8211; I haven&#8217;t (yet) found a genuine use for this, but maybe I will one day.
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/galaxy-re-boxing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python &#8211; Over to the dark side</title>
		<link>http://ciarang.com/posts/python-over-to-the-dark-side</link>
		<comments>http://ciarang.com/posts/python-over-to-the-dark-side#comments</comments>
		<pubDate>Tue, 22 Dec 2009 21:49:40 +0000</pubDate>
		<dc:creator>CiaranG</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ciarang.com/?p=821</guid>
		<description><![CDATA[There are two things I think are just plain wrong. Actually there are millions, but there are two I have in mind right now. The first is spaces instead of tab characters for indenting code. The second also involves spaces &#8211; excessive use of them like 1 + 1 = 2 when 1+1=2 is, to [...]]]></description>
			<content:encoded><![CDATA[<p>There are two things I think are just plain wrong. Actually there are millions, but there are two I have in mind right now. The first is spaces instead of tab characters for indenting code. The second also involves spaces &#8211; excessive use of them like 1 + 1 = 2 when 1+1=2 is, to me, far more sensible. I don&#8217;t want to argue about either of these things, because a) this is a religious matter, i.e. I&#8217;m right and you&#8217;re wrong, and b) there&#8217;s no point, because you win anyway.</p>
<p>Why? Because in the interests of global harmony, code sharing, encouraging of contributions, etc, all my Python projects will now follow the <a href="http://www.python.org/dev/peps/pep-0008/">PEP 8</a> guidelines. This doesn&#8217;t affect my contributions to other projects, since they&#8217;re always in the style required by that project (consistency always trumps religion), but it does mean that others can use and contribute to my stuff more easily, and hopefully in time I&#8217;ll get so used to seeing 1 + 1 = 2 that it won&#8217;t look stupid any more.</p>
<p>So, on the subject of PEP 8, a couple of tips I figured out along the way:</p>
<p><span id="more-821"></span></p>
<h2>Fixing Indentation</h2>
<p>There are a few ways to handle this, but the simplest and most reliable seems to be an example that&#8217;s part of the Python distribution itself. On Debian-based systems, this script is packaged separately in python-examples. Re-indenting a file to PEP 8 standards in that environment can be done like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">python <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>python2.6<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>Tools<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>reindent.py yourfile.py</pre></div></div>

<h2>Checking Code</h2>
<p>There&#8217;s a handy utility, aptly named pep8, for checking code against the PEP 8 guidelines. The simplest way to install it is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">easy_install pep8</pre></div></div>

<p>After that, you can just run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pep8 <span style="color: #000000; font-weight: bold;">*</span>.py</pre></div></div>

<p>to get a list of your crimes against style and readability. Note that, in the current release at least, it doesn&#8217;t seem to do a perfect job. For example, this is flagged as an error:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">    value = func<span style="color: black;">&#40;</span>-x, -y<span style="color: black;">&#41;</span></pre></div></div>

<p>It doesn&#8217;t like that fact that there are no spaces around the unary minus, which I think is wrong. Moreover, it seems to be impossible to write that code in a way that it does like &#8211; if you put spaces, it complains about that instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://ciarang.com/posts/python-over-to-the-dark-side/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
