<?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"
	>

<channel>
	<title>Looking Out To Sea</title>
	<atom:link href="http://www.dougalstanton.net/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dougalstanton.net/blog</link>
	<description></description>
	<pubDate>Mon, 15 Feb 2010 18:51:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>I&#8217;ve come to fix the fridge&#8230;</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/02/15/ive-come-to-fix-the-fridge/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/02/15/ive-come-to-fix-the-fridge/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 18:51:57 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Home]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=1013</guid>
		<description><![CDATA[Last week I pulled some butter out of the fridge and thought it felt a bit soft. The temperature display inside the fridge said +5 which is the upper limit for most purposes, so I pressed the &#8220;cooler&#8221; button a couple of times so that it would aim at +2 degrees and forgot about it.

On [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I pulled some butter out of the fridge and thought it felt a bit soft. The temperature display inside the fridge said +5 which is the upper limit for most purposes, so I pressed the &#8220;cooler&#8221; button a couple of times so that it would aim at +2 degrees and forgot about it.</p>

<p>On Friday night it was definitely on +5 and feeling distinctly <em>warm</em>. There wasn&#8217;t much we could do about it at the time. We tried the IT support routine (turn it off, turn it back on again) and went to bed in the hope that things would have stabilised by the next day. On Saturday morning the milk had turned and it was about 6 degrees Celsius inside the fridge. Thankfully the freezer was operating as normal.</p>

<p>I was willing to go delving if need be but I tried doing some research first. The manual was basically useless but it did have the model number writ large so I could search for it.</p>

<p>The ADM6855 is a common fridge/freezer combined unit for fitted kitchens, and it has a design flaw. It&#8217;s a &#8220;parasite&#8221; design, whereby the cooling mechanism works on the freezer and a separate fan extracts cold air to cool the fridge when necessary. This suffers a similar problem to the vacuum cleaners of old &#8212; when the cooling elements get clogged with ice they don&#8217;t allow air to flow and so the fan is sucking on empty. The slow clogging of elements hides what&#8217;s happening until one day your butter&#8217;s all soft because there&#8217;s not enough cool air making it through. I imagine in its final moments the same suction through constricted airways causes the elements to freeze up even faster.</p>

<p>Anyway, that&#8217;s what happens, and that&#8217;s what I had to undo. As I said, it&#8217;s a design flaw so reversing the effect is not as simple as scraping ice off the inside of the freeze box. It&#8217;s not the kind of procedure you&#8217;re expected to perform at home, and there&#8217;s no mention in the user guide. I found some <a href="http://www.kintara.pwp.blueyonder.co.uk/Rob/APM6855/APM6855.htm">great instructions</a> for the process, which basically involved a 48h defrost or some disassembly and hairdryer work on the frozen elements. I chose the latter because I wanted to get our frozen food out and back again before it all wasted.</p>

<p>Well I did the deed and the fridge has been operating at the desired temperature now for two days. We shall have to see how long it takes before this happens again. I don&#8217;t know if there&#8217;s anything in particular we can do to avoid the problem because we don&#8217;t know (1) what causes it; (2) whether it&#8217;s new or recurrent; (3) if it&#8217;s happened before, what date the previous owners dealt with it; and so on. We&#8217;ve been here 18 months now without issue, and I don&#8217;t think the previous owners will have defrosted the freezer just before they left. (Unless the fridge was turned off when we got here? I can&#8217;t remember, but I seem to recall they had left us a bottle of fizz in the fridge as a gift, so it must have been working.) We can&#8217;t even tell how quickly it&#8217;s frosting over again because it&#8217;s so deeply buried in the back of the freezer. I&#8217;m guessing some kind of airflow gauge inside the fridge would be able to tell if the fan was pulling in cool air or just sucking on empty. Next time we&#8217;ll know what to do, anyway.</p>

<p>I should also send an email to the writer of that guide for providing excellent instructions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/02/15/ive-come-to-fix-the-fridge/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Global warming, MMR, and media &#8220;scandals&#8221;</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/02/07/global-warming-mmr-and-media-scandals/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/02/07/global-warming-mmr-and-media-scandals/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 18:03:57 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Bad Science]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=1002</guid>
		<description><![CDATA[It looks like the recent series of non-events relating to climate research and global warming have legitimised/mobilised the denialist factions of the Conservative party:


  Most Conservative MPs, including at least six members of the shadow cabinet, are sceptical about their party&#8217;s continued focus on climate change policies, it has been claimed.
  
  [...]]]></description>
			<content:encoded><![CDATA[<p>It looks like the recent series of non-events relating to climate research and global warming have <a href="http://www.guardian.co.uk/politics/2010/feb/07/climate-scepticism-grows-tories" title="Climate scepticism grows among Tories">legitimised/mobilised the denialist factions of the Conservative party</a>:</p>

<blockquote>
  <p>Most Conservative MPs, including at least six members of the shadow cabinet, are sceptical about their party&#8217;s continued focus on climate change policies, it has been claimed.</p>
  
  <p>The recent furore around &#8220;Climategate&#8221; has hardened the views of Tory MPs, many of whom were already unconvinced by the scientific consensus, and has led to increasing calls for the issue to be pushed down the priority list.</p>
</blockquote>

<p>I&#8217;m beginning to think that Climategate should be re-labelled &#8220;the media&#8217;s global warming hoax&#8221; because I&#8217;ve yet to see any article about the story that even approximately tells what we know. Every story serves to reiterate the general sense that there was falsification, manipulation of data or deletion of data series or correspondence &#8212; none of which is true.</p>

<p>As time goes on each &#8220;smoking gun&#8221; gets put into clear context and shown to be nothing of the sort, but the aura of suspicion &#8212; all these hundreds of stories about dishonesty &#8212; doesn&#8217;t disappear. It&#8217;s just now part of common knowledge that the scientists at the University of East Anglia&#8217;s Climate Research Unit (CRU) were doing bad science, even if every individual claim made about the research is untrue.</p>

<p>Which is how so many of the <a href="http://www.timesonline.co.uk/tol/news/environment/article7017922.ece" title="I thought of killing myself, says climate scandal professor Phil Jones">comments on this interview with Phil Jones (director of the CRU)</a> are so disgusting:</p>

<blockquote>
  <p>I thought of killing myself, says climate scandal professor Phil Jones</p>
  
  <p>Why didn&#8217;t you? Because you are a coward!
  Just like the rest of your free loading, elitist,socialist hack buddies living off free money from
  socialist governments to which you sell your soul and junk science!!!
  Go to hell and take your ilk with you!
  Miserable lowlife scum!</p>
</blockquote>

<p>and</p>

<blockquote>
  <p>Jones, Mann and Hansen should all lose their degrees for what they have done to science. They have taken over $100 billion, ruined every new science book for two generations, poisoned science education with environmental BS and political correctness. These guys should be pushing brooms and driving cabs.</p>
</blockquote>

<p>This is exactly the behaviour exhibited by the anti-vaccination crowd recently, when the GMC finally found Andrew Wakefield to have acted unethically &#8212; this from the pen of famous US anti-vaccination campaigner Jenny McCarthy:</p>

<blockquote>
  <p>The retraction from The Lancet was a response to a ruling from England’s General Medical Council, a kangaroo court where public health officials in the pocket of vaccine makers served as judge and jury.</p>
</blockquote>

<p>Appeals to conspiracy and perceived political consequences without an attempt to grapple with the science. Every one of those commenters on the interview with Phil Jones <em>knew</em> that he was a lying, mendacious bastard, though there is no evidence of it at all; and every single one of Andrew Wakefield&#8217;s supporters <em>knew</em> there was a link between MMR and autism when <a href="http://news.bbc.co.uk/1/hi/health/7316497.stm" title="We still believe in Wakefield">they gathered to support him</a> at the GMC hearing:</p>

<blockquote>
  <p>We have come here to show him we believe in him. There has been a witch-hunt against him when all he was trying to do was help people.</p>
</blockquote>

<p>Of course, there was no evidence of that either. There has been very little soul-searching on the part of the media since the GMC verdict &#8212; indeed, plenty of &#8220;bad doctor done bad!&#8221; stories but very little admission of their own part in the sordid tale. I don&#8217;t hold out much hope for a change of tack over their coverage of Climategate and the later &#8220;scandals&#8221;, regarding the Himalayan glaciers or Amazon rain forests. From what I have read so far, the opinion pieces <a href="http://www.guardian.co.uk/commentisfree/2010/feb/04/scientists-fallibilty-self-criticism-question" title="Scientists, you are fallible. Get off the pedestal and join the common herd">continue to lecture scientists on the benefits of self-criticism and humility</a>. Irony <em>is</em> dead.</p>

<p>ETA: Two recent links a week after I wrote this piece, but providing good background information. The first is <a href="http://www.realclimate.org/index.php/archives/2010/02/ipcc-errors-facts-and-spin/">Real Climate with some background information on the IPCC itself and the various errors that have been highlighted</a>. The second is a <a href="http://climatesafety.org/swallowing-lies-how-the-denial-lobby-feeds-the-press/">look at the principal journalists behind this spate of alarmist articles about climate change conspiracies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/02/07/global-warming-mmr-and-media-scandals/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Documentaries and Ofcom</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/02/05/documentaries-and-ofcom/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/02/05/documentaries-and-ofcom/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 20:21:18 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Bad Science]]></category>

		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=997</guid>
		<description><![CDATA[Some of you might remember a TV broadcast from a couple years ago called The Great Global Warming Swindle. The central thesis, that cosmic rays are the central cause of global warming, has been long disproved. (To make the film-makers&#8217; case more appealing they, uh, &#8220;omitted&#8221; the last 30 years of data.) Two of the [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you might remember a TV broadcast from a couple years ago called <em>The Great Global Warming Swindle</em>. The central thesis, that cosmic rays are the central cause of global warming, has been long disproved. (To make the film-makers&#8217; case more appealing they, uh, &#8220;omitted&#8221; the last 30 years of data.) Two of the interviewees filed official complaints with Ofcom because their views were misrepresented and their scientific findings distorted in order to show the opposite effect. The producer has previous record on this point and it&#8217;s a wonder anyone wants to work with him at all.</p>

<p>I bring all this up to mention that I saw <a href="http://www.ofcom.org.uk/tv/obb/prog_cb/obb114/issue114.pdf" title="PDF of Ofcom ruling">the Ofcom summary</a> by accident the other day:</p>

<blockquote>
  <p>However, whilst Ofcom is required by the 2003 Act to set standards to ensure that news programmes are reported with &#8220;due accuracy&#8221; there is no such requirement for other types of programming, including factual programmes of this type.</p>
</blockquote>

<p>You heard it here first &#8212; factual programmes do not have to be <em>factual</em>.</p>

<p>It seems documentaries, or programmes which look like documentaries, do not have to hew to anything we might call reality. Graphs, figures and statistics can be pulled out of the producer&#8217;s&#8230; hat and this wouldn&#8217;t matter.</p>

<p>The remainder of the ruling makes for some quite depressing reading. You can get away with whatever you want if you introduce your detractors as &#8220;the orthodoxy&#8221;, mention that they represent a &#8220;distortion of a whole area of science&#8221; and that they are conspiring to &#8220;invok[e] the threat of climatic disaster, to hinder vital industrial progress in the developing world&#8221;. Because despite all that you are letting the opposing view have a say. The excuses can stretch even further if your programme is viewed as being &#8220;polemical&#8221;, as if unsubstantiated nonsense is its own rightness.</p>

<p>Totally unrelated to the above, the same document also contains other rulings, the last of which quite amused me. It was regarding a complaint against subscription-only SportXXXGirls, in which the female presenters &#8220;perform[ed] explicit sexual acts&#8221; and &#8220;invited viewers to contact them for &#8216;adult chat&#8217; via a premium rate text service&#8221;. The complaint was that the &#8220;live chat&#8221; was a repeat from the week before, which wasn&#8217;t obvious (unless you&#8217;d seen the previous screening, I guess&#8230;). I can only imagine how often they get complaints like this &#8212; I don&#8217;t know how many people consider complaining about subscription porn channels &#8212; but the result was that &#8220;Ofcom viewed the recordings supplied and noted that the material shown on the 10 February 2008 was a repeat of that shown on 3 February 2008&#8221;. What a strange job&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/02/05/documentaries-and-ofcom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Baroque Cycle in its entirety: wonderful</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/02/01/the-baroque-cycle-in-its-entirety-wonderful/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/02/01/the-baroque-cycle-in-its-entirety-wonderful/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 20:04:21 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Books]]></category>

		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=994</guid>
		<description><![CDATA[After however many pages and words and months I finished reading the last volume of Neal Stephenson&#8217;s Baroque Cycle, The System of the World. Back in August I was effusive with my praise of part one but never got round to saying anything when I finished part two (The Confusion). So let this entry mark [...]]]></description>
			<content:encoded><![CDATA[<p>After however many pages and words and months I finished reading the last volume of Neal Stephenson&#8217;s Baroque Cycle, <em>The System of the World</em>. Back in August I was <a href="http://www.dougalstanton.net/blog/index.php/2009/08/07/quicksilver-by-neal-stephenson/">effusive with my praise of part one</a> but never got round to saying anything when I finished part two (<em>The Confusion</em>). So let this entry mark as my feelings on both.</p>

<p><strong>Brilliant! Read them now!</strong></p>

<p>Ahem. The two books that comprise <em>The Confusion</em> are the intertwined tale of piracy on the high seas, and political intrigue in the court of Versailles. They follow on from the events of <em>Quicksilver</em> though many other characters drop out and others become more important. It&#8217;s in <em>The Confusion</em> that many of the important links to <em>Cryptonomicon</em> become obvious &#8212; many of the family names which appear in that latter book first make an important appearance here &#8212; the Hacklhebers, Gotos and so on. It&#8217;s also in <em>The Confusion</em> that Stephenson lets his nerdy side really come to the fore. The chapter about the creation of phosphorous from urine was exciting and informative and hugely enjoyable &#8212; all that from chemistry, you ask, but it really was damn good reading.</p>

<p>The events which unfold at the very start of <em>Quicksilver</em> aren&#8217;t mentioned again for the remainder of <em>Quicksilver</em> and the entirety of <em>The Confusion</em>. All that is basically flashback. The thread is picked up again in <em>The System of the World</em> as one party attempts to reconcile the deep philosophical rift between Newton and Leibniz while another attempts to sabotage Newton&#8217;s work at the Royal Mint. Again we&#8217;ve got political intrigue combined with stunning action sequences that would overwhelm the audience of most heist movies.</p>

<p>Rather unusually for Neal Stephenson he manages to end everything too. Maybe given 2500 pages of writing he has finally worked himself into the right position to pull it all together. His other books have disappointed me on the last page, but I was very thankful that such an epic series ended right.</p>

<p>Make that investment! Read these books!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/02/01/the-baroque-cycle-in-its-entirety-wonderful/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Crappy shortbread recipe disaster!</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/01/31/crappy-shortbread-recipe-disaster/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/01/31/crappy-shortbread-recipe-disaster/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 19:25:12 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Books]]></category>

		<category><![CDATA[Food]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=992</guid>
		<description><![CDATA[We&#8217;ve had so much success with recipes in the last few years that it&#8217;s sometimes easy to forget that some recipes are useless through and through. If you&#8217;re not very familiar with the general idea then it&#8217;s easy to get dragged far from the path by a instructions that are confusing or just downright wrong.

That&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve had so much success with recipes in the last few years that it&#8217;s sometimes easy to forget that some recipes are useless through and through. If you&#8217;re not very familiar with the general idea then it&#8217;s easy to get dragged far from the path by a instructions that are confusing or just downright wrong.</p>

<p>That&#8217;s what happened to me last week when I tried <em>Scrummy Chocolate Swirl Shortbread</em> from the Green &amp; Blacks Chocolate Recipes book. I couldn&#8217;t really remember what the process for shortbread was so I just followed the instructions and ended up with something useless quite demoralising. I later checked Delia and James Martin&#8217;s respective recipes for shortbread and confirmed that the recipe in the Chocolate book is utter bobbins. Compare:</p>

<ul>
<li>Cream sugar into butter, then add flour.</li>
<li>Mix dry ingredients then rub in butter.</li>
</ul>

<p>The first one gets you a stiff dough, the second ones gets you <em>breadcrumbs</em>. And at that point there&#8217;s not much you can really do to pull it back &#8212; it&#8217;s not easy to decrumb crumbs.</p>

<p>I&#8217;ve just tried again, ignoring the mixing process they suggested in favour of Delia Smith&#8217;s instructions, and they seem much better. They&#8217;re cooling at the moment. Now I get to revisit the original recipe and mark it up for future occasions. I&#8217;m not sure if I should write proper instructions, or just score the whole thing out with &#8220;Wrong! Consult Delia!&#8221;. That would be more satisfying.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/01/31/crappy-shortbread-recipe-disaster/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dilution of trust: homeopathy for sale at Boots</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/01/29/dilution-of-trust-homeopathy-for-sale-at-boots/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/01/29/dilution-of-trust-homeopathy-for-sale-at-boots/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 17:56:17 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Bad Science]]></category>

		<category><![CDATA[Health]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=989</guid>
		<description><![CDATA[Tomorrow (that is, 30 January 2010) there are going to be a number of demonstrations/protests outside branches of Boots, under the general name of the 10:23 campaign. At 10:23, a bunch of not-very-brave people will be &#8220;overdosing&#8221; on homeopathic pills. I think the plan is that each person takes a bottle full. This will, of [...]]]></description>
			<content:encoded><![CDATA[<p>Tomorrow (that is, 30 January 2010) there are going to be a number of demonstrations/protests outside branches of Boots, under the general name of <a href="http://www.guardian.co.uk/science/2010/jan/29/homeopathy-10-23-overdose" title="Homeopathy Overdose">the 10:23 campaign</a>. At 10:23, a bunch of not-very-brave people will be &#8220;overdosing&#8221; on homeopathic pills. I think the plan is that each person takes a bottle full. This will, of course, have no downsides whatsoever because there is nothing in it.</p>

<p>The point in this case is not to point out the stupidity of homeopathy to the people in the street, though it will no doubt do that. It&#8217;s to make the point that Boots <em>sell</em> these things &#8212; have whole aisles devoted to these little white pills &#8212; even though they admit there is no evidence for their effectiveness. There are even Boots-branded homeopathic pills on the shelves! And at the same time they sell you something useless, they want you to know that their pharmacists are trustworthy enough to dispense medicines with active ingredients, and give advice about these medicines.</p>

<p>I leave you with James &#8220;the Amazing!&#8221; Randi, to explain the absurd details of homeopathy in his wonderful way:</p>

<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/BWE1tH93G9U&#038;hl=en_GB&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BWE1tH93G9U&#038;hl=en_GB&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/01/29/dilution-of-trust-homeopathy-for-sale-at-boots/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Toe surgery</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/01/26/toe-surgery/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/01/26/toe-surgery/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 20:39:20 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=982</guid>
		<description><![CDATA[About a fortnight ago now I went into a chiropody clinic for some medical attention on my big toe. I&#8217;ve had a bothersome ingrown toenail for quite some time and eventually found a doctor who pointed me in the right direction for treatment. Thank you Dr Reiff-Musgrove.

I received a couple of injections to numb the [...]]]></description>
			<content:encoded><![CDATA[<p>About a fortnight ago now I went into a chiropody clinic for some medical attention on my big toe. I&#8217;ve had a bothersome ingrown toenail for quite some time and eventually found a doctor who pointed me in the right direction for treatment. Thank you <a href="http://www.leithwalksurgery.scot.nhs.uk/page-24627">Dr Reiff-Musgrove</a>.</p>

<p>I received a couple of injections to numb the area and then they went at my foot with little bolt-cutters. It was fascinating to watch (though not if you&#8217;re a bit squeamish) &#8212; cutting down into the nail to the nail bed and then using a poky-stick to fill the resulting wound with <a href="http://en.wikipedia.org/wiki/Phenol">phenol</a> to inhibit nail regrowth. With luck I should have a mostly-normal nail when it all heals, but without risk of the same thing recurring.</p>

<p>For a few days I had a huge cartoonish bandage wrapped round my big toe which meant wearing a sandal on that foot. This is a very cold way to dress in winter. More recently the toe has been redressed with neater coverings which allow me to wear shoes again. I&#8217;m still trying to wear shoes as little as possible though to reduce pressure on the affected area. Which ultimately means that I wear the dreaded socks-with-sandals &uuml;bernerd combination at home in the evening. (You can ignore this image and continue to think of me in a velvet smoking jacket and slippers if that makes the nightmares go away.)</p>

<p>So far I&#8217;ve been delighted by the sudden loss of background pain, which I&#8217;ve been growing accustomed to for several years now. The site of the operation still looks pretty horrible but it&#8217;s not painful. I can walk again to some degree, though I think it will be some time before I can don a pair of walking boots and go into the hills. I had intended to document the healing process with the camera but as the toe spends most of its time in bandages that&#8217;s proven quite difficult.</p>

<p>I look forward to doing all the usual feet related activities &#8212; like buying shoes that fit, ceilidhing without pain and wearing sandals without fear of frightening small children.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/01/26/toe-surgery/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hm, I think not.</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/01/18/hm-i-think-not/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/01/18/hm-i-think-not/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 16:23:50 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Humour]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=977</guid>
		<description><![CDATA[Taken from the man page for strncmp:


       The following sections are informative.
&#160;
EXAMPLES
       None.
&#160;
APPLICATION USAGE
       None.
&#160;
RATIONALE
       None.
&#160;
FUTURE DIRECTIONS
       None.


I hope that was a joke.
]]></description>
			<content:encoded><![CDATA[<p>Taken from the man page for <code>strncmp</code>:</p>

<p><div>
<pre>       The following sections are informative.
&nbsp;
EXAMPLES
       None.
&nbsp;
APPLICATION USAGE
       None.
&nbsp;
RATIONALE
       None.
&nbsp;
FUTURE DIRECTIONS
       None.</pre>
</div></p>

<p>I hope that was a joke.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/01/18/hm-i-think-not/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Filesystems and data recovery (an explanation of sorts)</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/01/05/filesystems-and-data-recovery-an-explanation-of-sorts/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/01/05/filesystems-and-data-recovery-an-explanation-of-sorts/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:08:45 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=970</guid>
		<description><![CDATA[I posted a short guide yesterday to recovering photographs from corrupted memory cards. There were a few interesting technical points in that post that I glossed over for the sake of the explanation, but discussion on Facebook has prompted me to try filling in those gaps. Let&#8217;s have a look.

File systems

How is stuff written to [...]]]></description>
			<content:encoded><![CDATA[<p>I posted a short guide yesterday to recovering photographs from corrupted memory cards. There were a few interesting technical points in that post that I glossed over for the sake of the explanation, but discussion on Facebook has prompted me to try filling in those gaps. Let&#8217;s have a look.</p>

<h2>File systems</h2>

<p>How is stuff written to and read from a disk, and why would it suddenly stop working?</p>

<h3>Reading and writing disks</h3>

<p>Picture a disk as a big sheet of grid paper. Each little square in the grid can hold a single letter, and that little square has a location, like the grid reference. We can read and write a single letter at a time by knowing its grid reference. Most things which are written on the paper will take up many little squares, because most useful information is more than one letter long &#8212; words, sentences, paragraphs and so on are stored as long sequences of individual letters. This doesn&#8217;t really pose a problem because our sheet of paper is easily big enough to hold all the sentences we could ever write. It is also possible to store many different sequences of text on one sheet of paper, so that books sit alongside essays alongside love letters alongside formal complaints. The only problem this does leave us with is organising and retrieving the information, since a gridded sheet where each box contains a single letter will start to look more like a wordsearch after a while.</p>

<p>If we have been sensible we will write our texts onto the great sheet of paper in a consistent manner, such as left-to-right, and starting a new row one line down whenever we fill up the previous row. The system of organisation we use is arbitrary &#8212; we could just as easily use right-to-left, write vertically or move up a row instead of down at the end of each line. It doesn&#8217;t really matter as long as we are consistent. (This should be obvious from the history of written language!) We can then identify the beginning of a piece of text by knowing the grid reference of the first letter; and we can retrieve the whole text if we know how long the text is, since it was written in a consistent direction. If we do this we should easily be able to organise all the information we have by keeping track of the starting location and length of all the sequences of letters we write.</p>

<p>The disk, like the gridded paper, is full of little slots where data can be stored; and each slot has a location called its &#8220;address&#8221;. Data can be stored on disk in long sequences of adjacent slots. To get the sense of the original data we only need to know the starting address and to read the correct number of entries from that point onwards. All we need to extract a file from disk is two numbers &#8212; the address and the length. From this we can reconstruct the original data.</p>

<p>Now we have many long essays and books and letters stored on the hypothetical sheet of paper, and these long sequences of text can be reached via the much shorter pairs of numbers we mentioned, representing address and length. But where are these numbers kept? The one location that doesn&#8217;t require any intelligence to find on a grid of paper is the start, which we shall call address 0 (zero). How can we use this to our advantage? We could write a list, starting at address 0, which contains the pairs of numbers needed to find all the other sequences of letters! It will never be possible to &#8220;lose&#8221; the sequence at the top corner of the sheet of paper so we will always be able to access this contents listing for the rest of the page.</p>

<p>But think again: if the sheet of paper is covered in many sequences of letters, it&#8217;s very conceivable that one of those sequences will contain map references or temperatures or other lists of numbers that could be mistaken for the pairs of numbers which we use to find the texts themselves. If a sequence of pairs of numbers starts at address 0 how do we know when it has ended and a <em>different</em> sequence of numbers has started? We know the numbered pairs start at 0 but we don&#8217;t know how long they continue after that. The solution is to enter the length of the first sequence <em>at address zero itself</em>. It then becomes possible to start at the top of the page and read off a list of starting locations for every piece of information on that page, without fear of accidentally reading data which isn&#8217;t relevant.</p>

<p>The organisation of real disks and memory cards is done along these lines, and the system of addresses and references which comprise the implementations are called a file system.</p>

<p>(Bonus question: Imagine that one of the sequences of text buried somewhere in our piece of paper was a list of location/length pairs just like the one at address zero. The location/length of this secondary list would be mentioned by the primary one, but the pairs of numbers it contain would not be mentioned. What use would this be? Can you think of a common instance of this sublist in computer file systems?)</p>

<h3>Disk corruption and file recovery</h3>

<p>In order to reuse a disk people often &#8220;format&#8221; it, making a clean slate. The formatting process generally doesn&#8217;t affect the data on disk, only the contents listings which help to make sense of it. We can format our grid of paper by altering the contents listing which we store as the first sequence. It&#8217;s not difficult &#8212; all we have to do is change the number at address zero, the one that represents the length of the contents listing, to a zero. From now on, reading that sheet of paper will immediately show that this sheet contains no data!</p>

<p>Quick and reliable access to the text written on the vast hypothetical sheet of paper hinges on the reliability of the contents listing at the top of the page. It allows us to make sense of the lines and lines of individual letters that follow. If this gets corrupted or erased in any way, our sheet of paper is turned from a useful store into a tedious wordsearch. And as you can see with the formatting example, it takes only a tiny change to render the file listing &#8220;wrong&#8221;.</p>

<p>So, if through chance or misadventure your disk becomes unreadable in this way, you will not be able to read the data straight off. But it&#8217;s all still there, somewhere. The process of file recovery is one of trawling through the disk looking for interesting sequences of text, like a word search. Thankfully many files such as images or videos are organised like a file system in miniature &#8212; they contain useful header and file length info which aids identification. For example, JPEG images, which is how digital cameras commonly store their images, <a href="http://www.astro.keele.ac.uk/oldusers/rno/Computing/File_magic.html" title="List of magic numbers of binary files">start all their files with a particular number</a>. File recovery programs can trawl through the disk looking for known sequences such as this and attempting to pull useful data from the mess. In many cases it works very well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/01/05/filesystems-and-data-recovery-an-explanation-of-sorts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Photo file recovery (with Linux tools)</title>
		<link>http://www.dougalstanton.net/blog/index.php/2010/01/03/photo-file-recovery-with-linux-tools/</link>
		<comments>http://www.dougalstanton.net/blog/index.php/2010/01/03/photo-file-recovery-with-linux-tools/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 22:54:21 +0000</pubDate>
		<dc:creator>Dougal</dc:creator>
		
		<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.dougalstanton.net/blog/?p=966</guid>
		<description><![CDATA[Well, I&#8217;ve just done my good deed for the day by pulling some photographs off a corrupted memory card. Helen&#8217;s camera stopped talking to its SD card on Boxing Day and the photos from Christmas Day were assumed lost. The solution was quite painless:


Copy the contents of the memory card to a file for safekeeping. [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;ve just done my good deed for the day by pulling some photographs off a corrupted memory card. Helen&#8217;s camera stopped talking to its SD card on Boxing Day and the photos from Christmas Day were assumed lost. The solution was quite painless:</p>

<ol>
<li><p>Copy the contents of the memory card to a file for safekeeping. The file ends up taking up as much space as the original disk does but it&#8217;s generally much nicer to take one copy and use it rather than risk further degradation if you&#8217;re worried that the memory card itself is dying.</p>

<p><div>
<pre>$ dd if=/dev/sdd of=memcard.img</pre>
</div></p>

<p>The card reader was named <code>/dev/sdd</code> from the viewpoint of my machine but this will no doubt depend on what kind of reader and how many devices you use. Adjust for your own circumstances. Typing <code>dmesg</code> into a terminal just after you&#8217;ve inserted the card in the reader will probably give you usable info &#8212; this is what I saw, in case it helps:</p>

<p><div>
<pre>[177907.297698] sd 5:0:0:1: Attached scsi generic sg4 type 0
[177907.321601] sd 5:0:0:1: [sdd] Attached SCSI removable disk
[177922.175874] sd 5:0:0:1: [sdd] 3994624 512-byte logical blocks: (2.04 GB/1.90 GiB)
[177922.177838] sd 5:0:0:1: [sdd] Assuming drive cache: write through
[177922.183593] sd 5:0:0:1: [sdd] Assuming drive cache: write through
[177922.183608]  sdd: unknown partition table</pre>
</div></p>

<p>You can see it found the disk, named it <code>sdd</code> but couldn&#8217;t read any partition data from it. This is just as we expected because it got corrupted somehow.</p></li>
<li><p>Install file recovery tools. This installs a disk recovery program and something that will trawl through disks looking for lost files. It looks like a direct port of a DOS/Windows app because the help commmand lists all CLI flags as being prefixed with a <code>/</code> instead of <code>--</code>. But it still works well.</p>

<p><div>
<pre>$ sudo aptitude install testdisk</pre>
</div></p></li>
<li><p>Run the newly installed <code>photorec</code> from the above suite. Any found files will be put into a newly-created directory called <code>recovered</code>. If this dir already exists it&#8217;ll create a new one with a numbered suffix rather than reusing it. I don&#8217;t know why.</p>

<p><div>
<pre>$ sudo photorec -d recovered memcard.img</pre>
</div></p>

<p>We were only expecting a few dozen photographs because the card had been emptied just before Christmas. In the end it pulled over 300 JPEGs and a video from the memory card &#8212; a nifty tool if you accidentally reformat a disk!</p></li>
</ol>

<p>The Christmas photos were saved and Helen will no doubt be posting them soon. Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dougalstanton.net/blog/index.php/2010/01/03/photo-file-recovery-with-linux-tools/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
