<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Planet Randomness</title>
  <link rel="alternate" href="http://planet.randomness.org.uk/" type="text/html"/>
  <subtitle>all bob all the time!</subtitle>
  <author>
    <name>bob walker</name>
    <email>bob@randomness.org.uk</email>
  </author>
  <updated>2010-11-21T14:10:19Z</updated>
  <link rel="self" href="http://planet.randomness.org.uk/" type="application/atom+xml"/>
  <id>http://planet.randomness.org.uk/</id>
  <entry>
    <title>Delicious/rjw1: New Solaris features: How to monitor SMF services via mail? - c0t0d0s0.org</title>
    <link rel="alternate" href="http://www.c0t0d0s0.org/archives/7051-New-Solaris-features-How-to-monitor-SMF-services-via-mail.html" type="text/html"/>
    <category term="smf solaris monitoring"/>
    <author>
      <name>rjw1</name>
    </author>
    <id>http://www.c0t0d0s0.org/archives/7051-New-Solaris-features-How-to-monitor-SMF-services-via-mail.html</id>
    <published>2010-11-20T16:56:49Z</published>
    <updated>2010-11-20T16:56:49Z</updated>
  </entry>
  <entry>
    <title>Delicious/rjw1: KVM Create Guests - Community Ubuntu Documentation</title>
    <link rel="alternate" href="https://help.ubuntu.com/community/KVM/CreateGuests" type="text/html"/>
    <category term="ubuntu virtualization linux howto virtual cloud installation kvm virt-install"/>
    <author>
      <name>rjw1</name>
    </author>
    <id>https://help.ubuntu.com/community/KVM/CreateGuests</id>
    <published>2010-11-19T23:20:31Z</published>
    <updated>2010-11-19T23:20:31Z</updated>
  </entry>
  <entry>
    <title>Twitter / rjw1: rjw1: @richardclamp ive eaten it all so no you cant :)</title>
    <link rel="alternate" href="http://twitter.com/rjw1/statuses/5630286750556160" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml">rjw1: @richardclamp ive eaten it all so no you cant :)</div>
    </content>
    <id>http://twitter.com/rjw1/statuses/5630286750556160</id>
    <published>2010-11-19T14:35:39Z</published>
    <updated>2010-11-19T14:35:39Z</updated>
  </entry>
  <entry>
    <title>Twitter / rjw1: rjw1: RT @voretaq7: . @rjw1 but NFS is the answer! The question was "How do I take down a whole environment by unplugging one server?"</title>
    <link rel="alternate" href="http://twitter.com/rjw1/statuses/5630174485811200" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml">rjw1: RT @voretaq7: . @rjw1 but NFS is the answer! The question was "How do I take down a whole environment by unplugging one server?"</div>
    </content>
    <id>http://twitter.com/rjw1/statuses/5630174485811200</id>
    <published>2010-11-19T14:35:12Z</published>
    <updated>2010-11-19T14:35:12Z</updated>
  </entry>
  <entry>
    <title>Twitter / rjw1: rjw1: so in fact it covers all the food groups apart from beer but that was handled by the pint of @kernelbrewery pale ale</title>
    <link rel="alternate" href="http://twitter.com/rjw1/statuses/5630026833723393" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml">rjw1: so in fact it covers all the food groups apart from beer but that was handled by the pint of @kernelbrewery pale ale</div>
    </content>
    <id>http://twitter.com/rjw1/statuses/5630026833723393</id>
    <published>2010-11-19T14:34:37Z</published>
    <updated>2010-11-19T14:34:37Z</updated>
  </entry>
  <entry>
    <title>Twitter / rjw1: rjw1: for those who care the menu describes it as "chefs burger with chefs chilli sauce, pickled scotch bonnet,bacon.blue cheese &amp; fried egg"</title>
    <link rel="alternate" href="http://twitter.com/rjw1/statuses/5629890128777216" type="text/html"/>
    <content type="html">rjw1: for those who care the menu describes it as "chefs burger with chefs chilli sauce, pickled scotch bonnet,bacon.blue cheese &amp; fried egg"</content>
    <id>http://twitter.com/rjw1/statuses/5629890128777216</id>
    <published>2010-11-19T14:34:05Z</published>
    <updated>2010-11-19T14:34:05Z</updated>
  </entry>
  <entry>
    <title>Twitter / rjw1: rjw1: @thrustvector theres chilli sauce under it.</title>
    <link rel="alternate" href="http://twitter.com/rjw1/statuses/5629407616049152" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml">rjw1: @thrustvector theres chilli sauce under it.</div>
    </content>
    <id>http://twitter.com/rjw1/statuses/5629407616049152</id>
    <published>2010-11-19T14:32:10Z</published>
    <updated>2010-11-19T14:32:10Z</updated>
  </entry>
  <entry xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:flickr="urn:flickr:">
    
    <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/rjw1/5189651946/"/>
    <id>tag:flickr.com,2005:/photo/5189651946</id>
    <published>2010-11-19T13:09:01Z</published>
    <updated>2010-11-19T13:09:01Z</updated>
    <dc:date.Taken>2010-11-19T13:07:59-08:00</dc:date.Taken>
    <content type="html">			&lt;p&gt;&lt;a href="http://www.flickr.com/people/rjw1/"&gt;rjw1&lt;/a&gt; posted a photo:&lt;/p&gt;
	
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/rjw1/5189651946/" title="1666 burger @ dean swift"&gt;&lt;img src="http://farm5.static.flickr.com/4108/5189651946_d9a2c63156_m.jpg" width="240" height="180" alt="1666 burger @ dean swift" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;£13.50&lt;/p&gt;</content>
    <author>
      <name>rjw1</name>
      <uri>http://www.flickr.com/people/rjw1/</uri>
      <flickr:nsid>48524258@N00</flickr:nsid>
      <flickr:buddyicon>http://farm1.static.flickr.com/28/buddyicons/48524258@N00.jpg?1164302196#48524258@N00</flickr:buddyicon>
    </author>
    <link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en"/>
    <link rel="enclosure" type="image/jpeg" href="http://farm5.static.flickr.com/4108/5189651946_351b3b2fb7_o.jpg"/>
  <title>Uploads from rjw1: 1666 burger @ dean swift</title></entry>
  <entry xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:flickr="urn:flickr:">
    
    <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/rjw1/5189034739/"/>
    <id>tag:flickr.com,2005:/photo/5189034739</id>
    <published>2010-11-19T12:56:23Z</published>
    <updated>2010-11-19T12:56:23Z</updated>
    <dc:date.Taken>2010-11-19T12:47:30-08:00</dc:date.Taken>
    <content type="html">			&lt;p&gt;&lt;a href="http://www.flickr.com/people/rjw1/"&gt;rjw1&lt;/a&gt; posted a photo:&lt;/p&gt;
	
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/rjw1/5189034739/" title="20101119_001.jpg"&gt;&lt;img src="http://farm5.static.flickr.com/4087/5189034739_9f51a0a2c4_m.jpg" width="180" height="240" alt="20101119_001.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;

</content>
    <author>
      <name>rjw1</name>
      <uri>http://www.flickr.com/people/rjw1/</uri>
      <flickr:nsid>48524258@N00</flickr:nsid>
      <flickr:buddyicon>http://farm1.static.flickr.com/28/buddyicons/48524258@N00.jpg?1164302196#48524258@N00</flickr:buddyicon>
    </author>
    <link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en"/>
    <link rel="enclosure" type="image/jpeg" href="http://farm5.static.flickr.com/4087/5189034739_89b1de3b1b_o.jpg"/>
  <title>Uploads from rjw1: 20101119_001.jpg</title></entry>
  <entry>
    <title>Delicious/rjw1: aggregate_examples - Munin - Trac</title>
    <link rel="alternate" href="http://munin-monitoring.org/wiki/aggregate_examples" type="text/html"/>
    <category term="munin"/>
    <author>
      <name>rjw1</name>
    </author>
    <id>http://munin-monitoring.org/wiki/aggregate_examples</id>
    <published>2010-11-19T10:31:59Z</published>
    <updated>2010-11-19T10:31:59Z</updated>
  </entry>
  <entry>
    <title>Delicious/rjw1: stack_examples - Munin - Trac</title>
    <link rel="alternate" href="http://munin-monitoring.org/wiki/stack_examples" type="text/html"/>
    <category term="munin"/>
    <author>
      <name>rjw1</name>
    </author>
    <id>http://munin-monitoring.org/wiki/stack_examples</id>
    <published>2010-11-19T10:31:48Z</published>
    <updated>2010-11-19T10:31:48Z</updated>
  </entry>
  <entry>
    <title>Delicious/rjw1: A few rake tips | R.I.Pienaar</title>
    <link rel="alternate" href="http://www.devco.net/archives/2010/11/18/a_few_rake_tips.php" type="text/html"/>
    <category term="rake tips"/>
    <author>
      <name>rjw1</name>
    </author>
    <id>http://www.devco.net/archives/2010/11/18/a_few_rake_tips.php</id>
    <published>2010-11-18T11:53:13Z</published>
    <updated>2010-11-18T11:53:13Z</updated>
  </entry>
  <entry xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:flickr="urn:flickr:">
    
    <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/rjw1/5154568584/"/>
    <id>tag:flickr.com,2005:/photo/5154568584</id>
    <published>2010-11-07T14:48:26Z</published>
    <updated>2010-11-07T14:48:26Z</updated>
    <dc:date.Taken>2010-11-06T14:24:34-08:00</dc:date.Taken>
    <content type="html">			&lt;p&gt;&lt;a href="http://www.flickr.com/people/rjw1/"&gt;rjw1&lt;/a&gt; posted a photo:&lt;/p&gt;
	
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/rjw1/5154568584/" title="20101106_001.jpg"&gt;&lt;img src="http://farm2.static.flickr.com/1378/5154568584_6c80d730b0_m.jpg" width="240" height="180" alt="20101106_001.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;

</content>
    <author>
      <name>rjw1</name>
      <uri>http://www.flickr.com/people/rjw1/</uri>
      <flickr:nsid>48524258@N00</flickr:nsid>
      <flickr:buddyicon>http://farm1.static.flickr.com/28/buddyicons/48524258@N00.jpg?1164302196#48524258@N00</flickr:buddyicon>
    </author>
    <link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en"/>
    <link rel="enclosure" type="image/jpeg" href="http://farm2.static.flickr.com/1378/5154568584_95c4e26331_o.jpg"/>
  <title>Uploads from rjw1: 20101106_001.jpg</title></entry>
  <entry xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:flickr="urn:flickr:">
    
    <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/rjw1/5145830332/"/>
    <id>tag:flickr.com,2005:/photo/5145830332</id>
    <published>2010-11-04T12:56:58Z</published>
    <updated>2010-11-04T12:56:58Z</updated>
    <dc:date.Taken>2010-11-04T12:56:52-08:00</dc:date.Taken>
    <content type="html">			&lt;p&gt;&lt;a href="http://www.flickr.com/people/rjw1/"&gt;rjw1&lt;/a&gt; posted a photo:&lt;/p&gt;
	
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/rjw1/5145830332/" title="20101104_002.jpg"&gt;&lt;img src="http://farm5.static.flickr.com/4152/5145830332_f248f41aea_m.jpg" width="180" height="240" alt="20101104_002.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;

</content>
    <author>
      <name>rjw1</name>
      <uri>http://www.flickr.com/people/rjw1/</uri>
      <flickr:nsid>48524258@N00</flickr:nsid>
      <flickr:buddyicon>http://farm1.static.flickr.com/28/buddyicons/48524258@N00.jpg?1164302196#48524258@N00</flickr:buddyicon>
    </author>
    <link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en"/>
    <link rel="enclosure" type="image/jpeg" href="http://farm5.static.flickr.com/4152/5145830332_f54160bcaa_o.jpg"/>
  <title>Uploads from rjw1: 20101104_002.jpg</title></entry>
  <entry xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:flickr="urn:flickr:">
    
    <link rel="alternate" type="text/html" href="http://www.flickr.com/photos/rjw1/5145808170/"/>
    <id>tag:flickr.com,2005:/photo/5145808170</id>
    <published>2010-11-04T12:44:17Z</published>
    <updated>2010-11-04T12:44:17Z</updated>
    <dc:date.Taken>2010-11-04T12:43:21-08:00</dc:date.Taken>
    <content type="html">			&lt;p&gt;&lt;a href="http://www.flickr.com/people/rjw1/"&gt;rjw1&lt;/a&gt; posted a photo:&lt;/p&gt;
	
&lt;p&gt;&lt;a href="http://www.flickr.com/photos/rjw1/5145808170/" title="wild boar sausages and mash @ bermondsey kitchen"&gt;&lt;img src="http://farm5.static.flickr.com/4060/5145808170_8bb7f3ec75_m.jpg" width="240" height="180" alt="wild boar sausages and mash @ bermondsey kitchen" /&gt;&lt;/a&gt;&lt;/p&gt;

</content>
    <author>
      <name>rjw1</name>
      <uri>http://www.flickr.com/people/rjw1/</uri>
      <flickr:nsid>48524258@N00</flickr:nsid>
      <flickr:buddyicon>http://farm1.static.flickr.com/28/buddyicons/48524258@N00.jpg?1164302196#48524258@N00</flickr:buddyicon>
    </author>
    <link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-sa/2.0/deed.en"/>
    <link rel="enclosure" type="image/jpeg" href="http://farm5.static.flickr.com/4060/5145808170_86bd654f4a_o.jpg"/>
  <title>Uploads from rjw1: wild boar sausages and mash @ bermondsey kitchen</title></entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-14:59071:7292</id>
    <link rel="alternate" type="text/html" href="http://bob.dreamwidth.org/7292.html"/>
    <link rel="self" type="text/xml" href="http://bob.dreamwidth.org/data/atom/?itemid=7292"/>
    
    <published>2010-10-25T14:26:36Z</published>
    <updated>2010-10-25T14:26:36Z</updated>
    <category term="cider fesival"/>
    <category term="cider"/>
    <category term="beer festivals"/>
    <category term="real ale"/>
    <content type="html">This week im going to yet another beer festival. The &lt;a href="http://www.legothique.co.uk/Beer_Festival.html"&gt;wandsworth beer festival&lt;/a&gt; at &lt;a href="http://london.randomness.org.uk/wiki.cgi?Le_Gothique,_SW18_3SX"&gt;le gothique&lt;/a&gt;. I shall be there on Thursday.&lt;br /&gt;&lt;br /&gt;You may also wish to know what the &lt;a href="http://london.randomness.org.uk/wiki.cgi?Bricklayer%27s_Arms%2C_SW15_1DD"&gt;Bricklayer's&lt;/a&gt; in Putney is having a &lt;a href="http://www.bricklayers-arms.co.uk/2010/10/cider-festival-28th-31st-october-2010/"&gt;Herefordshire Cider and Perry Festival&lt;/a&gt;.</content>
  <title>bob's ramblings: beer! cider! perry! this week</title></entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-14:59071:6932</id>
    <link rel="alternate" type="text/html" href="http://bob.dreamwidth.org/6932.html"/>
    <link rel="self" type="text/xml" href="http://bob.dreamwidth.org/data/atom/?itemid=6932"/>
    
    <published>2010-10-22T09:55:53Z</published>
    <updated>2010-10-22T10:25:31Z</updated>
    <category term="birthday"/>
    <category term="lunch"/>
    <category term="beer"/>
    <content type="html">... no wiser though. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Anyway today is my birthday. The hangover from last nights drinking at the &lt;a href="http://london.randomness.org.uk/wiki.cgi?Hope,_SM5_2PR"&gt;Hope&lt;/a&gt; has faded. So I can now contemplate more drinking. Kake and I are off to &lt;a href="http://www.viajante.co.uk"&gt;Viajante&lt;/a&gt; for lunch.&lt;br /&gt;&lt;br /&gt;Then this evening you are all welcome to join me at the &lt;a href="http://london.randomness.org.uk/wiki.cgi?Dog_And_Bell,_SE8_3JD"&gt;Dog &amp; Bell&lt;/a&gt; in Deptford. Ive not booked anything and ill be quite happy to drink tasty beer on my own so dont feel you have to come. Deptford is a long way away for some people. &lt;strike&gt;I expect to be at the pub no later than 17:00.&lt;/strike&gt; Hmm that sentence was a bit odd. I will be at the pub from 17:00 if not earlier and staying till they chuck me out or something like that.</content>
  <title>bob's ramblings: I seem to be older now...</title></entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-14:59071:6764</id>
    <link rel="alternate" type="text/html" href="http://bob.dreamwidth.org/6764.html"/>
    <link rel="self" type="text/xml" href="http://bob.dreamwidth.org/data/atom/?itemid=6764"/>
    
    <published>2010-10-16T21:05:36Z</published>
    <updated>2010-10-16T21:05:36Z</updated>
    <category term="rgl"/>
    <category term="birthday"/>
    <category term="email"/>
    <content type="html">&lt;a href="http://bit.ly/b4ZFDH"&gt;RGL is back&lt;/a&gt; as is my email and other things. So yeah if you mailed me anything important recently it may have bounced if it did you can mail me again now :)&lt;br /&gt;&lt;br /&gt;also dont forget im having &lt;a href="http://bob.dreamwidth.org/5777.html"&gt;birthday drinks&lt;/a&gt; on friday. This has been you week before reminder :)</content>
  <title>bob's ramblings: im fully connected again. </title></entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-14:59071:6563</id>
    <link rel="alternate" type="text/html" href="http://bob.dreamwidth.org/6563.html"/>
    <link rel="self" type="text/xml" href="http://bob.dreamwidth.org/data/atom/?itemid=6563"/>
    
    <published>2010-10-06T23:00:12Z</published>
    <updated>2010-10-06T23:00:12Z</updated>
    <content type="html">My colo box went boom yesterday. Therefore I have no email currently. If you need to contact me sms is probably best currently. &lt;br /&gt;&lt;br /&gt;The colo box obviously knew we were planning to replace it with a redundant pair so got its attack in first.</content>
  <title>bob's ramblings: eeeek! no email.</title></entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-14:59071:6319</id>
    <link rel="alternate" type="text/html" href="http://bob.dreamwidth.org/6319.html"/>
    <link rel="self" type="text/xml" href="http://bob.dreamwidth.org/data/atom/?itemid=6319"/>
    
    <published>2010-09-24T12:11:22Z</published>
    <updated>2010-09-24T12:11:22Z</updated>
    <category term="cider festival"/>
    <category term="cidah"/>
    <category term="perry"/>
    <content type="html">While drinking tasty beer at the bricklayer's last night it was brought to my attention that they are having a Herefordshire Cider and Perry Festival between the 28th and 31st of October. I thought several of you might want to know that. So there you go.</content>
  <title>bob's ramblings: cider festival!</title></entry>
  <entry>
    <title>Is it pie?: First Pie?</title>
    <link rel="alternate" href="http://blog.isitpie.com/First_Pie_.html" type="text/html"/>
    <content type="html">&lt;p&gt;First pie? &lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/mr_t_in_dc/4783996765/in/photostream/"&gt;&lt;img src="http://farm5.static.flickr.com/4141/4783996765_d7b943aef4.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://creativecommons.org/licenses/by-nd/2.0/deed.en"&gt;&amp;#xA9; Mr. T in DC&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes, this is pie. It is entirely encased in pastry.&lt;/p&gt;
</content>
    <id>http://blog.isitpie.com/First_Pie_.html</id>
    <published>2010-07-19T23:00:00+01:00</published>
    <updated>2010-07-19T23:00:00+01:00</updated>
  </entry>
  <entry>
    <title>bob's rugby world cup: Rugby World Cup 2011 here I come</title>
    <link rel="alternate" href="http://rwc.randomness.org.uk/Rugby_World_Cup_2011_here_I_come.html" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>On the 1st of July I got confirmation that my application for tickets for the rugby world cup in New Zealand was successful. I have tickets for all the England games, all pool games in Christchurch, the Christchurch quarter finals and the bronze final. Tickets for the semis and the final are by ballot nearer the time. </p>

<p>Now that I have the match tickets its time to start planning the rest of the trip. My dad has probably already found us accommodation near Christchurch for the duration of the tournament. All I need to start looking for is round the world plane tickets. I intend to make a tour of it. If nothing else I have plans to be at the <a href="http://www.renovationsf.org/">Reno Worldcon</a>. </p>
</div>
    </content>
    <id>http://rwc.randomness.org.uk/Rugby_World_Cup_2011_here_I_come.html</id>
    <published>2010-07-03T23:37:00+01:00</published>
    <updated>2010-07-03T23:37:00+01:00</updated>
  </entry>
  <entry>
    <title>bob's tech ramblings: Generating a SSL certificate with Capistrano</title>
    <link rel="alternate" href="http://tech.randomness.org.uk/Generating_a_SSL_certificate_with_Capistrano.html" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><a href="http://www.capify.org/index.php/Capistrano">Capistrano</a> is useful for deploying ruby applications. It can also be used to help with configuration and setup of things related to the applications</p>
<p> Such as creating the ssl keys and certificates for the demo and staging sites. I've always used an <a href="http://www.exim.org/exim-html-4.00/doc/html/spec_36.html#SECT36.5">openssl one liner</a> to do this but I still needed to fill in the details for the certificate. Which is less that ideal if you want to automate the creation of the keys and certificates. So I dug around and found the right incantation to pass the certificate details to openssl. I then made this into a capistrano recipe.</p>

<pre>
namespace :sslcert do

  desc "create a self signed ssl cert"
  task :create, :roles =&gt; :web do
    sudo "openssl req -x509 -newkey rsa:2048 -keyout /etc/ssl/private/#{application}.key -out /etc/ssl/certs/#{application}.crt  -days 9999 -nodes -subj \"/C=GB/ST=England/L=London/O=#{application}/OU=IT/CN=#{servername}\""
  end
end
</pre> 
<p>As you can see the magic happens with the -subj option.</p>
<p>This recipe puts the ssl certificate and key in the default location for them on debian. You could of course change this and then not need to use sudo. In my actual work version I also make sure this recipe doesn't run on production deployments since they should be using real ssl certificates.</p>
</div>
    </content>
    <id>http://tech.randomness.org.uk/Generating_a_SSL_certificate_with_Capistrano.html</id>
    <published>2009-08-30T16:18:17Z</published>
    <updated>2009-08-30T16:18:17Z</updated>
  </entry>
  <entry>
    <title>bob's tech ramblings: An Apache holding page with mod_rewrite</title>
    <link rel="alternate" href="http://tech.randomness.org.uk/An_Apache_holding_page_with_mod_rewrite.html" type="text/html"/>
    <content type="html">&lt;p&gt;On Thursday the &lt;a href="http://london.randomness.org.uk"&gt;Randomness Guide to London&lt;/a&gt; was probably the target of a &lt;a href="http://en.wikipedia.org/wiki/Denial-of-service_attack"&gt;ddos&lt;/a&gt; attack. The machine it was hosted on went to load of about 60. Which is fine since its solaris. The main problem was when the machine exhausted its memory and started to swap the machine would become unresponive.. To mitigate this I dropped the number of concurrent connections apache allowed. The machine suffered less but the website was still unusable because you were fighting to get one of the limited number of available connections.&lt;/p&gt;

&lt;p&gt; Since I was in the &lt;a href="http://london.randomness.org.uk/wiki.cgi?Bricklayer's_Arms,_SW15_1DD"&gt;pub&lt;/a&gt; the other administrator of the &lt;a href="http://london.randomness.org.uk"&gt;Randomness Guide to London&lt;/a&gt; was renaming the CGIs so that load would drop and she could get on to it. When I got back I whipped up some mod_rewrite rules such that we could see the site but everyone else got a holding page. 10 minutes after this the ddos stopped. So it was a bit late. However a holding page is still a useful thing to have.&lt;/p&gt;

&lt;p&gt;The next morning I refined it a bit to be more intelligent and return a 503 which is the correct status code.&lt;/p&gt;
&lt;pre&gt;
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !AAA.BBB.CCC.DDD
RewriteCond %{DOCUMENT_ROOT}/holding.html -f
RewriteCond %{DOCUMENT_ROOT}/holding.enable -f
RewriteCond %{SCRIPT_FILENAME} !holding.html
RewriteRule ^.*$ /holding.html [R=503,L]
ErrorDocument 503 /holding.html
&lt;/pre&gt;

&lt;/p&gt;First turn on the rewrite engine. Then the conditions for which the RewriteRule applies
&lt;ul&gt;
&lt;li&gt;Don't match an IP address. So you can see the site.&lt;/li&gt;
&lt;li&gt;Make sure holding.html exists&lt;/li&gt;
&lt;li&gt;Check for the existence of a file called holding.enable. This is the means by which you turn holding page on and off.&lt;/li&gt;
&lt;li&gt;Don't apply the rule when serving holding.html&lt;/li&gt;
&lt;/ul&gt;
Then the rule itself. Which basically redirects anything to the 503 error page. Which you then set as holding.html&lt;/p&gt;
&lt;p&gt;That's all you really need although at work I add an extra line to help stupid web caches not keep on showing the error page after the site is back. 
&lt;pre&gt;
Header Set Cache-Control "max-age=0, no-store"
&lt;/pre&gt;
&lt;/p&gt;

</content>
    <id>http://tech.randomness.org.uk/An_Apache_holding_page_with_mod_rewrite.html</id>
    <published>2009-08-16T16:18:17Z</published>
    <updated>2009-08-16T16:18:17Z</updated>
  </entry>
  <entry>
    <title>bob's tech ramblings: Testing perl 5.10.1-RC1</title>
    <link rel="alternate" href="http://tech.randomness.org.uk/Testing_perl_5_10_1_RC1.html" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>The first <a href="http://use.perl.org/articles/09/08/07/0910246.shtml">perl 5.10.1</a> release candidate was released the other day. As <a href="http://www.shadowcat.co.uk/blog/matt-s-trout/test-the-rc-test-the-rc-test-the-rc/">mst says</a> if you don't test it now and it breaks for you when its released its your fault. As a good <a href="http://www.cpantesters.org/">cpan tester</a> I've added it to my testing <a href="http://svn.randomness.org.uk/trunk/bob/scripts/cpantest.sh">setup</a>.</p>
<p>Since I care about <a href="http://openguides.org/">OpenGuides</a> for the <a href="http://london.randomness.org.uk">Randomness Guide to London</a> I made sure to submit a <a href="http://www.nntp.perl.org/group/perl.cpan.testers/2009/08/msg4944870.html">test report</a> for <a href="http://www.cpantesters.org/distro/O/OpenGuides.html">it</a>.</p>
<p>While I was doing this I also added perl 5.8.9 to my setup. I also changed my setup slightly by pre-installing <a href="http://www.iinteractive.com/moose/">Moose</a> and <a href="http://www.catalystframework.org/">Catalyst</a> since thats what all the cool perl programmers are using these days. Since installing and testing their dependency chains was burning a lot of cpu, time and bandwidth every time a new module based on them was updated or added to <a href="http://search.cpan.org/">CPAN</a></p>

</div>
    </content>
    <id>http://tech.randomness.org.uk/Testing_perl_5_10_1_RC1.html</id>
    <published>2009-08-10T16:18:17Z</published>
    <updated>2009-08-10T16:18:17Z</updated>
  </entry>
  <entry>
    <title>bob's tech ramblings: Setting up a Signed apt repo</title>
    <link rel="alternate" href="http://tech.randomness.org.uk/Setting_up_a_Signed_apt_repo.html" type="text/html"/>
    <content type="html">&lt;p&gt;So you've set up a apt repository following dean's excellant &lt;a href="http://blog.unixdaemon.net/cgi-bin/blosxom.pl/operatingsystems/linux/debian/personal_apt_repo_initial.html"&gt;instructions&lt;/a&gt; and youve tried to install a package and got the following warning&lt;/p&gt;
&lt;pre&gt;WARNING: The following packages cannot be authenticated!&lt;/pre&gt;
&lt;p&gt;At this point you have several choices:-
&lt;ul&gt;
&lt;li&gt;press yes and carry on.(not that useful if youre using puppet to install stuff)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;echo "APT::Get::AllowUnauthenticated 1;" &gt;&gt; /etc/apt/apt.conf.d/99unauth&lt;/code&gt;&lt;/li&gt;
&lt;li&gt; Set up a &lt;a href="http://wiki.debian.org/SecureApt"&gt;secure repository&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Lets go with setting up a secure repository.
&lt;ul&gt;
&lt;li&gt;Make yourself a gpg key - &lt;code&gt;gpg --gen-key&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Export your public key to a file - &lt;code&gt;gpg --armor --export $keyid &gt;public.key&lt;/code&gt;. You will need this later&lt;/li&gt;
&lt;li&gt;Create an apt-release.conf containing &lt;code&gt;APT::FTPArchive::Release::Suite "etch";&lt;/code&gt;&lt;small&gt;(Im behind and should have written this post a year ago)&lt;/small&gt; in your repository base.&lt;/li&gt;
&lt;li&gt;Generate a release file - &lt;code&gt;apt-ftparchive -c apt-release.conf release dists/etch/ &gt; dists/etch/Release&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Create a signed version - &lt;code&gt;gpg --sign -ba -o dists/etch/Release.gpg dists/etch/Release&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
Your repository is now secure. Now you need to tell your machines about your key or apt-get will emit &lt;pre&gt;W: GPG error: http://debianrepo etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY $KEYID&lt;/pre&gt;
To do this manually you can take the public.key you generated earlier and copy it to your machines and then run &lt;code&gt;apt-key add public.key&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
Of course in this day and age doing things like that for all your machines would be tedious so I use &lt;a href="http://reductivelabs.com/products/puppet/"&gt;puppet&lt;/a&gt; with a class something like the following.&lt;/p&gt;
&lt;pre&gt;
class aptkey {

  file { "/etc/apt/public.key":
    mode   =&gt; 440,
    owner  =&gt; root,
    group  =&gt; root,
    source =&gt; [
        "puppet://puppet/host/public.key",
        "puppet://puppet/files/public.key"
        ],
  }
  exec { "install-key":
     command =&gt; "/usr/bin/apt-key add /etc/apt/public.key",
     require =&gt; File["/etc/apt/public.key"],
     unless  =&gt; "/usr/bin/apt-key list | /bin/grep -q 'firstname.lastname'";
  }
  exec { "key-update":
     command =&gt; "/usr/bin/apt-get update",
     require =&gt; Exec["install-key"],
  }
}
&lt;/pre&gt;


</content>
    <id>http://tech.randomness.org.uk/Setting_up_a_Signed_apt_repo.html</id>
    <published>2009-08-07T16:18:17Z</published>
    <updated>2009-08-07T16:18:17Z</updated>
  </entry>
  <entry>
    <title>bob's tech ramblings: Dean's Cron Commandments</title>
    <link rel="alternate" href="http://tech.randomness.org.uk/Dean_s_Cron_Commandments.html" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>Dean wrote his <a href="http://blog.unixdaemon.net/cgi-bin/blosxom.pl/sysadmin/cron_commandments.html">Cron Commandments</a> a while back but they got some link loving from <a href="http://simonwillison.net/2008/Jun/27/cron/">Simon Willison </a>relatively recently. The one he misses though is <b>Thou shall not rewrite cron</b>. Im looking at you <a href="http://backgroundrb.rubyforge.org/">backgroundrb</a> and <a href="http://rufus.rubyforge.org/rufus-scheduler/files/README_txt.html">rufus-scheduler</a>.</p>
</div>
    </content>
    <id>http://tech.randomness.org.uk/Dean_s_Cron_Commandments.html</id>
    <published>2008-08-04T16:18:17Z</published>
    <updated>2008-08-04T16:18:17Z</updated>
  </entry>
  <entry>
    <title>bob's rugby world cup: Result: South Africa 15 - England 6</title>
    <link rel="alternate" href="http://rwc.randomness.org.uk/Result__South_Africa_15___England_6.html" type="text/html"/>
    <content type="html">
      <div xmlns="http://www.w3.org/1999/xhtml"><p>Bugger! well at least we lost our title in the final. South Africa have looked like champs all the way through. I dont think it was a try either. </p>
</div>
    </content>
    <id>http://rwc.randomness.org.uk/Result__South_Africa_15___England_6.html</id>
    <published>2007-10-20T21:53:42+01:00</published>
    <updated>2007-10-20T21:53:42+01:00</updated>
  </entry>
  <entry>
    <title>bob's rugby world cup: Half-time: South Africa 9 - England 3</title>
    <link rel="alternate" href="http://rwc.randomness.org.uk/Half_time__South_Africa_9___England_3.html" type="text/html"/>
    <content type="html">&lt;p&gt;Close, very close.&amp;nbsp; South Africa were unlucky to not score a try at the end there. England certainly look a lot better than they did in the pool game. We still might do it. &lt;/p&gt;
</content>
    <id>http://rwc.randomness.org.uk/Half_time__South_Africa_9___England_3.html</id>
    <published>2007-10-20T20:48:58+01:00</published>
    <updated>2007-10-20T20:48:58+01:00</updated>
  </entry>
  <entry>
    <title>bob's rugby world cup: Prediction: England v South Africa. The Final</title>
    <link rel="alternate" href="http://rwc.randomness.org.uk/Prediction__England_v_South_Africa__The_Final.html" type="text/html"/>
    <content type="html">&lt;p&gt;So somehow England have made it to the final. South Africa have looked good all tournament. This wont be the beating we got in the pool matches but I still think were going to lose. It will be close though. I think South Africa by&amp;nbsp; 5. &lt;/p&gt;
&lt;p&gt;Although ideally our forwards step up again and we win by 3 points or so. :)&lt;/p&gt;
</content>
    <id>http://rwc.randomness.org.uk/Prediction__England_v_South_Africa__The_Final.html</id>
    <published>2007-10-20T19:49:41+01:00</published>
    <updated>2007-10-20T19:49:41+01:00</updated>
  </entry>
</feed>

