<?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>Stochastic Geometry &#187; Linux</title>
	<atom:link href="http://www.stochasticgeometry.ie/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stochasticgeometry.ie</link>
	<description>Articles on random topics in Programming, Systems Administration, Academia and Industry by Mark Dennehy</description>
	<lastBuildDate>Fri, 27 Jan 2012 17:38:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Home server build, part one &#8211; specifications</title>
		<link>http://www.stochasticgeometry.ie/2011/07/27/home-server-build-part-one/</link>
		<comments>http://www.stochasticgeometry.ie/2011/07/27/home-server-build-part-one/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 01:29:55 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=1509</guid>
		<description><![CDATA[<p>Building a home server for NAS storage, backups, downloads and so forth. Part one - specifications and the parts list.</p>
]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2011/07/27/home-server-build-part-one/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>My interviews at Google</title>
		<link>http://www.stochasticgeometry.ie/2010/07/20/interviews-google/</link>
		<comments>http://www.stochasticgeometry.ie/2010/07/20/interviews-google/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 13:45:16 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=1207</guid>
		<description><![CDATA[<p>﻿<a href="http://www.stochasticgeometry.ie/wp-content/uploads/2010/07/google_logo.png"><img class="alignleft" style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px;" title="Google Logo" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/07/google_logo.png" alt="Google Logo" width="160" height="67" /></a>So I've now completed the interview process twice with Google (once in 2007 and once in 2010), and while I'm not sure advice from someone not hired after two run-throughs is all that useful, I figured that the more information out there for those undergoing pre-Google-Interview stress, the better, so here's how it went.</p>
<p>In both cases, I was contacted out of the blue by a Google recruiter. The first time I had been considering looking for a new role and pursued it immediately; the second time I hadn't been and put off the recruitment process for several months, during which the same recruiter contacted me again twice to follow up. If nothing else, that's a nice ego boost, but a more cynical mind might be considering the shotgun approach to a narrow recruiting filter and commissions :D</p>
<p>First, a quick data point, I was applying for an SRE(SA) position on both occasions - Site Reliability Engineer (System Administration), because in most of my roles to date, I've been doing both sysadmin and development work and I've never seemed to drift towards one pigeonhole or another. SRE(SA) seemed optimal - interesting sysadmin work on large-scale systems and quite a bit of tool-writing to boot. This was decided on between myself and the recruiter, based on the self-assessment form you are given to fill out. I would love to know how they get around ﻿﻿illusory superiority and the Dunning-Kruger effect with those forms, especially given the wierd bias they'd have in the dataset from having so many of the best in their fields working there.</p>
<p>Both times, the process proceeded in the same way:</p>
]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/07/20/interviews-google/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>andi-servo</title>
		<link>http://www.stochasticgeometry.ie/2010/07/07/andi-servo/</link>
		<comments>http://www.stochasticgeometry.ie/2010/07/07/andi-servo/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 20:11:28 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Academia]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[Thesis]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=1193</guid>
		<description><![CDATA[<p>﻿ Finally released my linux driver for the Ajeco ANDI-SERVO motion control board.<a href="http://www.stochasticgeometry.ie/wp-content/uploads/2010/06/andi-ser.jpg"><img class="alignleft" style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px;" title="ANDI-SERVO motion control board" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/06/andi-ser.jpg" alt="ANDI-SERVO motion control board" width="149" height="143" /></a></p>
]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/07/07/andi-servo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dagda &#8211; part two (cameras and computers)</title>
		<link>http://www.stochasticgeometry.ie/2010/06/22/dagda-2/</link>
		<comments>http://www.stochasticgeometry.ie/2010/06/22/dagda-2/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 14:32:39 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Academia]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[Thesis]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=1157</guid>
		<description><![CDATA[<div>
<p><img class="alignleft" title="Dagda" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/06/dagda.jpg" alt="Dagda" width="150" height="93" />Dagda, the robot I spent several years of my PhD building - this post is on the cameras and computer system on the robot.</p>
</div>
]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/06/22/dagda-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why the Nokia N900 is fundamentally better than the iPhone</title>
		<link>http://www.stochasticgeometry.ie/2010/05/10/why-the-nokia-n900-is-fundamentally-better-than-the-iphone/</link>
		<comments>http://www.stochasticgeometry.ie/2010/05/10/why-the-nokia-n900-is-fundamentally-better-than-the-iphone/#comments</comments>
		<pubDate>Mon, 10 May 2010 15:02:11 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[e71]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[convergence]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[stross]]></category>
		<category><![CDATA[walled garden]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=1069</guid>
		<description><![CDATA[<div>

<img class="alignleft" style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px;" title="Nokia N900" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png" alt="Nokia N900" width="160" height="121" />The 2 reasons why the Nokia N900 is (and will remain) fundamentally better than an iPhone.

</div>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/05/10/why-the-nokia-n900-is-fundamentally-better-than-the-iphone/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>10 things about the Nokia N900</title>
		<link>http://www.stochasticgeometry.ie/2010/05/10/10-things-about-the-nokia-n90/</link>
		<comments>http://www.stochasticgeometry.ie/2010/05/10/10-things-about-the-nokia-n90/#comments</comments>
		<pubDate>Mon, 10 May 2010 15:00:12 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[convergence]]></category>
		<category><![CDATA[free trial]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[nokia]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=956</guid>
		<description><![CDATA[<img style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px; float: left;" title="Nokia N900" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png" alt="Nokia N900" width="160" height="121" />10 things I love about the Nokia N900 and 10 things I hate about it.]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/05/10/10-things-about-the-nokia-n90/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Can the Nokia N900 replace a netbook?</title>
		<link>http://www.stochasticgeometry.ie/2010/05/04/nokia-n900-field-testing-and-pricetag/</link>
		<comments>http://www.stochasticgeometry.ie/2010/05/04/nokia-n900-field-testing-and-pricetag/#comments</comments>
		<pubDate>Tue, 04 May 2010 22:05:20 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[field test]]></category>
		<category><![CDATA[free trial]]></category>
		<category><![CDATA[in the wild]]></category>
		<category><![CDATA[kilkenny]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[pricetag]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=954</guid>
		<description><![CDATA[Using the Nokia N900 in the field, and why its €500 pricetag isn't really so daft after all.<img style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px; float: left;" title="Nokia N900" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png" alt="Nokia N900" width="160" height="121" />]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/05/04/nokia-n900-field-testing-and-pricetag/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Python on the Nokia N900</title>
		<link>http://www.stochasticgeometry.ie/2010/04/29/python-on-the-nokia-n900/</link>
		<comments>http://www.stochasticgeometry.ie/2010/04/29/python-on-the-nokia-n900/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 20:13:16 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[maemo]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[pymaemo]]></category>
		<category><![CDATA[scratchbox]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=966</guid>
		<description><![CDATA[﻿
<div>

<a href="http://www.stochasticgeometry.ie/wp-admin/www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png"><img title="Nokia N900" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png" alt="Nokia N900" width="160" height="121" /></a>Getting started with Python development on the N900.

</div>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/04/29/python-on-the-nokia-n900/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Nokia N900 vs Nokia E71</title>
		<link>http://www.stochasticgeometry.ie/2010/04/27/nokia-n900-vs-nokia-e71/</link>
		<comments>http://www.stochasticgeometry.ie/2010/04/27/nokia-n900-vs-nokia-e71/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 18:29:44 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[e71]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[free trial]]></category>
		<category><![CDATA[nokia]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=955</guid>
		<description><![CDATA[<a href="http://www.stochasticgeometry.ie/wp-admin/www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png"><img class="alignleft" style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px;" title="Nokia N900" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png" alt="Nokia N900" width="160" height="121" /></a> Comparing the N900 to the E71.]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/04/27/nokia-n900-vs-nokia-e71/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>N900 Unboxing</title>
		<link>http://www.stochasticgeometry.ie/2010/04/21/n900-unboxing/</link>
		<comments>http://www.stochasticgeometry.ie/2010/04/21/n900-unboxing/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 21:37:15 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[trial]]></category>
		<category><![CDATA[unboxing]]></category>
		<category><![CDATA[wom world]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=947</guid>
		<description><![CDATA[Unboxing the Nokia N900<img class="alignleft" style="margin-top: 2px; margin-bottom: 2px; margin-left: 4px; margin-right: 4px;" title="Nokia N900" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png" alt="Nokia N900" width="192" height="145" />]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/04/21/n900-unboxing/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>N900 trial</title>
		<link>http://www.stochasticgeometry.ie/2010/04/21/n900-trial/</link>
		<comments>http://www.stochasticgeometry.ie/2010/04/21/n900-trial/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 11:19:24 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[n900]]></category>
		<category><![CDATA[New Toys!]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=872</guid>
		<description><![CDATA[<img style="margin: 2px 4px; float: left;" title="Nokia N900" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/04/Nokia_N900_thumbnail.png" alt="Nokia N900" width="320" height="242" />How I got asked to trial a Nokia N900 for a fortnight for free, and why I said yes, and what's coming up next.]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/04/21/n900-trial/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Nagios notifications via clickatell</title>
		<link>http://www.stochasticgeometry.ie/2010/03/18/nagios-sms-notifications-clickatell/</link>
		<comments>http://www.stochasticgeometry.ie/2010/03/18/nagios-sms-notifications-clickatell/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 16:03:43 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[clickatell]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=750</guid>
		<description><![CDATA[<img class="alignleft" style="margin: 2px 4px;" title="Nagios SMS alert" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/03/SMS_alert_small.jpg" alt="Nagios server load alert delivered by SMS" width="160" height="172" />A simple, cheap way to get SMS notifications from a server running Nagios without additional hardware.]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/03/18/nagios-sms-notifications-clickatell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ben Nanonote with WiFi</title>
		<link>http://www.stochasticgeometry.ie/2010/03/17/ben-nanonote-wifi/</link>
		<comments>http://www.stochasticgeometry.ie/2010/03/17/ben-nanonote-wifi/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 23:14:18 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[ben]]></category>
		<category><![CDATA[ben nanonote]]></category>
		<category><![CDATA[copyleft]]></category>
		<category><![CDATA[e71]]></category>
		<category><![CDATA[gadget]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mu]]></category>
		<category><![CDATA[mu nanonote]]></category>
		<category><![CDATA[nanonote]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[nokia e71]]></category>
		<category><![CDATA[open source hardware]]></category>
		<category><![CDATA[palmtop]]></category>
		<category><![CDATA[qi hardware]]></category>
		<category><![CDATA[ya]]></category>
		<category><![CDATA[ya nanonote]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=738</guid>
		<description><![CDATA[<img style="margin-left: 5px; margin-right: 5px; vertical-align: baseline;" title="Ben Nanonotes" src="http://www.stochasticgeometry.ie/wp-content/uploads/2010/03/BenNanonotes.png" alt="Ben Nanonotes" width="320" height="240" />The new Qi Hardware palmtop, the Ben Nanonote, looks really interesting but doesn't have wifi. However, there is a solution now and more features coming in the Ya and Mu Nanonotes. Is this a future direction for the notebook market?]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/03/17/ben-nanonote-wifi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Not-so-shortlisted!</title>
		<link>http://www.stochasticgeometry.ie/2010/03/12/not-so-shortlisted/</link>
		<comments>http://www.stochasticgeometry.ie/2010/03/12/not-so-shortlisted/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 18:31:46 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Irish Blog Awards]]></category>

		<guid isPermaLink="false">http://www.stochasticgeometry.ie/?p=718</guid>
		<description><![CDATA[I got shortlisted for Best Technology Blog in the Irish Blog Awards!]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2010/03/12/not-so-shortlisted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Logitech Professional Presenter R800 Review</title>
		<link>http://www.stochasticgeometry.ie/2009/10/20/logitechr800/</link>
		<comments>http://www.stochasticgeometry.ie/2009/10/20/logitechr800/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 15:04:55 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Academia]]></category>
		<category><![CDATA[CS7004]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[New Toys!]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=389</guid>
		<description><![CDATA[I went a little mad for an hour there after being assigned my first course to teach, and afterwards found I'd ordered the R800, Logitech's top-of-the-line presentation remote/laser pointer. Here's what I think of it so far.]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/10/20/logitechr800/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>VisTablet under Debian Squeeze</title>
		<link>http://www.stochasticgeometry.ie/2009/10/06/vistablet-under-debian-squeeze/</link>
		<comments>http://www.stochasticgeometry.ie/2009/10/06/vistablet-under-debian-squeeze/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 14:00:57 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[600u]]></category>
		<category><![CDATA[aiptek]]></category>
		<category><![CDATA[amd64]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Gimp]]></category>
		<category><![CDATA[medion]]></category>
		<category><![CDATA[R61]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[tablet]]></category>
		<category><![CDATA[Thinkpad]]></category>
		<category><![CDATA[vistablet]]></category>
		<category><![CDATA[wacom]]></category>
		<category><![CDATA[waltop]]></category>
		<category><![CDATA[X.org]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=345</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p><img class="size-full wp-image-348 alignnone" style="border: 1px solid black; margin: 2px;" title="DSCF5570b" src="http://www.stochasticgeometry.ie/wp-content/uploads/2009/10/dscf5570b.jpg" alt="DSCF5570b" width="510" height="379" /></p>
<p>A new toy arrived today &#8211; the VisTablet, which is just a rebadged Aiptek 600U (model number WCK-C121). They sell as Aiptek or Waltop or Medion or any one of a few other names for about €65 on ebay.ie at the moment, so I thought what the heck, I do a fair bit of stuff in Gimp so maybe it&#8217;s worth a look. A few clicks and a week or so later and it arrives. Cue tearing open the box and unwrapping!</p>
<p>Plugging it into the laptop (Thinkpad R61 running Debian Squeeze amd64) got an instant result in that it found the device and allowed cursor movement&#8230; but no actual buttons or pressure sensor stuff, so it couldn&#8217;t work as a tablet. So off to google we go and after trying some frustrating messing about with udev rules (to create <span style="color: #339966;">/dev/apitektablet </span>- which isn&#8217;t necessary it turns out) and hal fdi files (to set up X.org options, which are needed) and I&#8217;d advanced in a posterior direction.</p>
<p>By now we were through the phase where plugging in the device crashed X and had reached the phase where plugging the device <em>out</em> crashed X. At this point, I found that the problem lay in the wacom drivers. See, just because it&#8217;s aiptek hardware doesn&#8217;t mean the aiptek drivers actually work &#8211; in this case, the wacom driver works much better.</p>
<p>But, just to be annoying, the new version of the wacom driver doesn&#8217;t work because it picks up that it&#8217;s not a wacom device and commits seppku to avoid being of any use. Note to the coder who thought that was a good idea &#8211; go choke on a hairball please.</p>
<p>Solution? Go to <a href="http://linuxwacom.sourceforge.net/" target="_blank">linuxwacom</a> and download the latest driver, then untar the tarball, go into <span style="color: #339966;">linuxwacom-0.8.4-2/src/xdrv</span> and edit <span style="color: #339966;">wcmUSB.c</span>. &#8230; <a href="http://www.stochasticgeometry.ie/2009/10/06/vistablet-under-debian-squeeze/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/10/06/vistablet-under-debian-squeeze/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Maximum Password Length in Coova-Chilli</title>
		<link>http://www.stochasticgeometry.ie/2009/09/09/maximum-password-length-in-coova-chilli/</link>
		<comments>http://www.stochasticgeometry.ie/2009/09/09/maximum-password-length-in-coova-chilli/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 17:43:19 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=287</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p><img class="alignleft size-full wp-image-295" title="Bad Day" src="http://www.stochasticgeometry.ie/wp-content/uploads/2009/09/bad_day.gif" alt="Bad Day" width="150" height="107" />  So for the last few days I&#8217;ve been banging my head up against the same problem in the lab. We currently use <a href="http://chillispot.info/index.html">Chillispot</a> to run our access points for the Metakall user trials, which is grand, but it&#8217;s also fairly out of date &#8211; it hasn&#8217;t been actively developed on since 1997 &#8211; and it has some serious security issues. So with the new academic year looming, we&#8217;re moving over to its successor, <a href="http://www.coova.org/CoovaChilli" target="_blank">Coova-Chilli. </a></p>
<p>Coova has a few neat features we like, and it&#8217;s also being actively maintained, which is important. So I took our testbed server, installed FreeRADIUS and MySQL and Apache and all the custom stuff we&#8217;ve written and generally got things set up, and then went to install the latest version of coova-chilli (1.0.14). There was an hour of swearing at iptables as usual (I really am coming to hate that program), and then I thought that&#8217;d be that.</p>
<p>But of course not.<span id="more-287"></span> The Metakall client wouldn&#8217;t log in. At first I thought the iptables setup was wrong, but no, all&#8217;s well there. FreeRADIUS was fine, so it had to be something in Coova-Chilli. Ah-ha, says I, it&#8217;s that new-fangled JSON captive portal setup, that&#8217;s the problem, I&#8217;ll dig into that. A day and a half later, and I&#8217;ve gone through the JSON portal stuff and can&#8217;t find anything wrong.</p>
<p>Exasperated, I switch Coova back to the old Chillispot configuration files (which are compatible), bypassing all the new JSON stuff and still there&#8217;s a problem.</p>
<p>It&#8217;s at this point that I try to log in manually, which no-one&#8217;s done on the system since we got the client working. And I notice that usernames are passed perfectly to FreeRADIUS. And so are passwords&#8230; up until you feed in more than 15 characters to the password field. Ah-ha. Check &#8230; <a href="http://www.stochasticgeometry.ie/2009/09/09/maximum-password-length-in-coova-chilli/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/09/09/maximum-password-length-in-coova-chilli/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A sea of red squares&#8230;</title>
		<link>http://www.stochasticgeometry.ie/2009/06/19/a-sea-of-red-squares/</link>
		<comments>http://www.stochasticgeometry.ie/2009/06/19/a-sea-of-red-squares/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 15:42:19 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=194</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p> One of the problems with running a dual boot WinXP/Linux system, apart from the fact that you rarely boot into Windows except to play games (and so you tend not to play games much &#8211; though FreeSpace2 SCP is helping there!), is that if you have a shared media folder that sees frequent creation and deletion of large files (say, for example, if you were bittorrenting cookery shows or news shows on a daily basis), the shared media folder tends to lead to a high fragmentation rate on the Windows partition (it has to be on the Windows side because while Linux can read and write NTFS with ease thanks to ntfs-3g, Windows has&#8230; <em>issues</em> with ext3). As in, 62% fragmented.</p>
<p>And then you start to realise why your dual-core 64-bit 3GHz machine with the 4Gb of RAM is stuttering while you&#8217;re trying to learn how to make pork wellington (like beef wellington but with pork tenderloin).</p>
<p>So you boot into Windows, flag the partition as dirty because the defragger won&#8217;t work until chkdsk runs, reboot to run chkdsk (which takes three hours to complete), then log in and fire off the defragger. A dozen times. And then, with fragmentation at 59%, decide to try a better debugger. Download the free trial of O&#38;O and fire that off, and wait&#8230;.</p>
<p>and wait&#8230;.</p>
<p>and wait&#8230;.</p>
<p>&#8230;*sigh*</p>
<p>That&#8217;s a whole day and all night so far, and still the damn disk isn&#8217;t happy.</p>
<p>I&#8217;m <em>seriously</em> thinking of just saying &#8220;Feck it&#8221; and erasing the Windows partition, expanding the Linux partition to take the whole disk and just using Virtualbox (which I do 95% of the time that I need anything on windows &#8211; which is literally to maintain one single diagram that hasn&#8217;t been translated from Visio to Dia/Inkspace/Xfig yet, and to &#8230; <a href="http://www.stochasticgeometry.ie/2009/06/19/a-sea-of-red-squares/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/06/19/a-sea-of-red-squares/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>New Irish Internet Tax?</title>
		<link>http://www.stochasticgeometry.ie/2009/05/06/new-irish-internet-tax/</link>
		<comments>http://www.stochasticgeometry.ie/2009/05/06/new-irish-internet-tax/#comments</comments>
		<pubDate>Wed, 06 May 2009 13:48:10 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=185</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>The more you look at legislation in this country, the nastier an opinion you develop about it. You&#8217;d be able to forgive minor errors, small awkwardnesses, even larger problems so long as the common good was served, but the more I look at statute law in Ireland and more critically, at how it is drafted, the less charitable I feel about the drafters. Much of the stuff I see, I see through the Firearms Acts &#8211; that stuff I talk about <a href="http://sparks.journals.ie/" target="_blank">elsewhere</a>.</p>
<p>This time, though, it&#8217;s more apropos to here. The new <a href="http://193.178.1.235/documents/bills28/bills/2008/2908/B29c08D.pdf" target="_blank">Broadcasting Bill 2009</a>, currently on it&#8217;s last stages in the Oireachtas and about to become the Broadcasting Act 2009, has a lovely little sting in it.</p>
<p>In section 140 (the definitions), it defines &#8220;television set&#8221; to mean:</p>
<blockquote>
<div>any electronic apparatus capable of receiving and exhibiting television broadcasting services broadcast for general reception (whether or not its use for that purpose is dependent on the use of anything else in conjunction with it) <strong>and any software or assembly comprising such apparatus and other apparatus</strong>;</div>
</blockquote>
<p>Nice little bit there. What it basicly means is that if you have no TV and you watch Youtube over your broadband connection (or download video footage and watch that), then you need to have a TV licence.</p>
<p>Yeah, that&#8217;s a bit of a surprise, isn&#8217;t it? We&#8217;ve the worst broadband rollout in the EU, in a nation where we prided ourselves on being the gateway to the EU for IT companies, where we have fancy plans for rolling out high-speed broadband to every sheep farmer in Mayo (and wireless broadband for their iPhones while they&#8217;re out with the sheep); and now we&#8217;re charging a 160 euro tax for those who opt to have broadband installed.</p>
<p>You wouldn&#8217;t mind if there was &#8230; <a href="http://www.stochasticgeometry.ie/2009/05/06/new-irish-internet-tax/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/05/06/new-irish-internet-tax/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Goodbye Kubuntu, thou foul and fickle temptress. Hello faithful Debian, thy time come round again&#8230;</title>
		<link>http://www.stochasticgeometry.ie/2009/03/28/goodbye-kubuntu-hello-debian/</link>
		<comments>http://www.stochasticgeometry.ie/2009/03/28/goodbye-kubuntu-hello-debian/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 02:46:51 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=175</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>After the debacle that was<a href="http://twitter.com/MarkDennehy/statuses/1364201210" target="_blank"> the attempted upgrade from Kubuntu 8.04 to 8.10</a>, I sat back and thought about using Ubuntu for a while. In fact, I&#8217;d been thinking about it when I wrote <a href="http://stochasticgeometry.wordpress.com/2009/03/23/disasterous-kubuntu-hardy-upgrade-to-intrepid/">the blog post on the upgrade</a>. And the conclusion I came to was this; I started using Linux with Debian, way back in the days when 3.0 was in testing; I used it on my desktop, on my laptops, on my robot, on the lab server and anywhere else it could fit; and I stayed with it up to the point where I needed some hardware support and was too lazy to build from source, and tried Ubuntu because &#8220;all the cool kids were doing it&#8221;.</p>
<p>And that was a bad mistake. They may bar me ever re-uping with SAGE for saying something as basic as this in public, but stability is far more important than having the suspend-to-ram function working or faster graphics regardless of whether it&#8217;s a mainframe or a laptop, if that is, you&#8217;re actually doing work with your computer. I did know that at one point. I blame reading too many Rails sites <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>At any rate, plugged in the external 1394 hard drive, backed up everything (~50Gb in under an hour, sweet), stuck in the netinst cd for Debian Lenny&#8217;s amd64 version (feck it, if it didn&#8217;t install, I had the i386 handy as a fallback), walked through an incredibly improved installer process, and now I have a pristine system running Gnome, KDE (3), Openbox, Windowmaker, XFCE, LXDE and matchbox (for a project).</p>
<p>The only nonstandard thing in here is that I went and got the 1.2.1 version of Mercurial from the testing repository by hand because otherwise it wouldn&#8217;t <em>hg pull</em> from the 1.2.1 repos in the lab.</p>
<p>It&#8217;s &#8230; <a href="http://www.stochasticgeometry.ie/2009/03/28/goodbye-kubuntu-hello-debian/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/03/28/goodbye-kubuntu-hello-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disasterous Kubuntu Hardy upgrade to Intrepid</title>
		<link>http://www.stochasticgeometry.ie/2009/03/23/disasterous-kubuntu-hardy-upgrade-to-intrepid/</link>
		<comments>http://www.stochasticgeometry.ie/2009/03/23/disasterous-kubuntu-hardy-upgrade-to-intrepid/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 16:34:15 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=170</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>What <em>*bangs head on desk*</em> was <em>*bang*</em> I <em>*bang*</em> thinking?</p>
<p><a href="http://stochasticgeometry.wordpress.com/2008/05/01/ubuntu-upgrades-and-fundamental-problems/">I tried KDE4 before, I didn&#8217;t like it</a>. I downgraded back to KDE3 just to get something that worked. I know <a href="http://stochasticgeometry.wordpress.com/2009/03/13/fujitsiu-lt-c-500-touchscreen-in-ubuntu/">my new toy upgraded to Intrepid without problems</a>, but that was running Xubuntu, not KDE, so why did I think that a quick apt-get dist-upgrade to Kubuntu 8.10 was going to work on the machine I have all my precious, precious data on?<span id="more-170"></span></p>
<p>Argh! This is becoming unacceptable. The whole point of an upgrade is to <em>improve</em> the functionality of the system. In my case, the Intel wifi driver was happily causing kernel panics and locking the machine solidly, with only a sadly flashing caps lock light to indicate that it wasn&#8217;t merely &#8220;thinking about it&#8221;, that it was really right off the deep end into la-la-land and wasn&#8217;t going to make it home for supper. Ubuntu forums indicated that the problem is fixed in Intrepid, and it&#8217;s been out for a good few months now, long enough to work out the kinks. Right?</p>
<p>Yeah, right.</p>
<p>Not only is the problem not fixed, it&#8217;s far far worse &#8211; kernel panics every five minutes or so in fact. That&#8217;s unbelievable. I had fewer panics than that while writing device drivers for 2.4 for crying out loud. Worse, nothing else works properly either. KDE4 design choices aside, things like menus and submenus render by blotting out a chunk of the screen and then filling it, so you get this distorted and torn section of the screen for a half-second or less before the menu appears. That&#8217;s just klunky. Bluetooth, it turns out, doesn&#8217;t work <em>at all</em>. It&#8217;s in the <a href="http://www.ubuntu.com/getubuntu/releasenotes/810">release notes. Along with a dozen other failings.</a></p>
<p>Look kubuntu folks, a little word here. A system as large &#8230; <a href="http://www.stochasticgeometry.ie/2009/03/23/disasterous-kubuntu-hardy-upgrade-to-intrepid/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/03/23/disasterous-kubuntu-hardy-upgrade-to-intrepid/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Fujitsiu LT C-500 touchscreen in Ubuntu</title>
		<link>http://www.stochasticgeometry.ie/2009/03/13/fujitsiu-lt-c-500-touchscreen-in-ubuntu/</link>
		<comments>http://www.stochasticgeometry.ie/2009/03/13/fujitsiu-lt-c-500-touchscreen-in-ubuntu/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 00:33:51 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RCMS]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=162</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p> Just as a small note to anyone trying to get this to work, the fpit driver has a bug in every version of ubuntu up to and including hardy; upgrade to intrepid and you get fully a functional touchscreen again, using this xorg.conf:</p>
<pre style="padding-left:30px;"><span style="color:#339966;">Section "InputDevice"
    Identifier     "touchscreen"
    Driver         "fpit"
    Option         "Device"    "/dev/ttyS1"
    Option        "BaudRate"    "9600"
    Option        "MaximumXPosition"    "4096"
    Option        "MaximumYPosition"    "4096"
    Option        "MinimumXPosition"    "0"
    Option        "MinimumYPosition"    "0"
    Option        "Passive"
    Option        "SendCoreEvents"
    Option        "TrackRandR" "true"
EndSection</span></pre>
<p>Just don&#8217;t try using KDE4 unless slow-motion work sounds appealing <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  XFCE is reasonable though, so Xubuntu is an option (and what I&#8217;m running on it right now).</p>
<p>Now, on with the PyQT4 coding&#8230;</p>
<div style="clear:both;">&#160;&#8230; <a href="http://www.stochasticgeometry.ie/2009/03/13/fujitsiu-lt-c-500-touchscreen-in-ubuntu/" class="read_more">Read the rest</a></div>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/03/13/fujitsiu-lt-c-500-touchscreen-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Interactive kernel map</title>
		<link>http://www.stochasticgeometry.ie/2009/03/02/interactive-kernel-map/</link>
		<comments>http://www.stochasticgeometry.ie/2009/03/02/interactive-kernel-map/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 08:32:00 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=146</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p><a href="http://www.makelinux.net/kernel_map">Very very sweet</a>. Finding your way round the kernel isn&#8217;t easy if your last name isn&#8217;t Cox or Torvalds; this is a very useful tool for overcoming such nominal handicaps&#8230;</p>
<div style="clear:both;">&#160;&#8230; <a href="http://www.stochasticgeometry.ie/2009/03/02/interactive-kernel-map/" class="read_more">Read the rest</a></div>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/03/02/interactive-kernel-map/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>gethostbyname_r()</title>
		<link>http://www.stochasticgeometry.ie/2009/01/29/gethostbyname_r/</link>
		<comments>http://www.stochasticgeometry.ie/2009/01/29/gethostbyname_r/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 15:10:43 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=110</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p> Okay, so I can&#8217;t really go into too much of the big picture since this is from the day job, but I can certainly tear into <em>gethostbyname_r()</em> a bit.</p>
<p>For part of what we&#8217;re doing, we&#8217;re sending a RADIUS message using the freeradius project&#8217;s radius client library. So, nice and simple (after you&#8217;ve done some setup):</p>
<div class="codecolorer-container c dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">result <span style="color: #339933;">=</span> rc_acct<span style="color: #009900;">&#40;</span>rh<span style="color: #339933;">,</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">,</span> send<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>Easy enough, right? So it fails. Specifically, it segfaults and since it&#8217;s in a multithreaded server, it&#8217;s a pain to track down. And I mean a <em>pain</em>. Hours of fun with DDD, gdb, nana and finally printf() lead to here:</p>
<div class="codecolorer-container c dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">res <span style="color: #339933;">=</span> gethostbyname_r<span style="color: #009900;">&#40;</span>hostname<span style="color: #339933;">,</span> <span style="color: #339933;">&#38;</span>hostbuf<span style="color: #339933;">,</span> tmphostbuf<span style="color: #339933;">,</span> hostbuflen<span style="color: #339933;">,</span> <span style="color: #339933;">&#38;</span>hp<span style="color: #339933;">,</span> <span style="color: #339933;">&#38;</span>herr<span style="color: #009900;">&#41;</span></div></div>
<p>Ah. <em>gethostbyname_r()</em>, the glibc2-reentrant thread-safe version of <em>gethostbyname()</em>. Except that it&#8217;s deprecated, and has the unique property of working differently on just about every machine out there.</p>
<p>And of course, in my machine, and the server, it&#8217;s going nuts. Not because of a dodgy parameter or anything like that, though that took a while to confirm, it&#8217;s going nuts because of the way <em>/etc/nsswitch.conf</em> is written:</p>
<pre>hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4</pre>
<p>That&#8217;s the standard way to write nsswitch.conf in ubuntu &#8211; it first checks the <em> /etc/hosts</em> file, then uses the avahi daemon, then the DNS system.</p>
<p>Only that&#8217;s not good enough for <em>gethostbyname_r()</em>. Grrr. So after a full day bug-chasing through two codebases, the fix is to change a configuration file to this:</p>
<pre>#hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts:          dns files</pre>
<p>What a waste of a day! Gah!</p>
<p>I&#8217;m going to rewrite the radius-client library to use <em>getaddrinfo() </em>over the next while. I already have to make some changes to it to cope with other things, I may &#8230; <a href="http://www.stochasticgeometry.ie/2009/01/29/gethostbyname_r/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2009/01/29/gethostbyname_r/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Toy!</title>
		<link>http://www.stochasticgeometry.ie/2008/11/14/new-toy-2/</link>
		<comments>http://www.stochasticgeometry.ie/2008/11/14/new-toy-2/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 17:31:21 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[RCMS]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=61</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p style="text-align:center;">
</p><p>Bought for the RCMS project, it&#8217;s a hand-held tablet PC (seen here in its docking station). Celeron processor and 256Mb of RAM and a whopping 60Gb hard disk space. Back when we got one for the CVRG robotics lab in 2002, it was the best thing available and cost thousands &#8211; today it cost me just over €160 by the time it landed on my door, with customs and vat and whatnot.</p>
<p>The plan is, get the touchscreen working (the fpit driver works but it&#8217;s not calibrating properly), and using python, the QT4 library, QT Designer and pyqt, to build a program that could replace the venerable RO Report form used in the rifle club:</p>
<div style="clear:both;">&#160;&#8230; <a href="http://www.stochasticgeometry.ie/2008/11/14/new-toy-2/" class="read_more">Read the rest</a></div>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2008/11/14/new-toy-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New toy!</title>
		<link>http://www.stochasticgeometry.ie/2008/10/02/new-toy/</link>
		<comments>http://www.stochasticgeometry.ie/2008/10/02/new-toy/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 14:06:57 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[New Toys!]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[R61]]></category>
		<category><![CDATA[Thinkpad]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=52</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>It finally arrived!</p>
<p><span id="more-52"></span>My old laptop, a Dell Inspiron 1150, is still functional (and yes, a bit slow, but perfectly usable under kubuntu &#8211; I&#8217;ve even done basic video editing on it), but the screen hinges have both broken, and by cannibalising one I was able to make the other barely fixed, but it&#8217;s only a matter of time for it. So it&#8217;s getting a noble retirement alongside the Toshiba Tecra 850 and I&#8217;m getting a brand new machine with some sweet specs:</p>
<p>CPU is a T8100(2.1GHz), there&#8217;s 1GB RAM (I&#8217;m ordering more from memoryC right now), 160GB HDD, 14.1in 1280&#215;800 LCD, Intel X3100 (yeah, the graphics won&#8217;t play CoD4 which is a shame, I&#8217;m wondering if an upgrade is even possible), CDRW/DVDRW, Intel 802.11a/b/g wireless, Bluetooth, Modem, 1Gb Ethernet, UltraNav, Secure chip, Fingerprint reader, WinXP Pro. I&#8217;ve kept XP Pro in its own partition (split the HDD evenly because I keep all my mp3 and video stuff in the Win32 partition so both OS&#8217;s can play video), but I don&#8217;t do any work in XP anymore (except for IE testing and a single project in Visio that I&#8217;m trying to migrate to something more usable like Xfig <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ) so all the work files and data goes into the Kubuntu partition. Might try to get compiz to work just for kicks at some point as well.</p>
<p>The laptop itself is about the same width as the old Inspiron, but not as deep by a good few inches, and while the screen is not as tall (giving a kindof squished look to it), it&#8217;s got higher resolution overall and per square inch, so when you actually look at what&#8217;s on the screen, the R61 wins out fast. Speaking of fast, it&#8217;s shockingly faster than the old Dell. Even with just the &#8230; <a href="http://www.stochasticgeometry.ie/2008/10/02/new-toy/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2008/10/02/new-toy/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ubuntu upgrades and fundamental problems</title>
		<link>http://www.stochasticgeometry.ie/2008/05/01/ubuntu-upgrades-and-fundamental-problems/</link>
		<comments>http://www.stochasticgeometry.ie/2008/05/01/ubuntu-upgrades-and-fundamental-problems/#comments</comments>
		<pubDate>Thu, 01 May 2008 13:38:27 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postgres]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/?p=45</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>New job, new machine. So the last two days I&#8217;ve been setting up hardware platforms for work (one linux desktop machine, one win32 laptop, and some cool toys like an iPod Touch and a Nokia N800 &#8211; there are more to come, but it&#8217;s more than enough to start with). I&#8217;ve been using Kubuntu for work for a few years, and Xubuntu on my ancient (and now breaking) laptop at home (an Inspiron 1100, which should tell you why it&#8217;s xubuntu and not kubuntu there as well). So, no-brainer,  <a href="http://ocaoimh.ie/2008/05/01/how-to-upgrade-ubuntu/">other</a> <a href="http://blog.signal2noise.co.uk/cgi-bin/blosxom.pl/technical/ubuntuHardy.html">people</a> have had no problems so just download the latest ISO and do a quick install, right?</p>
<p>Well, yes and no. <span id="more-45"></span></p>
<p>Firstly, I was a bit daft and thought I&#8217;d try the new KDE4 variant of Kubuntu (8.10) that came with the new Heron release. Okay, change is bad on a machine I want to be stable, but I figured it&#8217;s just an upgraded library with fewer bugs, right? Next time I do my reading first. KDE4 is trying to go down the whole active desktop route, with applets and the like actually sitting there in your desktop background. Okay, it&#8217;s not intrinsicly a bad idea for everyone, but I can&#8217;t stand it. My desktop background is normally black or deep gray. Occasionally, if I&#8217;m in a whimsical mood, it&#8217;ll have an image. Right now, for example, it&#8217;s this:</p>
<p><img src="https://www.cs.tcd.ie/Mark.Dennehy/doing-it-wrong.jpg" alt="" width="512" height="664" /></p>
<p>But I&#8217;m already growing tired of it and will go back to black later today. Sometimes, abstract patterns are nice too.</p>
<p>The point is, nothing active. If I need to see something, I&#8217;ll bring it up and look at it. I have some applets in the panel (a holdover from when I used to keep system status information in the dock in WindowMaker), but that hides away when I&#8217;m not using &#8230; <a href="http://www.stochasticgeometry.ie/2008/05/01/ubuntu-upgrades-and-fundamental-problems/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2008/05/01/ubuntu-upgrades-and-fundamental-problems/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Kubuntu 7.10</title>
		<link>http://www.stochasticgeometry.ie/2007/10/19/kubuntu-710/</link>
		<comments>http://www.stochasticgeometry.ie/2007/10/19/kubuntu-710/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 10:21:52 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/2007/10/19/kubuntu-710/</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p>Gutsy Gibbon. </p>
<p>*sigh*</p>
<p>Not a fan of the name. But, I&#8217;ve got that X server memory hole in Feisty on my machine and Gutsy supposedly has the fix. Tried it at home last night on my dual-booting laptop (XP and Feisty until last night). Insert CD, reboot off CD, let it run.</p>
<p>Perfect installation. Haven&#8217;t had time to play with the neat cool 3D stuff yet, but the successful autodetection and the full setup was very impressive, especially compared to the bad old days when autosetup was a fast way to lock your machine up or worse, but nothing more! Have to say, I still like Debian for servers, but for desktop machines, I&#8217;m sold on the Ubuntu model. I don&#8217;t install my desktop often enough to become an expert on the process, so an idiot&#8217;s interface is a good thing for that for me. On a server, it&#8217;d be unacceptable but that&#8217;s a different gig alltogether. And the degree of polish is nice as well. There&#8217;s something very satisfying about pointing to your desktop as being more bling, bling than a windows users&#8217; and also knowing that it&#8217;s a stable unix system underneath. It&#8217;s no wonder people love Macs these days.</p>
<div style="clear:both;">&#160;&#8230; <a href="http://www.stochasticgeometry.ie/2007/10/19/kubuntu-710/" class="read_more">Read the rest</a></div>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2007/10/19/kubuntu-710/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X.org 7.2 memory leak</title>
		<link>http://www.stochasticgeometry.ie/2007/07/10/xorg-72-memory-leak/</link>
		<comments>http://www.stochasticgeometry.ie/2007/07/10/xorg-72-memory-leak/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 09:46:34 +0000</pubDate>
		<dc:creator>Mark Dennehy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://stochasticgeometry.wordpress.com/2007/07/10/xorg-72-memory-leak/</guid>
		<description><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><p><em>Sigh&#8230;</em></p>
<p>One of the things I really like about the Ubuntu family of distributions is that you get a good solid chunk of the stability you see in stock Debian Stable installations, but with the release cycle being so much faster, you get more up to date apps. Which is fine for a desktop to be honest. Let&#8217;s face it, for a server you want Debian (hell, for a *really* critical server you probably want OpenBSD); but for a desktop you just need it to run for ten to twelve hours between restarting X, and if you get a month&#8217;s uptime before a reboot, that&#8217;s perfectly acceptable (more time for either, is of course better, but those times are what you <em>need</em>, not what you <em>want</em>). And Ubuntu can do that <em>and</em> give you the cool bells and whistles to silence the iBook-and-Vista-wielding critics (Leopard, you say? Multiple desktops, eh? Vista, you say? Cool spinning desktop changing you say? Hmmm. Have you seen <a href="http://www.beryl-project.org/">Beryl</a> yet? Old project I know, been doing this for a few years now, but &#8230; <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</p>
<p><img src="http://customisinglife.files.wordpress.com/2007/01/beryl-3d-desktop.jpg" alt="" width="503" height="402" /></p>
<p>Unfortunately, sometimes the great idea doesn&#8217;t work. Right now I&#8217;m looking at X.org 7.2 (without Beryl, which doesn&#8217;t like my three screen xinerama setup yet <img src='http://www.stochasticgeometry.ie/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  ), and it&#8217;s using up 342Mb of RAM.</p>
<p>I mean, that&#8217;s just daft.</p>
<p>Granted, three 24-bit colour, 1280&#215;1024 screens. Fine. But that&#8217;s only about 90Mb in total &#8211; and when X.org starts up, sure enough, that&#8217;s what it takes up (well, slightly over that). And granted, X.org does swipe memory that&#8217;s not in use for caching to speed things up (which is a good thing). But it&#8217;s not giving this memory back, and after a few days (or a really heavy Firefox session with forty-odd tabs open), I can be looking at over &#8230; <a href="http://www.stochasticgeometry.ie/2007/07/10/xorg-72-memory-leak/" class="read_more">Read the rest</a></p>]]></description>
		<wfw:commentRss>http://www.stochasticgeometry.ie/2007/07/10/xorg-72-memory-leak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

