<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Luke Maurits</title>
	<atom:link href="http://luke.maurits.id.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://luke.maurits.id.au</link>
	<description>Assorted geekery</description>
	<lastBuildDate>Fri, 27 Aug 2010 01:53:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>On the inevitability of the evolution of intelligence</title>
		<link>http://luke.maurits.id.au/blog/2010/08/on-the-inevitability-of-the-evolution-of-intelligence/</link>
		<comments>http://luke.maurits.id.au/blog/2010/08/on-the-inevitability-of-the-evolution-of-intelligence/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 00:09:23 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[evopsych]]></category>
		<category><![CDATA[evoution]]></category>
		<category><![CDATA[intelligence]]></category>
		<category><![CDATA[seti]]></category>
		<category><![CDATA[transhumanism]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/?p=349</guid>
		<description><![CDATA[A few months ago I happened to catch an interesting documentary on television.  I don&#8217;t remember what it was called, but it was narrated by Neil deGrasse Tyson and the focus of the show as the question: if the universe is so chock-full of intelligent life, as most scientists believe it ought to be, how [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I happened to catch an interesting documentary on television.  I don&#8217;t remember what it was called, but it was narrated by <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Neil_deGrasse_Tyson">Neil deGrasse Tyson</a> and the focus of the show as the question: if the universe is so chock-full of intelligent life, as most scientists believe it ought to be, how come we have completely failed to detect any evidence of it, despite 25 years or so (the <a href="http://www.seti.org">SETI Institute</a> was started in 1984) of concerted effort to do so? (this situation sometimes referred to as the <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Fermi_paradox">Fermi Paradox</a>, although I don&#8217;t recall the show using that term)</p>
<p>The show was largely structured around the well known <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Drake_equation">Drake equation</a>, which tries to estimate the number of intelligent civilisations within the Milky Way galaxy, other than our own, which we should in principle be able to make contact with.  It does this by multiplying together estimates of a bunch of relevant terms, namely:</p>
<ul>
<li>the average rate of star formation per year in our galaxy,</li>
<li>the fraction of those stars that have planets,</li>
<li>the average number of planets that can potentially support life per star that has planets,</li>
<li>the fraction of the above that actually go on to develop life at some point,</li>
<li>the fraction of the above that actually go on to develop intelligent life,</li>
<li>the fraction of civilizations that develop a technology that releases detectable signs of their existence into space,</li>
<li>the length of time such civilizations release detectable signals into space.</li>
</ul>
<p>The format of the show was basically to explore the most interesting of these concepts and what we know about them &#8211; for instance, how we&#8217;re starting to get pretty good at discovering <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Extrasolar_planet">exoplanets</a>, planets outside our solar system, which helps give us an idea of how many stars have planets and what those planets are like, at least in terms of very high level features like size and distance from their sun.  What I found most interesting was the discussion of the 5th term in the Drake equation, which deals with the fraction of planets bearing life where that life eventually evolves to be intelligent.</p>
<p>The show&#8217;s discussion of this term was mostly centred around the fact that for intelligence to evolve from unintelligent life takes quite a lot of time, and this time may not always be available.  All kinds of events, ranging from asteroid impacts to strong tectonic activity, can very easily completely or almost completely wipe life off a planet (Earth itself has had 5 major <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Extinction_event">extinction events</a> so far, and some would argue, not unconvincingly, that it is currently going through a 6th, in the form of humans wiping out species at an alarming rate), and if these average duration between these events is shorter than the average time it takes unintelligent life to evolve intelligence, then that suggests that the jump from life to intelligent life will be very rare indeed.</p>
<p>There&#8217;s nothing wrong with the above analysis, of course: sufficiently frequent extinction events are both a reality (I recently finished reading reading Bill Bryson&#8217;s &#8220;<a href="http://www.amazon.com/Short-History-Nearly-Everything/dp/0767908171">A Brief History of Nearly Everything</a>&#8220;, which was quite an eye-opener on just how inhospitable Earth is to life on long enough timescales) and a real obstacle to the evolution of intelligence.  But underlying all of the discussion on the show seemed to be an implicit assumption that this was all that was standing in the way: that if there was some particularly lucky life-bearing planet out there which was somehow shielded from asteroids and solar flares and supernovas, and had relatively stable, benign weather and tectonic activity, and basically was left completely unmolested by forces of great destruction, then it would be a matter of certainty that, eventually, intelligence would evolve.  To be fair, I don&#8217;t know if the producers of the show or Neil himself believe this, but certainly the show did nothing to explicitly dismiss this notion.</p>
<p>The problem with this is that it&#8217;s completely wrong, and yet it is surprisingly often overlooked.  I wouldn&#8217;t have noticed this oversight myself if I hadn&#8217;t previously read either Steven Pinker&#8217;s &#8220;<a href="http://www.amazon.com/Blank-Slate-Modern-Denial-Nature/dp/0142003344/ref=ntt_at_ep_dpi_2">The Blank Slate</a>&#8221; or his &#8220;<a href="http://www.amazon.com/How-Mind-Works-Steven-Pinker/dp/0393334775/ref=ntt_at_ep_dpi_3">How the Mind Works</a>&#8221; (I forget which it was), which talks about this misconception in considerable detail (I can&#8217;t remember whether or not it was in the context of the Drake equation).  Although it&#8217;s easy to fall into the trap of thinking that it is, evolution is of course absolutely not some kind of driven, inevitable progression from simple to complex organisms.  It&#8217;s about adaption to an environment so as to maximise reproductive success, and unless there is an unintelligent organism somewhere in an environment with the following conditions satisfied:</p>
<ul>
<li>intelligence is evolutionarily accessible to the organism (i.e. it already has necessary prerequisites, like a sufficiently complex nervous system, for a few mutations to lead to some kind of intelligence),</li>
<li>evolving intelligence will give it the organism a significant reproductive advantage over its unintelligent companions,</li>
<li>and there are no other evolutionary pathways open to the organism which will yield a better ratio of reproductive advantage to &#8220;cost&#8221; (in terms of energy requirements, etc.) than intelligence,</li>
</ul>
<p>then intelligence isn&#8217;t going to just turn up for the sake of carrying life higher and further.  Those organisms will remain unintelligent, possibly extremely successfully, possibly for an extremely long time, until the next extinction event wipes them out.  Intelligence is <em>not</em> inevitable given sufficiently long time.  It needs a good reason to emerge.</p>
<p>The problem that this situation poses for accurately estimating the 5th term of the Drake equation is that we actually have <em>no idea why humans evolved intelligence</em>.  There are plenty of plausible hypotheses out there, but nothing for certain, and I don&#8217;t think there is likely to be anything certain in the near future, given that we know extremely little about the lives of early humans and their ancestors (something else, incidentally, which Bill Bryson&#8217;s book gives a good accessible account of) and that we really know extremely little about intelligence (to the extent that there isn&#8217;t even a universally agreed upon, objective definition of what intelligence even <em>is</em>).  If we have no idea how <em>we</em> became intelligent, we&#8217;re not really in a position to speculate reliably about how likely other organisms are to become intelligent, given the chance.  The 5th term of the Drake equation could, in fact, be arbitrarily close to zero: close enough to zero to completely counteract all the terms in the equation which are very probably quite large.</p>
<p>Of course, it&#8217;s by no means a new criticism of the usefulness of the Drake equation to point out that the uncertainty surrounding our best estimates of each of its terms is so great that the final answer can vary by orders of magnitude, and even reach zero.  However, as far as I know, the term relating to the likelihood of the evolution of intelligence is the only one which currently has no reasonable lower bound: you can push it as close to zero as you like and not really reach a point where you can compellingly say &#8220;come on, surely it has to be higher than <em>that</em>&#8220;.  Which means that no new discovery suggesting that one of the other terms is actually incredibly huge will be sufficient to guarantee a result of more than one.  Which means, somewhat sadly, that perhaps we are much closer to being alone than a lot of people, myself included, have always thought.</p>
<p>On a related note, I recently read <a href="http://www.bbc.co.uk/news/science-environment-11041449">this BBC article</a>, which discusses the opinion of one SETI astronomer that we should stop structuring the search for alien intelligence exclusively around the assumption that said intelligence will be biological in nature (which is an implicit assumption &#8211; and not the only one &#8211; of the Drake equation&#8217;s structure) and instead start to consider the possibility that a lot of that intelligence will &#8211; in its own version of our own <a href="https://secure.wikimedia.org/wikipedia/en/wiki/Transhumanism">transhumanism movement</a> &#8211; have become non-biological in nature; that we should be looking for civilisations of intelligent machines, which are likely to hang out in very different places to intelligent meatbags.  I think this is a fairly persuasive argument.  Eliminating the problem of the mind-blowing slowness of interstellar travel (which is essentially a necessity for a civilisation to be <em>truly</em> long lasting) by figuring out how to transplant our consciousness into machines is probably considerably easier than the alternative of getting around the slowness directly with some sort of sci-fi-esque wormhole stuff.  At the very least, a lot of people who are experts in the relevant field believe that the former may be possible in principle, whereas, as far as I know, the latter is purely speculative.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2010/08/on-the-inevitability-of-the-evolution-of-intelligence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Pac-Man Dossier</title>
		<link>http://luke.maurits.id.au/blog/2010/08/the-pac-man-dossier/</link>
		<comments>http://luke.maurits.id.au/blog/2010/08/the-pac-man-dossier/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 02:22:32 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[japan]]></category>
		<category><![CDATA[pac-man]]></category>
		<category><![CDATA[space invaders]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/?p=345</guid>
		<description><![CDATA[Someone recently posted this incredibly detailed history and analysis of Pac-Man to Reddit: I was surprised and embarrassed to have some of my ideas about early gaming history challenged.  I had no idea that Pac-Man and Space Invaders were both Japanese creations!  I had always assumed that these games were American, and that Japan didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Someone recently posted this <a href="http://home.comcast.net/~jpittman2/pacman/pacmandossier.html">incredibly detailed history and analysis of Pac-Man</a> to Reddit: I was surprised and embarrassed to have some of my ideas about early gaming history challenged.  I had no idea that Pac-Man and Space Invaders were both Japanese creations!  I had always assumed that these games were American, and that Japan didn&#8217;t really become a major player in the video game world until later on.  Apparently instead they were leading the way from the get go!</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2010/08/the-pac-man-dossier/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Building a DIY ROV</title>
		<link>http://luke.maurits.id.au/blog/2010/08/building-a-diy-rov/</link>
		<comments>http://luke.maurits.id.au/blog/2010/08/building-a-diy-rov/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 11:53:49 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/?p=338</guid>
		<description><![CDATA[I&#8217;ve decided to undertake the project of building myself a Remotely Operated Vehicle, or ROV.  Despite sounding quite general, the term ROV appears to be applied exclusively to remotely operated underwater vehicles &#8211; basically, robot submarines &#8211; rather than just any kind of vehicle which is remotely operated.  &#8221;Real&#8221; ROVs, like the Seaeye Falcon, pictured below

are [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I&#8217;ve decided to undertake the project of building myself a <a href="http://en.wikipedia.org/wiki/Remotely_operated_underwater_vehicle">Remotely Operated Vehicle</a>, or ROV.  Despite sounding quite general, the term ROV appears to be applied exclusively to remotely operated <em>underwater</em> vehicles &#8211; basically, robot submarines &#8211; rather than just any kind of vehicle which is remotely operated.  &#8221;Real&#8221; ROVs, like the <a href="http://www.seaeye.com/falcon.html">Seaeye Falcon</a>, pictured below</p>
<p style="text-align: left;"><img class="aligncenter" title="Seaeye Falcon ROV" src="http://www.seaeye.com/images/Falcon+LED_057.jpg" alt="" width="317" height="224" /></p>
<p style="text-align: left;">are capable of diving hundreds of metres under the surface of the ocean and find a wide range of applications in both the commercial world (underwater oil drilling operations being a topical example) and the scientific research community.  They&#8217;re fairly pricey too, with even the most basic models &#8211; which basically consist of a camera and some light &#8211; costing tens of thousands of dollars.  However, a surprisingly large number of hobbyists have managed to build capable &#8220;hobby ROVs&#8221; for only a few hundred dollars, such as the Seafox, pictured below:</p>
<p style="text-align: center;"><img class="aligncenter" title="Seafox ROV" src="http://www.homebuiltrovs.com/seafox/seafox2.jpg" alt="" width="360" height="240" /></p>
<p style="text-align: center;">
<p style="text-align: left;">The precise designs of these hobby ROVs varies somewhat, but there are a few things that they all seem to have in common, which contribute to their simple construction and low cost:</p>
<ul>
<li>They use standard PVC pipe and fittings as their main structural components</li>
<li>They use small 12V DC electric boat bilge pump as their main means of propulsion</li>
<li>They use common, non-waterproof devices like webcams mounted in watertight containers for the onboard electronics</li>
</ul>
<p>I&#8217;ve done some fairly thorough scouring of the web for resources on how to build these things.  As near as I can tell, the hobby ROV movement began, or at the very least was widely popularised by the book &#8220;<a href="http://www.westcoastwords.com/books_USD/details.php?book_ID=101">Build Your Own Underwater Robot And Other Wet Projects</a>&#8220;, which includes complete designs for two PVC ROVs, the Seaperch and the Seafox (pictured above).  The book is fairly cheap, but there is so much information about these kinds of vehicles online now that you probably don&#8217;t need to buy one unless you&#8217;re unfamiliar with basic electronics, like using relays &#8211; I don&#8217;t plan to buy the book unless I run into trouble.  Far and away the best online resource for building hobby ROVs seems to be the <a href="http://www.homebuiltrovs.com/">Homebuilt ROVs page</a> by Stephen Thone, who has built a number of ROVs, most of them of his own design.  The image of the Seafox above is of the Seafox he built.  Some other decent resources are:</p>
<ul>
<li><a href="http://www.hobbysubmarines.com/index.php">Hobby Submarines</a> (featuring a slightly modified Seafox)</li>
<li><a href="http://www.instructables.com/id/Underwater-ROV/">Underwater ROV</a> at instructables.com</li>
<li><a href="http://www.ehow.com/how_5504852_build-underwater-robot-rov.html">How to build an underwater robot, at eHow</a> (the ROV shown here is named &#8220;Bob&#8221;)</li>
</ul>
<p>There&#8217;s also <a href="http://groups.yahoo.com/group/robotrov/?v=1&amp;t=directory&amp;ch=web&amp;pub=groups&amp;sec=dir&amp;slk=8">a Yahoo Group called Robotrov</a> which seems highly regarded in the hobby ROV community, but I haven&#8217;t checked it out yet (I&#8217;m not partial to Yahoo Groups).</p>
<p>In some ways this is a bit of an odd project for me to undertake, in that I&#8217;m not much of a water person.  I&#8217;m not <em>afraid</em> of water by any means, but I&#8217;m not really into fishing, boating, swimming, diving, etc. like a lot of people who build these things seem to be.  However, while most of my projects are software-based, I <em>have</em> always enjoyed making &#8220;real things&#8221;, and for a long time I&#8217;ve wanted a project I could use to deepen my understanding of electronics (which was probably my first serious hobby when I was a young kid, before I had access to the internet or even computers).  In particular I&#8217;ve always wanted to have an excuse to buy and learn to use something like the very popular <a href="http://www.arduino.cc/">Arduino boards</a>, but nothing has really grabbed me yet.  ROVs seem like a great candidate for such a project, though, in that they don&#8217;t require a lot of space or tooling to construct (I don&#8217;t currently have regular access to a large shed or any tools, I don&#8217;t know how to weld, etc.), they don&#8217;t need to be precisely built (unlike, say, <a href="http://en.wikipedia.org/wiki/Unmanned_aerial_vehicle">UAV</a>s, which would otherwise be an awesome hobby <a href="http://diydrones.com/">and for many people are</a>), none of their components require special training or licenses (unlike model rockets), there aren&#8217;t any issues with government regulations (unlike the <a href="http://www.robertharrison.org/icarus/wordpress/about/">high-altitude balloon projects</a> which are currently extremely popular), and it seems unlikely that simple mistakes could result in catastrophic failures: most ROVs are designed to be slightly positively buoyant, so that a broken tether or flat batteries means the ROV will slowly rise back to the surface of the water, rather than sink to the bottom.</p>
<p>I&#8217;ve decided to build a very simple ROV first to get my feet wet (figuratively and literally!), probably just something with the bare minimum number of thrusters to get around, a camera and some lights, before moving onto something more complex.  Rather than strictly following the Seafox design like lots of other people do, I&#8217;ve decided to use the <a href="http://www.ehow.com/how_5504852_build-underwater-robot-rov.html">&#8220;Bob&#8221; ROV</a> as a starting point, because its frame/shape strikes me as more efficient than the Seafox, which is really rather chunky.  So today I headed to my local hardware store and bought a bunch of 15 mm PVC pipe and fittings to use for the main frame of the ROV and some 90 mm PVC pipe to use for buoyancy pods, as well as other associated stuff like PVC cement, a hacksaw, sandpaper, some cable ties, etc.  I&#8217;ll try my best to make regular posts about the construction process.</p>
<p>After testing the water with a really simple ROV I might have a go at designing something more complicated, from scratch.  I&#8217;m particularly interested in building a complex navigation system: GPS doesn&#8217;t work under water, since EM radiation at the appropriate frequency only penetrates water a few centimeters deep.  This means ROVs need to rely on things like digital compasses, accelerometers, gyroscopes, sonar and laser rangers to find their way around underwater &#8211; lots of fun stuff and plenty of opportunities for learning.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2010/08/building-a-diy-rov/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to the moon</title>
		<link>http://luke.maurits.id.au/blog/2010/06/back-to-the-moon/</link>
		<comments>http://luke.maurits.id.au/blog/2010/06/back-to-the-moon/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 08:32:05 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mars]]></category>
		<category><![CDATA[moon]]></category>
		<category><![CDATA[nasa]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/?p=334</guid>
		<description><![CDATA[There&#8217;s been quite a lot of buzz recently, at least in the appropriate cycles, about the future direction of the US manned spaceflight program.  At the core of this has been Obama&#8217;s decision to cancel NASA&#8217;s Constellation program, initiated under Bush and which would have seen a manned return to the moon in the near [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been quite a lot of buzz recently, at least in the appropriate cycles, about the future direction of the US manned spaceflight program.  At the core of this has been <a href="http://news.bbc.co.uk/2/hi/science/nature/8489097.stm">Obama&#8217;s decision to cancel</a> NASA&#8217;s <a href="http://www.nasa.gov/mission_pages/constellation/main/index.html">Constellation program</a>, initiated under Bush and which would have seen a manned return to the moon in the near future, as a pre-cursor to a manned mission to Mars, and replace it with a different program which is focused on developing new technology to support these kinds of activities further down the road, with a manned asteroid landing planned for the more immediate future.  Reactions to Obama&#8217;s change of direction have been mixed, even amongst Apollo astronauts: <a href="http://www.space.com/news/neil-armstrong-nasa-plan-senate-100512.html">Neil Armstrong, Jim Lovell and Eugene Cernan are opposed to the change</a> and consider the cancellation of a near-future return to the moon a bad thing, while <a href="http://buzzaldrin.com/statement-from-buzz-aldrin-a-new-direction-in-space/">Buzz Aldrin has been extremely supportive of the change</a>, suggesting that going back to the moon is a complete waste of time and pushing heavily for a mission to Mars.</p>
<p>The two directions for NASA are multidimensional, and I think it&#8217;s simplistic to simply take a side.  I&#8217;m disappointed to see Constellation cancelled, although certainly there were things about it I thought could be better: the DIRECT group&#8217;s <a href="http://en.wikipedia.org/wiki/Jupiter_%28rocket_family%29">Jupiter rocket family</a> seems like a better idea to me than NASA&#8217;s <a href="http://en.wikipedia.org/wiki/Ares_%28rocket%29">Ares family</a>, for example.  I think the Obama plan&#8217;s focus on privatising the development of launch vehicles makes sense, and stayed up quite late to watch the recent <a href="http://www.spacex.com/updates.php#Update060410">inaugural flight of SpaceX&#8217;s Falcon 9</a>, but I wonder about its suitability for manned flight out of Low Earth Orbit: SpaceX have a direct commercial incentive to develop the <a href="http://www.spacex.com/dragon.php">Dragon capsule</a> and rockets for launching it &#8211; ISS ferry missions &#8211; but do they have the incentive or knowledge base for something like a Mars mission?  I&#8217;m excited about the Obama plan&#8217;s push for research on exciting new technology like inflatable spacecraft modules and orbital propellant deposits, but I don&#8217;t see why we can&#8217;t combine that sort of research with, well, actually going to places and doing stuff.  But I think perhaps the central question in this whole thing, the one which is most important for the long-term future of manned spaceflight, and the one where I am the most baffled by one side of the two camps, is the question of whether we should ever go back to the moon, or simply proclaim &#8220;been there, done that!&#8221; and head straight for Mars.</p>
<p>I absolutely do not understand the attitude of &#8220;we&#8217;ve already been to the moon, why go back?&#8221;.  Not only does it not make a lot of sense, it also seems to be an attitude reserved <em>singularly</em> for the moon.  Did anybody seriously break this argument out after the first time we reached the north or south pole, or the first time we climbed Mount Everest, or each time we discovered a new island?  Of course they didn&#8217;t.  It&#8217;s really just a silly argument, and so it&#8217;s disappointing that it&#8217;s one of the most commonly cited arguments against a return to the moon: probably less common than the old &#8220;why spend so much money on space when we have so many problems here on Earth&#8221; line, which I feel is effectively dealt with by a combination of pointing out that humanity is actually capable of doing more than one thing at a time, that sometimes the solutions to problems on Earth <em>can be found</em> in space (and this is going to become more true rather than less true in the future as land and resource pressures on Earth mount), and finally that we really <em>can</em> spare the money &#8211; the<a href="http://en.wikipedia.org/wiki/Financial_cost_of_the_Iraq_War"> total amount spent so far on the war in Iraq</a> could have paid for <a href="http://en.wikipedia.org/wiki/Apollo_program#Program_costs_and_cancellation"><em>a complete repeat</em> of the Apollo program (including R&amp;D costs)</a> with <em>$500 billion left over</em> to spend on the environment, poverty, hunger, education and whatever else you care to mention.</p>
<p>Viewing the fact that we&#8217;ve already been to the moon as an argument for never going back confuses space exploration as something done purely for prestige, entirely as a stunt, a game of ticking boxes with no further meaning or purpose.  Admittedly this attitude played a strong role in the original space race, with a desperate desire to show up the commies fuelling most of what NASA did, but in 2010 it&#8217;s entirely out-dated and nobody should cling to it anymore.  We&#8217;ve been to the moon, yes, but we haven&#8217;t yet even scratched the surface of what there is to <em>do</em> on the moon!  We haven&#8217;t done a fraction of the meaningful geological research that could be done on the moon: research which can help to improve our understanding of the formation and history of the solar system, including Earth.  We haven&#8217;t set up observatories on the far side of the moon to take advantage of a complete lack of light pollution or atmospheric distortion.   We haven&#8217;t prospected for valuable Helium 3 in the lunar soil.  We haven&#8217;t tried growing edible plants in the lunar soil.  We haven&#8217;t tried performing industrial processes on the moon which will work much better and much more cheaply in the reduced gravity.  <a href="http://science.nasa.gov/science-news/science-at-nasa/2007/02feb_181/">The list of interesting stuff we haven&#8217;t done</a> goes on.  Many would argue that most or even all of the above could be done by teleoperated robots from Earth at a lower cost than it could be done by people.  This is undoubtedly true, but doing it at least partly with people has the benefit of providing much needed practice for the establishment of future long-term colonies on the moon <em>for their own sake</em>.  Seeing permanent off-Earth human presence is essential for guaranteeing the very-long-term survival of the human race, and should always be considered the ultimate goal of manned spaceflight.</p>
<p>Some people who are in favour of off-Earth colonisation would argue that the moon is a bad place to do it.  It&#8217;s true that if we just had to pick somewhere in the solar system as a starting point for off-Earth human presence, based entirely on how nice various places are to live, the moon would probably not end up high on anybody&#8217;s list.  It has no atmosphere, no magnetic field, very low gravity, not a <em>whole</em> lot of water, and unless you&#8217;re in one of a few special places, you can&#8217;t rely on solar power easily because night time lasts 14 days.  It makes a lot more sense to head for Mars, and arguably even more sense to head for <a href="http://en.wikipedia.org/wiki/Colonization_of_Venus">the atmosphere of Venus</a> (although this idea has a lot less currency amongst space enthusiasts, for some reason).  However, the simple fact is that moving humanity off the Earth is <em>not</em> a simple matter of choosing somewhere to go and then going there.  We have to deal with the practical matters of actually getting and living there.  The moon is 3 days away from Earth using existing technology, meaning that rescue missions and emergency resupplies are actually feasible: contrast this with months of travel for Mars using existing technology.  The radio delay to the moon is a little less than 2 seconds, compared with about 15 minutes for Mars, reducing the psychological feeling of isolation and allowing real time problem-solving assistance from specialist teams on Earth.  Landing on and taking off from the atmosphere-lacking moon is a completely solved problem which we&#8217;ve done before, whereas the same problems on Mars are a lot harder and it&#8217;s by no means certain the techniques we use for probes and rovers will scale up to vehicles large enough to support a human crew.  Even though Mars is a nicer place to be than the moon, getting to and living on the moon is going to be considerably easier than doing the same on Mars for the forseeable future, and since there are still so many unanswered questions about living off-Earth &#8211; what are the long term physical and psychological effects of reduced gravity, of increased radiation exposure, of living so far away from the rest of humanity? &#8211; it makes sense to me that we should try to answer these questions in the very near future on the moon, at the same time as we work on getting everything else we can get out of the moon in terms of science, resources and industry.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2010/06/back-to-the-moon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Experimenting with flickr and GoodReads</title>
		<link>http://luke.maurits.id.au/blog/2010/04/experimenting-with-flickr-and-goodreads/</link>
		<comments>http://luke.maurits.id.au/blog/2010/04/experimenting-with-flickr-and-goodreads/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 12:45:59 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/?p=330</guid>
		<description><![CDATA[As a part of migrating to an external host and also experimenting with an approach of choosing and using software and services for the sake of convenience rather than idealism, etc., I&#8217;ve been experimenting with using a few 3rd party social media applications, and thought I&#8217;d describe my impressions of them.
First up is photo management.  [...]]]></description>
			<content:encoded><![CDATA[<p>As a part of migrating to an external host and also experimenting with an approach of choosing and using software and services for the sake of convenience rather than idealism, etc., I&#8217;ve been experimenting with using a few 3rd party social media applications, and thought I&#8217;d describe my impressions of them.</p>
<p>First up is photo management.  This is something that was done extremely poorly on my old self-hosted site, I had to admit.  I originally had a series of scripts for producing static galleries, pulling in metadata (like descriptions and tags, etc.) from flat text files, but it didn&#8217;t work particularly well because I simply didn&#8217;t have the energy to do things like make the gallery look nice (not that I didn&#8217;t care, but CSS, despite being a fantastic idea in principle, is such a poorly implemented and counterintuitive hack-fest that making a nice image gallery without using tables is far more difficult than it should be) or provide the metadata.  After that I experimented briefly with using a third party PHP-based application which didn&#8217;t require the use of a database, but it was a fairly half-hearted effort and I never got a significant number of pictures into it.</p>
<p>The two big &#8220;cloud based&#8221; photo management apps are, of course, Flickr and Google&#8217;s Picasa.  Flickr has by far the largest userbase, and looking at a few &#8220;Flickr vs Picasa&#8221; articles turned up by a quick Google suggested that Flickr is ahead in a lot of important ways, so I decided to give it a try.  When I first tried to sign up and realised I would be forced to setup a Yahoo account, complete with @yahoo.com email address, I quickly lost my stomach for the idea: I have no interest in using any other Yahoo services and I don&#8217;t want yet another unused and unwanted email address cluttering up my online presence.  After further reflection, I decided this was a little hypocritical, since I already use a number of Google services which require a Google account: although, to be fair, Google makes this process a lot easier and much more lightweight.  Anyway, I bit the bullet and <a href="http://www.flickr.com/photos/49184063@N02/sets/">got myself an account</a>.</p>
<p>My experience with Flickr so far has been entirely adequate, but it&#8217;s not exactly something I&#8217;ve fallen in love with.  The interface could use a lot of work, I don&#8217;t find it particularly straightforward: or rather, the stuff that everybody wants to do all of the time is not done using more obvious or prominent controls than the stuff that few people want to do some of the time.  While the idea of a Photostream (a sequence of photos arranged in the order you upload them) is fine (indeed, it makes sense from the point of view of keeping up to date with the photos of friends),  I don&#8217;t think.  I&#8217;m also really irritated that the ability to define hierarchical sets (&#8220;sets&#8221; are coherent collections of photos in Flickr, things that might be called &#8220;albums&#8221; elsewhere) is restricted to those who hold a &#8220;Pro account&#8221;, which costs US$25 per year.  I have no objection to the concept of a paid account status, I realise Flickr have costs to cover, but it seems like the features that you need to pay to get should be limited to things which are in some sense &#8220;special&#8221; or &#8220;excessive&#8221;: increasing the number of photos you can upload per month, or the maximum size of photos, or even the number of sets you can define are sensible candidates.  Such a basic and fundamental organisational tool as the hierarchical arrangement of sets should really be a freebie: it&#8217;s something just about everybody is going to want.  Anyway, I&#8217;ll be sticking with Flickr for the forseeable future.</p>
<p>The second thing I&#8217;ve been looking at is keeping a record of which books I read and when.  This is something I never even tried to implement back when I was self-hosting everything, although I&#8217;ve had an account at <a href="http://www.librarything.com">LibraryThing</a> for some time (but rarely used it).  I really like the <em>idea</em> of this kind of thing, but I never kept up to date with it much, mostly because the interface at LibraryThing is so terrible.  For one thing, I found it genuinely hard to remember where to go to edit <em>my</em> metadata about the book (such as when I read it or what tags I&#8217;d like to give it), as opposed to editing site-wide metadata about the book, such as who wrote it.  Worse, LibraryThing treats every separate edition of a book as a distinct entity.  There is no way to say &#8220;I have read William Gibson&#8217;s <em>Neuromancer</em>&#8220;.  You are forced by the system to proclaim &#8220;I have read the edition of <em>Neuromancer</em> published in ﻿1984          by Ace Books&#8221;.  By all means, the ability to express that information if one wants to should be present, but actually forcing it is ridiculous, especially since if your particular edition is not in the system you are forced to enter incorrect data by choosing another edition.  The refusal to combine all editions into a single Platonic concept of the book also really interferes with useful collaborative filtering: you can&#8217;t learn things about people who also read <em>Neuromancer</em>, only things about people who also read <em>your</em> edition of Neuromancer, which is not a distinction I can imagine many people are interested in.</p>
<p>Frustrated with the above shortcomings, I&#8217;ve checked out <a href="http://www.goodreads.com">GoodReads</a>, an application similar in spirit to LibraryThing but which seems to lack these shortcomings.  It has Platonic concepts of books, but also the ability to specify editions if one is so interested.  I&#8217;ve loaded a small, initial subset of everything I can remember reading (basically favourites and stuff I&#8217;ve read recently) into <a href="http://www.goodreads.com/user/show/3612400">my account</a>, and the interface seems clean and intuitive.  It remains to be seen how long I can keep up the habit of chronicling what I read, but it&#8217;s nice to have a tool for doing so which is straightforward enough that I can&#8217;t really blame <em>it</em> for my failures to do so.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2010/04/experimenting-with-flickr-and-goodreads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old posts imported</title>
		<link>http://luke.maurits.id.au/blog/2010/04/old-posts-imported/</link>
		<comments>http://luke.maurits.id.au/blog/2010/04/old-posts-imported/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 02:51:10 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/?p=264</guid>
		<description><![CDATA[It turned out that getting my old Yomiko blog posts imported into my new Wordpress setup was not too difficult after all.  Wordpress allows you to import posts from a variety of other blogging platforms whose export formats it understands.  Obviously Yomiko, with an expected global userbase of 1 (and now 0), isn&#8217;t one of [...]]]></description>
			<content:encoded><![CDATA[<p>It turned out that getting my old <a href="http://code.google.com/p/yomiko/">Yomiko</a> blog posts imported into my new Wordpress setup was not too difficult after all.  Wordpress allows you to import posts from a variety of other blogging platforms whose export formats it understands.  Obviously Yomiko, with an expected global userbase of 1 (and now 0), isn&#8217;t one of them, but handily enough, Wordpress speaks a format called &#8220;Wordpress Extended RSS&#8221;, which is designed to let you import posts from earlier versions of Wordpress.  By making an export of my one new blog entry in that format and looking at the file, it wasn&#8217;t too hard to write a script which would convert my old entries into the same format for easy import.  It took a few tries to get this right (frustratingly, there is no preview facility for imported entries, so if you import 70 of them and something goes wrong you&#8217;ve no choice but to delete all 70 of them and start again), but for now it seems like most of the important details &#8211; dates and times, tags and comments &#8211; have come through unscathed.  Some entries seem to have been wrapped to 80 characters wide using linefeeds for reasons I don&#8217;t understand, but that&#8217;s not a huge problem and one I can fix by hand without too much trouble.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2010/04/old-posts-imported/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a few changes&#8230;</title>
		<link>http://luke.maurits.id.au/blog/2010/04/making-a-few-changes/</link>
		<comments>http://luke.maurits.id.au/blog/2010/04/making-a-few-changes/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 05:25:55 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/?p=43</guid>
		<description><![CDATA[So, anybody who has been visiting this site for the last month or so is likely to have been a little confused with regards to just what is going on.   I&#8217;ve made a number of changes to my online infrastructure, and it&#8217;s taken me a little while to stabilise on a setup that I think [...]]]></description>
			<content:encoded><![CDATA[<p>So, anybody who has been visiting this site for the last month or so is likely to have been a little confused with regards to just what is going on.   I&#8217;ve made a number of changes to my online infrastructure, and it&#8217;s taken me a little while to stabilise on a setup that I think I&#8217;m comfortable maintaining.  But I&#8217;ve done so now, so hopefully from this point on you&#8217;ll see a steady import of the old content to this new site, although it may take a while.</p>
<p>The starting point for all of this was my having to move house a little more than a fortnight ago.  I decided that, after several years of it, I was starting to get sick and tired of the hassle involved in self-hosting (especially when moving time comes), and in fact I was starting to get sick and tired of doing everything computer-related &#8220;the hard way&#8221; for the sake of things like control, ideology and technological machismo (more on this in later posts).  So before the move, I got a friend who owns a <a href="http://www.thirty4.com.au">hosting company</a> to set me up with some webspace and began the process of migrating everything across.</p>
<p>I only have FTP, not shell access to my new host, which necessitated a lot of significant changes to the way everything worked.  Previously my website was powered by a self-written collection of hackish Python scripts to translate text files written in Markdown format into HTML files using <a href="http://www.cheetahtemplate.org/">Cheetah</a> templates, and the blog was powered by my rudimentary own blogging engine <a href="http://code.google.com/p/yomiko/">Yomiko</a>, a <a href="http://www.cherrypy.org/">CherryPy</a> application.  Not only was getting all of this set up and operating on a new host without shell access impossible, I have to admit that the inconvenience and fragility of the system probably prevented me from writing anywhere near as much as I would if were more simple.  So I ended up leaping from one extreme to the other and using, like everybody else, <a href="http://www.wordpress.org">Wordpress</a> for my new site.  I&#8217;ve avoided using Wordpress in the past primarily out of a distaste for PHP and because the fact that it strictly requires the use of MySQL strikes me as extremely poor design (why not write everything in terms of a database abstraction layer so that people can choose to use PostgreSQL or SQLite if they prefer them?), but I have to admit that if you can get past all of that its a very quick and easy way to throw up a website.  I don&#8217;t think it will extend to handling the &#8220;Writing&#8221; part of my website, at least not very conveniently, so I may look at using a Wiki application for that, even though it will break visual consistency.</p>
<p>The biggest question mark still hovering over this whole setup is how I will go about porting my old blog posts into Wordpress.  I would naturally very much like to avoid having to do this by manually copying, pasting and backdating everything, but without the ability to run scripts on the new host I&#8217;m not entirely sure how to go about this.</p>
<p>That&#8217;s all for now.  Hopefully all this decadent point-and-click WYSIWYG AJAX goodness will encourage me to start writing more frequently again.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2010/04/making-a-few-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Algorithm Kid</title>
		<link>http://luke.maurits.id.au/blog/2009/10/algorithm-kid/</link>
		<comments>http://luke.maurits.id.au/blog/2009/10/algorithm-kid/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 14:53:54 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[autobio]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/blog/2009/10/algorithm-kid/</guid>
		<description><![CDATA[Fairly recently I started exchanging blog comments and Identi.ca notices with an English geek Steve Clark, who&#8217;s interested in the social semantic web, Python, cryptography, etc.  Steve recently wrote a blog entry entitled &#8220;Programming languages I have known&#8220;, which I found interesting, mostly because Steve started programming in an era of computing that I [...]]]></description>
			<content:encoded><![CDATA[<p>Fairly recently I started exchanging blog comments and Identi.ca notices with an English geek <a href="http://bagofspoons.net/">Steve Clark</a>, who&#8217;s interested in the social semantic web, Python, cryptography, etc.  Steve recently wrote a blog entry entitled &#8220;<a href="http://www.bagofspoons.net/blog/Computer/20090922languages.html">Programming languages I have known</a>&#8220;, which I found interesting, mostly because Steve started programming in an era of computing that I was born just late enough to miss out on, but have always felt a sort of strange, artificial nostalgia for, like I <i>should</i> have been a part of it.  <a href="http://en.wikipedia.org/wiki/Acoustic_coupler">Acoustic couplers</a>, and all that.</p>
<p>I liked the idea of a blog entry that was autobiographical but still mainly technical in nature, and thought about writing my own version of &#8220;Programming languages I have known&#8221;, but I realised that this would, in fact, be pretty boring.  I don&#8217;t know <i>that</i> many programming languages, the ones I do know are entirely mainstream and historically-uninteresting, and I taught myself comparatively late (I think I was 15 when I bought &#8220;Sam&#8217;s Teach Yourself C in 24 Hours&#8221;, which I just now found <a href="http://aelinik.free.fr/c/">free online</a> by Googling it).  Then I thought about just writing something not on languages but on the various computers I&#8217;d used throughout my life, but that would be pretty standard and boring, too: My primary school had two <a href="http://en.wikipedia.org/wiki/BBC_Micro">BBC Micros</a>, my household, two relatives and lots of my neighbourhood friends had <a href="http://en.wikipedia.org/wiki/Commodore_64">Commodore 64s</a> (one of these machines had a magnetic tape drive, which took cassettes of the same size as the old music cassettes, everybody else had 5.25 inch floppy drives), and then came the rise of the IBM PC.</p>
<p>Instead, I decided to write about two incidents I can remember from my primary school years in which I displayed a way of thinking which was in some sense algorithmic in nature &#8211; thinking like a computer programmer years before I wrote a single line of code, or at least wrote one that I actually understood.</p>
<p>The first of these concerns a game that one of my primary school classes would occasionally play.  One student chooses a number between 1 and 100 and keeps it a secret.  The rest of the class take turns attempting to guess the number, to which the first student must respond with either &#8220;higher&#8221; or &#8220;lower&#8221;.  The student who eventually guesses the correct number then gets to choose the next one, and the game repeats.  In retrospect, it&#8217;s amazing the kind of mindless and repetitive stuff that young kids will find fun.  Anyway, I remember quite clearly the time we were playing this game when I realised that there was one clearly optimal strategy.  I think I was around 11 or 12 years old at the time.  The strategy I had developed was this: the first student to take a guess should guess 50.  Depending on whether the response was &#8220;higher&#8221; or &#8220;lower&#8221;, the next student should guess 25 or 75, and so on, with each student guessing the number in the middle of the not-yet-disqualified range of possible answers.  If you have no prior knowledge about what the secret number is likely to be, this strategy is the best you can do, in the sense that it minimises the average number of guesses required to find the answer.  <a href="http://en.wikipedia.org/wiki/Bisection_method">A very similar method</a> can be used to find the zeroes of a scalar function, though of course I had no idea about anything like that at the time (note that the method is not at all optimal for the zero finding problem).  I remember that I figured this out by visualising the number line from 1 to 100 and realising that each guess ruled out either all the numbers to the left or the right of it, and observing that by guessing in the middle of the remaining range you were guaranteed to rule out half of it, whereas by guessing anywhere else there was always a chance of ruling out less than half of it.  I became quite excited when I realised this and explained it to the rest of the class, assuming that they would concur and cooperate with the strategy.  Ever future instance of the game would be over in less than 7 guesses (the logarithm of 100 to base 2 is 6.64)!  However, nobody else seemed to believe me and in fact the class as a whole was quite hostile to the idea of any kind of systematic approach to the game.  Looking back, I guess the algorithmic approach probably ruined whatever element of &#8220;fun&#8221; we must have seen in the game, but at the time I was baffled by this resistance.</p>
<p>The second incident happened earlier, I must have been between 8 and 10 if I correctly remember the way year levels were distributed amongst classrooms at my primary school.  However, it&#8217;s also less impressive of an insight.  Around this time my classroom went through something of a football craze (note that Australian football is not the same as European football, which we call &#8220;soccer&#8221;, nor American football, which we call &#8220;rugby&#8221;.  Actually, I&#8217;m not sure rugby and American football are the same, but who cares?).  I never really got into this (I&#8217;ve never really got into following <i>any</i> kind of sports), but I remember being baffled by how little any of the other kids thought about the outcomes of football matches (I&#8217;m talking about matches in the national league, here, not lunch-time games) as being predictable from data.  During this craze, a lot of kids collected football cards, and each card would have on the back all sorts of statistics about the corresponding player, things like the average number of points scored or marks taken per match.  Kids would have huge folders full of these cards, each one slotted into a position in a plastic sleeve.  They were veritable hand-held databases.  And yet, given these databases, kids were making their decisions about which team to cheer for based on things like team loyalty or who was on a &#8220;winning streak&#8221; or simple gut instinct.  I remember it being obvious to me at the time that the sensible thing to do was to assign some number of points to each team on the basis of the available statistics and to support whichever team had the most points.  I never worked out an explicit scheme for doing this &#8211; presumably a team would get something like one point for each game it had won so far in the season, and one point for each average goal scored by each player who was participating in the match.  I do remember realising it would be necessary to take off points for each participating player who had an injury.  If I ever explained these ideas to anybody, I don&#8217;t remember it.  No doubt they would have gone down as well as the method of bisection did for guessing secret numbers, anyway.  No doubt my plans for a point assignment system were rather simplistic, perhaps too simplistic to have worked very well if I&#8217;d put them into practice (I never did, because at that age I didn&#8217;t have the computer skills to program it, and doing it by hand would have been tedious, especially since I didn&#8217;t really care about the football anyway), but the point stands that I was aware by this age of the <i>principle</i> that numerical data about past events could be used to forecast future events.  I have no idea <i>where</i> I got this idea, whether it was just intuition or if I generalised from an actual observation.</p>
<p>Although these are appropriate childhood stories for someone like me to be able to tell now, I don&#8217;t actually understand why it is that I can remember them as clearly as I can.  They must surely have been fairly inconsequential at the time.  Can I remember these things so well because they were part of the birthing process of my now excessively algorithmic way of thinking, or is my distribution of childhood memories unbiased with regard to these sorts of things, and two of those memories just happened by chance to be like this because I thought that way a lot?  Memory&#8217;s a funny thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2009/10/algorithm-kid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtualise me</title>
		<link>http://luke.maurits.id.au/blog/2009/10/virtualise-me/</link>
		<comments>http://luke.maurits.id.au/blog/2009/10/virtualise-me/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 08:27:34 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualisation]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/blog/2009/10/virtualise-me/</guid>
		<description><![CDATA[Up until relatively recently, my computer arrangement had been as follows:  I had two desktop computers, sharing a monitor, keyboard and mouse using a KVM switch.  One of the machines was an old-ish IBM Thinkpad T42 laptop, which I put in a port-replicating docking station so I could easily take work out on [...]]]></description>
			<content:encoded><![CDATA[<p>Up until relatively recently, my computer arrangement had been as follows:  I had two desktop computers, sharing a monitor, keyboard and mouse using a KVM switch.  One of the machines was an old-ish IBM Thinkpad T42 laptop, which I put in a port-replicating docking station so I could easily take work out on the road with me.  The Thinkpad ran Arch Linux and it&#8217;s what I used to do almost everything &#8211; email, the web, development, research, music and videos.  I liked the Thinkpad for the convenience of its portability and also because it didn&#8217;t use a lot of power, and the various ACPI features like CPU throttling and suspending to RAM worked well under Linux, so that it drew practically no power when I wasn&#8217;t actually using it.  The other computer is a big, clunky tower desktop running Windows XP which was off most of the time, only switched on when I really needed something I could only do on Windows.  Mostly this was to print (I can&#8217;t get CUPS to play nice with our Canon MX850) or to play games.   I don&#8217;t actually do much PC gaming these days, but I did play WoW for a few months recently until it became boring.  Wizards of the Coast now have a free Dungeons and Dragons MMORPG game that I have my eye on, but I&#8217;m trying to put off trying it until I pass an upcoming deadline for a journal article submission.</p>
<p>Anyway, a few months ago I accidentally destroyed my Thinkpad&#8217;s motherboard in an incident that I guess I should write up as a cautionary tale about self-repair (probably more so against being impatient, but that&#8217;s another story).  So I needed a new Linux desktop machine until such time as I could find an affordable replacement Thinkpad mobo.  I have a collection of 3 <a href="http://www.pcarenahungary.com/pricelist/oriaskep/hp-e-vectra-e-pc-324.jpg">HP &#8220;e-Vectra&#8221; machines</a>, which I bought from eBay years ago when I was very interested in cluster computing.  I really like these machines because they&#8217;re easy to find cheap, are very small (less than 30cm/1 foot in either of the long dimensions and not 10cm wide), they stack well (check out the photo in <a href="http://forum.framasoft.org/viewtopic.php?f=15&#038;t=23062">this forum post</a>!) and don&#8217;t draw a lot of power (there&#8217;s no internal PSU, just a little brick transformer at the end of the cord, like a laptop).  They&#8217;re not the most powerful machines in the world, with 700 MHz Pentium III&#8217;s and 128 MB of RAM, but I maintain that the perception of those sorts of stats as &#8220;uselessly low&#8221; by most people is largely an illusion generated by bloated mainstream software (this is a problem in both the Windows world <i>and</i> the FOSS world) and by a hardware industry driven almost purely by the game industry.  I upgraded the RAM in one of them to 256 MB and went about seeing how it held up as a modern desktop.  It wasn&#8217;t terrible, and if it weren&#8217;t for today&#8217;s RAM-intensive web, it probably would have sufficed, but ultimately Firefox froze up just way too often so I had to look for another solution.</p>
<p>The big Windows XP machine actually has two identical hard drives in a RAID array, so I split them apart and installed Linux on the second one, keeping XP on the first.  This machine is considerably more modern (2.8 GHz Athlon 64 processor, 2 GB RAM), so no performance issues at all, but having my Linux system and Windows system on the same machine was kind of a hassle.  Anytime I wanted to do play a game or print something, I&#8217;d need to carefully close down everything I had running in Linux and reboot, only to have to carefully open all that stuff back up again when I was finished.  Furthermore, I couldn&#8217;t manage to get suspend to RAM working on that machine under Linux at all, so the machine ended up being left on 24/7.  Because this machine was originally built for gaming by my brother-in-law, it&#8217;s horribly power hungry(although probably not half as bad as the machine he built to replace it, leading to my inheriting this one) so I really didn&#8217;t like this.</p>
<p>For the last few days I&#8217;ve been experimenting with a novel solution to this situation, and I think that I&#8217;ll stick with it because it&#8217;s worked out better than I ever expected.  I&#8217;ve installed Sun&#8217;s <a href="http://www.virutalbox.org">VirtualBox</a> system on the Windows XP install of the machine and installed Linux inside of a virtual machine.  This is pretty much the first time I&#8217;ve ever experimented with any kind of virtualisation technology seriously, and I have to say I&#8217;m incredibly impressed.  I never imagined that the performance of a virtual machine would be good enough to actually use it as a desktop, but I&#8217;m writing this right now from inside the virtual Linux install, with mail client and browser running, and music playing smoothly.  The performance is just fine.  Yes, it&#8217;s perceptibly slower than running Linux natively, but only just, and it&#8217;s 100% endurable.  With the virutal machine running in full-screen mode, there&#8217;s pretty much nothing at all to give away the fact that Windows is talking to the hardware underneath it, all I can see is my ion3 X11 desktop.  However, when the need arises, I can just minimise the machine and find myself at an XP desktop, ready to play games, to print something out, or to suspend the machine to RAM (which of course works perfectly under Windows).  It really is like having immediate access to the very best of both worlds, the mainstream software and superior hardware support of Windows and the, well, everything else of Linux.  As an added bonus, I can backup my entire Linux system as a <i>single file</i>, and even migrate a copy of it to any other Windows machine running VirtualBox!  Seriously cool stuff.</p>
<p>The only real drawback I&#8217;ve found is that, because the virtual machine&#8217;s network interface is implemented using NAT behind the host machine&#8217;s interface, a few networky things don&#8217;t work out of the box.  The only thing that hasn&#8217;t worked so far is NFS, as described in <a href="http://bbs.archlinux.org/viewtopic.php?id=60804">this forum post</a>.  This was easily solved by using <a href="http://fuse.sourceforge.net/sshfs.html">sshfs</a>, which just worked.  Also I&#8217;ll have to set up port forwarding if I want to be able to ssh into the virtual box from anywhere else, but that&#8217;s no big thing.</p>
<p>I&#8217;m going to wait a few weeks to make sure there really aren&#8217;t any hidden problems with this approach, but I&#8217;m thinking I&#8217;ll probably stick to this arrangement and &#8220;re-RAID-ify&#8221; the two drives with the XP/virtual Linux image.  Viva la virtualisation!</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2009/10/virtualise-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrooting Python in OpenBSD 4.5</title>
		<link>http://luke.maurits.id.au/blog/2009/09/chrooting-python-in-openbsd-4-5/</link>
		<comments>http://luke.maurits.id.au/blog/2009/09/chrooting-python-in-openbsd-4-5/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 14:03:38 +0000</pubDate>
		<dc:creator>Luke Maurits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[oepnbsd]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://luke.maurits.id.au/blog/2009/09/chrooting-python-in-openbsd-4-5/</guid>
		<description><![CDATA[Just a quick technical entry today, on the off chance that this helps somebody, somewhere.
For reason&#8217;s I&#8217;ll go into another time, I&#8217;ve recently been trying to chroot a Python installation into the directory /srv/www on an OpenBSD 4.5 machine.  I took the standard approach to this, which is to examine the output of ldd [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick technical entry today, on the off chance that this helps somebody, somewhere.</p>
<p>For reason&#8217;s I&#8217;ll go into another time, I&#8217;ve recently been trying to chroot a Python installation into the directory <tt>/srv/www</tt> on an OpenBSD 4.5 machine.  I took the standard approach to this, which is to examine the output of <tt>ldd /usr/local/bin/python2.5</tt>:</p>
<p><tt><code>/usr/local/bin/python2.5:<br />
        Start    End      Type Open Ref GrpRef Name<br />
        1c000000 3c004000 exe  1    0   0      /usr/local/bin/python2.5<br />
        05432000 2547c000 rlib 0    1   0      /usr/local/lib/libpython2.5.so.1.0<br />
        05dc3000 25dc7000 rlib 0    1   0      /usr/lib/libutil.so.11.0<br />
        0df1e000 2df44000 rlib 0    1   0      /usr/lib/libstdc++.so.47.0<br />
        0d543000 2d54d000 rlib 0    1   0      /usr/lib/libm.so.5.0<br />
        02a7c000 22a85000 rlib 0    1   0      /usr/lib/libpthread.so.11.1<br />
        06a56000 26a8f000 rlib 0    1   0      /usr/lib/libc.so.50.1<br />
        08db8000 08db8000 rtld 0    1   0      /usr/libexec/ld.so</code></tt></p>
<p>and copy each of these files over to the corresponding location in the chroot directory (i.e. stuff from <tt>/usr/lib/</tt> goes in <tt>/srv/www/usr/lib</tt>).  But after doing this, testing the setup with <tt>chroot /srv/www python2.5</tt> yielded the error: <tt>/usr/bin/local/python2.5: can't load library 'libpython2.5.so.1.0'</tt>.</p>
<p>I went near mad trying to figure out why this wasn&#8217;t working.  The libpython file was clearly in the correct location.  A PHP installation that I had chrooted into the very same place using the very same procedure worked flawlessly.  There seemed to be no scope for rational explanation of why this wasn&#8217;t working.</p>
<p>In the end, I managed to solve this problem by copying the file <tt>/var/run/ld.so.hints</tt> into the corresponding location in the chroot directory.  Everything worked perfectly after that.  I don&#8217;t profess to have any idea <i>why</i> you need to do this (I discovered that it worked after much trial and error, based on random permutations of stuff found on the web), but you do.  Hopefully this post saves some other poor hacker from wasting a few frustrated hours.</p>
<p>I note that the <tt>ld.so.hints</tt> file exists in the same location on recent NetBSD releases, so I assume this advice ports over to NetBSD as well.  However, there is no such file in my install of Arch Linux, so things are probably different in Linux land.  Linux distros <i>do</i> seem to have a file <tt>/etc/ld.so.conf</tt> which serves a similar purposes &#8211; it was actually reading about this that gave me the idea to look for something similar in my situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://luke.maurits.id.au/blog/2009/09/chrooting-python-in-openbsd-4-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
