<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>mehblog</title>
    <link>http://blog.pauldalton.co.uk</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>random mumblings</description>
    <item>
      <title>Plesk upgrade removes webmail</title>
      <description>&lt;p&gt;This morning I did an upgrade on my plesk server to 8.2.1.
This mostly went ok, but the main problem afterwards was that webmail was no longer working for domains.&lt;/p&gt;


	&lt;p&gt;Instead webmail.domain was redirecting to the default domain on that box.
The solution is to rebuild the web server config files with the following command:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;/usr/local/psa/admin/sbin/websrvmng -a -v&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;Credit for this solution goes to poster on &lt;a href="http://forum.swsoft.com/showthread.php?s=19a4ec334d1d8032eceabf18c7ac7453&amp;#38;threadid=47832&amp;#38;highlight=webmail"&gt;plesk forums&amp;#8230;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 03 Nov 2007 10:54:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:85a08e0d-0ed0-4135-98eb-4ce9614732e4</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2007/11/03/plesk-upgrade-removes-webmail</link>
      <category>General</category>
      <category>linkage</category>
    </item>
    <item>
      <title>My take on the 7 reasons...</title>
      <description>&lt;p&gt;So the hottest topic in the rails community is seems is &lt;a href="http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html"&gt;Derek Sivers&amp;#8217; blog post&lt;/a&gt; on why he switched from trying to reimplement his site in rails to php.&lt;/p&gt;


	&lt;p&gt;As someone who writes both rails and php for a living I feel that I have
a good perspective on the rails vs php thing.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m sure the arguments will continue for some time, but all I know is that I write &lt;strong&gt;much&lt;/strong&gt; better php since working with rails.&lt;/p&gt;


	&lt;p&gt;Right tool for the job and all that.&lt;/p&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:47:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:69d4958e-c601-4803-8b56-afdcc2e40f74</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2007/09/27/my-take-on-the-7-reasons</link>
      <category>PHP</category>
      <category>Rails</category>
      <category>Mumblings</category>
    </item>
    <item>
      <title>Upgrade to Typo 4</title>
      <description>&lt;p&gt;I have upgraded my blog to &lt;a href="http://typosphere.org/"&gt;Typo&lt;/a&gt; version 4 and it went mostly seamlessly.&lt;/p&gt;


	&lt;p&gt;The box that hosts this blog is running &lt;a href="http://www.plesk.com"&gt;plesk&lt;/a&gt; which wasn&amp;#8217;t a problem.&lt;/p&gt;


	&lt;p&gt;I tried just installing the new version of typo over the old 2.6 version and while this appeared to work it caused some problems, notably with the migrations.&lt;/p&gt;


	&lt;p&gt;In the end I deleted my old typo install and ran these commands:&lt;/p&gt;


	&lt;p&gt;This box is running &lt;a href="http://www.centos.org"&gt;Centos 4&lt;/a&gt; . I had sqlite installed but not the header files. These are required to get the sqlite gem files to install which are required by typo.&lt;/p&gt;


&lt;pre&gt;yum install sqlite-devel&lt;/pre&gt;

	&lt;p&gt;Install the typo gem:&lt;/p&gt;


&lt;pre&gt;gem install typo&lt;/pre&gt;

	&lt;p&gt;Install typo in my webroot:&lt;/p&gt;


&lt;pre&gt; typo install /var/www/PATH/httpdocs&lt;/pre&gt;

	&lt;p&gt;The next command should have changed the configuration from mongrel and sqlite to apache and mysql but it didn&amp;#8217;t work for me for some reason:&lt;/p&gt;


&lt;pre&gt;typo config /var/www/PATH/httpdocs web-server=external database=mysql&lt;/pre&gt;

	&lt;p&gt;I had to manually change the settings in database.yml and I also had to create a .htaccess file in the public folder to get fastcgi working.&lt;/p&gt;


	&lt;p&gt;Then &lt;pre&gt;rake migrate&lt;/pre&gt; to update the database tables.&lt;/p&gt;


	&lt;p&gt;I have moved the blog a few times over the last year or so and along the way various things got broken, so it is nice to have everything working again.&lt;/p&gt;</description>
      <pubDate>Wed, 26 Jul 2006 09:58:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:9d561e90-3cc5-4c8e-9e56-a9ae73963f2c</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2006/07/26/upgrade-to-typo-4</link>
      <category>General</category>
      <category>Rails</category>
    </item>
    <item>
      <title>apache problems</title>
      <description>For a while now my blog has been going down due to a strange problem with apache.  The error log always contains the same error message, 
&lt;pre&gt;
*** glibc detected *** double free or corruption (fasttop)
&lt;/pre&gt;

	&lt;p&gt;Now I haven&amp;#8217;t been able to determine what was causing this problem, so I decided to start using &lt;a href="http://mongrel.rubyforge.org/"&gt;Mongrel&lt;/a&gt;  instead thinking that the problem was down to fastcgi. So I set up a proxypass directive in my apache conf to proxy to mongrel. Works well but apache is still crashing.&lt;/p&gt;


	&lt;p&gt;From there I decided &amp;#8220;what the heck&amp;#8221; and set up a cron job to restart apache every hour. And that seemed just fine also until this morning when I noticed that the blog was down again. To cut a long and tedious story short it was the old &amp;#8216;apache leaving semaphores around when it restarts&amp;#8217; chestnut. I have seen this problem before on a redhat 9 box running plesk. I had always assumed it was due to the version of apache that was being used on that box. Not so it would seem. Anyway, the &lt;a href="http://www.cosmicscripts.com/servers/startingapache.html"&gt;simple fix can be found here&lt;/a&gt;, among others.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve also changed my cron job to only restart every six hours now.&lt;/p&gt;


	&lt;p&gt;So my apache really isn&amp;#8217;t too well.&lt;/p&gt;</description>
      <pubDate>Fri, 26 May 2006 07:10:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:afc131f3a8484bea74173a1999ccd60a</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2006/05/26/apache-problems</link>
    </item>
    <item>
      <title>Moving House</title>
      <description>&lt;p&gt;So we are making the big move this weekend. For a long time now I&amp;#8217;ve vowed to pay someone to help us move when we finally get around to it. And I got my way.&lt;/p&gt;


	&lt;p&gt;This morning two guys and a van from &lt;a href="www.manwithavan.com"&gt;Man with a Van&lt;/a&gt; showed up first thing and man were they fast! In two hours they loaded up their Luton truck thingy with nearly everything we have. It got to the point were I had to decide to get them to leave most of the stuff in the bedroom as we have loads of friends and family turning up tomorrow to help us move. If I had let these guys there wouldn&amp;#8217;t have been anything left for them!&lt;/p&gt;


	&lt;p&gt;So, top marks to the men with a van. Awesome service.&lt;/p&gt;</description>
      <pubDate>Fri, 17 Feb 2006 11:46:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:f977b2e182af045cbef7d6a762a35e23</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2006/02/17/moving-house</link>
      <category>General</category>
      <category>linkage</category>
    </item>
    <item>
      <title>Busta - Latest Dark Jungle Mix</title>
      <description>&lt;p&gt;My good pal &lt;a href="http://bust.ac"&gt;Busta&lt;/a&gt; has recently posted his latest mix.&lt;/p&gt;


	&lt;p&gt;Check it out for some &lt;a href="http://bust.ac/articles/2006/01/17/drum-and-bass-mix-01-2006"&gt;dark jungle mix&lt;/a&gt; lovin.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Jan 2006 20:36:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:049c1eed31f9c508242890d1e10c271d</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2006/01/23/busta-latest-dark-jungle-mix</link>
      <category>General</category>
      <category>linkage</category>
    </item>
    <item>
      <title>[snippet] Cleaning up currency strings</title>
      <description>&lt;p&gt;I was working on some data that I needed to import into mysql for a new rails project I&amp;#8217;ve started.&lt;/p&gt;


	&lt;p&gt;Some of the fields are currency strings, eg &#163;4,000.00. Now initially I was tempted to just bung them into the table as varchars but there is a good chance that at some point down the line I&amp;#8217;m going to want to &amp;#8216;do maths&amp;#8217; with these numbers so I really had to convert them to floats.&lt;/p&gt;


	&lt;p&gt;In the end I used this little bit of code which worked a treat:&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;return amount.gsub(/[&#163;,]/,&amp;#8217;&amp;#8216;)&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;So what this does is matches the characters &#163; and , and substitutes them with blank. Works a treat.&lt;/p&gt;</description>
      <pubDate>Wed, 18 Jan 2006 06:46:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:da073b29269d84a26bf737a59b487d90</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2006/01/18/snippet-cleaning-up-currency-strings</link>
      <category>Rails</category>
    </item>
    <item>
      <title>Happy new year!</title>
      <description>&lt;p&gt;The week before christmas I grabbed a ryanair flight home for a long weekend with the family. In the thirteen years I&amp;#8217;ve been in the &lt;span class="caps"&gt;UK I&lt;/span&gt;&amp;#8217;ve usually managed to be at home for christmas. This year however myself and N are buying a house and there was a slim chance that we would be in our new lovenest by christmas. &amp;#8216;Twas not to be.&lt;/p&gt;


	&lt;p&gt;As first time buyers we are in a stong position. One of the primary advantages being that we are not in a chain. Pfft. We are in a chain, just at the ass end of it. We&amp;#8217;ve found a place we like, had our offer accepted, had the mortgage approved, surveys are done etc. We could move in tomorrow! However the sellers have found a place and are now waiting for their seller to find a place. Oh well, such is life. Hopfully we&amp;#8217;ll get moved this month.&lt;/p&gt;


	&lt;p&gt;Anyway, the weekend in Ireland was great. It was good to see everyone at this time of year. Then back to brighton and a short sprint in the office to the christmas break.&lt;/p&gt;


	&lt;p&gt;I had great intentions of getting lots of work done but on christmas eve I was laid low by a stonker of a cold. What shitty timing. I never get colds!&lt;/p&gt;


	&lt;p&gt;So christmas day was a bit muted, but thankfully there was plenty to watch on the telly from bed.&lt;/p&gt;


	&lt;p&gt;Mr IP arrived down for new year&amp;#8217;s eve and I quaffed as best as I could considering I only had one working air hole. New years itself was spent in the usual place despite our best intentions. On the way home we were witness to some hooligan bus vandalism first hand which was (I&amp;#8217;d say memorable but things are a bit hazy) interesting.&lt;/p&gt;


	&lt;p&gt;Poor bus driver getting partially throttled by a little shit with too many chemicals in his bloodstream. Apparently at this point I did my happy drunk act and went to the drivers aid appealing for calm, only to be berated by IP. Something along the lines of &amp;#8216;there are 8 of them and they are between us and the exit of the bus&amp;#8217;. Got away with it anyway.&lt;/p&gt;


	&lt;p&gt;Back to work today with lingering coldness. Bonkers workload.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;HNY&lt;/span&gt;!&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jan 2006 19:22:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:f07b1da4d44a4537f3979d53fdcaf6e9</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2006/01/03/happy-new-year</link>
      <category>General</category>
    </item>
    <item>
      <title>360 first impressions</title>
      <description>&lt;p&gt;Well, I&amp;#8217;ve had my 360 since Friday. I haven&amp;#8217;t played on it a vast amount, but here are my initial thoughts.&lt;/p&gt;


	&lt;p&gt;The console itself looks fine. Certainly more styled than its predecessor. No gripes there.&lt;/p&gt;


	&lt;p&gt;The power supply is enormous! No really, its huge. Got to be the biggest one I&amp;#8217;ve every seen. There have been reports of overheating but I&amp;#8217;ve not had any issues on that front.&lt;/p&gt;


	&lt;p&gt;Games; I got Project Gotham Racing 3 and Perfect Dark: Zero. The former is great. Really like. Fantastic gfx. Great gameplay. I haven&amp;#8217;t ventured onto xbox live as yet, but as I have a gold account, my offline scores get recorded online and I can see how I&amp;#8217;m doing against everyone else. Which is nice.&lt;/p&gt;


	&lt;p&gt;Perfect Dark: Zero however wasn&amp;#8217;t really my bag. I&amp;#8217;m not a huge fan of shooters on consoles generally. With this game, I wasn&amp;#8217;t &amp;#8216;feeling it&amp;#8217;. The game looks pretty, but I really couldn&amp;#8217;t get into it. I&amp;#8217;ve exchanged it for Call of Duty 2. &lt;span class="caps"&gt;COD2&lt;/span&gt; looks great also and I&amp;#8217;m having fun playing it.&lt;/p&gt;


	&lt;p&gt;So, all good really.&lt;/p&gt;</description>
      <pubDate>Wed, 07 Dec 2005 20:06:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4d91ebd72f9dc8d5fde8b19bbd20a86c</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/12/07/360-first-impressions</link>
      <category>Games</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/40</trackback:ping>
    </item>
    <item>
      <title>xbox 360 core system today</title>
      <description>&lt;p&gt;I got a call from &lt;a href="http://www.hmv.co.uk"&gt;&lt;span class="caps"&gt;HMV&lt;/span&gt;&lt;/a&gt; on wednesday to let me know that they had a &lt;a href="http://www.xbox.com/en-GB/hardware/x/xbox360coresystem/"&gt;360 core system&lt;/a&gt; with my name on it if I wanted it. I had to think about that (for about 2 seconds) and went ahead and reserved it.&lt;/p&gt;


	&lt;p&gt;The surprising thing for me was that I had been allocated one at all as I only reserved it about a month ago. At that time there were reports all over the web that most places had stopped taking preorders early September.&lt;/p&gt;


	&lt;p&gt;So, I&amp;#8217;ll be dropping a few quid this afternoon on the core system, a headset and a memory card. I&amp;#8217;ll think about the harddrive, wireless controller and all that in the new year I think.&lt;/p&gt;


	&lt;p&gt;Games wise, &lt;a href="http://www.xbox.com/en-GB/games/p/projectgothamracing3/"&gt;&lt;span class="caps"&gt;PGR3&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.xbox.com/en-gb/games/p/perfectdarkzero/"&gt;Perfect Dark&lt;/a&gt; are my top choices. &lt;a href="http://www.xbox.com/en-gb/games/k/kingkong/"&gt;King Kong&lt;/a&gt; has been getting some very good reviews too &amp;#8230;&lt;/p&gt;


	&lt;p&gt;Update this evening on first impressions (assuming it doesnt get given away to someone else before I pick it up of course).&lt;/p&gt;</description>
      <pubDate>Fri, 02 Dec 2005 10:27:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0273af0d251e9a33bf36edc75857ee14</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/12/02/xbox-360-core-system-today</link>
      <category>Games</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/39</trackback:ping>
    </item>
    <item>
      <title>Skype is actually rather good</title>
      <description>&lt;p&gt;The recent announcement of &lt;a href="http://www.skype.com"&gt;video calling in Skype 2.0&lt;/a&gt; prompted me to download it and have a look&lt;/p&gt;


	&lt;p&gt;For some reason I haven&amp;#8217;t looked at it before.&lt;/p&gt;


	&lt;p&gt;Anyway, downloaded it and it worked first time, something I have yet to see with other voip providers.&lt;/p&gt;


	&lt;p&gt;The interface is polished, theres no setup to speak of and their pricing is very competitive as far as I can tell (I primarily use voip to call the family back in Ireland, none of whom have a landline&amp;#8230;).&lt;/p&gt;


	&lt;p&gt;Good stuff.&lt;/p&gt;</description>
      <pubDate>Fri, 02 Dec 2005 09:36:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4bf3895236b62b6af0ed320d8e43dbd4</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/12/02/skype-is-actually-rather-good</link>
      <category>General</category>
      <category>linkage</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/38</trackback:ping>
    </item>
    <item>
      <title>Papercraft motorbikes</title>
      <description>&lt;p&gt;Well I probably won&amp;#8217;t be able to afford the real thing for christmas, but &lt;a href="http://www.yamaha-motor.co.jp/global/entertainment/papercraft/realistic/index.html"&gt;maybe one of these&lt;/a&gt; will do.&lt;/p&gt;</description>
      <pubDate>Thu, 01 Dec 2005 13:53:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:47ee49114b56430be50b0d603166ffd1</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/12/01/papercraft-motorbikes</link>
      <category>linkage</category>
      <category>Bike</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/37</trackback:ping>
    </item>
    <item>
      <title>Asterisk faxes jamming</title>
      <description>&lt;p&gt;We&amp;#8217;ve been using &lt;a href="http://www.asterisk.org/"&gt;Asterisk&lt;/a&gt; here in the office for several months now. It handles our voip phones and also incoming faxes.&lt;/p&gt;


	&lt;p&gt;We have always had a problem with the fax line &amp;#8216;jamming&amp;#8217;. Every now and then the fax would get stuck while receiving a fax. To rectify this we would have to restart asterisk.&lt;/p&gt;


	&lt;p&gt;This morning one of our clients couldn&amp;#8217;t get a fax to us. It kept jamming at our end. They must have tried about four or fives times. Same problem each time.&lt;/p&gt;


	&lt;p&gt;So I decided to try and fix this problem.&lt;/p&gt;


	&lt;p&gt;To cut a long and boring post short, I found &lt;a href="http://lists.digium.com/pipermail/asterisk-users/2005-November/132043.html"&gt;this posting&lt;/a&gt; to the Asterisk Users mailing list which has a fix. It involves increasing the gain on the card that has the fax line.&lt;/p&gt;


	&lt;p&gt;I gave it a go and on the next attempt the client&amp;#8217;s fax came through perfectly.
Coincidence?&lt;/p&gt;


	&lt;p&gt;Perhaps, but this tip from Paul is definitely worth a look.&lt;/p&gt;</description>
      <pubDate>Thu, 01 Dec 2005 11:53:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:8a15c142e4c877feee4605e7d3dc417d</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/12/01/asterisk-faxes-jamming</link>
      <category>General</category>
      <category>linkage</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/36</trackback:ping>
    </item>
    <item>
      <title>Rails Express blog</title>
      <description>&lt;p&gt;&lt;a href="http://railsexpress.de/blog/"&gt;The rails express blog&lt;/a&gt; written by &lt;a href="http://railsbench.rubyforge.org/"&gt;Stefan Kaes, author of railsbench&lt;/a&gt;  is a great resource for anyone interested in wringing a bit (or a lot in some cases) more performance out of  Ruby on Rails.&lt;/p&gt;


	&lt;p&gt;Some great tips on there.&lt;/p&gt;


	&lt;p&gt;Good stuff.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2005 09:39:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:ea6ae7a3798d2328a0b88b53b9f08615</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/11/29/rails-express-blog</link>
      <category>Rails</category>
      <category>linkage</category>
    </item>
    <item>
      <title>Passed my big bike test!</title>
      <description>&lt;p&gt;As a fairly direct result to having my 125 stolen I decided to bite the bullet and do
 the direct access motorbike training course.&lt;/p&gt;


	&lt;p&gt;I went along to &lt;a href="http://www.sussexridertraining.com"&gt;Sussex Rider Training&lt;/a&gt; one saturday for an assessment and we worked out a plan.&lt;/p&gt;


	&lt;p&gt;This past week I did their three day course, culminating in my practical test on Friday afternoon.&lt;/p&gt;


	&lt;p&gt;The weather this week got really cold. Well below zero with wind chill. This was a challenge but preferable to rain I suppose.&lt;/p&gt;


	&lt;p&gt;Day one of the course focused on the slow riding techniques (slow speed riding, U-turns, emergency stops). This is essential. Once one masters controlling the bike at slow speeds, the rest is easy (well, easier).&lt;/p&gt;


	&lt;p&gt;Day two of the course focuses on the faster stuff. &#8216;A&#8217; roads, bends and dual carriageways. It is important for passing the test that you can show the examiner that you can get up to the speed limit quickly and safely. Its all about &#8216;making progress&#8217; apparently.&lt;/p&gt;


	&lt;p&gt;The third day is spent warming up and drilling the U-turn and emergency stop. Do both of those a few times, then off around the test routes for a while, then more U-turns etc.&lt;/p&gt;


	&lt;p&gt;Mine was the last test for the day, and it looked like it was about to snow at any moment. Mid afternoon and the parents where out picking up their little darlings from school. Sticking their 4&amp;#215;4s in stupid places.&lt;/p&gt;


	&lt;p&gt;I was very nervous. However, once we got going I wasn&#8217;t too bad. I was sure I had failed the test on a number of occasions though.&lt;/p&gt;


	&lt;p&gt;The training I&#8217;d received really paid off, especially going over all of the &#8216;awkward&#8217; parts of the various test routes. That really helped.&lt;/p&gt;


	&lt;p&gt;Towards the end of the test we were heading down this stretch of the &lt;span class="caps"&gt;A27&lt;/span&gt;. National speed limit (70). We&#8217;d been down this road several times over the last few days, so I knew what was coming.&lt;/p&gt;


	&lt;p&gt;Round the corner at 70. Speed limit changes down to 50, watch for cars to the right as outside lane vanishes. Down to 40.&lt;/p&gt;


	&lt;p&gt;&#8220;Ah crap, he&#8217;s going to make me to that nasty right turn.&#8221; The instruction is given. &#8220;Next right turn&#8221;. 
Spot the turn, move right, into the small run off area. Sit and wait for a gap. Of course its bonkers busy so I get stuck for a while. Gap comes and then I&#8217;m off.&lt;/p&gt;


	&lt;p&gt;Run through it in my head. Hmm, tight left hander at end of this street. Don&#8217;t run wide.&lt;/p&gt;


	&lt;p&gt;&#8220;Turn left at end of street&#8221;.&lt;/p&gt;


	&lt;p&gt;&#8220;Bugger.&#8221;&lt;/p&gt;


	&lt;p&gt;Nail it.&lt;/p&gt;


	&lt;p&gt;Back to centre.&lt;/p&gt;


	&lt;p&gt;Test passed.&lt;/p&gt;


	&lt;p&gt;Sweet!&lt;/p&gt;


	&lt;p&gt;4 minor faults in the end. All for not making progress, i.e. too slow on the twisty A road and being a bit hesitant at some of the junctions. I&#8217;m happy enough with that though as it is something I know I need to work on. It&#8217;ll come with experience.&lt;/p&gt;


	&lt;p&gt;So, I can thoroughly recommend &lt;a href="http://www.sussexridertraining.com"&gt;Sussex Rider Training in West Worthing&lt;/a&gt; if you are thinking of doing some bike training. Great guys and top training.&lt;/p&gt;


	&lt;p&gt;Hmm, now how much for an R1 &#8230;&lt;/p&gt;</description>
      <pubDate>Sun, 27 Nov 2005 13:35:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:ea675bb625b0becf1354f23ef52a0b28</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/11/27/passed-my-big-bike-test</link>
      <category>Bike</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/34</trackback:ping>
    </item>
    <item>
      <title>My Bike has been knicked!</title>
      <description>&lt;p&gt;My pride and joy has been stolen!
A black and red &lt;span class="caps"&gt;KMX 125&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;Last night and tonight a car driver felt the need to park half of their car in the motorbike bay. This meant that I had to park my bike at the other end of the bay where I couldn&amp;#8217;t anchor it to the lamp post.&lt;/p&gt;


	&lt;p&gt;I came back from networking to see a big kmx shaped hole where my bike should be.&lt;/p&gt;


	&lt;p&gt;My first reaction was &amp;#8220;did I park it there?&amp;#8221;.
I definitely did.&lt;/p&gt;


	&lt;p&gt;We drove around the area trying to find it, to no avail.&lt;/p&gt;


	&lt;p&gt;I now have a crime number. It may or may not show up.&lt;/p&gt;


	&lt;p&gt;The bike was worth around the grand mark. But there was another 100 pounds worth of locks on it too (three seperate locks).&lt;/p&gt;


	&lt;p&gt;As it wasn&amp;#8217;t anchored, and there wasnt any debris from severed locks, it must have been a &amp;#8216;lift it into the van job&amp;#8217;.&lt;/p&gt;


	&lt;p&gt;During the evening though? Damn cheek!&lt;/p&gt;


	&lt;p&gt;Anyway, poor me. Just need to make sure Im covered insurance wise.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Nov 2005 00:16:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:cbe4600a19a750ff7e5b5ffb6a832f84</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/11/10/my-bike-has-ben-knicked</link>
      <category>Bike</category>
    </item>
    <item>
      <title>typo 2.5.8 issue &amp;amp; fix</title>
      <description>&lt;p&gt;There is a wee problem with the latest version of typo.&lt;/p&gt;


	&lt;p&gt;One of the lib files is in the wrong place.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://rubyforge.org/pipermail/typo-list/2005-November/001073.html"&gt;Find the fix here&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 09 Nov 2005 13:40:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:39144f8a3e273948c67b53939ce741ce</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/11/09/typo-2-5-8-issue-fix</link>
      <category>General</category>
    </item>
    <item>
      <title>Rails, Mysql native bindings 2.7 on Centos</title>
      <description>&lt;p&gt;&lt;a href="http://weblog.rubyonrails.com/archives/2005/10/30/get-10-15-more-performance-with-mysql-rails"&gt;This post over on the RoR blog&lt;/a&gt; a few days back talks about upgrading to the new mysql native bindings for ruby to get the best performance.&lt;/p&gt;


	&lt;p&gt;However, I&amp;#8217;ve been unable to get it to install using gem, a la :&lt;/p&gt;


&lt;code&gt;
gem install mysql
&lt;/code&gt;

	&lt;p&gt;as I have been getting compile errors:&lt;/p&gt;


&lt;code&gt;
ERROR: While executing gem - (RuntimeError) ERROR:
Failed to build gem native extension. 
&lt;/code&gt;

	&lt;p&gt;Despite the number of solutions to this out there, I&amp;#8217;ve only now found one that works with my particular setup, namely centos 4.2, and that can be found in &lt;a href="http://ocsforums.com/showthread.php?p=462"&gt;this post&lt;/a&gt;&lt;/p&gt;


I should point out that I didn&amp;#8217;t need to edit the makefile or anything, I just ran make, make install in the 
&lt;code&gt;
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
&lt;/code&gt;
folder.

	&lt;p&gt;All working now, which is nice.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Nov 2005 16:58:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:929506914801db8815bd08699dd48f75</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/11/08/rails-mysql-native-bindings-2-7-on-centos</link>
      <category>Rails</category>
    </item>
    <item>
      <title>winter is here</title>
      <description>&lt;p&gt;Last week was unseasonably warm; around the 20 degrees mark. This week however winter has arrived, with a vengence.
The air temp has dropped and its been lashing down over the last few days.&lt;/p&gt;


	&lt;p&gt;Personally I don&amp;#8217;t really mind this as I quite like winter. I&amp;#8217;m built for the cold rather than the warm as they say.&lt;/p&gt;


	&lt;p&gt;Dark, wet weather always reminds me of christmas for some reason. Sitting indoors, the lights are on. All warm a snuggly.&lt;/p&gt;


	&lt;p&gt;Ahhh.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Nov 2005 13:33:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a75739a48af2a734f570945f59b13c4b</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/11/02/winter-is-here</link>
      <category>General</category>
    </item>
    <item>
      <title>How to count the number of records in a table...</title>
      <description>&lt;p&gt;Want to find out how many records there are in a table?&lt;/p&gt;


	&lt;p&gt;You could do a table.&lt;code&gt;&amp;lt;a href="http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000674"&amp;gt;find_by_sql &amp;lt;/a&amp;gt; "select count(*) from table",&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;You could get all the records from the table and then count them, say &lt;code&gt;records = table.find(:all)&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Or&lt;/strong&gt; you could do count = &lt;a href="http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000683"&gt;table.count&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;How cool is that!&lt;/p&gt;</description>
      <pubDate>Wed, 28 Sep 2005 11:30:55 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:dacd6302f24dbeb25eb2fb22ff576ea8</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/09/28/how-to-count-the-number-of-records-in-a-table</link>
      <category>General</category>
      <category>Rails</category>
    </item>
    <item>
      <title>ruby on rails country_options_for_select helper</title>
      <description>&lt;p&gt;So I&amp;#8217;m still working away on this project using &lt;a href="http://www.rubyonrails.org/"&gt;Ruby on Rails&lt;/a&gt;, and generally I&amp;#8217;m loving it. It really is a great piece of software. Progress is good, but I often find myself stumbling on what should be the simple things.&lt;/p&gt;


	&lt;p&gt;Today for example, I wanted to use the country_options_for_select() form helper to generate a list of countries as a dropdown in a form, with a number of countries prioritised at the top of the list.&lt;/p&gt;


The list was being generated but the prioritised countries where not be generated. The code I had was something like this:
&lt;code&gt;country_options_for_select(priority_countries = ['United Kingdom','United States'])&lt;/code&gt;.

	&lt;p&gt;Now the &lt;a href="http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000330"&gt;method signature in the api docs&lt;/a&gt; is this: &lt;code&gt;country_options_for_select(selected = nil, priority_countries = nil)&lt;/code&gt;, and I &lt;em&gt;assumed&lt;/em&gt; that the &lt;code&gt;selected = nil&lt;/code&gt; didn&amp;#8217;t need to be included as it was the default.&lt;/p&gt;


	&lt;p&gt;Not so. Once I added the &lt;code&gt;selected = nil&lt;/code&gt; argument to the method it worked.&lt;/p&gt;


	&lt;p&gt;And the lesson is?&lt;/p&gt;


	&lt;p&gt;Assumption is the mother of all feck ups I guess.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Sep 2005 00:21:55 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:070c0b8feaf631c1631faf851a8d7fb9</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/09/23/ruby-on-rails-country_options_for_select-helper</link>
      <category>General</category>
      <category>Rails</category>
    </item>
    <item>
      <title>Formatting dates in rails templates using strftime()</title>
      <description>&lt;p&gt;Recently I needed to be able to format a date that I had retrieved from the database into something more readable. In smarty one would do something like &lt;code&gt;$date|date_format&lt;/code&gt; but I could not find anything like that in ruby.&lt;/p&gt;


	&lt;p&gt;Then someone pointed out that the date field in the database would be recognised as such and would be a date object in my View.&lt;/p&gt;


	&lt;p&gt;As the date is a Date object I can use &lt;a href="http://www.ruby-doc.org/core/classes/Time.html#M000236"&gt;strftime()&lt;/a&gt; to reformat the date any way I want to. 
eg. &lt;code&gt;@event.start_date.strftime("%d %B %Y")&lt;/code&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 23 Aug 2005 15:07:38 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:adbd7922ccc8f7d929b7044f3aba3609</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/08/23/formatting-dates-in-rails-templates-using-strftime</link>
      <category>Rails</category>
    </item>
    <item>
      <title>How to find the id of a record you have just created in ruby on rails?</title>
      <description>&lt;p&gt;How do you get the id of a record you have just created in &lt;a href="http://www.rubyonrails.org"&gt;Ruby on Rails&lt;/a&gt;?&lt;/p&gt;


	&lt;p&gt;Well, the answer to this question came up on the rails mail list recently.&lt;/p&gt;


	&lt;p&gt;It goes something a little bit like this:&lt;/p&gt;


&lt;code&gt;
   @text.save   //insert something into the database
   @text.id      //get the id of the new record 
&lt;/code&gt;</description>
      <pubDate>Thu, 21 Jul 2005 18:00:53 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:d8f269914e4633751288bb6389cc4948</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/07/21/how-to-find-the-id-of-a-record-you-have-just-created-in-ruby-on-rails</link>
      <category>Rails</category>
    </item>
    <item>
      <title>stop gnome opening new windows</title>
      <description>&lt;p&gt;I&amp;#8217;m currently playing with fedora core 4 on my desktop in the office.
One of my initial niggles is the way that the file browser app (nautilus) always opens new windows, i.e. when you click on a folder and then click on a sub folder, one ends up with two seperate windows.
Very annoying.&lt;/p&gt;


	&lt;p&gt;Anyway, there is a way to stop this by telling nautilus to work in &amp;#8216;browser&amp;#8217; mode which is much more like the windows explorer style.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://mail.gnome.org/archives/nautilus-list/2004-May/msg00087.html"&gt;Instructions on how to change this setting are here.&lt;/a&gt; 
Note, one gets to &amp;#8216;gconf&amp;#8217; by typing gconf-editor from a console window, or by navigating to Applications | System Tools | Configuration Editor (at least on my default gnome setup).&lt;/p&gt;</description>
      <pubDate>Tue, 28 Jun 2005 14:22:02 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:987a0236ce0da042a6d79ca05c7eb56e</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/06/28/stop-gnome-opening-new-windows</link>
      <category>linux</category>
    </item>
    <item>
      <title>Cannot send session cookie ....</title>
      <description>&lt;p&gt;While working on a site last night I got this error when I uploaded the latest version of my code to the live server: &lt;strong&gt;Warning: &lt;/strong&gt;session_start(): Cannot send session cookie &amp;#8211; headers already sent &amp;#8230;

	&lt;p&gt;Now, my first reaction was &lt;span class="caps"&gt;WTF&lt;/span&gt;! as I wasn&amp;#8217;t seeing this on my development box. I was using the &lt;a href="http://www.apachefriends.org/en/"&gt;Apache Friends &lt;span class="caps"&gt;XAMPP&lt;/span&gt;&lt;/a&gt; product to run a &lt;span class="caps"&gt;WAMP&lt;/span&gt; install on my local windows XP machine so I guess there are some differences in the way apache works on win32 and linux.&lt;/p&gt;


	&lt;p&gt;Anyway, the Cannot send session cookie error is usually caused by outputting something to the client and then trying to send a cookie/write to the headers. So I start looking through my included files, trying to find a stray debug line or something like that. Nothing. &lt;scratch head&gt; Ok, go through it again, grepping for any kind of output. Nothing. Oh crap. I can&amp;#8217;t find the problem and the live site is busted right now.&lt;/p&gt;


	&lt;p&gt;Ok, its late and no one will probably notice, but I have to find the problem.&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;Bang head on table a few times.&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;Ok, start again.&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;And then I see it. I had tabbed all of the source in one of my include files. Including the opening &lt;code&gt; &amp;lt; ?php &lt;/code&gt; line! So, I was effectively sending a tab to output then processing my php.&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;More head slapping. General relief etc.&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;So there you go. If you ever have that problem and can&amp;#8217;t see where its coming from, save yourself some wear and tear on the ole forehead and check for whitespace at the beginning of your source files.&lt;/p&gt;

&lt;/code&gt;&lt;/scratch&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 19 Apr 2005 08:11:36 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:68c4f6077b91b9180734cdbf509b70cf</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/04/19/cannot-send-session-cookie</link>
      <category>PHP</category>
    </item>
    <item>
      <title>Beware register_globals</title>
      <description>&lt;p&gt;We deployed a new site last week. Over the weekend I got a bug report from the site owner. Within the administration section of the site a certain session variable was getting reset causing a certain operation to fail.&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;Initially I was stumped. It worked fine on the dev server...  So I made sure that we had deployed the code to the live server correctly. Yup, all fine.&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;Versions of php were the same.&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;Well, to cut a long story short, register globals had been turned on in an apache config file for the previous version of the site and hadn't been removed when the new site was deployed.&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;This was causing a variable initialisation in one part of the code to overwrite an object in $_SESSION elsewhere.&lt;/code&gt;&lt;/pre&gt;


	&lt;pre&gt;&lt;code&gt;Weird. Lesson learned...&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Mon, 07 Mar 2005 14:18:35 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:5acc55fcff03ace59138beb8a21b3029</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/03/07/beware-register_globals</link>
      <category>PHP</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/22</trackback:ping>
    </item>
    <item>
      <title>How to properly turn off comments</title>
      <description>&lt;p&gt;I was still having problems with getting sh*t loads of spam via the old posts on this site, even though I had turned off all commenting in the admin as far as I could tell. Seems I needed to sort out some settings on the old posts. Info on this can be found &lt;a href="http://wordpress.org/support/topic.php?id=24637"&gt;in this post on the wordpress site&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Specifically:&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;UPDATE&lt;/span&gt; wp_posts &lt;span class="caps"&gt;SET&lt;/span&gt; comment_status = &amp;#8216;closed&amp;#8217;, ping_status = &amp;#8216;closed&amp;#8217; &lt;span class="caps"&gt;WHERE&lt;/span&gt; comment_status = &amp;#8216;open&amp;#8217;;&lt;/p&gt;


	&lt;p&gt;Ahhh, peace at last.&lt;/p&gt;


	&lt;p&gt;Update: and now I can gleefully look at all those feeble attempts to spam me in my logs. :)&lt;/p&gt;</description>
      <pubDate>Tue, 22 Feb 2005 17:50:39 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:3ab08dbb9f317443fa1173043a643cb3</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/02/22/how-to-properly-turn-off-comments</link>
      <category>General</category>
    </item>
    <item>
      <title>turning off comments</title>
      <description>&lt;p&gt;I&amp;#8217;m getting more comment spam on this blog than email spam to the half dozen or so domains I have registered so I&amp;#8217;m just going to turn off comments for now.
  It&amp;#8217;s really annoying but spam just really gets on my nerves, and I really don&amp;#8217;t like the idea of these spammers burning up my bandwidth or more importantly my time.&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;If anyone wants to get in touch with me about this blog or anything else the follow the 'about me' link top right to my main site where there is a contact form...&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Sun, 06 Feb 2005 12:43:53 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:004b4bf808f4b6b37aabec4e66c09a69</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/02/06/turning-off-comments</link>
      <category>General</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/20</trackback:ping>
    </item>
    <item>
      <title>nesting variables in smarty</title>
      <description>&lt;p&gt;Ever need to use nested variables in &lt;a href="http://smarty.php.net"&gt;smarty&lt;/a&gt;? I know its not very mvc, but on more than one occassion I&amp;#8217;ve found myself needing to . So here is how to do it, as a reminder to myself more than anything tbh.&lt;/p&gt;


	&lt;p&gt;{{$Availability[$product.stockLevel]}}&lt;/p&gt;</description>
      <pubDate>Tue, 01 Feb 2005 19:58:33 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:de602ddf3681e45454096df53be5db58</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/02/01/nesting-variables-in-smarty</link>
      <category>General</category>
    </item>
    <item>
      <title>Improve Spam detection in Thunderbird mail client</title>
      <description>&lt;p&gt;I&amp;#8217;ve noticed recently that the junk mail filtering in the &lt;a href="http://www.mozilla.org/products/thunderbird/"&gt;Thunderbird mail client&lt;/a&gt; wasn&amp;#8217;t as good as I would have liked. So I had a hunt around and found &lt;a href="http://forums.mozillazine.org/viewtopic.php?t=145473"&gt;this thread&lt;/a&gt; on the &lt;a href="http://forums.mozillazine.org/viewforum.php?f=39"&gt;MozillaZine forums&lt;/a&gt; with a good tip to improve its spam detection rules. Warning, involved some hand editing of preference files&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Wed, 20 Oct 2004 18:28:36 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:224ca597b0d36ff2da7ac7ff47727be4</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/10/20/improve-spam-detection-in-thunderbird-mail-client</link>
      <category>General</category>
    </item>
    <item>
      <title>wordpress update</title>
      <description>&lt;p&gt;There is a new version of wordpress out, 1.2.1 . It is a bug fix release I believe. I was able to just copy the archive straight into my wordpress folder and all is well. Admin system tells me I am now running the new version.&lt;/p&gt;</description>
      <pubDate>Tue, 12 Oct 2004 10:08:03 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:5f4923ecee6eefe53c6ffbc9315885c4</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/10/12/wordpress-update</link>
      <category>General</category>
    </item>
    <item>
      <title>SPF and Sender ID</title>
      <description>&lt;p&gt;Recent reports on &lt;a href="http://it.slashdot.org/article.pl?sid=04/09/13/1317238&amp;#38;tid=172&amp;#38;tid=95&amp;#38;tid=218"&gt;slashdot&lt;/a&gt; et al seemed to suggest that Microsoft&amp;#8217;s Sender ID initiative was dead in the water as it had been rejected by &lt;span class="caps"&gt;MARID&lt;/span&gt;. It &lt;a href="http://trends.newsforge.com/trends/04/09/14/1653201.shtml?tid=137"&gt;seems&lt;/a&gt; however that this was perhaps not so accurate.&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;I have only recently found out about &lt;a href="http://spf.pobox.com/"&gt;SPF (Sender Policy Framework) &lt;/a&gt;and it sounds great. I run a number of servers for clients and I know how much spam is flying around out there and how hard it can be to filter it out. If SPF can limit the amount of spam that is coming from spoofed addresses I think this will be an enormous breakthrough. On the surface at least, it should force spammers to use their own machines to send out their noxious effluent. That should make it easier to block them.&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;In theory anyway.&lt;/p&gt;


	&lt;p&gt;In the next few weeks I&amp;#8217;m planning on getting &lt;span class="caps"&gt;SPF&lt;/span&gt; and &lt;a href="http://www.postfix.org/"&gt;postfix&lt;/a&gt; working together and relaying some domains through it to see how it works. Fingers crossed.&lt;/p&gt;</description>
      <pubDate>Wed, 15 Sep 2004 13:53:54 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:65038a706992801ecdf5651b5a15ba2b</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/09/15/spf-and-sender-id</link>
      <category>linux</category>
    </item>
    <item>
      <title>chkconfig for debian?</title>
      <description>&lt;p&gt;I recently switched to &lt;a href="http://www.debian.org"&gt;debian&lt;/a&gt; for my linux box at home. I have previously been using &lt;a href="http://www.redhat.com"&gt;redhat&lt;/a&gt; (various versions and variants). Most of the boxes I work on and manage are redhat based in some way so I had become familiar with the way it is laid out.
So, I recently installed &lt;a href="http://freshmeat.net/projects/ddclient/?topic_id=149%2C150%2C152%2C253"&gt;ddclient&lt;/a&gt; to update my dynamic dns records at &lt;a href="http://www.dyndns.org"&gt;dyndns&lt;/a&gt; as I am on &lt;span class="caps"&gt;DSL&lt;/span&gt; at home with a dynamic IP.
In the installation instructions one is told to use chkconfig to &amp;#8216;turn on&amp;#8217; ddclient as a service. The problem is that (as far as I am aware) chkconfig does not exist on debian.
Hmm. So a bit of searching led me to the debian policy documtent, which explains the debian equivalent of chkconfig, i.e. update-rc.d . That doesn&amp;#8217;t roll off the tongue as easily as chkconfig but it does the job. Specifically check out &lt;a href="http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit"&gt;this page&lt;/a&gt;&amp;lt;&lt;img src="--more--&gt;&lt;" alt="" /&gt;&lt;del&gt;-nextpage&lt;/del&gt;-&amp;gt; for info on how to use it.&lt;/p&gt;


	&lt;p&gt;In my case I just ran &lt;code&gt;update-rc.d ddclient defaults&lt;/code&gt; (after copying the file ddclient from my distribution folder to /etc/init.d ) and it created symlinks from /etc/init.d/ddclient to the various init folders. I suppose I should really have choosen just the runlevels I needed but it was early and I hadn&amp;#8217;t quite woken up &amp;#8230;&lt;/p&gt;


	&lt;p&gt;hth.&lt;/p&gt;</description>
      <pubDate>Mon, 12 Jul 2004 11:37:29 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:c8b1e0c2c6070920c6c981da8f86a785</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/07/12/chkconfig-for-debian</link>
      <category>General</category>
      <category>linux</category>
    </item>
    <item>
      <title>latest IE scare</title>
      <description>&lt;p&gt;Following on from todays revelations that various sites are spreading malware via IE, I&amp;#8217;ve just updated my xp pro box to service pack 2, rc2. So far so good. Apparently this patch secures IE against this particular vuln.
I must say I&amp;#8217;m happy with the improvements so far. If you want to update to sp2 rc2 then you need to update your windows update client &lt;a href="http://v5.windowsupdate.microsoft.com/"&gt;here: &lt;/a&gt; and then just do windows update as normal. 
Easy.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jun 2004 22:16:09 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:f541b870816562fc7b3a52b820878009</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/06/25/latest-ie-scare</link>
      <category>General</category>
    </item>
    <item>
      <title>wordpress update</title>
      <description>&lt;p&gt;I&amp;#8217;ve just updated wordpress here form v 101 to 1.2. A few hiccups (should have checked where the tar file was headed&amp;#8230;) but everything seems ok now. Some cool new featues too&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Mon, 31 May 2004 13:16:02 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:5c54dd559ae6b405252a8d3a5a7f5c20</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/05/31/wordpress-update</link>
      <category>General</category>
    </item>
    <item>
      <title>welcome back Mr Beattie</title>
      <description>&lt;p&gt;&lt;a href="http://www.russellbeattie.com/notebook/"&gt;Russell Beattie&lt;/a&gt; is back, posting away on his blog after a bit of a break. Good stuff.&lt;/p&gt;</description>
      <pubDate>Mon, 31 May 2004 13:01:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:6a1e07b63a10a0c7da90f2eb6bc24bf5</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/05/31/welcome-back-mr-beattie</link>
      <category>General</category>
    </item>
    <item>
      <title>QT &amp;amp; GTK</title>
      <description>&lt;p&gt;I&amp;#8217;m looking at writting some apps for the Linux desktop at the moment, probably using &lt;a href="http://www.wxpython.org"&gt;wxPython&lt;/a&gt;, but one thing that has been really confusing for me of late is the various toolkits for the two main linux desktop environments, namely &lt;a href="http://www.gnome.org"&gt;Gnome&lt;/a&gt; and &lt;a href="http://www.kde.org"&gt;&lt;span class="caps"&gt;KDE&lt;/span&gt;&lt;/a&gt;. So, as a bit of an aid de memoir for myself, QT is kde and &lt;span class="caps"&gt;GTK&lt;/span&gt; is gnome.&lt;/p&gt;</description>
      <pubDate>Sun, 04 Apr 2004 21:27:39 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:31b357dd58423d9f7632cb1fe67a9c89</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/04/04/qt-gtk</link>
      <category>General</category>
    </item>
    <item>
      <title>the future of the OSS desktop</title>
      <description>&lt;p&gt;Recently a discussion has begun about the future direction of the Linux desktop.  Well perhaps &amp;#8216;started&amp;#8217; isn&amp;#8217;t the right word, but &lt;a href="http://ometer.com/desktop-language.html"&gt;this article&lt;/a&gt; written by &lt;a href="http://ometer.com/"&gt;Havoc Pennington&lt;/a&gt; seems to have sparked off something of a blog war between himself and &lt;a href="http://primates.ximian.com/~miguel/"&gt;Miguel de Icaza&lt;/a&gt;. The crux of the discussion seems to be about what platform the future linux desktop is going to be based upon.
On the one hand one has &lt;a href="http://www.go-mono.com"&gt;Mono&lt;/a&gt; which is an open source implementation of Microsoft&amp;#8217;s &amp;#8217;.NET framework&amp;#8217;, and on the other hand we have &lt;a href="http://www.java.com"&gt;Java&lt;/a&gt;. And of course the current C/C++.
Now, to be honest until recently I was pretty much ignorant of what all the fuss was about, but having read numerous blog posts and articles I am beginning to get it. It would seem that each &amp;#8216;alternative&amp;#8217; has its benefits and drawbacks (like most things in life I suppose).
Java has a lot of momentum behind it, and is backed by companies such as Sun and &lt;span class="caps"&gt;IBM&lt;/span&gt;. So there is a lot of support for it. However, as Java is not open source it can be troublesome for some developers, particularily when you add the &lt;span class="caps"&gt;GPL&lt;/span&gt; into the mix. 
Mono is completely open source and is backed by Novell. However, many open source developers are reluctant to use Mono as it is perceived as being linked to Microsoft, i.e. an OS implementation of a MS product. And there are lots of people who are nervous about the multitude of patents that MS holds with regard to .NET. Understandable I suppose.
I have used java on and off over the years but I am certainly no expert. I quite like java in many respects. I hadn&amp;#8217;t ever tried Mono though, so I downloaded it and installed the &lt;span class="caps"&gt;CLI&lt;/span&gt; and the compiler onto one of my boxes (a pleasantly painless experience I might add) . I compiled a simple HelloWord script and compiled it. It ran just fine. I then copied the binary to one of my Windows XP boxes which has the latest version of the .NET runtime on it, and the binary ran just fine there too which was pretty cool (ok, I wasn&amp;#8217;t exactly stretching things with this example). Apparently the start of the binary file holds instructions for windows to run the file through the .NET VM or something like that, so on windows you can just double-click the file and it runs properly. Neat.
Going beyond the HelloWorld example, there is &lt;span class="caps"&gt;GTK&lt;/span&gt;# for writting &lt;span class="caps"&gt;GUI&lt;/span&gt; applications. The Mono project is using &lt;span class="caps"&gt;GTK&lt;/span&gt;# instead of windowsForms as I believe a lot of the patent issues involve the windows forms classes, so using &lt;span class="caps"&gt;GTK&lt;/span&gt;# avoids the whole problem.
Right, this post is getting very long and is turning into a review(ette) of Mono which wasn&amp;#8217;t the intention. 
More later &amp;#8230;&lt;/p&gt;</description>
      <pubDate>Mon, 22 Mar 2004 15:31:23 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:91058e694c8f304f6b1a78a44fcccb58</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/03/22/the-future-of-the-oss-desktop</link>
      <category>General</category>
    </item>
    <item>
      <title>Happy Paddy's Day</title>
      <description>&lt;p&gt;Hope everyone has a great day remembering their Irish roots. ;) Most notably today is my Dad&amp;#8217;s birthday. Happy birthday &lt;span class="caps"&gt;MPD&lt;/span&gt;!&lt;/p&gt;</description>
      <pubDate>Wed, 17 Mar 2004 20:08:39 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:00a0cc76571ad7ac86dc3dfdb48be97f</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/03/17/happy-paddys-day</link>
      <category>General</category>
    </item>
    <item>
      <title>wax on</title>
      <description>Hans Nowak has written what can best be described as a wrapper for &lt;a href="http://www.wxpython.org/"&gt;wxPython&lt;/a&gt; which is a Python port of &lt;a href="http://www.wxwindows.org/"&gt;wxWindows&lt;/a&gt;, an &lt;i&gt;&lt;blockquote&gt;open source C++ &lt;span class="caps"&gt;GUI&lt;/span&gt; framework to make cross-platform programming child&amp;#8217;s play. Well, almost.
&lt;/blockquote&gt;&lt;/i&gt; Almost indeed. As someone who is new to python, and also to wxWindows, Hans&amp;#8217; &lt;a href="http://zephyrfalcon.org/weblog/arch_Wax.html"&gt;wax&lt;/a&gt; is a godsend. It wraps up all of those nasty, hard to remember apis in nice simple objects. So, I should &lt;strong&gt;finally&lt;/strong&gt; get around to doing some of these &lt;span class="caps"&gt;GUI&lt;/span&gt; projects on my list.</description>
      <pubDate>Sat, 24 Jan 2004 19:16:18 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d71865fe23cfdeeb7d14fb64d3c103c9</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/01/24/wax-on</link>
      <category>General</category>
    </item>
    <item>
      <title>Hurrah, nokia are listening</title>
      <description>&lt;p&gt;Just spotted &lt;a href="http://www.theregister.co.uk/content/64/35040.html"&gt;this&lt;/a&gt; article on the The Register about rumours of Nokia potentially evaluating Python for their series 60 platform. Outstanding. Its a bit of a pity that its a limited trial initially, but I suppose doing the trials in a controlled manner should lead to quicker and perhaps better quality feedback.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Jan 2004 19:15:33 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4f62f17ce9681668b5c015850f15cb88</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/01/22/hurrah-nokia-are-listening</link>
      <category>General</category>
    </item>
    <item>
      <title>Perl on the Series 60!</title>
      <description>&lt;p&gt;It would &lt;a href="http://www.theregister.co.uk/content/64/34943.html"&gt;seem&lt;/a&gt; that Nokia are going to release a version of Perl for their series 60 phones. This is very cool indeed. Why? Well, at the moment if you want to develop for mobiles (and series 60 phones in this case) then you have to either use C++ (steep learning curve, lots of power) or Java and &lt;span class="caps"&gt;J2ME&lt;/span&gt; (easier to learn, nowhere near as much power). Having a &amp;#8216;third way&amp;#8217; is going to be great. Actually there is &lt;a href="http://www.allaboutopl.com/wiki/OPLWikiHome"&gt;&lt;span class="caps"&gt;OPL&lt;/span&gt;&lt;/a&gt; which is quite usable but as I don&amp;#8217;t have a series 60 phone (yet) I don&amp;#8217;t know for sure. 
Of course, whether or not Perl is the &lt;strong&gt;right&lt;/strong&gt; choice here is open to debate. Personally I would have preferred &lt;a href="http://www.python.org"&gt;Python&lt;/a&gt; ...&lt;/p&gt;</description>
      <pubDate>Sun, 18 Jan 2004 08:12:32 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0bf2905177563567c3aee6bbfea96704</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2004/01/18/perl-on-the-series-60</link>
      <category>General</category>
      <trackback:ping>http://blog.pauldalton.co.uk/articles/trackback/3</trackback:ping>
    </item>
  </channel>
</rss>
