- Entries from January 2008 Entries from January 2008 http://tech.randomness.org.uk/ Testing makes me feel good! http://tech.randomness.org.uk/Testing_makes_me_feel_good_.html http://tech.randomness.org.uk/Testing_makes_me_feel_good_.html Mon, 7 Jan 2008 22:11:29 GMT <p>To help people who upload modules to <a href="http://www.cpan.org">CPAN</a> lots of people <a href="http://cpantesters.perl.org/">test</a> them. I have been doing this for while following <a href="http://cpantest.grango.org/wiki/CPANTesting">instructions</a> on the <a href="http://cpantest.grango.org/wiki/HomePage">CPAN Testers Wiki</a>. However the automation instructions are very specific to <a href="http://www.cantrell.org.uk/david/journal/">dave's</a> set up. So I wrote my own scripts.</p> <p><a href="http://svn.randomness.org.uk/trunk/bob/scripts/cpantest.sh">cpantest.sh</a> is my script which fires off cpan for the releases I'm testing. <a href="http://svn.randomness.org.uk/trunk/bob/scripts/autocpantest">autocpantest</a> automates the testing of recent modules. Its not all automated, I still have to approve the sending of failure reports. The script is quite frankly quite bad and would probably be better as some perl. Perhaps when I've taught myself some I might rewrite it.</p> <p>With all this in place I should start shooting up the <a href="http://perl.grango.org/testers.html">leaderboard</a></p> SVN::Web for my repository http://tech.randomness.org.uk/SVN::Web_for_my_repository.html http://tech.randomness.org.uk/SVN::Web_for_my_repository.html Tue, 8 Jan 2008 00:13:34 GMT <p>I've had a <a href="http://svn.randomness.org.uk/">svn repo</a> for a while. Today I installed <a href="http://search.cpan.org/dist/SVN-Web/">SVN::Web</a> which gives a useful web interface to it. For example you can see other revisions than the current one. <a href="http://svnweb.randomness.org.uk/index.cgi/randomness/">My Repository</a> via SVN::Web.</p> <p> One reason why i did this is that it gives a <a href="http://svnweb.randomness.org.uk/index.cgi/randomness/rss">RSS feed</a> of the revision log. This means I can use <a href="http://rssfwd.com/">RSS FWD</a> to get commit messages in my email without having to mess with commit hooks.</p> Hating mailman http://tech.randomness.org.uk/Hating_mailman.html http://tech.randomness.org.uk/Hating_mailman.html Sun, 13 Jan 2008 16:34:34 GMT <p>Today I have mostly been <a href="http://bob.hates-software.com/2008/01/13/e1af6d12.html">hating</a> <a href="http://www.list.org/">mailman</a></p> <p>That's about an hour of my life im never getting back</p> 3 hours to get a bash prompt http://tech.randomness.org.uk/3_hours_to_get_a_bash_prompt.html http://tech.randomness.org.uk/3_hours_to_get_a_bash_prompt.html Sat, 5 Jan 2008 15:45:50 GMT <p>The other day <a href="http://unixdaemon.net">Dean</a>and I were seeing if a HP PA-RISC workstation Dean had got off ebay worked. We managed to get it powered on going to serial console. Then jury rigged a cd drive to try an install of HP-UX.</a></p> <p>It would seem the install cd Dean had didnt like doing the install over serial so we had to connect up a monitor and keyboard. Thankfully IBM use the same funny DVI connector for their servers.</p> <p>We proceeded with the install, which was a new and exciting experience for me. We got a failure when it tried to install stuff like mozilla and GTK from the second and third install discs. However the main OS install seemed to be fine so we carried on. Even the big FAILURE printed using <a href="http://www.hmug.org/man/6/banner.php">banner</a> didnt put us off. </p> <p>So after several reboots we got to a stage where we could login. So we did. Then we found there was no bash and our sh skills are a little rusty. Not having tab completion is pain. Time for some software install using <a href="http://www.docs.hp.com/en/B2355-90681/swinstall.1M.html">swinstall</a>. We hit a problem here. It would seem that swinstall is network aware and wishes to resolve the name of your host before it will install stuff. We then spent 30 minutes scracthing our heads until we realised that while there were 6 or so nsswitch files none of them was actually nsswitch.conf. So the OS really had no idea what was going on.</p> <p>After all that we managed to get <a href="http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.2/">bash</a> installed from a <a href="http://hpux.connect.org.uk/">Porting And Archive Centre for HP-UX</a> package. The relief was great as we could finally tab complete</p> Patch accepted to chronicle http://tech.randomness.org.uk/Patch_accepted_to_chronicle.html http://tech.randomness.org.uk/Patch_accepted_to_chronicle.html Mon, 21 Jan 2008 15:18:01 GMT <p>When I was setting up my <a href="http://planet.randomness.org.uk/">Planet</a> I noticed that <a href="http://www.steve.org.uk/Software/chronicle/">Chronicle</a> was outputting less that useful titles for the rss feed. Instead of whining I provided a <a href="http://chronicle.repository.steve.org.uk/?rev/89eef19064e8">patch</a> which <a href="http://www.steve.org.uk/">Steve</a> <a href="http://chronicle.repository.steve.org.uk/?rev/3f0bf6fe2825">accpeted</a>.</p> Hostnames as Bash Commands http://tech.randomness.org.uk/Hostnames_as_Bash_Commands.html http://tech.randomness.org.uk/Hostnames_as_Bash_Commands.html Sun, 6 Jan 2008 15:47:12 GMT <p>In the <a href="http://london.randomness.org.uk/wiki.cgi?Edgar_Wallace,_WC2R_3JF">pub</a> the other day for the <a href="http://london.pm.org/">London.pm<a/> <a href="http://london.pm.org/meetings/">Social</a> Smylers brought up the stuff he uses to make <a href="http://london.pm.org/pipermail/london.pm/Week-of-Mon-20071231/011920.html">hostnames a bash command</a>. He also found the time to generate some <a href="http://smylers.hates-software.com/2008/01/04/090399e2.html">hate</a>. </p> <p>I do this another way as I have previoulsy <a href="http://tech.randomness.org.uk/Function_and_Alias_use_in_bash.html">blogged</a>. Dominic Mitchell at the time <a href="http://happygiraffe.net/blog/articles/2006/10/05/shell-scripting">pointed out</a> that my scripting sucks. In fact my <a href="http://svn.randomness.org.uk/trunk/bob/dotfiles/.bash_functions">current version</a> takes his suggestions on board.</p> Planet Bob! http://tech.randomness.org.uk/Planet_Bob_.html http://tech.randomness.org.uk/Planet_Bob_.html Sun, 6 Jan 2008 16:44:02 GMT <p>If you want to keep up with all my feeds you could use my newly setup <a href="http://planet.randomness.org.uk/">Planet</a>. I used <a href="http://search.cpan.org/~miyagawa/Plagger-0.7.17/lib/Plagger.pm">Plagger</a> and yet again made my own <a href="http://svn.randomness.org.uk/trunk/bob/websites/planet.randomness.org.uk/assets/plugins/Publish-Planet/randomness/">theme</a></p> <p> It was relatively trivial to set up. Then again I had an <a href="http://planetse16.org.uk/">example</a> to work from</p>