<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>The Musings of the Kat</title>
  <subtitle type="html">the intriguing Mr Crichton-Seager's blog</subtitle>
  <id>tag:blog.klaws.org,2005:Typo</id>
  <generator uri="http://typo.leetsoft.com" version="4.0">Typo</generator>
  <link href="http://blog.klaws.org/xml/atom10/feed.xml" rel="self" type="application/xml+atom"/>
  <link href="http://blog.klaws.org/" rel="alternate" type="text/html"/>
  <updated>2010-02-09T16:07:03+00:00</updated>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:6edb936b-4aed-45bc-a959-eadfff2b063f</id>
    <published>2010-02-09T16:01:00+00:00</published>
    <updated>2010-02-09T16:07:03+00:00</updated>
    <title>Fedora 12 RPM Fusion Smart Channels</title>
    <link href="http://blog.klaws.org/articles/2010/02/09/fedora-12-rpm-fusion-smart-channels" rel="alternate" type="text/html"/>
    <category term="linux" scheme="http://blog.klaws.org/articles/category/linux" label="Linux"/>
    <content type="html">&lt;p&gt;I still prefer the usability of &lt;a href="http://labix.org/smart"&gt;Smart Package Manager&lt;/a&gt; over Fedora's default package management programs, so here are my Fedora 12 &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; channels for Smart Package Manager.&lt;/p&gt;

&lt;p&gt;&lt;a href="files/rpmfusion-smart-channels-fedora-12.tar.gz"&gt;rpmfusion-smart-channels-fedora-12.tar.gz&lt;/a&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:4d8d56e3-5199-49b2-8c2e-7734314a7953</id>
    <published>2009-12-29T16:51:00+00:00</published>
    <updated>2009-12-30T09:41:22+00:00</updated>
    <title>Comments vs Readable Code</title>
    <link href="http://blog.klaws.org/articles/2009/12/29/comments-vs-readable-code" rel="alternate" type="text/html"/>
    <category term="extreme-programming" scheme="http://blog.klaws.org/articles/category/extreme-programming" label="Extreme Programming"/>
    <content type="html">&lt;p&gt;There is a &lt;a href="http://www.cincomsmalltalk.com/userblogs/vbykov/blogView?searchCategory=Just%20Smalltalk"&gt;widely&lt;/a&gt; &lt;a href="http://c2.com/cgi/wiki?TreatCommentsWithSuspicion"&gt;contested&lt;/a&gt; mantra of Extreme Programming that says that comments are superfluous.  Inaccurate and often out-of-date meta-information just makes your self-describing code and accompanying tests harder to read and understand.&lt;/p&gt;


	&lt;p&gt;However the opposite can seem to be true; how often do we try to decipher unpleasant code that has no comments because the mantra said that they were &amp;#8220;evil&amp;#8221;?  It is dogma that leads to this problem.&lt;/p&gt;


	&lt;p&gt;It is important to remember that &amp;#8220;no comments&amp;#8221; is &lt;a href="http://en.wikipedia.org/wiki/Mantra"&gt;mantra&lt;/a&gt; not &lt;a href="http://en.wikipedia.org/wiki/Dogma"&gt;dogma&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Dogma is authoritative and not to be disputed, doubted or diverged from. That doesn&amp;#8217;t sound at all agile to me.  The word mantra originates in Sanskrit meaning &amp;#8220;tool of thinking&amp;#8221; or alternatively &amp;#8220;liberation of thought&amp;#8221;.&lt;/p&gt;


	&lt;p&gt;Dogma forces you to stick to practices that are &lt;strong&gt;believed&lt;/strong&gt; to be good for you.  Mantra can help you to re-evaluate your practices to find those that are &lt;strong&gt;actually&lt;/strong&gt; good for &lt;em&gt;you&lt;/em&gt;.&lt;/p&gt;


When you come to the point where you feel compelled to write a comment, think hard about whether or not it&amp;#8217;s really necessary;
	&lt;ul&gt;
	&lt;li&gt;Could I convey this comment by renaming a method or variable to something meaningful?&lt;/li&gt;
		&lt;li&gt;Could the accompanying unit test describe the code better?&lt;/li&gt;
	&lt;/ul&gt;


Can&amp;#8217;t think of a good name for a class or method?
	&lt;ul&gt;
	&lt;li&gt;Is the method or class trying to do too much (&lt;a href="http://en.wikipedia.org/wiki/Single_responsibility_principle"&gt;Single Responsibility Principle&lt;/a&gt;)?&lt;/li&gt;
		&lt;li&gt;Could I break down this object into two that are easier named?&lt;/li&gt;
	&lt;/ul&gt;


Okay, sometimes higher level architectural structures need to be documented, right?...
	&lt;ul&gt;
	&lt;li&gt;Maybe the class that manages the high-level architectural pattern could be better named?&lt;/li&gt;
		&lt;li&gt;Is a complex high-level architecture really giving you the required benefit if it is not easily understood?&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Personally I cannot get to the end of these options without recognising ways of improving my code, although sometimes I&amp;#8217;ve added comments to help me understand a large amount of ugly code, prior to refactoring.&lt;/p&gt;


	&lt;p&gt;The trick is to just keep thinking. &lt;em&gt;Process&lt;/em&gt; is &lt;strong&gt;never&lt;/strong&gt; an alternative to &lt;em&gt;thought&lt;/em&gt;.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:98b82ff2-9724-4feb-a888-a14b4e289b90</id>
    <published>2009-10-06T07:44:00+00:00</published>
    <updated>2009-10-07T16:26:18+00:00</updated>
    <title>ZX81 Sends an SMS</title>
    <link href="http://blog.klaws.org/articles/2009/10/06/zx81-sends-an-sms-text-message" rel="alternate" type="text/html"/>
    <category term="work" scheme="http://blog.klaws.org/articles/category/work" label="Work"/>
    <category term="sinclair" scheme="http://blog.klaws.org/articles/tag/sinclair"/>
    <category term="zx81" scheme="http://blog.klaws.org/articles/tag/zx81"/>
    <category term="retro" scheme="http://blog.klaws.org/articles/tag/retro"/>
    <content type="html">&lt;p&gt;Our latest work project (video, voiceover and music by yours truly).&lt;/p&gt;
&lt;object width="480" height="346"&gt;&lt;param name="movie" value="http://www.youtube.com/v/qfdSRsDwEYo&amp;hl=en&amp;fs=1&amp;color1=0x5d1719&amp;color2=0xcd311b"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/qfdSRsDwEYo&amp;hl=en&amp;fs=1&amp;color1=0x5d1719&amp;color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="346"&gt;&lt;/embed&gt;&lt;/object&gt;
</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:d150dffe-d340-494d-a86d-b9ec20f7898f</id>
    <published>2009-07-20T12:54:00+00:00</published>
    <updated>2009-08-27T09:40:07+00:00</updated>
    <title>Speed Camera Law Change</title>
    <link href="http://blog.klaws.org/articles/2009/07/20/speed-camera-law-change" rel="alternate" type="text/html"/>
    <category term="law" scheme="http://blog.klaws.org/articles/tag/law"/>
    <category term="car" scheme="http://blog.klaws.org/articles/tag/car"/>
    <category term="privacy" scheme="http://blog.klaws.org/articles/tag/privacy"/>
    <content type="html">&lt;p&gt;It&amp;#8217;s interesting how government measures that seem extreme in the first place are often only the thin edge of the wedge.  It&amp;#8217;s particularly worrying when it concerns human rights, but it happens constantly and insidiously. Many pieces of freedom restricting legislation have been passed &amp;#8220;to combat terrorism&amp;#8221;, in fact they tend to have no effect on terrorism and end up being used to &lt;a href="http://www.telegraph.co.uk/news/uknews/1584713/Poole-council-spies-on-family-over-school-claim.html"&gt;spy on school children&lt;/a&gt; or &lt;a href="http://news.bbc.co.uk/1/hi/programmes/whos_watching_you/8064333.stm"&gt;prejudice the law enforcement agencies&lt;/a&gt; against anyone who expresses a point of view.&lt;/p&gt;


	&lt;p&gt;The introduction of &lt;a href="http://en.wikipedia.org/wiki/Gatso"&gt;&lt;span class="caps"&gt;GATSO&lt;/span&gt;&lt;/a&gt; speed cameras seems to have been the thin edge of another wedge.&lt;/p&gt;


	&lt;p&gt;Speed cameras were introduced &amp;#8220;to reduce the number of people killed or seriously injured in road collisions&amp;#8221;.  This sounds great, less people hurt or killed, who could complain?&lt;/p&gt;


	&lt;p&gt;In order to ensure that drivers slowed down, UK law stated that GATSOs should be painted a highly visible colour (reflective yellow).  Drivers would see the camera in advance and &lt;strong&gt;gently&lt;/strong&gt; slow down to the correct speed for the road.  Even with this law in place, the cameras were often either carelessly or sneakily placed &lt;a href="http://www.speedcam.co.uk/gatso.htm"&gt;behind other signs or foliage&lt;/a&gt;, meaning that drivers would see them at the last minute and either get slapped with a hefty fine or slam on the breaks, hopefully not &lt;em&gt;causing&lt;/em&gt; a crash in the process.&lt;/p&gt;


	&lt;p&gt;Do they &lt;em&gt;want us&lt;/em&gt; to be going to fast through these &amp;#8220;accident hot-spots&amp;#8221; so that more revenue can be earned?&lt;/p&gt;


	&lt;p&gt;In April 2007, the law changed so that speed cameras no longer had to be brightly coloured, visible from 60 meters or sited only on accident black-spots.  This will surely further reduce any effect they arguably had on road accidents in the first place.&lt;/p&gt;


	&lt;p&gt;Another more rational part of the law stops companies that set up cameras profiting from fines issued.  This closes a loophole, making your local council the organisation that profits.  At least then, the money raised will go back into the system and will hopefully end up being spent on improving roads.&lt;/p&gt;


	&lt;p&gt;The clear message from the government is &amp;#8220;Speed Kills&amp;#8221;.  Of course what &lt;em&gt;actually&lt;/em&gt; kills is irresponsible driving. I&amp;#8217;m not advocating breaking the speed limit, but delegating the responsibility for policing road traffic law to cameras that &lt;strong&gt;only&lt;/strong&gt; care about speed means that people will drive however they like as long as they don&amp;#8217;t break the speed limit.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:1a7b93d4-77e0-4f82-894e-59d246073430</id>
    <published>2009-04-09T08:58:00+00:00</published>
    <updated>2009-04-09T09:02:54+00:00</updated>
    <title>Rowridge Update</title>
    <link href="http://blog.klaws.org/articles/2009/04/09/rowridge-update" rel="alternate" type="text/html"/>
    <category term="mythtv" scheme="http://blog.klaws.org/articles/category/mythtv" label="MythTV"/>
    <category term="linux" scheme="http://blog.klaws.org/articles/category/linux" label="Linux"/>
    <content type="html">&lt;p&gt;Seems I was a little hasty in demanding the head of light entertainment on a spike.&lt;/p&gt;

&lt;p&gt;It turns out that the solution to the retuning of &lt;a href="http://mythtv.org"&gt;MythTV&lt;/a&gt; after the Rowridge frequency changes is to delete and recreate the entire Capture Card using mythtv-setup.  I have done this and now all my channels work as they used to.&lt;/p&gt;

&lt;p&gt;There must be some metadata that is incorrect for the new channel locations.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:53a92459-2ece-4908-95e7-be680e546925</id>
    <published>2009-03-26T21:53:00+00:00</published>
    <updated>2009-03-26T22:17:29+00:00</updated>
    <title>More on Rowridge Retune Nightmare</title>
    <link href="http://blog.klaws.org/articles/2009/03/26/more-on-rowridge-retune-nightmare" rel="alternate" type="text/html"/>
    <category term="mythtv" scheme="http://blog.klaws.org/articles/category/mythtv" label="MythTV"/>
    <content type="html">&lt;p&gt;Looks like a &lt;a href="http://news.bbc.co.uk/1/hi/england/7965639.stm"&gt;lot of people&lt;/a&gt; have complained about losing channels.  Apparently so far about 1% of the 500,000 households have called the helpline.&lt;/p&gt;


	&lt;p&gt;Friends of mine have had similar issues.  One lives close to me and lost the same set of &lt;span class="caps"&gt;ITV&lt;/span&gt; related channels.  Another lives near Salisbury (further from the transmitter) and has lost &lt;strong&gt;all&lt;/strong&gt; channels except CBeebies!&lt;/p&gt;


	&lt;p&gt;I imagine a lot of people (like us) haven&amp;#8217;t complained yet, in the hope that service will get better by the weekend.  We need to get as many people as possible calling in, as they don&amp;#8217;t seem to think there&amp;#8217;s a real problem!&lt;/p&gt;


	&lt;p&gt;Here are my &lt;a href="/pages/rowridge"&gt;current channel settings&lt;/a&gt;, as requested by Ade, in case anyone wants to check their MythTV settings.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:ca41dc8e-1cc4-48b3-b0d8-8c753b1d75ed</id>
    <published>2009-03-25T23:26:00+00:00</published>
    <updated>2009-10-07T08:46:56+00:00</updated>
    <title>Rowridge Retune</title>
    <link href="http://blog.klaws.org/articles/2009/03/25/rowridge-retune" rel="alternate" type="text/html"/>
    <category term="mythtv" scheme="http://blog.klaws.org/articles/category/mythtv" label="MythTV"/>
    <content type="html">&lt;p&gt;Notification of the changing of frequencies for Freeview channels broadcast from the Rowridge transmitter on the Isle of Wight came through a few weeks back.&lt;/p&gt;

&lt;p&gt;I think I've picked up all the usual channels, but initial results in Poole are poor...&lt;/p&gt;

&lt;p&gt;Not working:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ITV 1&lt;/li&gt;
&lt;li&gt;ITV 2&lt;/li&gt;
&lt;li&gt;ITV 3&lt;/li&gt;
&lt;li&gt;ITV 4&lt;/li&gt;
&lt;li&gt;Channel 4&lt;/li&gt;
&lt;li&gt;Channel 4 +1&lt;/li&gt;
&lt;li&gt;E4&lt;/li&gt;
&lt;li&gt;More 4&lt;/li&gt;
&lt;li&gt;Setanta Sports 1&lt;/li&gt;
&lt;li&gt;Heart (radio)&lt;/li&gt;
&lt;li&gt;Rabbit&lt;/li&gt;
&lt;li&gt;Smile TV 2&lt;/li&gt;
&lt;li&gt;Teletext&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All the other channels (at least those that are broadcasting at midnight) seem to be alright.  I could have quite happily done without "Premier Christian Radio" or "Teletext 1-2-1 Dating", but all the ITV channels?!&lt;/p&gt;

&lt;p&gt;Hopefully they'll sort this out soon and restore the good reception I've been enjoying for the last few years.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:e89da658-bf0d-4172-ba14-26841a9cc721</id>
    <published>2009-02-20T17:15:00+00:00</published>
    <updated>2010-01-29T08:50:03+00:00</updated>
    <title>Update</title>
    <link href="http://blog.klaws.org/articles/2009/02/20/update" rel="alternate" type="text/html"/>
    <content type="html">Been a bit busy, so haven&amp;#8217;t posted since last year.  Here&amp;#8217;s what&amp;#8217;s been happening.
	&lt;ul&gt;
	&lt;li&gt;Christmas at home with the family &amp;#8211; peaceful.&lt;/li&gt;
		&lt;li&gt;Got married on the fifth of January &amp;#8211; &lt;a href="http://www.comlongon.com/"&gt;in a castle&lt;/a&gt;.&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www.whistletree.co.za/"&gt;Honeymooned&lt;/a&gt; in &lt;a href="http://www.rothmanmanor.co.za/"&gt;South Africa&lt;/a&gt; for four weeks &amp;#8211; sunny.&lt;/li&gt;
		&lt;li&gt;Started using &lt;a href="http://twitter.com"&gt;Twitter&lt;/a&gt; in earnest &amp;#8211; tweety.&lt;/li&gt;
		&lt;li&gt;Got home just in time to go from 37 Celcius to -10 &amp;#8211; snowy.&lt;/li&gt;
		&lt;li&gt;Blew up my home router by changing a big lightbulb &amp;#8211; grrr.&lt;/li&gt;
		&lt;li&gt;Spent a week trying to get &lt;a href="http://catalog.belkin.com/IWCatProductPage.process?Product_Id=372043"&gt;new router&lt;/a&gt; to do stuff &amp;#8211; frustrating. &lt;/li&gt;
		&lt;li&gt;Made a &lt;a href="http://www.youtube.com/watch?v=41IgYY26y1M"&gt;video&lt;/a&gt; of our new Google Android &lt;span class="caps"&gt;OMA&lt;/span&gt; configuration code &amp;#8211; geeky.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Right now we&amp;#8217;re up to date, I&amp;#8217;ll try to continue blogging properly again.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:6c154d5a-ab36-45b5-811a-baf7421ac487</id>
    <published>2008-12-10T23:23:00+00:00</published>
    <updated>2008-12-10T23:50:34+00:00</updated>
    <title>Fedora 10 PackageKit Problems</title>
    <link href="http://blog.klaws.org/articles/2008/12/10/fedora-10-packagekit-problems" rel="alternate" type="text/html"/>
    <category term="linux" scheme="http://blog.klaws.org/articles/category/linux" label="Linux"/>
    <link type="application/x-gzip" rel="enclosure" href="http://blog.klaws.org/files/rpmfusion-smart-channels.tar.gz" length="864" title="Fedora 10 PackageKit Problems"/>
    <content type="html">&lt;p&gt;I&amp;#8217;d been using the &lt;a href="http://labix.org/smart"&gt;Smart&lt;/a&gt; Package Manager instead of the standard Fedora/RedHat offerings for the last couple of years, as it seemed to do a better job of sorting out &lt;span class="caps"&gt;RPM&lt;/span&gt; dependancy problems.&lt;/p&gt;


	&lt;p&gt;However, on installation of &lt;a href="http://fedoraproject.org/"&gt;Fedora 10&lt;/a&gt;, I thought I&amp;#8217;d give &lt;a href="http://www.packagekit.org/"&gt;PackageKit&lt;/a&gt; a try.  It had been running nicely for two and a half weeks when an update caused any PackageKit use (even searching) to throw errors like this&amp;#8230;&lt;/p&gt;


&lt;code&gt;
failed to get a TID: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file...
&lt;/code&gt;

	&lt;p&gt;There is a &lt;a href="http://fedoraforum.org/forum/showthread.php?t=206797"&gt;long thread&lt;/a&gt; on Fedora Forum about it, but after some hacking about and a general failure to get it sorted, I&amp;#8217;ve decided to put Smart back on.&lt;/p&gt;


	&lt;p&gt;This went without hitch and in the process, I created some Smart channel files for &lt;a href="http://rpmfusion.org/"&gt;&lt;span class="caps"&gt;RPM&lt;/span&gt; Fusion&lt;/a&gt;, the new third party software repository that merges Dribble, Freshrpms and Livna.&lt;/p&gt;


	&lt;p&gt;&lt;a href="/files/rpmfusion-smart-channels.tar.gz"&gt;rpmfusion-smart-channels.tar.gz&lt;/a&gt; (864 Bytes)&lt;/p&gt;


	&lt;p&gt;Just put the &lt;strong&gt;.channel&lt;/strong&gt; files in &lt;em&gt;/etc/smart/channels/&lt;/em&gt; and Smart-GUI will pick them up.&lt;/p&gt;</content>
  </entry>
  <entry>
    <author>
      <name>Kat Crichton</name>
    </author>
    <id>urn:uuid:1ec96434-ee62-4d6a-a4d4-f081f9f4bf15</id>
    <published>2008-09-23T08:42:00+00:00</published>
    <updated>2008-09-23T08:54:04+00:00</updated>
    <title>IPCop Firewall</title>
    <link href="http://blog.klaws.org/articles/2008/09/23/ipcop-firewall" rel="alternate" type="text/html"/>
    <category term="linux" scheme="http://blog.klaws.org/articles/category/linux" label="Linux"/>
    <category term="firewall" scheme="http://blog.klaws.org/articles/tag/firewall"/>
    <content type="html">&lt;p&gt;I originally set up a Fedora 5 Linux box which worked reasonably well.  I had some traffic shaping and a limited number of ports open.  However it was getting out of date (we&amp;#8217;re now on &lt;a href="http://fedoraproject.org/"&gt;Fedora 9&lt;/a&gt;) and I heard good things on the &lt;a href="http://podcast.ubuntu-uk.org/"&gt;Ubuntu UK Podcast&lt;/a&gt; about &lt;a href="http://www.ipcop.org/"&gt;IPCop&lt;/a&gt;, a firewall-only Linux distro.&lt;/p&gt;


	&lt;p&gt;I have now installed IPCop.  It does have some security improvements over my existing set-up, although it doesn&amp;#8217;t double-up very well as a mini server since it only includes the parts of the OS required for a Firewall.  I think I&amp;#8217;ll have to move my &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; server onto my MythTV box which is always on &amp;#8211; although I&amp;#8217;m now tempted to give &lt;a href="http://git.or.cz/"&gt;&lt;span class="caps"&gt;GIT&lt;/span&gt;&lt;/a&gt; a try, which I&amp;#8217;ve also heard good things about.&lt;/p&gt;


	&lt;p&gt;I think I may have another issue which is muddying the waters as far as my firewall goes.  Previously I had very bad connectivity with the old firewall, which went away after a few weeks.  When I first set up the new IPCop firewall, I had the same problem, which now seems to have gone away too.  It may be just freak network traffic.  It may be I have a dodgy network adaptor in the machine (one of the four).  More research is required&amp;#8230;&lt;/p&gt;</content>
  </entry>
</feed>
