<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0" 
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" 
   xmlns:html="http://www.w3.org/1999/html" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
   <title>Kristof's complaints</title>
   <link>http://www.sigsegv.be/blog</link>
   <description>Because there aren't enough idiots on the Internet already.</description>
   <language>en</language>
   <copyright>Copyright 2008 Kristof Provost</copyright>
   <ttl>60</ttl>
   <pubDate>Wed, 12 May 2010 21:34 GMT</pubDate>
   <managingEditor>kristof@sigsegv.be</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.3 01/10/2008</generator>
<item>
   <title>Reverse the polarity!</title>
   <guid isPermaLink="false">Reverse_the_polarity</guid>
   <link>http://www.sigsegv.be/blog/Reverse_the_polarity.1024px</link>
   <description><![CDATA[
<p>
  It was a dark and stormy night.
  Well, not really. It was more of a sunny afternoon but I promised 
  <a href="http://www.grep.be/blog/">Wouter</a> I would
  start my next blog post with the famous <a href="http://en.wikipedia.org/wiki/It_was_a_dark_and_stormy_night">
  Bulwer-Lytton</a> sentence.
</p>
<p>
  So, anyway, it wasn't a dark and stormy night but a bright and sunny afternoon a few weeks ago when I ordered a USB
  charging cable for my cell phone. They're unreasonably expensive in Belgium but I found a great deal on 
<a href="http://www.dealextreme.com">DealExtreme</a>. A Genuine&copy; Immitation&#8482; Nokia&reg;-Like one even.
</p>
<p>
  Today the cable arrived but when I plugged in my phone it refused to charge.<br/>
  Linux complained too:
<pre>
[959307.552135] hub 5-0:1.0: over-current change on port 2
</pre>
</p>
<p>
  Clearly something was wrong with the cable. Two minutes with a multimeter and a working cable for comparison 
  showed that somehow the ground and +5V connections were inverted.
  <br/>
  15 minutes with a soldering iron fixed that. All in all I got a great deal: a charging cable, half an hour of
  entertainment and that lovely feeling of having fixed something for less than a quarter of the price of
  a genuine Nokia cable.
</p>
<p>
  Beware of geeks with soldering irons.
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog"></category>
   <pubDate>Wed, 12 May 2010 21:34 GMT</pubDate>
</item>
<item>
   <title>You're doing it wrong!</title>
   <guid isPermaLink="false">you_re_doing_it_wrong</guid>
   <link>http://www.sigsegv.be/blog/you_re_doing_it_wrong.1024px</link>
   <description><![CDATA[
<p>
  It's been far too long since I've really complained about something.
</p>
<p>
  ${Work} has decreed that passwords must be changed regularly and today it was my turn.
  Fine, despite the usual silliness in reducing the key space (by enforcing certain sets 
  of characters to be present) and a ridiculous maximum length of 8 characters, 
  I can deal with that. <a href="http://nsd.dyndns.org/pwsafe/">pwsafe</a> generates and
  remembers the password for me. After a while I even manage to remember it myself.
</p>
<p>
  Clearly that's not a good rant. This, however, is worth complaining about:
</p>
<p>
  <img src="/images/how_not_to_do_web_development.png" alt="How _not_ to do web development"/>
</p>
  That's the brand shiny new piece of *(*^#%*@% password change tool I'm supposed to use to change my password.
  The first thing it does is demand four security questions. Yes, that's right, someone's been stupid
  enough to think they do anything other than <b>reduce</b> security.
  <br/>
  I did the obvious thing:
<pre>
  dd if=/dev/urandom bs=1k count=10 | md5sum
</pre>
  Just divide the result in four more or less equal parts and there's the answers to the insecurity questions.
  Simple, except it rewards me with the above session timeout.
  <br/>
  Note that 'back' and 'forward' should not be used, in defiance of 20 years of precedent.
  Also note that if you're a slow reader you'll just get the login page again.
  <br/>
  After all, it's not nice to show error messages to the users. It upsets them so 
  it's best to hide them as soon as possible.
<p>
  

]]></description>
   <category domain="http://www.sigsegv.be/blog"></category>
   <pubDate>Tue, 13 Apr 2010 19:19 GMT</pubDate>
</item>
<item>
   <title>Lies, damned lies and ...</title>
   <guid isPermaLink="false">Lies_Damned_Lies_and_</guid>
   <link>http://www.sigsegv.be/blog/Lies_Damned_Lies_and_.1024px</link>
   <description><![CDATA[
<p>
The build system at work needed a bit of a cleanup. It's a fairly standard autoconf/automake deal
which has been extended by people who don't understand those tools. This is understandable. There 
are after all very few people who truly do. I certainly don't.
</p>
<p>
Still, seeing HOST be confused with TARGET does indicate there's a problem.
</p>

<p>
While I don't know much about autotools I do know a thing or two about plain old make.
I spent some time setting up a non-recursive build system, borrowing heavily from the
Linux kernel build system bag of tricks.
<br/>
After a little work I got the first few applications building with the new system.
Before committing it I wanted some performance numbers. Sure, the new system is 
(at least in my opinion) much cleaner, simpler, and powerful, but a faster build 
is something every developer cares about.
</p>
<p>
Measuring build times can be a little tricky as they could vary significantly due to 
caching, other processes running on the system, ...
<br/>
The mathematical tools to deal with this exist, but who wants to spend hours refreshing
statistics courses? Fortunately there's a very simple tool to do exactly the kind of statistical
calculations benchmarks call for: <a href="http://svn.freebsd.org/viewvc/base/head/usr.bin/ministat/ministat.c?revision=189934&view=markup">ministat</a>.
All you need to do is hand it two files with the results to compare.
<br/>
It's a FreeBSD tool, getting it to work on Linux is a (trivial) exercise left for the reader.
</p>

<p>
Here's the output of 11 test runs of both the old (autotools, recursive make) and the
new (plain make, non-recursive) system when running 6 jobs simultaneously.
<pre>

x old-system.txt
+ new-system.txt
+------------------------------------------------------------------------------+
|+                                                                          x  |
|+                                                                          x  |
|+                                                                          x  |
|++                                                                         x  |
|++                                                                         x  |
|++                                                                         xx |
|++                                                                         xxx|
|A|                                                                         A| |
+------------------------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x  11        662.44        673.03        663.69     665.20545      3.224591
+  11        324.47        329.55        326.46     326.61364     1.8295151
Difference at 95.0% confidence
  -338.592 +/- 2.3318
  -50.9003% +/- 0.350539%
  (Student's t, pooled s = 2.62156)

</pre>
</p>

<p>
The results surprised me a little: because there's so little variation in the results, but mostly
because the build time with the new system is so much better.
There's little variance in these results so simply comparing the first measurements 
would have told us the same thing. On the other hand, now we <b>know</b>.
</p>
<p>
I believe I'll have little trouble convincing my coworkers that the new system is better.
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog"></category>
   <pubDate>Sun, 21 Feb 2010 10:37 GMT</pubDate>
</item>
<item>
   <title>Tele-M@te</title>
   <guid isPermaLink="false">Tele-Mate</guid>
   <link>http://www.sigsegv.be/blog/Tele-Mate.1024px</link>
   <description><![CDATA[
<p>
  Dad brought home a GSM module. I was supposed to figure out how to use 
  it to provide remote access to a panel PC.
  <br/>
  There's no documentation with the device of course, because that would be far too easy.
  </br>
  There's a sticker with an URL on it, presumably the website of the manufacturer.
  <a href="http://www.NeoConnex.com">www.NeoConnex.com</a> which fails to resolve. Goody.
</p>
<p>
  <img alt="Tele-M@te" src="/images/Tele-Mate.jpg"/>
</p>
<p>
  It's got 4 connections marked 'In', 4 marked 'out, two sets of TX/RX, two grounds and one marked 24V.
  There's also one marked 'K', no idea what that one does.

  On the inside I found a Morotola G18 GSM module, a Rabbit 2000 microprocessor and tucked away 
  at the top a MAX-232 chip. 
</p>
<p> 
  It looks like the device has two serial ports so I assume it's basically a serial modem. 
  Getting it to work should be a simple matter of issuing the correct AT commands. Fortunately 
  the Morotola module documentation is easy to find.

  After soldering together a DB-9 connector and hooking it up at 9600 baud, 8N1 it produces a prompt of sorts:
  <blockquote>
    <pre>
OK
    </pre>
  </blockquote>

  Unfortunately that's the end of the good news. It doesn't respond to AT commands, or rather it always responds with
  <blockquote>
    <pre>
Expected setting or rule
ERROR
    </pre>
  </blockquote>
</p>
<p>
  Inserting a SIM card doesn't help, but it does complain about a bad PIN code. 
  After a few more attempts I give up that approach and start looking for the PUK code to unlock my SIM again.
</p>
<p>
  After some more negotiation with Google the <a href="http://www.archive.org/web/web.php">Wayback machine</a> turns 
  up an old copy of the 
  <a href="http://web.archive.org/web/20051026105226/http://www.neoconnex.com/">www.neoconnex.com</a> website.
  It looks like the company disappeared soon after October 2005.
  <br/>
  The manual on the website reveals the device can't be used as a modem but can send SMS based on its inputs,
  or set the outputs when it receives an SMS. 
  These actions can be configured according to rules set through a program called 'Tele-M@te Commander'. <br/>
  That explains the error message when entering AT commands.<br/>
</p>
<p>
  The Wayback Machine doesn't have the program so I'm completely stuck. 
  Copies of 'Tele-M@te Commander' or an ISP for a Rabbit 2000 micro controller can be exchanged for beer.
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog"></category>
   <pubDate>Sat, 16 Jan 2010 17:55 GMT</pubDate>
</item>
<item>
   <title>Less useless</title>
   <guid isPermaLink="false">less_useless</guid>
   <link>http://www.sigsegv.be/blog/less_useless.1024px</link>
   <description><![CDATA[
<p>
  For a while I've been trying to get FreeBSD to boot on my TS-7800.<br/>
  It's getting close, but it's not quite there yet. I'm currently struggling with 
  the network driver (mge(4)) and the Marvell 88EE1118 PHY. There seems to be a problem
  with the auto negotiation.
</p>
<p> 
  It still doesn't work, but I did find a bug in the PHY driver which got 
  <a href="http://svn.freebsd.org/viewvc/base?view=revision&revision=197587">patched</a>
  yesterday. I was slightly useful!
</p>

]]></description>
   <category domain="http://www.sigsegv.be/blog"></category>
   <pubDate>Tue, 29 Sep 2009 20:41 GMT</pubDate>
</item>
<item>
   <title>Right - Left - Right</title>
   <guid isPermaLink="false">travel/right_left_right</guid>
   <link>http://www.sigsegv.be/blog/travel/right_left_right.1024px</link>
   <description><![CDATA[

<p>
  Just got back from the UK. I visited <a href="http://www.bletchleypark.org.uk/">Bletchley Park</a>.
  You'd expect such a museum to be good. It wasn't, it was absolutely fantastic. There was a 
  live demonstration of an Enigma machine and I got to see a <a href="http://en.wikipedia.org/wiki/Lorenz_cipher">"Tunny" machine</a> and of course 
  <a href="http://en.wikipedia.org/wiki/Colossus_computer">Colossus!</a>.
<p>
  The guide was full of stories about people like <a href="http://en.wikipedia.org/wiki/Tommy_Flowers">Tommy Flowers</a>, 
  <a href="http://en.wikipedia.org/wiki/Harry_Hinsley">Harry Hinsley</a> and <a href="http://en.wikipedia.org/wiki/John_Tiltman">John Tiltman</a>.
   I was particularly impressed by the way <a href="http://en.wikipedia.org/wiki/Tutte">William Tutte</a> managed to work out the structure of the
   Lorenz cipher worked and how to attack it based on nothing more than cipher text and the encoding key. 
   He didn't see a real Lorenz machine until the war was over.
</p>
<p>
  The museum doesn't receive any government funding so it depends on gifts and the tickets visitors buy. 
  You should go visit it.
</p>
<p>
  The <a href="http://www.museumoftechnology.com/">Cambridge museum of technology</a> didn't disappoint either.
  It's housed in an old Victorian sewage pumping station. They have two huge steam engines to power the pumps 
  as well as two gas engines and a number of smaller steam engines to run a generator, pull carts up the hill, ...
</p>
<p>
  Best of all: these steam engines still run. I got to watch them work. This museum is also run by volunteers.
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog">/travel</category>
   <pubDate>Mon, 31 Aug 2009 21:40 GMT</pubDate>
</item>
<item>
   <title>Froscon</title>
   <guid isPermaLink="false">travel/froscon_plan</guid>
   <link>http://www.sigsegv.be/blog/travel/froscon_plan.1024px</link>
   <description><![CDATA[
<p>
  <img src="/images/froscon.png" alt="Froscon"/><br/>

  I'll be going to <a href="http://www.froscon.org">Froscon</a> in august.<br/>
  For some reason the <a href="http://programm.froscon.org/2009/">program</a> is hidden on the wiki 
  and not linked on the main page.
</p>
<p>
  If anyone want to come along: I've got three empty spots in my car. 
  I intend to leave early on the 22nd (there's a six o'clock in the morning now?) and return
  the next day.
</p>
<p>
  While I'm discussing plans: I'm tempted to make a quick trip to the UK the following week.
  The <a href=http://www.museumoftechnology.com/">Museum of Technology</a> in Cambridge 
  is starting its steam engines. While I'm in the neighbourhood I'd also visit another museum
  that's been on my list for a long time: <a href="http://www.bletchleypark.org.uk/">Bletchley 
  Park<a/>.
</p>
<p>
  Anyone interested?
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog">/travel</category>
   <pubDate>Sun, 12 Jul 2009 20:27 GMT</pubDate>
</item>
<item>
   <title>Alps: Day 6 (15-06-2009): Munchen - Home</title>
   <guid isPermaLink="false">travel/alps_day_6</guid>
   <link>http://www.sigsegv.be/blog/travel/alps_day_6.1024px</link>
   <description><![CDATA[
<p>
  Started: 08:00<br/>
  Arrival: 20:15<br/>
  Distance: ~800km<br/>
  Weather: Way too wet.<br/>
</p>

<p>
  The weather report predicted rain for the next two days, so instead of being cold, wet and miserable
  for two days I decided to drive home in one go and just be cold, wet and miserable for one day.
  <br/>
  Those predictions certainly came through: I was cold, wet, miserable and wet.
  Did I mention I got wet? 
  <br/>
  Riding in the rain isn't much fun, the shower when I got home was.
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog">/travel</category>
   <pubDate>Sat, 20 Jun 2009 13:44 GMT</pubDate>
</item>
<item>
   <title>Alps: Day 5 (14-06-2009): Munchen</title>
   <guid isPermaLink="false">travel/alps_day_5</guid>
   <link>http://www.sigsegv.be/blog/travel/alps_day_5.1024px</link>
   <description><![CDATA[
<p>
  Started: 10:00<br/>
  Arrival: 10:10<br/>
  Distance ~4 km<br/>
  Weather: Way too hot.<br/>
</p>

<p>
  Visited the <a href="http://en.wikipedia.org/wiki/Deutsches_Museum">Deutsches Museum</a> today.
  Very nice, probably nicer than the Science Museum in London.
</p>
  <a href="/blog/pygallery/Alps/images/dscf0173.jpg">
  <img width="100%" src="/gallery/Alps/images/dscf0173.jpg"/>
  </a>
<p> 
  There was a even glass blowing demonstration. Someone made a letter 'P' neon sign. Neat.
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog">/travel</category>
   <pubDate>Sat, 20 Jun 2009 13:38 GMT</pubDate>
</item>
<item>
   <title>Alps: Day 4 (13-06-2009): Chur - Munchen</title>
   <guid isPermaLink="false">travel/alps_day_4</guid>
   <link>http://www.sigsegv.be/blog/travel/alps_day_4.1024px</link>
   <description><![CDATA[
<p>
  Started: 08:30<br/>
  Arrival: 18:30<br/>
  Distance ~400 km<br/>
  Weather: Too hot.<br/>
</p>

<p>
  I left Chur a bit earlier than usual as I had a lot of distance to cover.
</p>
<p>
  The plan was to ride through Davos and the <a href="http://en.wikipedia.org/wiki/Stelvio_Pass">Stelvio pass</a>. 
  Yes, the one you've seen on Top Gear. Unfortunately the GPS got a little confused around Davos and started to 
  send me in circles. I passed through the same 5km tunnel 4 times.
</p>
<p>
  Finally I gave up on the GPS and just followed the signs to the Fuella pass. 
  This didn't quite lead me to Stelvio but it did turn out to be a shorter route to Austria (and then to Munchen).
  <br/>
  It turns out I was really, really close to the Stelvio pass too. That should teach me to plan these trips a little better.
</p>
<p>
  Riding though Austria was fairly uneventful though also quite beautiful.
  <br/>
  Crossing the border into Germany there was again no customs station. There was a sign even though it wasn't really needed. 
  The Austrian part of that road had no crash barrier, as soon as it became a German road
  there was a solid, concrete crash barrier. Sort of tells you everything doesn't it?
</p>
<p>
  I'm in Munchen for two days. The plan is to visit the <a href="http://www.deutsches-museum.de/">Deutsches museum</a>. 
  According to <a href="http://www.jgc.org/">John Graham-Cumming</a> and his <a href="http://oreilly.com/catalog/9780596523206/">Geek Atlas</a> 
  it's one of the largest and best science museums in the world. Even if it isn't it's bound to be worth a visit.
</p>


]]></description>
   <category domain="http://www.sigsegv.be/blog">/travel</category>
   <pubDate>Sat, 20 Jun 2009 13:29 GMT</pubDate>
</item>
</channel>
</rss>
