<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>code monk</title>
	<atom:link href="http://drj11.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://drj11.wordpress.com</link>
	<description>hacking habits</description>
	<lastBuildDate>Thu, 26 Nov 2009 10:59:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='drj11.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/c41d4a56916ce1e14b666d40005737ba?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>code monk</title>
		<link>http://drj11.wordpress.com</link>
	</image>
			<item>
		<title>Python: slicing with zip</title>
		<link>http://drj11.wordpress.com/2009/11/26/python-slicing-with-zip/</link>
		<comments>http://drj11.wordpress.com/2009/11/26/python-slicing-with-zip/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 10:56:40 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=792</guid>
		<description><![CDATA[Wherein I feel compelled to write some more on Python code that I find more amusing than clear.
The more I use zip the more I love it.  I&#8217;m thinking about writing a tutorial on how to (ab-) use zip, but for now just this recent discovery.
Say you have two iterators that each yield a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=792&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Wherein I feel compelled to write some more on <a href="http://drj11.wordpress.com/2008/09/25/i-learn-python/">Python code that I find more amusing than clear</a>.</p>
<p>The more I use <a href="http://docs.python.org/library/functions.html#zip"><var>zip</var></a> the <a href="http://drj11.wordpress.com/2009/01/28/my-python-dream-about-groups/">more I love it</a>.  I&#8217;m thinking about writing a tutorial on how to (ab-) use <var>zip</var>, but for now just this recent discovery.</p>
<p>Say you have two iterators that each yield a stream of objects, <var>iland</var> and <var>iocean</var> (they could be gridded temperature values, say), and you want to get the first 100 values from each iterator to do some processing, <em>whilst not consuming any more than 100 values</em>.  You can&#8217;t go <code>list(iland)[:100]</code> because that will consume the entire <var>iland</var> iterator and you&#8217;ll never be able to get those values past the 100th again.</p>
<p>You can use <a href="http://docs.python.org/library/itertools.html">itertools</a> (probably my second favourite Python module):</p>
<pre class="brush: python;">
land100 = list(itertools.islice(iland, 100))
ocean100 = list(itertools.islice(iocean, 100))
</pre>
<p>It seems a shame to mention <var>islice</var> and <var>100</var> twice.  One could use <var>map</var> with a quick pack and unpack, but this is not clear:</p>
<pre class="brush: python;">
land100,ocean100 = map(lambda i: list(itertools.islice(i, 100)), (iland,iocean))
</pre>
<p>(a simple form of this, which I do sometimes use, is <code>x,y = map(int, (x,y))</code>)</p>
<p>What about giving some love to <var>zip</var>?  It turns out that <var>zip</var> will stop consuming as soon as any argument is exhausted.  So</p>
<pre class="brush: python;">
zip(range(100), iland, iocean)
</pre>
<p>returns a list of 100 triples, each triple having an index (the integer from 0 to 99 from the <code>range()</code> list), a value from the <var>iland</var> iterator, and a value from the <var>iocean</var> iterator.  And as soon as the list produced by <code>range(100)</code> is exhausted it stops consuming from <var>iland</var> and <var>iocean</var>, so their subsequent values can be consumed by other parts of the program.</p>
<p>And yes, this seems to work by relying on a rather implementation specific feature of <var>zip</var> that I&#8217;m not sure should be set in stone.</p>
<p>That <var>zip</var> form above is all very good if one wants to go <code>for n,land,ocean in ...</code>, but what if we want the 100 land values and 100 ocean values each in their own list (like the code at the beginning of the article)?  We can use <var>zip</var> again!</p>
<pre class="brush: python;">
_,land100,ocean100 = zip(*zip(range(100), iland, iocean))
</pre>
<p><code>zip(*<var>thing</var>)</code> turns a list of triples into a triple of lists, which is then destructured into the 3 variables <var>_</var> (a classic <a href="http://drj11.wordpress.com/2008/04/18/the-use-of-blah/">dummy</a>), <var>land100</var>, and <var>ocean100</var>.</p>
<p>Don&#8217;t worry, the actual code use the <var>islice</var> form from the first box because I think it&#8217;s the clearest.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/792/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=792&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/11/26/python-slicing-with-zip/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>
	</item>
		<item>
		<title>Carbon into Trees</title>
		<link>http://drj11.wordpress.com/2009/11/25/carbon-into-trees/</link>
		<comments>http://drj11.wordpress.com/2009/11/25/carbon-into-trees/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 20:16:13 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[bbc]]></category>
		<category><![CDATA[carbon footprint]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[global warming]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=787</guid>
		<description><![CDATA[The BBC report that the Forestry Commission want to afforest 4% of the UK.  And thereby get us 10% of the way towards our 80% emissions reduction target.  Their wording is slightly odd, but see paragraph 12:

It is hoped the latest plan would absorb 10% of the UK&#8217;s target of slashing its emissions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=787&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The BBC report that <a href="http://news.bbc.co.uk/1/hi/uk/8377827.stm">the Forestry Commission want to afforest 4% of the UK</a>.  And thereby get us 10% of the way towards our 80% emissions reduction target.  Their wording is slightly odd, but see paragraph 12:</p>
<blockquote><p>
It is hoped the latest plan would absorb 10% of the UK&#8217;s target of slashing its emissions of greenhouse gases by 80% by 2050.
</p></blockquote>
<p>Alarm bells ringing.  1 million hectares (4% of the UK land) can sequester 8% (10% of an 80% emissions reduction) of the UK&#8217;s current CO<sub>2</sub> emissions?  No.  <a href="http://drj11.wordpress.com/2007/04/23/secrets-of-reducing-your-carbon-footprint/">My earlier article on coppicing willow</a> suggests that an optimistic estimate for sequestration is 18 tonnes CO<sub>2</sub> per hectare.  So with 4% of the UK land, we could sequester 18 million tonnes, or about 3% of our (600 million tonnes of) emissions.  I think my 3% figure is a really top end estimate.  It&#8217;s not like willow grows particularly well in this country (but it is one of the best crops for sequestration) and with 4% of the UK covered, we may have to afforest some sub-optimal sites; short rotation coppicing is also different from growing mature forest, but I have a hard time believing that growing mature forest pulls down more carbon (yeah yeah, soil, nitrogen).</p>
<p>So where do the Forestry Commission get 8% from?  I have no idea.  And as usual the clueless journalists at the BBC fail to use the power of hyperlinking (welcome to the 1990&#8217;s) and they don&#8217;t have a link to the Forestry Commission research.  Or even their press release (I suppose that would let everyone know they copied their homework).</p>
<p>Oh wait, here&#8217;s the first paragraph of the <a href="http://www.forestry.gov.uk/newsrele.nsf/AllByUNID/7E8175C795DEB48A802576780042FEE0">Forestry Commision press release:</a> (ewgh Lotus Notes)</p>
<blockquote><p>
If an extra four per cent of the United Kingdom’s land were planted with new woodland over the next 40 years, it could be locking up ten per cent of the nation’s predicted greenhouse gas emissions by the 2050s.
</p></blockquote>
<p>Oh.  So they mean 10% of our 2050 emissions.  Which, as you know, are going to be 80% less than our current emissions.  So 10% of 20% of our current emissions.  Or 2%.  Yeah, I buy that (just about, but at least it&#8217;s biologically plausible).</p>
<p>So the BBC mangled the press release.  Does the BBC version seem very unclear to anyone else?</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/787/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=787&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/11/25/carbon-into-trees/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>
	</item>
		<item>
		<title>Minus times a minus is a plus</title>
		<link>http://drj11.wordpress.com/2009/10/05/minus-times-a-minus-is-a-plus/</link>
		<comments>http://drj11.wordpress.com/2009/10/05/minus-times-a-minus-is-a-plus/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:49:06 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[maths]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=765</guid>
		<description><![CDATA[My response to the blog wars about multiplying negative numbers.  Mostly inspired by Eric&#8217;s comment on Mike Croucher&#8217;s Walking Randomly.
Big image, links to a PDF (of vector goodness).

I wanted to put the Inkscsape SVG source inside the PNG image.  But it turns out wordpress.com &#8220;optimises&#8221; the image and means my klever hack doesn&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=765&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My response to the <a href="http://numberwarrior.wordpress.com/2009/09/29/negative-times-negative/">blog wars about multiplying</a> <a href="http://www.mathlesstraveled.com/?p=439">negative numbers</a>.  Mostly inspired by Eric&#8217;s comment on <a href="http://www.walkingrandomly.com/?p=1670">Mike Croucher&#8217;s Walking Randomly</a>.</p>
<p>Big image, links to a PDF (of vector goodness).</p>
<p><a href="http://drj11.files.wordpress.com/2009/10/minusminus.pdf"><img src="http://drj11.files.wordpress.com/2009/10/mmo.png?w=400&#038;h=952" alt="mmo" title="mmo" width="400" height="952" class="alignnone size-full wp-image-766" /></a></p>
<p>I wanted to put the Inkscsape SVG source inside the PNG image.  But it turns out wordpress.com &#8220;optimises&#8221; the image and means my klever hack doesn&#8217;t work.  Bad wordpress.com.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/765/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/765/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/765/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=765&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/10/05/minus-times-a-minus-is-a-plus/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>

		<media:content url="http://drj11.files.wordpress.com/2009/10/mmo.png" medium="image">
			<media:title type="html">mmo</media:title>
		</media:content>
	</item>
		<item>
		<title>Natural History Museum: Butterflies</title>
		<link>http://drj11.wordpress.com/2009/09/12/natural-history-museum-butterflies/</link>
		<comments>http://drj11.wordpress.com/2009/09/12/natural-history-museum-butterflies/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 20:36:19 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=727</guid>
		<description><![CDATA[On Friday popped into the Natural History Museum and went to the Butterfly Jungle.  I&#8217;m a member, and entry to the for-money exhibitions is free (already paid for).  It makes me feel terribly middle class.
Before entering into the &#8220;jungle&#8221; (it&#8217;s a temporary hut made of out polytunnel) I thought we could go see [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=727&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>On Friday popped into the Natural History Museum and went to the Butterfly Jungle.  I&#8217;m a member, and entry to the for-money exhibitions is free (already paid for).  It makes me feel terribly middle class.</p>
<p>Before entering into the &#8220;jungle&#8221; (it&#8217;s a temporary hut made of out polytunnel) I thought we could go see the insect gallery so we could learn something about butterflies before seeing them.  Well, there is no insect gallery, there is <a href="http://www.nhm.ac.uk/visit-us/galleries/green-zone/creepy-crawlies/index.html">the creepy crawlies room</a>.   Where&#8217;s the  long room full of display cabinets crammed with dead insects pinned to neatly labelled pieces of cardboard?  Needless to say the creepy crawly room sucks.</p>
<p>So we sort of wandered about at random.  Hey, did you know the toilets have bacteria zapping UV on the hand dryers.  Cool.  But no interpretation.  Not Cool.</p>
<p><a href="http://www.nhm.ac.uk/visit-us/galleries/green-zone/tree-gallery/">Tania Kovat&#8217;s TREE</a> is very good.  It&#8217;s a slice of a 200 year old oak set into plaster panels in the ceiling; the pieces are arranged more or less how they would have been on the tree, in other words: in the shape of a tree.  I find the connexion to Darwin a bit lame.  The inspiration is Darwin&#8217;s now famous <a href="http://darwin-online.org.uk/content/frameset?viewtype=side&amp;itemID=CUL-DAR121.-&amp;pageseq=38">&#8220;I think&#8221; cladogram from his <em>Transmutation Notebook B</em></a> (ain&#8217;t the Darwin online project great?).  The cladogram, you know, looks like a tree.  And so does Tania&#8217;s TREE.  Cunning.  TREE is displayed in a rather nice gallery at the top of the splendid staircase in the Central Hall.  Behind the statue of Darwin, and between the statues of Hooker and Owen.  A holy place.</p>
<p>In the same gallery is Ida, apparently the world&#8217;s most complete fossil primate specimen.  She&#8217;s a beautiful little bush-baby-like creature, <a href="http://en.wikipedia.org/wiki/Darwinius"><em>Darwinius masillae</em></a>.  She lived 47 million years ago.  Of course, I know the vast majority of species (well over 99%) become extinct, so it is, statistically speaking, unlikely that Ida is our ancestor.  Nonetheless it is difficult to dispel the romantic notion that Ida <em>could</em> be our ancestor.  Certainly she will have shared a lot in common, looks, behaviour, social grouping, with our actual ancestors.  Ida&#8217;s cabinet featured something that I think the NHM should have a lot lot more of.  A cladogram.</p>
<p>After wandering past the primate gallery (now quite aging) and the <em>Sequoiadendron giganteum</em> we found the entrance to the <a href="http://www.nhm.ac.uk/visit-us/galleries/green-zone/minerals/index.html">Minerals collection</a>.  I didn&#8217;t actually know the NHM did rocks.  And this is awesome.  A big gallery full of oak cabinets  (original 1881!), stuffed full of&#8230; rocks!  We didn&#8217;t want to spend much time here (we were getting hungry), but I thought it would be interesting to see what the NHM had to say about the <em>alexandrite effect</em> and <em>birefringence</em>.  It was a simple pleasure to use the alphabetic <em>mineral index</em> to find the cabinet displaying alexandrite.</p>
<p>Alexandrite appears to be different colours under different lighting conditions.  One colour under natural sunlight, and a different colour under incandescent light.  I was slightly disappointed to find that cabinet didn&#8217;t have a button to press to illuminate the alexandrite with different lights.  Oh well.  I suppose every mineral is special in its own way, so I can&#8217;t expect every one to have a cute interpretation.  Of some local interest to me was spotting the enormous Blue John specimen, about as big as my chest.  <a href="http://en.wikipedia.org/wiki/Fluorite#Blue_John">Blue John</a> is a fluorite variety local to Castleton. Of course, I&#8217;ve seen far better examples in the shops in Castleton.</p>
<p>I knew quartz was a birefringent material, so I popped over to the quartz cabinet.  No birefringence here.  As we were ambling out of the room, I luckily found a fine quartz crystal ball on display in the jewellery cabinet next to a rather fine jade box on loan from the Queen.  Gazing into the crystal ball gives the birefringent double image effect (this is deliberate, there is an interpretation sign to explain the effect).  Nice, but I think <a href="http://en.wikipedia.org/wiki/Birefringence">Wikipedia&#8217;s image</a> is more impressive.</p>
<p>After lunch and a quick trip round the wildlife garden (impressive use of a small urban space, and I expect it to keep improving; didn&#8217;t see the foxes though) we did eventually make it to the Butterfly Jungle. </p>
<p>Which I thought was a bit disappointing.  However, there&#8217;s something intrinsically delightful about having lots of butterflies flapping about, and it hard not to enjoy that rather pleasant experience.  And they are pretty to look at.  As for science though, there was precious little to be found (not none, but not a great deal).  It wasn&#8217;t all butterflies, there was an amusing collection of slightly exotic creaturees in glass cages.  Giant african millipede, death&#8217;s head cockroach, Charlie the <em>Iguana iguana</em> (who I last saw in the Darwin exhibition!); that sort of thing.  And a kiddies playground.  Which looked quite good, but no use to me.</p>
<p>The Natural History Museum is such a large museum and with so much on display, I find that it&#8217;s impossible to do anything but see a small sample of it in any of visit.  I&#8217;ve been three times recently and I&#8217;ve still only seen a small fraction of what it has to offer.  There are still things to discover in the Central Hall: I was pleased to see a Glyptodon that I had missed on my previous visits.</p>
<p>I did learn one thing in the Butterfly Jungle.  Butterflies taste with their feet.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/727/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/727/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/727/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=727&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/09/12/natural-history-museum-butterflies/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>
	</item>
		<item>
		<title>Windy isn&#8217;t it?</title>
		<link>http://drj11.wordpress.com/2009/09/09/windy-isnt-it/</link>
		<comments>http://drj11.wordpress.com/2009/09/09/windy-isnt-it/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 09:48:40 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[environment]]></category>
		<category><![CDATA[green]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=711</guid>
		<description><![CDATA[Damn hippies think we can just sprinkle a few wind mills around, and because Europe has &#8220;huge wind resources&#8221; we&#8217;ll be okay.
This silly web article claims that europe&#8217;s wind energy potential is &#8220;huge&#8221;, and &#8220;equivalent to almost 20 times energy demand in 2020&#8243;.
O RLY?
YA RLY, according to the European Environment Agency&#8217;s report, Europe&#8217;s onshore and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=711&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Damn hippies think we can just sprinkle a few wind mills around, and because Europe has &#8220;huge wind resources&#8221; we&#8217;ll be okay.</p>
<p>This <a href="http://www.renewableenergyworld.com/rea/news/article/2009/06/wind-could-power-europe-many-times-over?cmpid=WNL-Friday-June19-2009">silly web article</a> claims that europe&#8217;s wind energy potential is &#8220;huge&#8221;, and &#8220;equivalent to almost 20 times energy demand in 2020&#8243;.</p>
<p>O RLY?</p>
<p>YA RLY, according to the European Environment Agency&#8217;s report, <a href="http://www.eea.europa.eu/publications/europes-onshore-and-offshore-wind-energy-potential">Europe&#8217;s onshore and offshore wind energy potential</a>.</p>
<p>O RLY?</p>
<p>YA RLY: It&#8217;s hard to miss this sentence from the executive summary: &#8220;Europe&#8217;s raw wind energy potential is huge. &#8230; it may be equivalent to almost 20 times energy demand in 2020&#8243;.</p>
<p>&#8220;energy demand&#8221;, that&#8217;s the problem.  Their assumed energy demand is between 3537 TWh and 4078 TWh.  (By the way, notice that the EEA cover their backs with a &#8220;may&#8221; when they use the lower demand figure to get the &#8220;20 times&#8221; headline-grabbing numbers, but the web article referencing somehow manages to drop the &#8220;may&#8221;).  So, Europe has 271e6 people (<a rel="nofollow" href="http://www.google.com/search?q=population+of+europe">according to Google</a>); that&#8217;s 15.3 kWh per person per day.  Oops.  They must have meant&#8230;</p>
<p><em>Electricity</em> demand.</p>
<p>Twats.</p>
<p>The electricity demand, in Europe, in nothing like our <em>energy</em> demand.  In the UK we travel around by burning oil, and we heat our houses and food by burning gas.  That hugely swamps our electricity usage.</p>
<p>Energy and Electricity are not the same thing.</p>
<p>Double twats for the people who ignorantly repeated them.  Of course the European Environment Agency know the difference. There are two occurrences of the phrase &#8220;energy demand&#8221; in the document; 7 occurrences of &#8220;electricity demand&#8221;.  Both the &#8220;energy demand&#8221; phrases related to the &#8220;20 times&#8221; sentence.  One is in it, the other is in the footnote of the table of data on the same page as the &#8220;20 times&#8221; sentence.  Before I did the textual analysis (by which I mean I used the PDF search feature; it&#8217;s abysmal, but it&#8217;s what I have available) I put the use of &#8220;energy demand&#8221; down to sloppy practice.  Now I think it&#8217;s mischievously deliberate. I think they used &#8220;energy demand&#8221; in that &#8220;20 times&#8221; sentence in the executive summary because they knew people would make a headline of it.</p>
<p>I have to say that apart from this headline grabbing glitch, the report is well worth reading.  Map 6.1 is particularly interesting (apologies for the pixelly rendering, partly their fault, partly mine, but mostly the fault of STOOPID PDFs):<br />
<a href="http://drj11.files.wordpress.com/2009/09/eeawind.png"><img src="http://drj11.files.wordpress.com/2009/09/eeawind.png?w=400&#038;h=283" alt="Cost of wind in europe" title="Cost of wind in europe" width="400" height="283" class="alignnone size-full wp-image-721" /></a></p>
<p>Basically the British Isles is the only place in Europe (not quite, but nearly so) with cheap on-shore wind.  And we&#8217;re full of NIMBYs.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/711/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/711/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/711/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/711/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/711/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/711/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/711/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/711/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/711/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/711/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=711&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/09/09/windy-isnt-it/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>

		<media:content url="http://drj11.files.wordpress.com/2009/09/eeawind.png" medium="image">
			<media:title type="html">Cost of wind in europe</media:title>
		</media:content>
	</item>
		<item>
		<title>Screw Hydro!</title>
		<link>http://drj11.wordpress.com/2009/09/03/screw-hydro/</link>
		<comments>http://drj11.wordpress.com/2009/09/03/screw-hydro/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 14:19:55 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[environment]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=699</guid>
		<description><![CDATA[The Archimedean screw.  A venerable machine for lifting water.  You can run it in reverse to generate power.  How much?
New Mills, where the Sett meets the Goyt, has a community owned Archimedean screw.  From their blog the energy generated for each month is:
September: 11108 kWh
October: 25356 kWh
November: 24232 kWh
December: 29513 kWh
January: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=699&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The Archimedean screw.  A venerable machine for lifting water.  You can run it in reverse to generate power.  How much?</p>
<p>New Mills, where the Sett meets the Goyt, has a <a href="http://www.torrshydro.co.uk/">community owned Archimedean screw</a>.  From <a href="http://torrs-hydro-new-mills.blogspot.com/">their blog</a> the energy generated for each month is:</p>
<p>September: 11108 kWh<br />
October: 25356 kWh<br />
November: 24232 kWh<br />
December: 29513 kWh<br />
January: 19512 kWh<br />
February: 9185 kWh<br />
March: 20330 kWh<br />
April: 3091 kWh<br />
May: 4436 kWh<br />
June: 1389 kWh</p>
<p>Somewhat arbitrarily, but giving them some benefit of the doubt, I&#8217;ll replace September&#8217;s figure with October&#8217;s (perhaps the low September output was mostly teething troubles), and for the missing July and August figures I&#8217;ll use May&#8217;s.</p>
<p>So the total is: 25356 + 25356 + 24232 + 29513 + 19512 + 9185 + 20330 + 3091 + 4436 + 1389 + 4436 + 4436 = 171272 kWh per year.</p>
<p>or 19.6 kW.  This is considerably lower than the <a href="http://www.thephone.coop/the-difference/investments">31 kW quoted by one of their investors</a>.</p>
<p>Nice rule of thumb I discovered whilst writing the post: 1 kWh per year is 0.1 W.</p>
<p><a href="http://www.mannpower-hydro.co.uk/case_studies.htm">The people who built it</a> give it a plate rating of  63 kW (it&#8217;s capacity, or maximum power output).  So it&#8217;s load factor is a little less than 1/3 at 0.31.  They also quote a flow rate of 2860 l/s with a drop of 3m.  Neglecting the water&#8217;s kinetic contribution (which I&#8217;m not sure is reasonable), the water has a power of about 86 kW (2860 litres of water is about 28600 Newtons, dropping 3m every second).  So the extractive efficiency is about 73%.  Quite impressive.  I wonder if it can really be that high?  Perhaps at high flow rates the kinetic energy is a more useful contribution.</p>
<p>The seasonal nature of the power is clear from the graph:</p>
<p>(the empty bars are missing data, not zero generation)</p>
<p><img src="http://chart.apis.google.com/chart?chxt=x%2Cy&amp;chds=0%2C30&amp;chd=t%3A-1.0%2C25.4%2C24.2%2C29.5%2C19.5%2C9.2%2C20.3%2C3.1%2C4.4%2C1.4%2C-1.0%2C-1.0&amp;chbh=a&amp;chs=300x200&amp;cht=bvs&amp;chtt=Torrs+Hydro+Energy+Yield&amp;chxl=0%3A%7CSep%7COct%7CNov%7CDec%7CJan%7CFeb%7CMar%7CApr%7CMay%7CJun%7CJul%7CAug%7C1%3A%7C0+MWh%7C10%7C20%7C30+MWh"></p>
<p>Basically, you only get power in winter, when it rains.  The rest of the load factor gets eaten away by maintenance (oiling, fishing, that sort of thing), <a href="http://torrs-hydro-new-mills.blogspot.com/2008/11/october-electricity-produced-311.html">high water flow (!) and HSE requests (which I take to mean noise complaints)</a>.</p>
<p>David MacKay, in his book <a href="http://www.withouthotair.com/">&#8220;Sustainable Energy &#8211; without the hot air&#8221;</a> has a cute chapter about hydro.  He analyses the total energy of the rain falling on our land and concludes that we can only ever produce about 1.5 kWh per person per day from hydro.  After that there&#8217;s not much to say, and the chapter is correspondingly short.  His figures for actual UK production (<a href="http://www.inference.phy.cam.ac.uk/withouthotair/c8/page_56.shtml">page 56</a>) suggest a load factor of 0.29 for large scale hydro, and 0.16 for small scale hydro.  So Torrs Hydro is doing atypically well (or I&#8217;ve been overly generous in filling the data).</p>
<p>The thing that surprises me is that the Archimedean screw produces a solution that is comparable, in load factor and efficiency, to large scale hydro.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/699/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/699/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/699/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=699&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/09/03/screw-hydro/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>

		<media:content url="http://chart.apis.google.com/chart?chxt=x%2Cy&#38;chds=0%2C30&#38;chd=t%3A-1.0%2C25.4%2C24.2%2C29.5%2C19.5%2C9.2%2C20.3%2C3.1%2C4.4%2C1.4%2C-1.0%2C-1.0&#38;chbh=a&#38;chs=300x200&#38;cht=bvs&#38;chtt=Torrs+Hydro+Energy+Yield&#38;chxl=0%3A%7CSep%7COct%7CNov%7CDec%7CJan%7CFeb%7CMar%7CApr%7CMay%7CJun%7CJul%7CAug%7C1%3A%7C0+MWh%7C10%7C20%7C30+MWh" medium="image" />
	</item>
		<item>
		<title>Reviews</title>
		<link>http://drj11.wordpress.com/2009/07/16/reviews/</link>
		<comments>http://drj11.wordpress.com/2009/07/16/reviews/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 15:05:34 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=669</guid>
		<description><![CDATA[When I was a young man in my first job (implementing garbage collectors for dynamic languages) we developed an informal policy of reviewing a paper a week (a paper, as in learned journal, but anything similar would be okay).  It was good, I read a lot of interesting stuff, and as a result of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=669&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I was a young man in my first job (implementing garbage collectors for dynamic languages) we developed an informal policy of reviewing a paper a week (a paper, as in learned journal, but anything similar would be okay).  It was good, I read a lot of interesting stuff, and as a result of writing something about each one, I think some of it may even have stuck.</p>
<p>Of course it was mostly memory management, hardware architecture, and language implementation in those days.  Little has changed.  <a href="http://litrev.wordpress.com/2009/07/16/lambda-the-ultimate-goto/">My first review is Lambda: the ultimate GOTO</a>.</p>
<p>Let&#8217;s hope making it public keeps me regular.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/669/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=669&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/07/16/reviews/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>
	</item>
		<item>
		<title>Food Chain Emissions</title>
		<link>http://drj11.wordpress.com/2009/07/13/food-chain-emissions/</link>
		<comments>http://drj11.wordpress.com/2009/07/13/food-chain-emissions/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 07:16:40 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[carbon footprint]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[global warming]]></category>
		<category><![CDATA[green]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=662</guid>
		<description><![CDATA[Friends of the Earth have sent our household a postcard.  It says «The meat and dairy industry produces more climate-changing emissions than all the planes, cars and lorries on the planet.»  They don&#8217;t quote a study, or any other source.  Just a bold assertion which, on the face it, seems implausible.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=662&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Friends of the Earth have sent our household a postcard.  It says «The meat and dairy industry produces more climate-changing emissions than all the planes, cars and lorries on the planet.»  They don&#8217;t quote a study, or any other source.  Just a bold assertion which, on the face it, seems implausible.  Even if you eat a gargantuan 250 g of meat a day (in other words, the typical US diet; Europeans eat about half that), does that really compare to all that driving round?  It also seems a little bit mean to exclude trains and ships on the &#8220;transport&#8221; side.  Is the balance between transport and food really so close that those 2 modes make all the difference?  In the UK, rail and water account for about 4% of the total transport energy budget, so I would hope that the question isn&#8217;t so close that adding them back in tips the scales the other way.  For one thing, any reasonable quantification of errors is bound to swamp that.</p>
<p>I think the FoE statement is false, here&#8217;s my homework.</p>
<p>David MacKay stacks up the UK&#8217;s energy consumption (Sustainable Energy &#8211; Without the Hot Air, Chapter 18, page 103), he has (per person): car 40 kWh/d, plane 30 kWh/d, food 15 kWh/d.  So with 70 kWh/d (82 if we add the other transport modes) on the side of transport, and 15 kWh/d on the side of food then it does indeed seem implausible that food chain emissions would be higher.  Note that we have <em>all</em> food production on one side, I can&#8217;t be bothered separating out meat from the rest, clearly meat forms the bulk of the energy consumption anyway.  But wait&#8230;</p>
<p>As well as emissions related to the energy required to maintain the animals, they produce carbon-dioxide and methane all by themselves.  In other words the food industry has emissions not related to its energy inputs (even if all the energy was produced sustainably, there would still be emissions).  Non-energy related emissions show a weakness in David MacKay&#8217;s book; he neglects them completely.  That&#8217;s okay, because his focus is Sustainable <em>Energy</em>, but be aware that it&#8217;s not the whole picture.  Food, concrete, deforestation all have non-energy emissions.  For animals I think we can neglect the CO<sub>2</sub> emissions because the carbon originally came from the atmosphere anyway (respiration forms part of a close carbon cycle).  Methane however is not negligible.</p>
<p>I reckon 1 kg of lamb produced between 60 g and 180 g of methane when it was walking about in the Peak District.  That&#8217;s equivalent to about 2.4 kg of CO<sub>2</sub>.  Let&#8217;s say I eat 100g of lamb a day.  That&#8217;s (methane emissions equivalent to) emissions of 240g CO<sub>2</sub>, or about 1kWh of diesel.  That&#8217;s roughly 0.1 litres; if you fill up 40 litres (about the size of my small car&#8217;s tank) every two weeks then that&#8217;s 3 litres a day.  How often do you fill up?  From a personal perspective, It looks like food-related methane emissions are not even close (to transport emissions).</p>
<p>Okay.  So much for the ovine.  What about the bovine, porcine, and, er, chickens?  Well, I&#8217;m no veterinarian so this will take a lot of piecemeal research.  Bugger that, lets go to a (competent?) summary:  The <a href="http://unfccc.int/resource/docs/natc/uknc4.pdf">UK’s Fourth National<br />
Communication under the United Nations Framework Convention On Climate Change</a>.  In 2004 UK agriculture (note: not just meat and dairy) emitted 13.8 MtC (megatonnes of carbon equivalent); transport emitted 37.4 MtC. Just what are these Friends of the Earth smoking that makes them think they can claim &#8220;The meat and dairy industry produces more climate-changing emissions than all the planes, cars and lorries on the planet&#8221; when it is so out of line with the UNFCCC GHG inventory.  Is the UK really so atypical?</p>
<p>I suspect that what&#8217;s really happening is that the FoE are doing some clever accounting.  There&#8217;s probably a little bit of double accounting (example, counting transport of feed on both sides), and I suspect some land use change.  Perhaps they include chopping down ancient forest to grow soya beans for animal feed as an emission on the food change?  I just don&#8217;t know, because they don&#8217;t show their homework.  But I have a couple of points to make anyway.  The first is that it&#8217;s not at all clear that the beef industry is too blame.  If there was less demand for beef (and hence soya beans to feed the cows), then I think it&#8217;s likely that the same companies would have chopped down the same forest to grow something else.  Miscanthus perhaps.  The second is that while this land use change will be an emission (the UNFCCC recognises land use and land use change as a carbon source / sink), this emission occurs only once.  Once the forest is cleared to grow soya, there will be no land use change emissions.  So the emissions from the single land use change should be amortised over all future soya bean seasons.  I think.</p>
<p>So FoE, how do you make the sums add up?</p>
<p>Appendix for the pedantic</p>
<p>«250g of meat a day &#8230; the typical US diet»</p>
<p>A quote from USDA Agriculture Factbook 2001-2002, Chapter 2, &#8220;Profiling Food Consumption in America&#8221;, http://www.usda.gov/factbook/chapter2.htm :</p>
<p>&#8220;In 2000, total meat consumption &#8230; reached 195 pounds &#8230; per person&#8221;.  That&#8217;s 242 g per person per day (2000 was a leap year).</p>
<p>«rail and water account for about 4% of the total transport energy budget»</p>
<p>Department for Transport, TSGB Chapter 3: http://www.dft.gov.uk/pgr/statistics/datatablespublications/energyenvironment/</p>
<p>«1kg of lamb produced between 60g and 180g of methane»:</p>
<p>One 60 kg ewe produces about 20 litres methane a day (see below).  Boned and trimmed meat is about 2/3 of the animal&#8217;s weight, so 0.5 litres / kg (boned).  Lamb is generally defined as less than 12 month&#8217;s old or less than 18 month&#8217;s old for export.  360 days × 0.5 litres = 180 litres.  × (the density of methane gas) 0.717 g/l = 129 g.  60 g to 180 g gives a range around this (to account for younger and older lambs, for one thing).</p>
<p>«one 60 kg ewe produces about 20 litres methane a day»</p>
<p>See Proceedings of the Nutrition Society, Volume 41, page 9A, meeting of 1981-07-17, &#8220;Methane production in lambs fed high- and low-roughage diets&#8221;.  It depends on their diet: about 23 litres for high roughage; about 9 litres for low roughage.  Two things: 1) when did you last see sheep being fed lucerne hay? 2) using 20 litres per day favours the FoE case anyway.</p>
<p>«equivalent to about 2.4 kg of CO<sub>2</sub>»</p>
<p>In terms of greenhouse gas warming potential, per kilo, methane is 20 times more potent than CO<sub>2</sub>.  So 120 g methane equivalent to 2.4 kg CO<sub>2</sub>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/662/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=662&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/07/13/food-chain-emissions/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>
	</item>
		<item>
		<title>Unusable Train Reservations</title>
		<link>http://drj11.wordpress.com/2009/07/08/unusable-train-reservations/</link>
		<comments>http://drj11.wordpress.com/2009/07/08/unusable-train-reservations/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:39:40 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=607</guid>
		<description><![CDATA[Returning from EuroPython I got the 1730 from Birmingham New Street to Sheffield.  The seat reservations in this class of train appear above each pair of seats on a little illuminated dot matrix display that shows 2 rows of text.  Each row displays 16 characters (it was quite tricky to count, but it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=607&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Returning from EuroPython I got the 1730 from Birmingham New Street to Sheffield.  The seat reservations in this class of train appear above each pair of seats on a little illuminated dot matrix display that shows 2 rows of text.  Each row displays 16 characters (it was quite tricky to count, but it was close enough to 16 that surely, if there is any god, it must be 16).</p>
<p>Each row displays the seat reservation information for one seat.  As a little message that scrolls along.  Most of these messages were of the form: &#8220;20 This seat is not reserved&#8221;.  This message is 28 characters long.  Which means it needs to scroll to fit on the display.  Some genius decided to pad the scrolling message with 16 blanks, so that the end of the message scrolls off completely before the message begins again.  So, for the display of this message, there are 44 states that a row can be in.  Each state corresponds to a position in the 44 character string (each position in the string can be identified with the display state that has that position at the extreme left-hand end of the display).</p>
<p>The seat number is 2 digits long.  It is only displayed for 15 of the 44 states.  Meaning it is only visible for 34% of the time.  It&#8217;s actually kind of important to display the seat number.  Especially as they made the mistake of putting the larger of the two seat numbers on the top row.  The two rows display the reservations for a pair of seats: N (bottom row), and N+1 (top row).  Nuts. In fact it&#8217;s not necessary to display the seat number on the display itself.  Adjacent to the display (on either side) are stickers showing the numbers for the two seats and whether they are window or aisle.  It would be a trivial design change for these stickers to point to the appropriate row of the display.</p>
<p>Some of the time the display will show <code>t reserved</code> or <code>eserved</code> or something else that could reasonably be mistaken for <code>reserved</code>.  So if you just glance at the display then you have about a 7% of interpreting it as &#8220;reserved&#8221; (when in fact it&#8217;s not reserved).</p>
<p>The shorter the message is, the more likely we are too be able to comprehend it instantaneously without having to wait for it to scroll.  So it would be good to get rid of unnecessary text. &#8220;This seat is&#8221; is totally unnecessary.  We&#8217;re on a train, we can tell that the little display refers to a seat reservation.  So all it needs to say is &#8220;20 not reserved&#8221;.  And that&#8217;s only 15 characters long, so it can be displayed permanently, without needing any anti-assistive scrolling.</p>
<p>The case where the seat is not reserved is a bit special, but it&#8217;s worth concentrating on, because those are the seats that people will want to find when they are boarding the train.  At least, people without reservations.  People with reservations don&#8217;t need the overhead displays at all because they can just look at their ticket to find the seat number.  To recap: The reservation displays are only useful for people without reservations, so they should be organised around making it clear which seats are free.</p>
<p>The remaining cases, where the seat is reserved for some of the remaining journey, should probably be handled with text that is something like &#8220;free until chesterfield&#8221; or &#8220;reserved until york&#8221;.  Possibly the &#8220;free&#8221; and &#8220;reserved&#8221; can be &#8220;stuck&#8221; at the left-hand side of the display while the remainder of the display scrolls to show the whole message.  Dunno.  But I bet a day of trying out a dozen ideas would be a vast usability improvement on how it works now.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/607/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=607&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/07/08/unusable-train-reservations/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>
	</item>
		<item>
		<title>After Copper</title>
		<link>http://drj11.wordpress.com/2009/07/08/after-copper/</link>
		<comments>http://drj11.wordpress.com/2009/07/08/after-copper/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 12:02:43 +0000</pubDate>
		<dc:creator>drj11</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://drj11.wordpress.com/?p=650</guid>
		<description><![CDATA[We gather in the dim space afforded by the overgrowing ash (Fraxinus excelsior) and cow parsley (Anthriscus sylvestris).  The trees provide some shelter from the rain, after all, it is July in the Peak District.  The key is brought forth.  The old iron gate swings open.  We step down into a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=650&subd=drj11&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We gather in the dim space afforded by the overgrowing ash (<em>Fraxinus excelsior</em>) and cow parsley (<em>Anthriscus sylvestris</em>).  The trees provide some shelter from the rain, after all, it is July in the Peak District.  The key is brought forth.  The old iron gate swings open.  We step down into a small stream, and through the gate, passing under a stone reading &#8220;DEEP ECTON: DRIVEN 1774&#8243;.  A tunnel arch leads inward, towards the heart of the hillside.</p>
<p>My wellingtons are in muddy water.  The pavement beneath, which I cannot see, is uneven. The daylight fades, but my eyes have not yet adapted to the dim torchlight.  Stumbling forwards, reaching out for the walls.  Tracing my hand along the wall to steady myself, missing my footing as my hand discovers crumbling gaps in the walls.  The dwarves that once worked this place left over 100 years ago; they must have been dwarves, for sure they were smaller folk than me, for I keep banging my helmet on the odd out of place stone in the ceiling.  We are in Deep Ecton Mine, once the source of the Peak District&#8217;s copper.</p>
<p>After a short while, plaster gives way to (limestone) brick. Little nooks appear, presumably once filled with candles. Then the brick gives way to a rough unlined tunnel through the bedrock.  The horizontal tunnel we are walking, stumbling, along would have been called an <em>adit</em> by the dwarves. Its upward slope is imperceptible save for the fact that we are walking through a stream; running downwards and outward to rejoin its brethren waters of the Manifold.  My eyes are adapted now, and my foot and inner ear give me mostly steady passage.</p>
<p>We pause at the first &#8220;chamber&#8221;, a swelling of the rough tunnel.  A crawl above a pile of rock debris, &#8220;deads&#8221; as the dwarves called them, leads to a much older, smaller, adit.  Its roof has fallen in, now blocked and unsafe.  A narrow shaft leads upwards, presumably once connecting to the surface.  The surface, and all evidence of the outside world, seems very distant now.</p>
<p>Passages leading off into the gloom.  Stepping over discarded ironwork, occasional rocks (fallen from the roof?), and&#8230; tramway sleepers.  The adit would once have been busy with minecarts.  I see a little metal tag marked with &#8220;A6&#8243; (a modern survey tag).  One dwarf has mezzotinted his initials, IB, into the wall with his pick.  The whole thing reminds me of, well, what else but Colossal Cave (and damnit, why didn&#8217;t I think to try saying &#8220;PLUGH&#8221;?).</p>
<p>The &#8220;IB&#8221; chamber has a big rectangular hole in the floor.  Full of water.  We are on the lowest dry level of the mine (the entrance that we used is only a few meters above the River Manifold).  Just around the corner we come to the main attraction.  A huge vertical cavern, or <em>pipe</em>.  Big enough to contain a house and extending upwards in a complex series of natural shafts, platforms, and other connecting chambers.  The house would have to float, for the &#8220;floor&#8221; of the cavern is a gigantic pool filled with crystal clear water.  No plant infiltrates, and no animal stirs the mud.  A tiny waterfall chirps and trickles its way down into the pool from some higher cavern.  Downwards, through the water, we can see that the pipe continues.  Occasionally we can see massive wooden props, essentially whole mature oaks trimmed to a rough rectangle, fitted across where they once would&#8217;ve supported platforms.  The mine continue downward, as does the pipe, for at least another 300m.  But the underwater areas remain unexplored since a diver&#8217;s death here in the 1960&#8217;s.</p>
<p>This pipe is where the copper was.  Formed when the bedrock flexed and cracked, allowing copper carrying water to seep in and deposit its lode.  Of course the dwarves took all the copper, but we can see occasional spots where copper has remineralised and formed a greenish colouration on the walls (copper carbonate?).  All around we can see places where the bedrock has bent into huge curves, cracked, and the cracks filled with worthless calcite (by contrast, the limestone bedrock nearer the entrace has no calcite veining).</p>
<p>This pipe was formed by hacking out valuable copper ores.  The next cavern is 10 metres across and big enough to stand in (and in parts up to about 8m high).  It was dug out not for copper, for it never contained any, but to house an engine.  It is the engine chamber.  Housing engines for pumping water out of the depths.  Engines powered not by steam, but by horse, and by water.  The amount of effort involved is quite incredible: all that worthless rock removed to create this large room, rivers diverted, engines installed, a vertical 300m oak beam (bolted in sections, naturally).  All just to remove water so that the lower sections of the mine could be worked for their copper.</p>
<p>Then the tour was over.  We had to make our way to the endgame before our batteries ran out and the cave collapsed (just kidding, another text adventure reference).  Whilst we had been underground for quite a while, it didn&#8217;t take us long to go back along the adit and reach daylight and the smell of fresh air, a smell you really appreciate when you&#8217;ve been underground.</p>
<p>Thanks to the staff of the Peak District National Park who used their own time to give us the opportunity to see the mine and benefit from their experience.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/drj11.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/drj11.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/drj11.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/drj11.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/drj11.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/drj11.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/drj11.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/drj11.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/drj11.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/drj11.wordpress.com/650/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=drj11.wordpress.com&blog=258145&post=650&subd=drj11&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://drj11.wordpress.com/2009/07/08/after-copper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c6dfaac50b9c43815dd18081e87f3e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">drj11</media:title>
		</media:content>
	</item>
	</channel>
</rss>