<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Dave's Articles and Stuff</title>
  <link rel="alternate" href="http://dave.org.uk" type="text/html"/>
  <subtitle>Blogs and the like</subtitle>
  <author>
    <name>Dave Cross &lt;dave@dave.org.uk&gt;</name>
  </author>
  <updated>2008-07-04T18:10:27Z</updated>
  <entry>
    <link rel="alternate" href="http://use.perl.org/~davorg/journal/36831?from=rss" type="text/html"/>
    <summary></summary>
    <category term="journal"/>
    <author>
      <name>davorg</name>
    </author>
    <id>http://use.perl.org/~davorg/journal/36831?from=rss</id>
    <published>2008-07-01T10:21:51Z</published>
    <title>use.perl: CPANTS Success</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>It's taken a bit longer than I hoped, but I have finally beaten the CPANTS game. From about an hour ago all of my CPAN modules score 100% and I'm therefore (along with a number of other people) <a href="http://cpants.perl.org/highscores/many">top of the CPANTS league</a>.</p>
<p>Of course, they'll probably introduce some new measures soon and I'll have to start all over again.</p>
<p>Now, given my awesome CPANTS score, who wants to come on one of my <a href="http://mag-sol.com/train/public/">Perl courses</a>?</p>

</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://blog.dave.org.uk/2008/06/about-the-same-as-a-duck.html" type="text/html"/>
    <summary>Perhaps I need to travel a little faster. Or more often. Or something.The new Dopplr profiles are fun....</summary>
    <category term="travel"/>
    <author>
      <name>Dave Cross</name>
    </author>
    <id>tag:blog.dave.org.uk,2008://1.1448</id>
    <published>2008-06-26T14:27:09Z</published>
    <updated>2008-06-26T15:44:26Z</updated>
    <title>davblog: About the Same as a Duck</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>Perhaps I need to travel a little faster. Or more often. Or something.</p>
<p>The new Dopplr <a href="http://www.dopplr.com/traveller/davorg/public/">profiles</a> are fun.</p>

</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://use.perl.org/~davorg/journal/36750?from=rss" type="text/html"/>
    <summary></summary>
    <category term="journal"/>
    <author>
      <name>davorg</name>
    </author>
    <id>http://use.perl.org/~davorg/journal/36750?from=rss</id>
    <published>2008-06-23T12:07:34Z</published>
    <title>use.perl: Perl Training Update</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>The Perl training courses that I <a href="http://use.perl.org/article.pl?sid=08/06/12/1745241">mentioned ten days ago</a> are now confirmed. They will be running in the week starting 28th July at <a href="http://venda.com/">Venda's</a> London offices.</p>
<p>Some information about the courses is <a href="http://mag-sol.com/train/public/">available online</a> and if you want to get the latest news about any training I'm running then please sign up to my <a href="http://lists.mag-sol.com/mailman/listinfo/training-news">Training News mailings list</a>.</p>

</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://blog.dave.org.uk/2008/06/what-i-did-at-mashed-08.html" type="text/html"/>
    <summary>I was at Mashed 08 at Alexandra Palace yesterday. Unfortunately I didn't have time to go back today, but I've made some progress on my project from home.It was a successful day all in all though. Here's what I did.Watched...</summary>
    <category term="tech"/>
    <author>
      <name>Dave Cross</name>
    </author>
    <id>tag:blog.dave.org.uk,2008://1.1447</id>
    <published>2008-06-22T15:24:28Z</published>
    <updated>2008-06-23T08:12:44Z</updated>
    <title>davblog: What I Did At Mashed 08</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">I was at <a href="http://mashed08.backnetwork.com/">Mashed 08</a> at Alexandra Palace yesterday. Unfortunately I didn't have time to go back today, but I've made some progress on my project from home.<br/>
<br/>
It was a successful day all in all though. Here's what I did.<br/>
<br/>
<ul>
<li>Watched Jonathan Tweed talk about the <a href="http://www.bbc.co.uk/programmes/developers">BBC /programmes api</a>. If I hadn't already had an idea of what I was going to do I would have been very tempted to play with this. A year ago, I was working for the BBC on one of the projects that underlies /programmes, so it's great to see it being given a public airing.</li>
<li>Watched the Guardian's Damian Carrington talk about what the Guardian's enviroment web team are hoping to inspire people into doing. Well, to be honest, I sat in his talk whilst getting my wireless connection working. Sorry Damian.<br/></li>
<li>Met up with a fellow <a href="http://astray.com/">Perl hacker</a>. Last year the venue was full of Perl hackers. Shame there were so few there this year. I suspect many of the cooler kids were at <a href="http://interesting08.pbwiki.com/">Interesting</a> instead - note to organisers: having two events like this on the same day is all a bit silly.</li>
<li>Had an interesting conversation with someone from the BBC who is working on the next version of the <a href="http://www.bbc.co.uk/radio/aod/">Radio iPlayer</a>. It sounds as though following the release of this new version, my <a href="http://dave.org.uk/streams/">BBC streams page</a> will be redundant. Alternatively, it might be easy to make it far more useful. And I'll be able to retire all the grungy old HTML scraping code.</li>
<li>Had an interesting conversation with the <a href="http://www.oreillygmt.co.uk/">O'Reilly UK people</a>. Might be some announcements coming out of that in a couple of months. Oh, and I might have opened myself up to lots of hassle about writing another book.</li>
<li>Watched Doctor Who on a huge screen. In the wrong aspect ratio. Honestly, you'd thing that if there was one organisation who understood aspect ratios then it would be the BBC.<br/></li>
</ul>
And despite socking up most of the day doing all of those things, I also managed to get stuff done on my own project and the first draft of <a href="http://politicalweb.org.uk/">Political Web</a> is now online. It doesn't do most of the things that I want it to do yet, but it's a good start. Have a play and let me know how it foes.<br/>
<br/>
<b>Update:</b> I should, of course, reiterate that what I've done so far on Political Web is largely just to repackage stuff that's available from from <a href="http://www.theyworkforyou.com/api/">They Work For You</a>. I have plans to add other stuff soon(ish).<br/>
<br/>
<b>Update:</b> Having just got to a Windows PC for the first time for days and tried using Political Web in IE6, I see that it doesn't work for some reason. Probably some Javascript glitch. I'll try to look at it in more detail later on. But in the meantime, use Firefox - you know it makes sense.<br/>
</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://use.perl.org/~davorg/journal/36697?from=rss" type="text/html"/>
    <summary></summary>
    <category term="journal"/>
    <author>
      <name>davorg</name>
    </author>
    <id>http://use.perl.org/~davorg/journal/36697?from=rss</id>
    <published>2008-06-16T13:24:06Z</published>
    <title>use.perl: Speaking in Copenhagen</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>When the YAPC::Europe organisers sent out their initial talk confirmations a couple of weeks ago, they accepted two of my talks but asked if they could hold the third in reserve. I, of course, agreed.</p>
<p>If just received an acceptance mail for that third talk. So it looks like I'll be speaking three times in Copenhagen. My talks are:</p>
<ul>
<li><a href="http://www.yapceurope2008.org/ye2008/talk/1175">Proud to Use Perl</a></li>
<li><a href="http://www.yapceurope2008.org/ye2008/talk/1176">Ye Compleat History of Ye Perle Mongers of Olde London Towne (Part 1)</a></li>
<li><a href="http://www.yapceurope2008.org/ye2008/talk/1314">Perl in RPM-Land</a></li>
</ul>
<p>I'm looking forward to Copenhagen very much. I've never been to Scandinavia.</p>
<p><b>Update:</b> The preliminary <a href="http://www.yapceurope2008.org/ye2008/schedule">schedule</a> has been published. All of my talks are on the final day. Which gives me longer to write them <nobr><wbr/></nobr>:-)</p>

</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://blog.dave.org.uk/2008/06/political-web-sites.html" type="text/html"/>
    <summary>It's the BBC Mashed hack session this coming weekend, so I suppose lots of people are trying to think of a project to work on. I have an idea that involves UK political web sites.I expect that most MPs have...</summary>
    <category term="tech"/>
    <author>
      <name>Dave Cross</name>
    </author>
    <id>tag:blog.dave.org.uk,2008://1.1446</id>
    <published>2008-06-16T11:43:09Z</published>
    <updated>2008-06-16T14:40:27Z</updated>
    <title>davblog: Political Web Sites</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">It's the BBC <a href="http://mashed08.backnetwork.com/">Mashed</a> hack session this coming weekend, so I suppose lots of people are trying to think of a project to work on. I have an idea that involves UK political web sites.<br/>
<br/>
I expect that most MPs have a web site. A far smaller number of them have a blog. Some of them use blog-like software to publish news and other similar web feeds. Part of what I want to do is to build a directory of those URLs. I can't see any way to do this other than trying to track down each of the 646 MPs on the web and poking around on their sites to find all of the interesting URLs. I'm hoping I can get some help with that.<br/>
<br/>
But there are also sites about MPs that are run by other organisations. These ones are easier to track down. For example, <a href="http://theyworkforyou.com/">They Work For You</a> has a page for every MP. The page for my MP is<br/>
<br/>
<a href="http://www.theyworkforyou.com/mp/martin_linton/battersea">http://www.theyworkforyou.com/mp/martin_linton/battersea</a><br/>
<br/>
So that looks easy enough. You just use the name of the MP and the name of the constituency. <a href="http://publicwhip.org.uk/">Public Whip</a> has a similar mechanism. My MP's page on Public Whip is<br/>
<br/>
<a href="http://www.publicwhip.org.uk/mp.php?mpn=Martin_Linton&amp;mpc=Battersea">http://www.publicwhip.org.uk/mp.php?mpn=Martin_Linton&amp;mpc=Battersea</a><br/>
<br/>
Then there are the news organisations. The BBC has a page about my MP. It's at<br/>
<br/>
<a href="http://news.bbc.co.uk/1/shared/mpdb/html/35.stm">http://news.bbc.co.uk/1/shared/mpdb/html/35.stm</a><br/>
<br/>
In this case there's a magic number (35) and in order to construct these URLs for other MPs, you'd need to map these numbers to MPs (or constituencies).<br/>
<br/>
The Guardian has two pages. One for the MP and one for the constituency.<br/>
<br/>
<a href="http://politics.guardian.co.uk/person/0,,-3146,00.html">http://politics.guardian.co.uk/person/0,,-3146,00.html</a> <a href="http://politics.guardian.co.uk/hoc/constituency/0,,-696,00.html">http://politics.guardian.co.uk/hoc/constituency/0,,-696,00.html</a><br/>
<br/>
Again, each of those contain magic numbers that you'd need to get a complete list of. And I assume (or, at least, hope) that these pages will one day be given <a href="http://blog.dave.org.uk/2008/03/guardian-urls.html">shiny new URLs</a> like other parts of the Guardian site.<br/>
<br/>
It's this second part of the problem that I want to concentrate on first. Building URLs to external sites pro grammatically. And this is where you, gentle reader, can help me. I have two questions that you might be able to answer.<br/>
<br/>
<ol>
<li>I'm sure I'm missing some external sites. To be honest, I haven't really looked very hard yet. I'd be surprised if some of the other national papers didn't have similar pages to the Guardian. Do you know of any other good sites that have pages dedicated to each individual MP or constituency?</li>
<li>Do any of you work for organisations that publish these pages? If so, is there any chance that you could sent me lists of the "magic numbers" that appear in your URLs? What I'd need is something like a CSV file (or whatever format is convenient for you) that maps your magic numbers to a recognisable name for an MP or a constituency. I can then map your data to my list of MPs. I know it's a bit cheeky, but it doesn't hurt to ask.</li>
</ol>
There's still one part of the puzzle missing. A surprising number of people don't know the name their MP or even their constituency. So an important part of the system will be a search engine. At the very least, I'll need the ability to convert a postcode to a constituency (or MP). All of the sites I mentioned above do this. It would be great if one of them made the look-up available as a web service.<br/>
<br/>
Of, and one last thing. If you're going to Mashed and don't have a project to work on and this sounds interesting to you, then please get in touch. Feel free to <a href="http://mashed08.backnetwork.com/people/person.aspx?personid=748">link up with me</a> on the backnetwork site.<br/>
<br/>
<b>Update:</b> If you listen, you can probably hear the sounds of my kicking myself very hard because I forgot to check the <a href="http://www.theyworkforyou.com/api/">They Work For You API</a> before writing this entry. It does a lot of the kinds of things that I will need. There's even <a href="http://search.cpan.org/dist/WebService-TWFY-API/">a Perl module</a> - which makes me very happy.<br/>
<br/>
</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://use.perl.org/~davorg/journal/36670?from=rss" type="text/html"/>
    <summary></summary>
    <category term="journal"/>
    <author>
      <name>davorg</name>
    </author>
    <id>http://use.perl.org/~davorg/journal/36670?from=rss</id>
    <published>2008-06-12T14:06:25Z</published>
    <title>use.perl: Perl Training in London</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>I was told last week that my current contract won't be extended when it finishes at the end of this month.</p>
<p>I'm obviously looking for a new contract, but I'm also investigating another option.</p>
<p>I'm thinking of running some commercial, public Perl courses in London at the end of July. The plan is basically that I'll book a room for a week and run a couple of two-day courses (Learning Perl and Intermediate Perl) and a one-day Advanced Perl course.</p>
<p>It's still far from confirmed, but if you're at all interested in this (or other training courses that I may run in the future) then please sign up to <a href="http://lists.mag-sol.com/mailman/listinfo/training-news">the mailing list</a> in order to be kept up to date with the latest news.</p>

</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://blog.dave.org.uk/2008/06/42-is-not-the-answer.html" type="text/html"/>
    <summary>Well that about wraps it up for the Labour Party as far as I'm concerned. Less than three years after they doubled the the amount of time that a suspect could be held without charge, they have pushed through a...</summary>
    <category term="politics"/>
    <author>
      <name>Dave Cross</name>
    </author>
    <id>tag:blog.dave.org.uk,2008://1.1445</id>
    <published>2008-06-12T10:39:49Z</published>
    <updated>2008-06-12T14:32:21Z</updated>
    <title>davblog: 42 Is Not The Answer</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Well that about wraps it up for the Labour Party as far as I'm concerned. Less than three years after they <a href="http://blog.dave.org.uk/2005/11/on-further-refl.html">doubled the the amount of time</a> that a suspect could be held without charge, they have pushed through a bill which <a href="http://news.bbc.co.uk/1/hi/uk_politics/7449268.stm">increases the time by another 50%</a>. If the bill gets through the Lords, you'll be able to be held for 42 days. This is far longer than in any other western democracy.<br/>
<br/>
Like pretty much everyone I know, I've been becoming more and more disgusted with the Labour government. But through it all I clung to the belief that they were the best alternative. And I (usually) still voted for them.<br/>
<br/>
But that's all over now. A party that has so little regard for human rights is not one that I can possibly vote for. I left the party and sent back my membership card in protest over the Ken Livingstone/Frank Dobson fiasco in 2000. I'm beginning to wish that I hadn't as this is a far more important matter to protest over.<br/>
<br/>
The problem is, of course, who do I vote for now? Only the Labour and Conservative parties have a chance of winning <a href="http://en.wikipedia.org/wiki/Battersea_%28UK_Parliament_constituency%29">my constituency</a>. I've always been physically repulsed by the idea of voting Tory. Is it time to try and overcome that revulsion. Or do I effectively waste my vote by voting Green or for one of the more extreme left wing parties. I suppose I have a year or two to decide.<br/>
<br/>
But this is a sad day in British politics. The modernisation of the Labour Party has gone too far. It's time for "New Labour" to go. We want our party back.<br/>
<br/>
<b>Update:</b> Blimey. <a href="http://news.bbc.co.uk/1/hi/uk_politics/7450627.stm">A Tory politician with principles</a>. Hats off to David Davies.<br/>
</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://blog.dave.org.uk/2008/06/confusing-question.html" type="text/html"/>
    <summary>We were at our usual weekly pub quiz last night. One of the questions was this:Who is the current captain of the Starship Enterprise?I have to confess being rather confused by this question. Given that Star Trek is set two...</summary>
    <category term="life"/>
    <author>
      <name>Dave Cross</name>
    </author>
    <id>tag:blog.dave.org.uk,2008://1.1444</id>
    <published>2008-06-11T11:53:05Z</published>
    <updated>2008-06-11T12:07:31Z</updated>
    <title>davblog: Confusing Question</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>We were at our usual weekly pub quiz last night. One of the questions was this:</p>
<blockquote>Who is the current captain of the <a href="http://en.wikipedia.org/wiki/Starship_Enterprise">Starship Enterprise</a>?</blockquote>
<p>I have to confess being rather confused by this question. Given that <a href="http://en.wikipedia.org/wiki/Star_Trek">Star Trek</a> is set two hundred (or so - I'm not a big fan, I don't know the details) years in the future, how can the word "current" possibly have any meaning?</p>
<p>The answer that the questionmaster accepted as correct was <a href="http://en.wikipedia.org/wiki/Jean-Luc_Picard">Jean-Luc Picard</a>. Is there any way that answer makes sense?</p>
<p>As I understand it, he was last seen as captain in <a href="http://en.wikipedia.org/wiki/Star_Trek_Nemesis">Star Trek Nemesis</a> in 2002. But <a href="http://en.wikipedia.org/wiki/Jonathan_Archer">Jonathan Archer</a> was seen as captain (of a far earlier <a href="http://en.wikipedia.org/wiki/Enterprise_%28NX-01%29">Enterprise</a>) until 2005.</p>
<p>I hate it when quiz questions are illogical.</p>

</div>
    </content>
  </entry>
  <entry>
    <link rel="alternate" href="http://use.perl.org/~davorg/journal/36651?from=rss" type="text/html"/>
    <summary></summary>
    <category term="journal"/>
    <author>
      <name>davorg</name>
    </author>
    <id>http://use.perl.org/~davorg/journal/36651?from=rss</id>
    <published>2008-06-11T10:20:41Z</published>
    <title>use.perl: CPANTS Metrics</title>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>Gabor <a href="http://szabgab.com/blog/2008/06/1212827982.html">asked for feedback</a> on his proposed CPANTS metrics. Here is mine.</p>
<p>I don't like them.</p>
<p>Well, I don't like most of them. I'm ambivalent on the Test::NoWarnings one.</p>
<p>It's the Debian ones I really object to. I don't like the Fedora ones that were added recently for the same reason. I don't think they measure Kwalitee (or quality) in any meaningful way.</p>
<p>Don't get me wrong. I think it's important to up package CPAN modules for commonly used packaging tools like rpm. I've done <a href="http://www.yapceurope2008.org/ye2008/talk/1314">some work in this area</a> myself. I'd really like a system where I can get statistics on which of my modules are being built for popular systems like Fedora and Debian. And getting information about why a particular module isn't being packed (license issues perhaps, or bugs) would also be very useful.</p>
<p>But I don't think this stuff belongs in CPANTS. I don't think it says anything useful about the quality of the module. I don't think that CPAN authors should be forced to care about platforms that they might have no interest in. It would be nice if they did, but I don't think you can penalise them if they don't.</p>
<p>So, for what it's worth, I vote "no" on the new CPANTS metrics. And I'd further like to see the removal of the other Linux distribution based metrics. But I'd really like to see that information made available elsewhere.</p>

</div>
    </content>
  </entry>
</feed>
