<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Samovar</title>
	<atom:link href="http://thesamovar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesamovar.wordpress.com</link>
	<description>A cup of tea and a political rant</description>
	<pubDate>Thu, 19 Jun 2008 14:27:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>HDR with a crappy mobile phone camera</title>
		<link>http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/</link>
		<comments>http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 22:26:27 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Frivolity]]></category>

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

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

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

		<category><![CDATA[mobile phone camera]]></category>

		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=306</guid>
		<description><![CDATA[I can&#8217;t be bothered to carry a camera around with me wherever I go, but my mobile phone camera produces pretty shitty images, especially in low light levels. Here&#8217;s an example of my living room with normal indoor lights:

You can probably see the noisy image at this reduced size, but if we zoom into the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I can&#8217;t be bothered to carry a camera around with me wherever I go, but my mobile phone camera produces pretty shitty images, especially in low light levels. Here&#8217;s an example of my living room with normal indoor lights:</p>
<p><a href="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-400.jpg"><img class="alignnone size-full wp-image-307" src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-400.jpg?w=400&h=533" alt="" width="400" height="533" /></a></p>
<p>You can probably see the noisy image at this reduced size, but if we zoom into the full resolution it gets much worse. Take a look at the teapot:</p>
<p><a href="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-teapotdetail.jpg"><img class="alignnone size-full wp-image-301" src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-teapotdetail.jpg?w=400&h=300" alt="" width="400" height="300" /></a></p>
<p>A couple of days ago it struck me that it ought to be possible, in principle, to take multiple photos of the same scene and have some software align them as best as possible, do some sort of averaging process and eliminate the noise. I&#8217;d heard about <a href="http://en.wikipedia.org/wiki/High_dynamic_range_imaging">high dynamic range imaging</a> (HDRI) before and it seemed like the sort of software techniques you&#8217;d need for that would be similar to the problem I&#8217;m set myself. And sure enough, they are, and it turns out Adobe Photoshop CS3 has some tools for this built in. So what I did was to take 13 pictures from the same place, each one with a different brightness level (to try to capture details at all the different light levels), and merge them together using Photoshop&#8217;s &#8220;Merge to HDR&#8221; tool. Once the image is merged into HDR, you show it to someone on a standard dynamic range monitor (i.e. everyone), you need to convert it to a normal dynamic range image, and there are various ways to do this. I just tried Photoshop&#8217;s default setting, and it&#8217;s &#8220;highlight compression&#8221; setting, and here are the results:</p>
<p><a href="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-400.jpg"><img class="alignnone size-full wp-image-308" src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-400.jpg?w=400&h=571" alt="" width="400" height="571" /></a></p>
<p><a href="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-highlightcompression-400.jpg"><img class="alignnone size-full wp-image-309" src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-highlightcompression-400.jpg?w=400&h=571" alt="" width="400" height="571" /></a></p>
<p>As you can probably see, the detail is much clearer and there&#8217;s much less noise. This is even clearer on a close up, take a look at the teapot in the new version:</p>
<p><a href="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-teapotdetail.jpg"><img class="alignnone size-full wp-image-303" src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-teapotdetail.jpg?w=400&h=300" alt="" width="400" height="300" /></a></p>
<p>Impressive!</p>
<p>If you have Photoshop, it&#8217;s only a matter of a few minutes to load these pictures in to do this, and there may well be free software out there that does the same thing. The biggest problem with this way of getting decent pictures out of a mobile phone camera is that you have to take the same picture from roughly the same angle lots of times. Sometimes you can do this, but sometimes it&#8217;s a bit more difficult. Fortunately, my phone has a &#8216;burst mode&#8217;, which takes 4 pictures in very quick succession. It&#8217;s still not going to be any good for a scene with moving objects in it (because they will just blur), but it takes the hassle out of taking the same picture over and over.</p>
<p>Anyway, for future food and cake pictures on this blog (always taken with my phone because I don&#8217;t own a camera), expect the quality to be much better now that I know about this HDR technique.</p>
<p>Does anyone else have any tips for getting the best out of a mobile phone camera? Mine&#8217;s a Sony Ericsson K750i incidentally. And just to finish up with, here&#8217;s a gallery including the full 1600&#215;1200ish photos so you can look at the detail close up.</p>

<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-individualimage-teapotdetail/' title='mylivingroom-individualimage-teapotdetail'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-teapotdetail.jpg?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-hdr-default/' title='mylivingroom-hdr-default'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default.jpg?w=67&h=96" width="67" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-hdr-default-teapotdetail/' title='mylivingroom-hdr-default-teapotdetail'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-teapotdetail.jpg?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-hdr-highlightcompression/' title='mylivingroom-hdr-highlightcompression'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-highlightcompression.jpg?w=67&h=96" width="67" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-individualimage/' title='mylivingroom-individualimage'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage.jpg?w=72&h=96" width="72" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-individualimage-400/' title='mylivingroom-individualimage-400'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-400.jpg?w=72&h=96" width="72" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-hdr-default-400/' title='mylivingroom-hdr-default-400'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-400.jpg?w=67&h=96" width="67" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-hdr-highlightcompression-400/' title='mylivingroom-hdr-highlightcompression-400'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-highlightcompression-400.jpg?w=67&h=96" width="67" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/mylivingroom-hdr-default-altcolours/' title='mylivingroom-hdr-default-altcolours'><img src="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-altcolours.jpg?w=67&h=96" width="67" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/booksandtea-hdr/' title='booksandtea-hdr'><img src="http://thesamovar.files.wordpress.com/2008/06/booksandtea-hdr.jpg?w=128&h=91" width="128" height="91" class="attachment-thumbnail" alt="" /></a>
<a href='http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/booksandtea-individual/' title='booksandtea-individual'><img src="http://thesamovar.files.wordpress.com/2008/06/booksandtea-individual.jpg?w=128&h=96" width="128" height="96" class="attachment-thumbnail" alt="" /></a>

<p><strong>Update</strong>. I just added three new pics to the gallery, two of books and tea where I took 16 images all at the same brightness level and merged them to HDR, and another one of the living room but with different and slightly more natural looking colours.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/306/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/306/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/306/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=306&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/06/16/hdr-with-a-crappy-mobile-phone-camera/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-400.jpg" medium="image" />

		<media:content url="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-individualimage-teapotdetail.jpg" medium="image" />

		<media:content url="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-400.jpg" medium="image" />

		<media:content url="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-highlightcompression-400.jpg" medium="image" />

		<media:content url="http://thesamovar.files.wordpress.com/2008/06/mylivingroom-hdr-default-teapotdetail.jpg" medium="image" />
	</item>
		<item>
		<title>Belief and Pragmatism: God, ideals and addiction</title>
		<link>http://thesamovar.wordpress.com/2008/05/28/belief-and-pragmatism-god-ideals-and-addiction/</link>
		<comments>http://thesamovar.wordpress.com/2008/05/28/belief-and-pragmatism-god-ideals-and-addiction/#comments</comments>
		<pubDate>Wed, 28 May 2008 00:43:33 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Epistemology]]></category>

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

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

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

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

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

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

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

		<category><![CDATA[champagne socialism]]></category>

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

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

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

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

		<category><![CDATA[internal model of the world]]></category>

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

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

		<category><![CDATA[radical empiricism]]></category>

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

		<category><![CDATA[reward signal]]></category>

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

		<category><![CDATA[the intentional stance]]></category>

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

		<category><![CDATA[william james]]></category>

		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=300</guid>
		<description><![CDATA[Recently I wrote a post that provoked much disagreement, claiming that almost nobody believes in God. On further reflection, I think I can make a clearer statement (although with a less punchy headline sadly). A less divisive way of putting it might be, what should we make of statements like
He believes X but acts as [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I wrote a post that provoked much disagreement, claiming that almost <a href="http://thesamovar.wordpress.com/2008/04/24/nobody-believes-in-god/">nobody believes in God</a>. On further reflection, I think I can make a clearer statement (although with a less punchy headline sadly). A less divisive way of putting it might be, what should we make of statements like</p>
<p style="padding-left:30px;">He believes X but acts as if he doesn&#8217;t,</p>
<p>and</p>
<p style="padding-left:30px;">He believes X but doesn&#8217;t act consistently with those beliefs.</p>
<p>These are quite curious statements, especially the first. I find these statements interesting because I want to try to interpret them as a Pragmatist. Briefly, a Pragmatist tries to only talk about things to the extent that they have real world consequences, and tries to give things meaning relative to those consequences. From this point of view, if we take the first statement as accurate, then we have a real problem. The first clause says that he believes X, but the second denies any connection between X and his actions. To define a pragmatic (I&#8217;ll use small p from here on) conception of &#8216;belief&#8217; would mean defining it in terms of its consequences, but the statement says there are none.</p>
<p>This might seem like a fairly irrelevant problem, but I think it&#8217;s more significant than it seems because people make statements like this all the time. I&#8217;ll illustrate with three examples:</p>
<ol>
<li>The &#8220;champagne socialist&#8221; claims to believe in an ideal of equality, but acts to get as much as he can for himself.</li>
<li>The theist who regularly sins and just generally doesn&#8217;t seem to pay anything more than lip service to his faith.</li>
<li>The drug addict, can see clearly that his habit will kill him but keeps on doing it anyway.</li>
</ol>
<p>The first two seem problematic to me, and the third less so although it shares many similar features.</p>
<p>Now at this point I should say that you could easily disagree that these are problematic. For example, most people aren&#8217;t pragmatists and so wouldn&#8217;t see the difficulty in finding a pragmatic definition of belief to be a problem. For my part, I feel that something like pragmatism is inescapable - if we&#8217;re to make sense then what we talk about has to be grounded in experience. William James sometimes referred to pragmatism as &#8220;radical empiricism&#8221;, which seems appropriate.</p>
<p>In the entry I wrote about belief in God, I took a point of view which I think is roughly equivalent to what Dennett calls the Intentional Stance. Although I must say I haven&#8217;t read his book so I might be mistaken. As I understand it, the intentional stance says: hypothesise that an individual is acting rationally with respect to his beliefs and desires. We can&#8217;t know what the beliefs and desires are (they&#8217;re internal), but we can see the actions and from that attempt to infer what the beliefs and desires are. Even though we know that individuals are not rational, thinking about in this way might tell us something useful.</p>
<p>Because I&#8217;ve been making Powerpoint slides for presentations recently, I couldn&#8217;t help but turn this idea into one of those silly diagrams with boxes and arrows. In the diagram &#8216;internal model&#8217; refers to the model of the world that an individual has, which is continually updated according to their experiences. The &#8216;plan&#8217; box gets arrows from &#8216;goals&#8217; and &#8216;internal model&#8217; because it is a rational maximiser attempting to find actions which, at least in the individuals internal model of the world, would best fit its goals.</p>
<p style="text-align:center;"><img class="alignnone size-full wp-image-297" src="http://thesamovar.files.wordpress.com/2008/05/model1.jpg?w=400&h=219" alt="Model 1" width="400" height="219" /></p>
<p style="text-align:center;"><strong>Model 1 - The intentional stance?</strong></p>
<p style="text-align:left;">I think this way of looking at things can tell us a lot, but it has some difficulties with the example of the drug addict. Now the drug addict doesn&#8217;t appear to act as if he believes his habit will damage him, although he says he knows it will, wishes to stop, etc. His claims about what he claims to believe also seem fairly uncontroversial in some sense, and are entirely about real world things with real world consequences (unlike the case of belief in God). One response would be to say that his goals are different to what you might think: an addict has the overriding goal of getting high. The trouble with this is that for this to be right, the goals must have been changed by his previous actions. If the individual&#8217;s goals as well as his internal model can be changed, then it becomes a lot more difficult to infer anything about the goals or beliefs from the actions. In particular, what is to stop us saying that everyone&#8217;s &#8216;goal&#8217; is to do the actions that they actually do? This fits with the intentional stance but tells us next to nothing. I think I know what the response to this criticism would be: that that would be to multiply the number of &#8216;goals&#8217; unnecessarily (one for each action). Fair enough, but it does point to a genuine problem with that theory I think.</p>
<p style="text-align:left;">In the case of addiction, we actually have quite a good scientific theory as to what happens. Taking addictive drugs releases chemicals into the brain which mess up the reward signals that our brain uses as part of its decision making process. It shouldn&#8217;t be a surprise that injecting chemicals into the part of us that makes decisions might mess up that process. Now should this be described as messing with our goals and desires, or as messing with our rationality?</p>
<p style="text-align:left;">Returning to the first two examples of the champagne socialist and the sinning theist, I think most people would say that they really do believe what they say they believe, but that those beliefs don&#8217;t directly determine the individual&#8217;s actions. This seems a reasonable point of view, but it needs some work to make it more precise. My first attempt is this boxes and arrows diagram:</p>
<p style="text-align:center;"><img class="alignnone size-full wp-image-298" src="http://thesamovar.files.wordpress.com/2008/05/model21.jpg?w=400&h=296" alt="Model 2" width="400" height="296" /></p>
<p style="text-align:center;"><strong>Model 2 - The adviser to the king</strong></p>
<p style="text-align:left;">In the top left we have a box with little boxes inside it. The large box represents in some sense the conscious part of this individual&#8217;s mind. He has a conscious model of the world, conscious goals, and from this he can formulate a conscious plan. However, in the larger scheme of things, these consciously determined plans don&#8217;t have the final say. There is also an unconscious scheme: an unconscious internal model of the world, unconscious goals, and a plan based on these unconscious elements in addition to the conscious ones. It is this unconscious bit that has the final say, and the results of actions taken feed back into both the conscious and unconscious internal models of the world. In this model, the conscious part is in some sense acting as an adviser to the real decision maker, the unconscious part. Relative to this scheme, we can say that the beliefs of the conscious part (the internal model inside the top left box) are that individual&#8217;s &#8216;beliefs&#8217;. This could explain why an individual could be capable of &#8216;believing&#8217; one thing but acting in contradiction to that belief: the unconscious planner is just overriding the suggestions of the conscious adviser.</p>
<p style="text-align:left;">This model can also explain a lot. You could say that the conscious module at the top left is a sophisticated, rational reasoner, capable of using logic, deduction, etc., whereas the unconscious decision maker uses much cruder rule, something along the lines of: do what&#8217;s worked well in the past according to how much dopamine is sloshing around my brain afterwards. This would obviously explain the drug addict example where the unconscious decision maker is getting directly messed with chemically. It would also explain the sinning theist and champagne socialist: the unconscious decision maker with the real power has just realised that the high and mighty ideals of the conscious module don&#8217;t make it happy, whereas sex and champagne do.</p>
<p style="text-align:left;">So this scheme is nice, but it has a different set of problems. The first is that it is much more empirical than the intentional stance scheme. Who knows if this is how the brain really makes its decisions or not? Further neuroscientific research may tell us how we really make decisions, but wouldn&#8217;t we like to be able to say something meaningful without waiting for that (which may easily be many decades coming)? In general, &#8216;belief&#8217; clearly relates to an internal state and therefore a definition of it would seem to have to relate to a model of human thought and behaviour. Or is there another neutral way of defining it? I haven&#8217;t got one. Any suggestions?</p>
<p style="text-align:left;">The second problem is more philosophical, and relates to how we use a term like belief. Suppose the model of decision making in the adviser model was accurate, does it make sense to say that the individual as a whole &#8216;believes&#8217; what are really just the beliefs of one part of it? Or is this just overemphasising the conscious part of belief? Perhaps we need a new vocabulary of belief that makes this distinction clearer? Or perhaps we should just abandon the word entirely?</p>
<p style="text-align:left;">I propose that instead we always bear in mind the limit of applicability of a concept. Most concepts are useful when used in certain contexts, but break down at certain edge cases (like for example, the concept of &#8216;inside&#8217; breaks down at a quantum level when objects can jump between positions without going through intermediate ones). From this point of view then, we could say that the concept &#8216;belief&#8217; has some everyday uses, but that we should always have in mind the pragmatic limit of applicability. Things like belief in gravity or belief about some observable facts, which people act consistently with almost all of the time, could be still used unproblematically, but talk of belief in ideals or belief in God should raise alarm bells because we know that these beliefs will not inform us as to individuals actions. An alternative conclusion to my previous controversial entry would then be: belief in God is beyond the pragmatic limit of applicability of the concept &#8216;belief&#8217;.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/300/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/300/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=300&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/05/28/belief-and-pragmatism-god-ideals-and-addiction/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/05/model1.jpg" medium="image">
			<media:title type="html">Model 1</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/05/model21.jpg" medium="image">
			<media:title type="html">Model 2</media:title>
		</media:content>
	</item>
		<item>
		<title>Nobody believes in God</title>
		<link>http://thesamovar.wordpress.com/2008/04/24/nobody-believes-in-god/</link>
		<comments>http://thesamovar.wordpress.com/2008/04/24/nobody-believes-in-god/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 02:58:57 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Epistemology]]></category>

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

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

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

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

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

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

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

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

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

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

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

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

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

		<category><![CDATA[mental models]]></category>

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

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

		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=288</guid>
		<description><![CDATA[OK, not nobody, but almost nobody.
To believe something, you have to act in a way that is consistent with the belief being true. Otherwise, you&#8217;re just saying that you believe it. If someone tells you that twiglets are highly toxic and will kill you instantly, at the same time as munching a bag full of [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>OK, not nobody, but almost nobody.</p>
<p>To <em>believe</em> something, you have to act in a way that is consistent with the belief being true. Otherwise, you&#8217;re just <em>saying </em>that you believe it. If someone tells you that twiglets are highly toxic and will kill you instantly, at the same time as munching a bag full of them, you&#8217;re likely to doubt they really believe it. Same thing if they told you that it would lead you to an eternity of damnation. You wouldn&#8217;t trade in the brief pleasure of eating a bag of twiglets for an eternity of damnation if you really believed in it. But this is exactly the situation of people claiming to believe in God whilst simultaneously doing things all the time that are inconsistent with it being true. Anyone who believes in hell but sins anyway - they don&#8217;t really believe in hell. Someone who believes in the teaching of Jesus, but also thinks that capitalism is a great idea - doesn&#8217;t really believe in Jesus&#8217; teachings at all. And so on.</p>
<p>Now at this point, a Catholic will come along and say: you don&#8217;t necessarily go to hell if you sin, as long as you repent afterwards. But&#8230; if you sin planning to &#8216;repent&#8217; afterwards, that doesn&#8217;t count (so I&#8217;m told). Well, I bet quite a lot of that goes on if people were honest with themselves. It seems to me that if you really believed in God, you wouldn&#8217;t try to sneak stuff by on a technicality. If you have any respect for the concept at all, you&#8217;ve surely gotta believe that He is wise to that.</p>
<p>In fact, when a religious rule is inconvenient, it tends to be ignored, or the meaning of it changed. In a capitalist society, the stuff that is antithetical to the pursuit of wealth is ignored. In a liberal society, the stuff about stoning adulterers and homosexuals is ignored. Conversely, in an illiberal one the stuff about loving your neighbour and turning the other cheek is ignored.</p>
<p>When it comes to a clash between what religion says you should do, and what is convenient to do in real life, convenience wins out over religion almost every time. Or in other words, the reason that there are so many adulterous affairs is that people don&#8217;t give any credence to the idea that they will be eternally punished for it in the afterlife (no shag is good enough to warrant infinite and everlasting pain as a consequence, surely?). In practice they behave, quite sensibly, as if the notions of religion were false. And for these reasons, I think it&#8217;s fair to say that most people don&#8217;t believe in God.</p>
<p><strong>The meaning of &#8216;belief&#8217;</strong></p>
<p>I suppose to make my case a bit more convincing I need to say something about the meaning of the word &#8216;belief&#8217;. Three obvious possibilities come to my mind when trying to define what belief might mean, someone believes something if:</p>
<ol>
<li>They say they believe it.</li>
<li>They act in a way that is consistent with it being true.</li>
<li>They are in some internal state correlative with the concept &#8216;belief&#8217;.</li>
</ol>
<p>The twiglet example shows that (1) isn&#8217;t good enough, and it&#8217;s not clear that (3) has any meaning although it&#8217;s obviously compelling in some way. So for me, I have to go with (2), although I&#8217;d modify it slightly. I would say that to believe something is, roughly speaking, to act in accordance with a mental model of the world in which the proposition is true. I prefer this way of talking about it because it deals with the difficulty of defining what is or isn&#8217;t true (you can define truth or falsity of a proposition relative to a model without having to define it for the real world), and it gives a slightly more precise idea of what sorts of actions would count as consistent (i.e. those that are made by some decision-making procedure based on a mental model relative to which the proposition is true). This definition has its difficult points too, but I think it&#8217;s a helpful starting point at least.</p>
<p>In my experience of explaining this idea to people, there are various sticking points that stop people from agreeing that nobody believes in God. For starters, it seems kind of rude to suggest all these people are saying they believe in God but don&#8217;t really. Well, maybe that is rude, but is it any ruder than saying that one of their fundamental beliefs is wrong and that their view of the world is completely warped? I don&#8217;t think so, but even if it is that&#8217;s no reason not to say it. I think a more fundamental sticking point is that most people tend to have some sort of mixture of definitions (1) and (3) in their minds when asked about what belief means. If there is a mental state correlative to &#8216;belief&#8217; - and introspection and intuition says there is - then surely the best person to report the status of that mental state is the person concerned. All very democratic, but people are often very bad at introspection and may themselves think that the fact that they are saying something without attempting to deceive means they believe it. The problem with that is: what about the unconscious?</p>
<p>The last sticking point is perhaps the most interesting of all, that in many ways it seems as though people <em>do</em> act in a way that is consistent with it being true. They go to church (some of them), they try to avoid sinning too much, they pray, etc. My response to this is that all of these actions are consequences of their <em>believing that they believe</em>, but not their actual believing. And I think that&#8217;s not a contradiction. The thing is, our mental models are disjointed fragmentary ones, not grand theories of everything. To get by in the world, we only need incomplete, heuristic models of situations that tend to recur. A mental model of the world in which we act as if we had a mental model of the world in which God exists doesn&#8217;t necessarily mean that we do indeed have a mental model of the world in which God exists. Mental models, and decision making procedures based on them, don&#8217;t have to be complete or accurate. They don&#8217;t need to be deductively complete or consistent, because most of the time we&#8217;re not capable of nor interested in making all the deductive conclusions possible from our different fragmentary mental models. In particular, our mental models of ourselves are often quite incredibly wrong. We think &#8220;In situation X I would do Y&#8221;, but then situation X happens and we do Z, the exact opposite of Y. It happens all the time. So it&#8217;s perfectly possible that we can believe that we believe in God, and consequently do all of the things we associate with a person who believes in God, but not actually believe in God (which would if we thought about it deeply enough, entail doing all sorts of things we wouldn&#8217;t actually do).</p>
<p><strong>Dennett</strong></p>
<p>With most ideas, someone has already had them before you (often Hume in my experience, the clever bugger), and this is no exception. I haven&#8217;t read much Dennett, but it appears he has covered some of the same ground. I&#8217;m told that he makes a distinction between belief and opinion that is somewhat akin to what I&#8217;m talking about here. I didn&#8217;t find anything directly about this (please post a link in the comments if you have a good one), but his article <a href="http://pp.kpnet.fi/seirioa/cdenn/doanimal.htm">Do Animals Have Beliefs?</a> has this interesting nugget which might have some relevance to the discussion of the three definitions of belief above:</p>
<p style="padding-left:30px;">There are independent, salient states which belief-talk &#8216;measures&#8217; to a first  approximation.</p>
<p>I also found this YouTube video of him saying that he doesn&#8217;t believe that believers really believe. It&#8217;s my first embedded video on this blog, too.</p>
<p><code><span style="text-align:center; display: block;"><a href="http://thesamovar.wordpress.com/2008/04/24/nobody-believes-in-god/"><img src="http://img.youtube.com/vi/tN8BHD9sXJ8/2.jpg" alt="" /></a></span></code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/288/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/288/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/288/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=288&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/04/24/nobody-believes-in-god/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/tN8BHD9sXJ8/2.jpg" medium="image" />
	</item>
		<item>
		<title>Sausage dog?</title>
		<link>http://thesamovar.wordpress.com/2008/04/19/sausage-dog/</link>
		<comments>http://thesamovar.wordpress.com/2008/04/19/sausage-dog/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 20:08:48 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Frivolity]]></category>

		<category><![CDATA[sausage dog]]></category>

		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=294</guid>
		<description><![CDATA[Seen on a street in Paris - anyone care to enlighten me as to what this might mean?

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Seen on a street in Paris - anyone care to enlighten me as to what this might mean?</p>
<p><a href="http://thesamovar.files.wordpress.com/2008/04/sausage-dog.jpg"><img class="alignnone size-medium wp-image-293" src="http://thesamovar.files.wordpress.com/2008/04/sausage-dog.jpg?w=420&h=315" alt="" width="420" height="315" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/294/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/294/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=294&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/04/19/sausage-dog/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/04/sausage-dog.jpg?w=420" medium="image" />
	</item>
		<item>
		<title>Democracy</title>
		<link>http://thesamovar.wordpress.com/2008/03/29/democracy/</link>
		<comments>http://thesamovar.wordpress.com/2008/03/29/democracy/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 21:19:28 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Manifesto]]></category>

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

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

		<category><![CDATA[arrow's possibility theorem]]></category>

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

		<category><![CDATA[climate change]]></category>

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

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

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

		<category><![CDATA[free press]]></category>

		<category><![CDATA[legislative and regulatory reform bill]]></category>

		<category><![CDATA[magna carta]]></category>

		<category><![CDATA[median voter theorem]]></category>

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

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

		<category><![CDATA[representative democracy]]></category>

		<category><![CDATA[secret ballot]]></category>

		<category><![CDATA[universal suffrage]]></category>

		<category><![CDATA[welfare state]]></category>

		<category><![CDATA[will of the people]]></category>

		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=289</guid>
		<description><![CDATA[Democracy is one of those words that everybody uses but about which there is not a great deal of clarity as to what it means. The first ideas I can remember having of democracy were that it means a government elected by the people, or a government representing the will of the people. The first [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Democracy is one of those words that everybody uses but about which there is not a great deal of clarity as to what it means. The first ideas I can remember having of democracy were that it means a government elected by the people, or a government representing the will of the people. The first idea led me to declare that democracy was not a good thing, the second to declare that we do not live in a democracy (for various reasons to do with the biases and influences in our political process, and <a href="http://www.bbc.co.uk/dna/h2g2/A568613">the impossibility of designing a perfect voting system</a>). I no longer believe these. Instead, I now say that we do live in a democracy, that this is a very good thing, but that it means a lot less than many people think it does, and that we can do better.</p>
<p>For the past few years I&#8217;ve been considering an alternative view of democracy, which although it seems fairly obvious, doesn&#8217;t appear to be widely considered (Wikipedia&#8217;s article on <a href="http://en.wikipedia.org/wiki/Democracy">democracy</a> doesn&#8217;t mention anything like it anyway).</p>
<p>Democracy as elections, and democracy as government by the will of the people both have problems which relate to each other. The main problem with the democracy as elections theory is that it doesn&#8217;t explain why this should be a good thing. The most obvious response is that this process ought to result in a government that is representative of the electorate. Likewise, if you try to define democracy as meaning a system with governments that are representative of the people, you then have to explain how the system ensures that. Both of these views of democracy rely on the other, and they each have meaning only if they can be satisfactorily connected. Democracy as government by the will of the people is the intent, democracy as elections is the process used to try to ensure that.</p>
<p>It&#8217;s usually considered that you also need to have free and fair elections, secret ballots and a free press. It&#8217;s intuitively obvious at first glance that these things are all good ideas, and that not having them creates problems. The question is: does having them guarantee a representative government as a result? I know of no convincing argument that it does. Indeed, it misses out what I consider to be a fairly major additional requirement: that there is a certain level of equality of wealth and power in the society concerned. Even adding this in as another basic requirement for democracy, it&#8217;s not clear that this would guarantee a representative government. Maybe you also need a certain universal level of education and political awareness? How do you specify and guarantee that? You could go on and on.</p>
<p>There&#8217;s also the problem of what these requirements themselves mean. What is a free press for example? Is it just a press free from censorship? Or is there a requirement for a certain level of diversity? Can a press in a ruthlessly competitive free market, relying on advertising for most of its income be considered enough to satisfy the requirements of a democracy? Other questions you might need answers to are: what level of equality is required? What level of education and political awareness? Which form of voting system should we use (FPTP, PR, etc.)? This last question is related to perhaps the most fundamental question of all: what exactly <i>is</i> the will of the people? What does that even mean? These are all enormously complex questions, and without answers to them it&#8217;s not clear that we can say we know what democracy means in the standard view.</p>
<p>My alternative view doesn&#8217;t explain away the problems mentioned above, but I believe it clarifies the problems, connects the theoretical issues with reality more firmly, and suggests more useful ways of moving forward.</p>
<p>The first view is that democracy shouldn&#8217;t be seen as a positive guarantee of good government, it should rather be seen as a negative guarantee: <i>a guarantee that the extremes of bad government are excluded</i>. It&#8217;s clear that all our voting procedures, our not-quite-free press, our unequal society and so forth do not necessarily guarantee a government that is good in any sense of the word. But, it&#8217;s also clear that in this system it would be very difficult to get a really awful government that acted manifestly against the interests of everyone in society. In England, this view is a historically accurate one. The <a href="http://en.wikipedia.org/wiki/Magna_Carta">Magna Carta</a> came about not because the barons wanted a good government that worked in the interests of everyone in society, but because the King was abusing his powers too much and it was hurting them. Further extensions to democracy in England came about gradually, slowly increasing the number of people whom the government could not systematically abuse. Each increase was hard fought for and was a reaction to abuses by the government, rather than an attempt to create a positive system of government. We should not expect a historical process that advances in reaction to abuses to have produced a system that goes far beyond the prevention of abuses to guarantee positive good government that works in the interests of all.</p>
<p>This view has several consequences. First of all, we should realise that the democracy that we have has been very hard fought for, and we need to preserve those aspects of it which prevent these extreme abuses. A danger of thinking of democracy in purely positive terms (how can we make government work better for everyone rather than how can we prevent the government abusing its power), is that by underestimating the importance of the negative aspect it potentially opens the door to precisely those abuses which democracy evolved to exclude. If you believe that the democratic process guarantees a government that is good in some positive sense, then it doesn&#8217;t make any sense to put restrictions on what that government can do - why hamper their good efforts? The present Labour government in the UK has introduced or attempted to introduce several pieces of legislation which reduce the limitations on its own power, supposedly to allow it to serve us better (to protect us from terrorism). The now infamous <a href="http://www.saveparliament.org.uk/problem.php">Legislative and Regulatory Reform Bill</a> attempted to give ministers the power to overturn legislation without consulting parliament. It&#8217;s important to realise that our democratic process doesn&#8217;t guarantee positive good government, and that&#8217;s why it&#8217;s absolutely essential to maintain those aspects which stop the government from abusing its power, even if that also makes it more difficult or stops them from doing some things which might be considered positive. Our democracy is not yet secure enough that we can forget about this fundamental negative aspect of it. In fact, it&#8217;s a relatively recent phenomenon. It wasn&#8217;t until 1928 in the UK when <a href="http://en.wikipedia.org/wiki/Women's_suffrage#United_Kingdom">women were given equal voting rights to men</a> that the majority of the population participated. Even now, the 21% of the population under the age of 18 cannot vote (see <a href="http://www.statistics.gov.uk/populationestimates/svg_pyramid/uk/index.html">this fun age pyramid</a>).</p>
<p>A second consequence of this view is that democracy develops by narrowing the window of opportunity for abuse. Advances in democracy are moments when an old form of systematic abuse ends. This can be a progressive notion. For example, at the moment I would argue that there are various structural aspects of our democracy and capitalist economy that mean that a series of governments which systematically favour the interests of the wealthy is possible. Changes in our society that made governments that were systematically biased in favour of the wealthy impossible or unlikely would be an advance in democracy. I would go further and say that the democratic case for socialism is strong, but that&#8217;s another story.</p>
<p>The obvious criticism of this view is that it misses out the positive aspect of democracy. Sometimes elected governments do things which are positively in the public interest, and the reason for that is that they were elected to do so. The creation of the NHS or the welfare state might be a good example of this. There are a few responses to this. First of all, there is a question of whether or not the creation of the NHS and welfare state were positive acts, but rather acts taken to avert further dissent (i.e. defensive manoeuvres). Secondly, the alternative view doesn&#8217;t say that positive acts are impossible, just that there is no guarantee that they will happen. To argue for the positive view of democracy you would have to argue how democracy makes these outcomes more likely. It&#8217;s not obvious to me that this is possible even if we had a good idea of what socially good outcomes might mean. Indeed, there is some good evidence that democratic structures don&#8217;t encourage such outcomes. For example, the <a href="http://en.wikipedia.org/wiki/Median_voter_theory">median voter theorem</a> is a mathematical idealisation of two party democracy which suggests that governments will tend to suggest policies which favour the median voter. This is clearly not encouraging policies which are representative of the electorate, but it is encouraging policies which exclude the worst extremes (although actually, the median voter theorem is a sort of perturbation analysis so it doesn&#8217;t say anything about extremes). A good example of this was Brown&#8217;s last budget which increased the tax burden on the rich and the poor, but decreased it for those in the middle. The third response to the criticism is that where abuse of a system is possible, it seems that it tends to happen. This makes understanding the extent to which democratic structures exclude possibilities for abuse much more important than understanding how they enable positive acts.</p>
<p>The idea of this way of looking at democracy is to better understand what it actually is and how things really happen, a realist view rather than an idealist one. But I am an idealist, so I also want to understand how to make things better and believe it can be done. This way of looking at things helps in various ways. First of all, it&#8217;s always good to be realistic about what is actually going on to better understand how to make things better. Much thinking about democracy appears to be of the self-delusional form. Secondly, it already suggests a whole series of ways of improving democracy by reducing the window of opportunity for abuse. Lastly though, it provides a better framework for proposing positive improvements to our democracy. By dropping the fiction that democracy is about good government and representing the people, it concentrates our attention on systematic analyses of what different democratic structures can do. It also strongly emphasises that positive functions of democracy have to be backwards compatible with the important negative function.</p>
<p>One day, we will perhaps reach a stage where we have a society of rough equality, where no part of it is systematically abused by any other part of it. At that stage, our thinking about democracy and government can begin to focus on ways to achieve more directly positive outcomes, but we haven&#8217;t reached that stage yet (and if we do reach that stage, we&#8217;ll likely be thinking about everything very differently anyway). At the moment, our problem is the opposite. We have many governments of democratic nations around the world systematically attacking fundamental aspects of democracy, we have the press becoming less and less free as it reduces spending to compete for ever diminishing profits and becomes more and more reliant on government and corporate propaganda. We also have the prospect of potential crises such as climate change, which mean that the negative function of democracy will become even more important than ever if we want to avoid the worst happening to our society in the aftermath of the crisis (for example, the BNP has an electoral strategy that is designed around gaining power in exactly this sort of crisis situation).</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/289/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/289/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=289&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/03/29/democracy/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>
	</item>
		<item>
		<title>Smallest number of keypresses</title>
		<link>http://thesamovar.wordpress.com/2008/03/06/smallest-number-of-keypresses/</link>
		<comments>http://thesamovar.wordpress.com/2008/03/06/smallest-number-of-keypresses/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 01:39:59 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Frivolity]]></category>

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

		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=291</guid>
		<description><![CDATA[OK, this is not the entry I promised in my last blog entry, but&#8230;
What is the quickest way to type 250 c&#8217;s in a row in a standard Windows text field? I make it 24, can anyone beat that?
c, c, (press and hold) ctrl, a, c, v, v, v, v, v, a, c, v, v, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>OK, this is not the entry I promised in my last blog entry, but&#8230;</p>
<p>What is the quickest way to type 250 c&#8217;s in a row in a standard Windows text field? I make it 24, can anyone beat that?</p>
<p>c, c, (press and hold) ctrl, a, c, v, v, v, v, v, a, c, v, v, v, v, v, a, c, v, v, v, v, v</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/291/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/291/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/291/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=291&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/03/06/smallest-number-of-keypresses/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>
	</item>
		<item>
		<title>What should I write next?</title>
		<link>http://thesamovar.wordpress.com/2008/03/02/what-should-i-write-next/</link>
		<comments>http://thesamovar.wordpress.com/2008/03/02/what-should-i-write-next/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 00:16:30 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		<guid isPermaLink="false">http://thesamovar.wordpress.com/?p=290</guid>
		<description><![CDATA[I haven&#8217;t written much on this blog for a long time, and I have five planned entries to write so I&#8217;m soliciting opinions about which people would prefer to read. Let me know what you think if you have any preferences. In rough order of which I think would be more interesting or more likely [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I haven&#8217;t written much on this blog for a long time, and I have five planned entries to write so I&#8217;m soliciting opinions about which people would prefer to read. Let me know what you think if you have any preferences. In rough order of which I think would be more interesting or more likely to complete:</p>
<ol>
<li><b>Nobody believes in God.</b> In which I will argue that hardly any people who identify as religious behave in a way that is consistent with their really believing in God.</li>
<li><b>Democracy.</b> In which I will describe two somewhat uncommon (but by no means wholly original) views I have about what democracy means: democracy as a word without a fixed meaning but with Wittgensteinian &#8216;family resemblances&#8217;; democracy as a historical phenomenon designed to exclude tyranny rather than as a way to guarantee good or representative government.</li>
<li> <b>Arationality and Honesty.</b> In which I&#8217;ll talk about what it means to be rational, put forward the hypothesis that it&#8217;s impossible to be completely rational, relate this to the epistemological theory of pragmatism, then turn to ethics and the idea of coming to terms with our own inconsistency, and taking responsibility for your actions rather than trying to act according to a moral code, and finally talk about propaganda, cognitive dissonance and this alternative ethical theory.</li>
<li><b>Capitalism.</b> My eight reasons/meta-reasons for being opposed to capitalism.</li>
<li><b>Religion and Politics.</b> I&#8217;ve had this sitting in my WordPress drafts folder for over a year now so it&#8217;s fairly unlikely I&#8217;ll ever actually finish it. In it I&#8217;ll talk about terrorism, Islam, authority, hierarchy, democracy, politics and the possibility of irresolvable differences of opinion, and finally a suggestion that politics is much more important to talk about than religion.</li>
</ol>
<p>Alternatively, if you have any suggestions for what I ought to write about instead - let me know&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/290/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/290/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/290/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=290&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/03/02/what-should-i-write-next/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>
	</item>
		<item>
		<title>Meilleur munching</title>
		<link>http://thesamovar.wordpress.com/2008/01/20/meilleur-munching/</link>
		<comments>http://thesamovar.wordpress.com/2008/01/20/meilleur-munching/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 14:19:23 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Consumption]]></category>

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

		<category><![CDATA[au trou gascon]]></category>

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

		<category><![CDATA[helene darroze]]></category>

		<category><![CDATA[l'ourcine]]></category>

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

		<category><![CDATA[meilleur ouvrier de france]]></category>

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

		<category><![CDATA[patrick roger]]></category>

		<category><![CDATA[pierre herme]]></category>

		<category><![CDATA[tarte aux framboises]]></category>

		<guid isPermaLink="false">http://thesamovar.wordpress.com/2008/01/20/meilleur-munching/</guid>
		<description><![CDATA[So, a while ago Edward the Bonobo suggested that I should spend less time on politics, and more time on food, so this entry is devoted to the delights of eating in Paris.
Let&#8217;s start with my local cake shop (well, local to where I work, not where I live), La Boulange cinquieme. After trying most [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, a while ago <a href="http://bonoboworld.blogspot.com/">Edward the Bonobo</a> suggested that I should spend less time on politics, and more time on food, so this entry is devoted to the delights of eating in Paris.</p>
<p>Let&#8217;s start with my local cake shop (well, local to where I work, not where I live), <i>La Boulange cinquieme</i>. After trying most of the <i>pâtisseries</i> near where I work, this one won out for me, for their fantastic <i>tarte aux framboises</i>. If you happen to find yourself in the latin quarter of Paris (the 5th <i>arondissement</i>), I can recommend a visit (although there&#8217;s somewhere else you should go too - more on that below). You&#8217;ll find it near the southern end of <i>rue Gay-Lussac</i> (but watch it, it&#8217;s not open at the weekend). Here are a couple of pics of some the large cakes I bought for my dad&#8217;s birthday party, although I&#8217;m afraid the picture quality is not very good because they were taken on my phone, first the <i>tarte aux framboises</i> (they do little individual ones too):</p>
<p><img src="http://thesamovar.files.wordpress.com/2008/01/boulangev-framboise.jpg" alt="boulangev-framboise.jpg" /></p>
<p>And the <i>Opéra </i>(a sort of chocolatey coffee wafery affair):</p>
<p><img src="http://thesamovar.files.wordpress.com/2008/01/boulangev-opera.jpg" alt="boulangev-opera.jpg" /></p>
<p>I bought four cakes from this shop for my dad&#8217;s party, including a <i>clafoutis</i> (a sort of baked custard and fruit tart) and a <i>tarte aux noix</i> (walnut and caramel tart). I was actually quite lucky to get them, because normally for the large tarts you need to order in advance (something I didn&#8217;t know at the time). It was quite fun going into the shop and saying &#8220;<i>Bonsoir, je voudrai quelques tartes entiers, s&#8217;il vous plait</i>&#8220;, &#8220;<i>Oui Monsieur, lesquelles?</i>&#8220;, &#8220;<i>Er&#8230; les toutes</i>&#8220;, &#8220;<i>Les toutes?</i>!&#8221;, &#8220;<i>Oui, les toutes</i>&#8220;, &#8220;<i>Tres bien Monsieur</i>&#8220;. It&#8217;s not often you get to go into a shop and buy up their whole stock of something. And I&#8217;ve had very friendly service there ever since then. (Please excuse my almost certainly wrong French above.)</p>
<p>The other cake shop you should visit if you are south of the river in Paris is <a href="http://www.pierreherme.com"><i>Pierre Hermé</i></a> about half way up <i>rue Bonaparte</i> north of the <i>Jardin du Luxembourg</i>. The French take their pastry very seriously, and this is reflected in the fact that Hermé was awarded the <i>Legion d&#8217;honneur</i> in 2007. I went for his most famous cake, the <i>Ispahan. </i>The photo below is from his website because my camera phone photo doesn&#8217;t do it justice. I had the small, individual version of this tart, which consists of a rose <i>macaron</i> like biscuit, with raspberries, lychee and a rose petal cream. Wow! If you love cake and you don&#8217;t mind the expense (it was about €6-7 for an individual portion), it&#8217;s definitely worth the trip.</p>
<p><img src="http://thesamovar.files.wordpress.com/2008/01/pierre-herme-big-isphahan.jpg" alt="pierre-herme-big-isphahan.jpg" /></p>
<p>While I was there, I also couldn&#8217;t resist getting one of the famous <i>macarons</i> (a tiny little  sandwich of two almond meringues with various different fillings). His flavours are very unusual. Normally you get things like raspberry, chocolate, coffee and so forth. I went for his olive oil and vanilla <i>macaron</i> and I can tell you it was amazing. I shall be back to try some of the others, although I&#8217;m not sure about the foie gras and chocolate one.</p>
<p>Next stop, chocolate. A friend advised me about a <i>chocolatier</i> called <a href="http://www.patrickroger.com/"><i>Patrick Roger</i></a> which he claimed was the best in France. So, while I was doing christmas shopping, I thought I&#8217;d pop in and get some presents there. He wasn&#8217;t wrong, eating chocolate from this place is a seriously different experience to eating chocolate from anywhere else I&#8217;ve been been. Or in the words of my mum after she&#8217;d eaten some - what is the point of eating ordinary chocolate ever again after something like that?</p>
<p><img src="http://thesamovar.files.wordpress.com/2008/01/patrickroger.jpg" alt="patrickroger.jpg" /></p>
<p>While I was there, I noticed that the shop sign had something which seemed rather boastful. It said <i>Meilleur Ouvrier de France</i> (best [chocolate] maker in France). Well, it turns out that this is an award given every three years to the best places in various categories (food ones are the ones I&#8217;m interested in, but they also do many other things). So now I&#8217;m on the lookout for more MOF shops (the MOF website is unfortunately totally hopeless and can&#8217;t be used to find out where they are). I found the MOF <i>fromagerie</i> at the north end of the <i>rue Monge</i> near where I work, and bought some cheese there, but to be honest I&#8217;m not a huge fan of smelly, mouldy French cheese so this wasn&#8217;t such a revelatory experience as the chocolate.</p>
<p>Last but not least, restaurants. I haven&#8217;t had such good luck in restaurants in Paris as I had hoped, so nowhere stands out particularly. If you want an excellent and inexpensive place in the 13th <i>arondissement</i> (where I live), I can highly recommend <a href="http://www.lefooding.com/restaurant-147-lourcine.htm"><i>l&#8217;Ourcine</i></a> on <i>rue Broca</i>. They do a set three course meal for €30, which was fantastic both times I went. If you want something a bit posher than that, but you don&#8217;t want to go to the sky high <i>trois étoiles</i> places, you might like <a href="http://www.carredesfeuillants.fr/dyn/article.php3?id_article=4"><i>Au Trou Gascon</i></a> in the 12th <i>arondissement</i> (just north of the river to the east). I had the five course <i>dîner Gourmand</i> which is very good value at €50, and consisted of:</p>
<ul>
<li><i>Gambas, royale de foie gras, émulsion de chataîgnes</i> (prawns, foie gras mousse, chestnuts)</li>
<li><i>Noix de St Jacques, endives fondantes</i> (scallops with endives)</li>
<li><i>Filet de biche, semoule de brocoli, fumet cacao</i> (fillet of venison, some sort of brocoli thing, smoked in cocoa?)</li>
<li><i>Faisselle pastorale, miel citronné, huile d’olive et pignons</i> (faisselle is a soft white cheese, here served with honey, olive oil and pine kernels)</li>
<li><i>Glace chocolat noir « minute » servie devant vous, éclats de marron, meringue vanillée</i> (very dark chocolate ice cream with chestnuts and vanilla meringue)</li>
</ul>
<p>Other than the cheese, which as I&#8217;ve said I&#8217;m not a big fan of, it was all delicious. I wouldn&#8217;t have minded a more interesting pudding that chocolate ice cream and meringue, but it was a good one.</p>
<p>OK, that&#8217;s all for now. Expect a report if I get round to visiting somewhere like the restaurant <a href="http://www.relaischateaux.com/darroze">Hélène Darroze</a> (the only Michelin three star restaurant in Paris run by a female chef). The lunch menu seems just about possible for a special occasion, at €70.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/283/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/283/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=283&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/01/20/meilleur-munching/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/01/boulangev-framboise.jpg" medium="image">
			<media:title type="html">boulangev-framboise.jpg</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/01/boulangev-opera.jpg" medium="image">
			<media:title type="html">boulangev-opera.jpg</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/01/pierre-herme-big-isphahan.jpg" medium="image">
			<media:title type="html">pierre-herme-big-isphahan.jpg</media:title>
		</media:content>

		<media:content url="http://thesamovar.files.wordpress.com/2008/01/patrickroger.jpg" medium="image">
			<media:title type="html">patrickroger.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Help the Left!</title>
		<link>http://thesamovar.wordpress.com/2008/01/11/help-the-left/</link>
		<comments>http://thesamovar.wordpress.com/2008/01/11/help-the-left/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 01:18:22 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Activism]]></category>

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

		<category><![CDATA[z communications]]></category>

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

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

		<guid isPermaLink="false">http://thesamovar.wordpress.com/2008/01/11/help-the-left/</guid>
		<description><![CDATA[For many years, the ZNet website has been one of the best if not the best web site for the left. They&#8217;ve just finished a major upgrade to their site which could make it even better. The idea is to create a left wing community rather than just a site with lots of articles to [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For many years, the ZNet website has been one of the best if not the best web site for the left. They&#8217;ve just finished a major upgrade to their site which could make it even better. The idea is to create a left wing community rather than just a site with lots of articles to read. Members can create their own blogs, join groups, discuss on the forums, etc. And many more things are coming. So, <a href="http://www.zcommunications.org/">go check it out now</a>! But, the upgrade has been a costly one, and ZNet needs more sustainers (people who make a periodic donation) to keep their operation running, and more importantly to expand it. So, take a look at the site, and if you like it take a look at <a href="http://www.zmag.org/weluser.htm">this</a> and <a href="https://www.zcommunications.org/zsustainers/signup">think about joining</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/282/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/282/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=282&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/01/11/help-the-left/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>
	</item>
		<item>
		<title>Countdown numbers game in Python</title>
		<link>http://thesamovar.wordpress.com/2008/01/02/countdown-numbers-game-in-python/</link>
		<comments>http://thesamovar.wordpress.com/2008/01/02/countdown-numbers-game-in-python/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 10:51:22 +0000</pubDate>
		<dc:creator>Dan &#124; thesamovar</dc:creator>
		
		<category><![CDATA[Frivolity]]></category>

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

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

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

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

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

		<category><![CDATA[countdown numbers game]]></category>

		<category><![CDATA[countdown numbers game solver]]></category>

		<guid isPermaLink="false">http://thesamovar.wordpress.com/2008/01/02/countdown-numbers-game-in-python/</guid>
		<description><![CDATA[One of the things about being ill is that you have to spend a lot of time in bed with nothing much to do. Having watched the whole first series of the Sopranos, I had to find something else. So here&#8217;s the result. I revisited an old program I wrote many years ago to solve [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of the things about being ill is that you have to spend a lot of time in bed with nothing much to do. Having watched the whole first series of the Sopranos, I had to find something else. So here&#8217;s the result. I revisited an old program I wrote many years ago to solve the <a href="http://www.channel4.com/entertainment/tv/microsites/C/countdown/index.html">Countdown</a> numbers game.</p>
<p>In this game, you&#8217;re given six numbers between 1 and 100 and a target number between 100 and 999. You&#8217;re given 30 seconds to try to make the target using the six numbers and the operations plus, minus, times and divide.</p>
<p>I originally wrote a program to solve this many years ago (when I was about 14 I think), but the algorithm I used was pretty horrible. I worked out by hand all the possible arrangements of brackets you could have for six numbers, and then tried each operator and number in each appropriate slot. It worked, but it was ugly programming.</p>
<p>Recently I&#8217;ve been learning Python for an academic project, and so I thought I may as well try rewriting it in Python. I think the solution I&#8217;ve come up with is nicer than any of the solutions I&#8217;ve found on the internet (mostly written in Java or C), although having written it I found <a href="http://www.cs.nott.ac.uk/~gmh/countdown.pdf">this paper</a> which uses a very similar solution to mine (but in Haskell rather than Python).</p>
<p>Python programmers might get something from the minimal code below (all comments and docs stripped out), or you can take a look at the full source code <a href="http://thesamovar.net/countdownnumbers">here</a>, including detailed comments and docs explaining the code and algorithm.</p>
<p>My ideal (as always with Python) was to write a program you could just look at and understand the source code without comments, but I don&#8217;t think I achieved that. I&#8217;d be interested if a more experienced Python programmer could do so. Let me know.</p>
<p>This version is incomplete, from the slower version, and is supposed to be understandable without explanations (takes about 40 seconds to find all solutions, too slow for Countdown):</p>
<pre name="code" class="python">

def ValidExpressions(sources,operators=standard_operators,minimal_remaining_sources=0):
    for value, i in zip(sources,range(len(sources))):
        yield TerminalExpression(value=value, remaining_sources=sources[:i]+sources[i+1:])
    if len(sources)&gt;=2+minimal_remaining_sources:
        for lhs in ValidExpressions(sources,operators,minimal_remaining_sources+1):
            for rhs in ValidExpressions(lhs.remaining_sources, operators, minimal_remaining_sources):
                for f in operators:
                    try: yield BranchedExpression(operator=f, lhs=lhs, rhs=rhs, remaining_sources=rhs.remaining_sources)
                    except InvalidExpressionError: pass

def TargetExpressions(target,sources,operators=standard_operators):
    for expression in ValidExpressions(sources,operators):
        if expression.value==target:
            yield expression
</pre>
<p>This version is actually complete, from the faster version which needs the comments to explain (takes about 15 seconds to run, good enough to win Countdown):</p>
<pre name="code" class="python">

sub = lambda x,y: x-y
def add(x,y):
    if x&lt;=y: return x+y
    raise ValueError
def mul(x,y):
    if x&lt;=y or x==1 or y==1: return x*y
    raise ValueError
def div(x,y):
    if not y or x%y or y==1:
        raise ValueError
    return x/y
standard_ops = [ add, sub, mul, div ]

def expressions(sources,ops=standard_ops,minremsources=0):
    for i in range(len(sources)):
        yield ([sources[i]],sources[:i]+sources[i+1:],sources[i])
    if len(sources)&gt;=2+minremsources:
        for e1, rs1, v1 in expressions(sources,ops,minremsources+1):
            for e2, rs2, v2 in expressions(rs1,ops,minremsources):
                for o in ops:
                    try: yield ([o,e1,e2],rs2,o(v1,v2))
                    except ValueError: pass

def findfirsttarget(target,sources,ops=standard_ops):
    for e,s,v in expressions(sources,ops):
        if v==target:
            return e
    return []
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thesamovar.wordpress.com/281/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thesamovar.wordpress.com/281/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thesamovar.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thesamovar.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thesamovar.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thesamovar.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thesamovar.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thesamovar.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thesamovar.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thesamovar.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thesamovar.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thesamovar.wordpress.com/281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thesamovar.wordpress.com&blog=426675&post=281&subd=thesamovar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thesamovar.wordpress.com/2008/01/02/countdown-numbers-game-in-python/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/thesamovar-128.jpg" medium="image">
			<media:title type="html">Dan | thesamovar</media:title>
		</media:content>
	</item>
	</channel>
</rss>