<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Robert Naylor</title>
	<atom:link href="http://robert.pobice.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert.pobice.co.uk</link>
	<description>Random thoughts and tech tips</description>
	<lastBuildDate>Mon, 26 Oct 2009 09:02:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Naptan to GPX Waypoints (OSM)</title>
		<link>http://robert.pobice.co.uk/2009/09/naptan-to-gpx-waypoints-osm/</link>
		<comments>http://robert.pobice.co.uk/2009/09/naptan-to-gpx-waypoints-osm/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 20:42:31 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[OSM]]></category>
		<category><![CDATA[BGT-31]]></category>
		<category><![CDATA[GPX]]></category>
		<category><![CDATA[Naptan]]></category>

		<guid isPermaLink="false">http://robert.pobice.co.uk/?p=70</guid>
		<description><![CDATA[If anyone has been following the goings on of OpenStreetMap of the uk you may have noticed the appearance of a load of Bus Stops (or duplicate bus stops if they where already in OSM).  These have come from a database called NaPTAN kindly supplied to OSM by the UK Department for Transport and [...]]]></description>
			<content:encoded><![CDATA[<p>If anyone has been following the goings on of <a href=http://openstreetmap.org>OpenStreetMap</a> of the uk you may have noticed the appearance of a load of Bus Stops (or duplicate bus stops if they where already in OSM).  These have come from a database called NaPTAN kindly supplied to OSM by the UK Department for Transport and Traveline. See the OSM <a href="http://wiki.openstreetmap.org/wiki/Naptan">Wiki</a> for more details.</p>
<p>These new points now need confirming/merging.  I&#8217;ve also got a new GPS (BGT-31) which can alert me when I get near a waypoint &#8211; so I though why not load up the new data as waypoints into my GPS?</p>
<p>Heres the rough script I&#8217;ve written to download the data and convert it to the right format for my GPS.  It also delete the name field, and changes the local_ref field to be the name, dropping the prefix 450.  This is because the GPS only shows 6 characters for the name of a waypoint and in my area the last 6 characters are probably the easiest way to identify individual bus stops in 6 characters.</p>
<pre lang=sh>
#!/bin/bash
wget http://www.informationfreeway.org/api/0.6/node[naptan:verified][bbox=-......] -O /tmp/naptan.osm
xmlstarlet ed -d "//tag[@k='name']" < naptan.osm | xmlstarlet ed -u "//tag[@k='local_ref']/@k" -v 'name' > naptan2.osm
sed 's/450//' < naptan2.osm > naptan.osm
gpsbabel -i osm -f naptan.osm -o ozi -F naptan.wpt
</pre>
<p>Just change the bbox to the area you want and it will generate the waypoint file which can then be uploaded to the GPS.  It is a but rushed but it does the job.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2009/09/naptan-to-gpx-waypoints-osm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zenoss, VMWare and Critical &#8220;is up&#8221; alerts</title>
		<link>http://robert.pobice.co.uk/2009/09/zenoss-vmware-and-critical-is-up-alerts/</link>
		<comments>http://robert.pobice.co.uk/2009/09/zenoss-vmware-and-critical-is-up-alerts/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 09:49:33 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[clocksource]]></category>
		<category><![CDATA[esx3]]></category>

		<guid isPermaLink="false">http://robert.pobice.co.uk/?p=57</guid>
		<description><![CDATA[I&#8217;m currently working on setting up Zenoss to either replace or supplement our current network/server monitoring systems.
As its in test, it got stuck on our currently relatively unused &#8220;old&#8221; vmware environment (ESX 3).  After initially going well it start to go wrong.  We kept getting critical alerts that a server was up.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on setting up Zenoss to either replace or supplement our current network/server monitoring systems.</p>
<p>As its in test, it got stuck on our currently relatively unused &#8220;old&#8221; vmware environment (ESX 3).  After initially going well it start to go wrong.  We kept getting critical alerts that a server was up.  Switching zenping to debug didn&#8217;t help either &#8211; it offered no new information and made the problem worse. As its open source I thought I&#8217;d take a look at the source, and hey presto I found the suspected problem.  Stuck in an extra debug line, and confirmed it.</p>
<p><strong>The problem</strong> &#8211; well it was an issue with the clock on the server caused by running under vmware , it was jumping about leading to negative rrt on pings.  Funnily enough zenoss didn&#8217;t like.  I&#8217;ll be submitting a bug so that it comes up with the slightly less cryptic error of Ip xxx.xxx.xxx.xx is up. To fix the problem, I had to specify the clocksource in the kernel options.  See vmware <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1006427">KB 1006427</a> for details.</p>
<p>If you can&#8217;t fix this for some reason or can&#8217;t reboot server, for now you can put an event transform for status/ping in place to suppress them.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">re</span>
&nbsp;
match = <span style="color: #dc143c;">re</span>.<span style="color: black;">search</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'ip (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)<span style="color: #000099; font-weight: bold;">\.</span>(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)<span style="color: #000099; font-weight: bold;">\.</span>(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)<span style="color: #000099; font-weight: bold;">\.</span>(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?) is up'</span>, evt.<span style="color: black;">message</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">if</span> match <span style="color: #ff7700;font-weight:bold;">and</span> evt.<span style="color: black;">severity</span>==<span style="color: #ff4500;">5</span>:
	evt._action = <span style="color: #483d8b;">'drop'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2009/09/zenoss-vmware-and-critical-is-up-alerts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Stopping the Sidebar from Printing</title>
		<link>http://robert.pobice.co.uk/2009/08/wordpress-stopping-the-sidebar-from-printing-2/</link>
		<comments>http://robert.pobice.co.uk/2009/08/wordpress-stopping-the-sidebar-from-printing-2/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 21:18:04 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://robert.pobice.co.uk/?p=51</guid>
		<description><![CDATA[I&#8217;ve already blogged about this, but here&#8217;s a new method on how to fix the problem.  This one doesn&#8217;t bloat the site as much, and keeps the css files down to a minimum.
Please note: I&#8217;m assuming you still use the default theme.  Things will be slightly different with other themes, but in general [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve already blogged about this, but here&#8217;s a new method on how to fix the problem.  This one doesn&#8217;t bloat the site as much, and keeps the css files down to a minimum.</p>
<p><strong>Please note: I&#8217;m assuming you still use the default theme.  Things will be slightly different with other themes, but in general the same principal should apply.</strong></p>
<p>In the file header.php remove media=&#8221;screen&#8221; from the following line:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;link rel=&quot;stylesheet&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;</pre></div></div>

<p>In style.css, just before the line</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Begin Typography &amp;amp; Colors */</span></pre></div></div>

<p>Add</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media screen {</span></pre></div></div>

<p>At the bottom of the file add the following line:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">&#125;</span>
<span style="color: #a1a100;">@media print {</span>
    <span style="color: #808080; font-style: italic;">/* style sheet for print goes here */</span>  
   <span style="color: #cc00cc;">#sidebar</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Bingo no wasted paper from printing the side bar.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2009/08/wordpress-stopping-the-sidebar-from-printing-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exim: Deliver some email address on local domain remotely</title>
		<link>http://robert.pobice.co.uk/2009/07/exim-deliver-some-email-address-on-local-domain-remotely/</link>
		<comments>http://robert.pobice.co.uk/2009/07/exim-deliver-some-email-address-on-local-domain-remotely/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 20:01:13 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://robert.pobice.co.uk/?p=46</guid>
		<description><![CDATA[Most of my email is handled by a server I run, except for a few legacy address I can&#8217;t really move for now.  Before I had been lazy and send simply relayed all mail that didn&#8217;t have a local mailbox onto the second server.  However I was forwarding shed loads of emails to duff address. [...]]]></description>
			<content:encoded><![CDATA[<p>Most of my email is handled by a server I run, except for a few legacy address I can&#8217;t really move for now.  Before I had been lazy and send simply relayed all mail that didn&#8217;t have a local mailbox onto the second server.  However I was forwarding shed loads of emails to duff address.  To fix this I have entered a new router into exim and removed the other domain from the relay list.</p>
<pre>special_remote:
  debug_print = "R: special_remote for $local_part@$domain"
  driver = dnslookup
  domains = pobice.com
  local_parts = lsearch;/etc/exim4/non_local
  transport = remote_smtp
  ignore_target_hosts = 127.0.0.0/8
  no_more</pre>
<p>I then have entered the local_parts into a file.  Everything else then gets bounced, rather than been forwarded and bounced later on.  </p>
<p>Word of warning &#8211; I&#8217;m no exim expert, but this seems to do the trick for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2009/07/exim-deliver-some-email-address-on-local-domain-remotely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Blog Again</title>
		<link>http://robert.pobice.co.uk/2009/06/setting-up-blog-again/</link>
		<comments>http://robert.pobice.co.uk/2009/06/setting-up-blog-again/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 17:03:50 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://robert.pobice.co.uk/?p=41</guid>
		<description><![CDATA[Any one who has been reading the Live Journal site will now I haven&#8217;t been well.  Because of that I couldn&#8217;t be bothered the fix blog.pobice.co.uk when it failed due to a Debian upgrade.
Well things have change, I&#8217;m slowly getting around to setting up my wordpress blog again, but on a better address.  I intend [...]]]></description>
			<content:encoded><![CDATA[<p>Any one who has been reading the Live Journal site will now I haven&#8217;t been well.  Because of that I couldn&#8217;t be bothered the fix blog.pobice.co.uk when it failed due to a Debian upgrade.</p>
<p>Well things have change, I&#8217;m <em>slowly</em> getting around to setting up my wordpress blog again, but on a better address.  I intend for this to be my home page as some point in the future too, as the old site isn&#8217;t really relevant to me today and is rather, well dead.</p>
<p>This means stuff doesn&#8217;t really work yet.  It&#8217;ll get fixed at some point soon I promise.</p>
<p><strong>Update </strong></p>
<p>Stuffs mostly fixed.  Thats enough work for now</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2009/06/setting-up-blog-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>inputlirc</title>
		<link>http://robert.pobice.co.uk/2007/07/inputlirc/</link>
		<comments>http://robert.pobice.co.uk/2007/07/inputlirc/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 19:37:11 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Thumbs Up]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pobice.co.uk/index/archives/2007/07/39</guid>
		<description><![CDATA[Just found a package for a bit of software in ubuntu called inputlirc.
Ubuntu lists it as:
Zeroconf LIRC daemon using input event devices
This is a small LIRC-compatible daemon that reads from /dev/input/eventX
devices and sends the received keycodes to connecting LIRC clients. Inputlircd
needs no configuration, it uses the standardised names for the keycodes as
used by the kernel. [...]]]></description>
			<content:encoded><![CDATA[<p>Just found a package for a bit of software in ubuntu called inputlirc.</p>
<p>Ubuntu lists it as:</p>
<blockquote><p>Zeroconf LIRC daemon using input event devices<br />
This is a small LIRC-compatible daemon that reads from /dev/input/eventX<br />
devices and sends the received keycodes to connecting LIRC clients. Inputlircd<br />
needs no configuration, it uses the standardised names for the keycodes as<br />
used by the kernel. Many USB remote controls that present HID devices, as well<br />
as multimedia keyboards should work out of the box.</p></blockquote>
<p>Why is this good, well I just install this package and well I get full remote support &#8211; once I&#8217;ve configured the applications, which is still a pain in the arse.  Now if the applications could be written to work with the zeroconfig lirc with well zero config the world will be great (well ok less un-great).</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2007/07/inputlirc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yet Another Cacti Update</title>
		<link>http://robert.pobice.co.uk/2007/05/yet-another-cacti-update/</link>
		<comments>http://robert.pobice.co.uk/2007/05/yet-another-cacti-update/#comments</comments>
		<pubDate>Mon, 21 May 2007 19:23:26 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Thumbs Up]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.pobice.co.uk/index/archives/2007/05/38</guid>
		<description><![CDATA[Well I&#8217;ve now got cacti pretty much sorted.  Its finally running on a server with enough disk i/o to cope (it still > 3 years old, but at least it works).  Its also now become important enough to be moved onto a server with support as some point.  Once we&#8217;ve vitalised our [...]]]></description>
			<content:encoded><![CDATA[<p>Well I&#8217;ve now got <a href="http://cacti.net/">cacti</a> pretty much sorted.  Its finally running on a server with enough disk i/o to cope (it still > 3 years old, but at least it works).  Its also now become important enough to be moved onto a server with support as some point.  Once we&#8217;ve vitalised our File Servers, and maybe the odd DC and Citrix server.</p>
<p>Its now running on <a href="http://www.ubuntu.com/>Ubuntu 7.10 (although it was on 6.06 until a bug in GD forced an upgrade to the latest version to get the latest weathermap).</p>
<p>Once complaint about Ubuntu is that, well its Cactid packages are broken, and its really slow at bug and security fixed on cacti &#8211; up until recently I had the debian package installed.  I think I&#8217;ll be moving back over to <a href="http://www.debian.org/">Debian</a> for the next Cacti box (assuming it doesn&#8217;t have the gd bug).</p>
<p>What has helped with the new Cacti box is a combination of a few things &#8211; the new 1 min poller patch spreads I/O out better, and allows me to poll device which don&#8217;t do 64bit SNMP counters yet have gigabit ethernet ports every min, and leave everything else at 5 min.  Improvements on plugins and a switch to cactid (a c version of the poller) has also really helped.   The system now process ~400 hots in 35 seconds, dealing with ~4100 data sources and ~2200 rrd each min.   Not bad.</p>
<p>There are a couple things that need improving however:<br />
1) The threshold system now inspects data straight from the db before writing to the rrd files, which unfortunately causes the graphs in the email to be 1 cycle out of date (ie not show the data the emails about).<br />
2) The Uptime+Threshold system host down email only works by patching files yourself at present when using cactid</p>
<p>As for ubuntu &#8211; either stop shipping cactid, or compile it again the correct version of the libraries.   I&#8217;d much rather the package not be there than for it to not work, it gives people a bad impression.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2007/05/yet-another-cacti-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: NUT &amp; CPU Throttling/Frequency Scaling</title>
		<link>http://robert.pobice.co.uk/2007/05/howto-nut-cpu-throttlingfrequency-scaling/</link>
		<comments>http://robert.pobice.co.uk/2007/05/howto-nut-cpu-throttlingfrequency-scaling/#comments</comments>
		<pubDate>Mon, 21 May 2007 19:03:33 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.pobice.co.uk/index/archives/2007/05/37</guid>
		<description><![CDATA[After a couple of power cuts lasting long enough for my UPS to shutdown my PC, I&#8217;ve been meaning to get NUTs to set my CPU to lowest speed possible when running on battery power, this week I finally got round to it.   Please note these instructions are based on Debian 4.0 (Etch) [...]]]></description>
			<content:encoded><![CDATA[<p>After a couple of power cuts lasting long enough for my UPS to shutdown my PC, I&#8217;ve been meaning to get NUTs to set my CPU to lowest speed possible when running on battery power, this week I finally got round to it.   Please note these instructions are based on Debian 4.0 (Etch) and may require extra steps to work on different distro&#8217;s.</p>
<p><span id="more-37"></span></p>
<p>For this to work you have to:</p>
<ol>
<li>Have a CPU that support Frequency Scaling</li>
<li>Have CPU Frequency scaling working</li>
<li>Use <a href="http://www.networkupstools.org/">NUT (Network UPS Tools)</a>
</li>
</ol>
<p>Here what you need to do to get thing working</p>
<ul>
<li><strong>Check you what &#8216;Governors&#8217; you have available</strong><br />
You need to make sure the correct modules are loaded so that you can scale to the correct settings. To see what you do have loaded run:<br />
<code>cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors</code><br />
You&#8217;ll need at least powersave and one other.  Powersave should set the CPU Frequency to the lowest setting.  If you don&#8217;t have powersave you&#8217;ll need to load the module.  As root run:<br />
<code>modprobe cpufreq_powersave</code> and add cpufreq_powersave to the file<br />
 /etc/modules.</p>
<p>To test that it is working, ideally run something that force you CPU to 100 for a while (say compress a large folder) and then run<br />
<code>cpufreq-selector --governor powersave<br />
sleep 1<br />
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq<br />
cpufreq-selector --governor userspace<br />
sleep 1<br />
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq<br />
</code><br />
The first number given should be the lowest CPU frequency and the last should be the highest (assuming the process is using a lot of CPU time still)
	</li>
<li><strong>Add a few new items to upssched.conf</strong><br />
Using you&#8217;re favorite editor open up /etc/nut/upssched.conf and add the following line:<br />
<code>AT ONBATT * START-TIMER powersave 30<br />
AT ONLINE * CANCEL-TIMER powersave<br />
AT ONLINE * START-TIMER userspace 30<br />
AT ONBATT * CANCEL-TIMER userspace</code><br />
I&#8217;ve used a timer (30 seconds) to smooth out jumpy power from triggering off any actions.  </li>
<li><strong>Add the command to the CMDSCRIPT file to change the CPU frequency govenor</strong></li>
<p>Edit the cmdscript file (the path is given in upssched.conf on the line starting CMDSCRIPT.  This file probably doesn&#8217;t exist &#8211; so just create a new one.  Assuming it doesn&#8217;t exist add the following lines:<br />
<code>#! /bin/sh<br />
case $1 in<br />
	powersave)<br />
		/usr/bin/cpufreq-selector --governor powersave &#038;&#038; logger -t upssched-cmd "Setting CPU Governor to powersave"<br />
		;;<br />
	userspace)<br />
		/usr/bin/cpufreq-selector --governor userspace  &#038;&#038; logger -t upssched-cmd "Setting CPU Governor to userspace"<br />
		;;<br />
	*)<br />
		logger -t upssched-cmd "Unrecognized command: $1"<br />
		;;<br />
esac</code></p>
<li><strong>Test</strong> Unplug you&#8217;re UPS for 1 min, plug back in and look at /var/log/syslog &#8211; you should see that NUTs has throttled you&#8217;re CPU.</li>
</ul>
<p>I haven&#8217;t had a power cut since I&#8217;ve implemented this, but from looking at the stats from the UPS I should gain another 7 min or so of battery time &#8211; an extra 21%.  An improvement on this may be stopping some process and task when on battery and starting them again when back on mains.  But for now, at least untill the next power cut this will do for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2007/05/howto-nut-cpu-throttlingfrequency-scaling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Stopping the Sidebar from Printing</title>
		<link>http://robert.pobice.co.uk/2007/05/wordpress-stopping-the-sidebar-from-printing/</link>
		<comments>http://robert.pobice.co.uk/2007/05/wordpress-stopping-the-sidebar-from-printing/#comments</comments>
		<pubDate>Wed, 09 May 2007 21:46:00 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.pobice.co.uk/index/archives/2007/05/35</guid>
		<description><![CDATA[If there&#8217;s one thing that really winds me up on the net is that when printing web-pages you end up with a load of crap you didn&#8217;t want usually.  For example with blogs you usually get a page or two with the content on the blog sidebar, which frankly I don&#8217;t need on a [...]]]></description>
			<content:encoded><![CDATA[<p>If there&#8217;s one thing that really winds me up on the net is that when printing web-pages you end up with a load of crap you didn&#8217;t want usually.  For example with blogs you usually get a page or two with the content on the blog sidebar, which frankly I don&#8217;t need on a print out.</p>
<p>Well I&#8217;ve done something about it (well at least on my blog) &#8211; I&#8217;ve changed my theme so that on browsers that supports css and media types the sidebar shouldn&#8217;t print out.  Here&#8217;s how you can add this to you&#8217;re WordPress blog</p>
<ol>
<li>Create a file print-style.css in the directory for you&#8217;re current theme with the following content<br />
<code> .dontprint{ display: none; }<br />
div#menu{ display: none; }</code></li>
<li>In wordpress, goto Presentation, Theme Editor and select the file Header</li>
<li>Just bellow the line setting the css style sheet &#8211; should be something like this :<br />
<code>&amp;lt;style type="text/css" media="screen"&gt;<br />
@import url( %lt;?php bloginfo('stylesheet_url'); ?&gt; );<br />
&lt;style&gt;<br />
</code><br />
add the lines<br />
<code> &amp;lt;style type="text/css" media="print"&gt;<br />
@import url(&amp;lt;?php bloginfo('template_directory'); ?&gt;/style-print.css);<br />
&lt;/style&gt;</code></li>
<li>Hopefully this should be enough, but if the theme author hasn&#8217;t used the div&#8217;s in the sidebar file you may have to add this line <code>&lt;div id="menu"&gt;</code> to the top of the file and this line <code>&lt;/div&gt;</code> to the bottom of the file</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2007/05/wordpress-stopping-the-sidebar-from-printing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP5 + Mostwanted</title>
		<link>http://robert.pobice.co.uk/2006/12/php5-mostwanted/</link>
		<comments>http://robert.pobice.co.uk/2006/12/php5-mostwanted/#comments</comments>
		<pubDate>Sat, 09 Dec 2006 19:57:09 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://blog.pobice.co.uk/?p=34</guid>
		<description><![CDATA[I&#8217;ve recently upgraded from PHP4 to PHP5 to allow me to test out a couple of web apps on the same machine that runs things blog.  All in all it went well, had to specify timezone in a config file for some of the code I&#8217;ve done myself &#8211; and my TV recording system [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently upgraded from PHP4 to PHP5 to allow me to test out a couple of web apps on the same machine that runs things blog.  All in all it went well, had to specify timezone in a config file for some of the code I&#8217;ve done myself &#8211; and my TV recording system doesn&#8217;t do the full list of items to record (will fix at some point).  It also borked the most wanted panel on this blog.</p>
<p>Anyway I have a fix for this now &#8211; simply call mostwanted using these two lines of php:<br />
<code>$mostwanted = new MostWanted;<br />
$mostwanted->mostwanted(7, 30, true);<br />
</code><br />
in replace of<br />
<code><br />
MostWanted::mostwanted(7, 30, true);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://robert.pobice.co.uk/2006/12/php5-mostwanted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
