<?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>davidrickard.net</title>
	<atom:link href="http://www.davidrickard.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidrickard.net</link>
	<description>Random stuff, randomly updated.</description>
	<lastBuildDate>Fri, 23 Dec 2011 18:54:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Meet Eric and Ernie</title>
		<link>http://www.davidrickard.net/2011/12/23/meet-eric-and-ernie/</link>
		<comments>http://www.davidrickard.net/2011/12/23/meet-eric-and-ernie/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 18:54:13 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=615</guid>
		<description><![CDATA[I&#8217;ve recently set myself up with a &#8216;little&#8217; virtualisation rig: It&#8217;s two HP workstations (Eric is an xw6400, and Ernie is an xw6200). Originally I intended buying just the xw6400, but I cheaped out and went for the xw6200 instead, thinking it would happily run ESXi 5. I was right, it does run it. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently set myself up with a &#8216;little&#8217; virtualisation rig:</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/EricandErn.png"><img class="aligncenter size-full wp-image-617" title="Eric and Ernie's stats" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/EricandErn.png" alt="" width="716" height="314" /></a></p>
<p>It&#8217;s two HP workstations (Eric is an xw6400, and Ernie is an xw6200). Originally I intended buying just the xw6400, but I cheaped out and went for the xw6200 instead, thinking it would happily run ESXi 5. I was right, it does run it. The trouble is the processors don&#8217;t have the Intel vt-x extensions, so they can&#8217;t run 64-bit virtual machines. I mulled over my options, sold some stuff on eBay, and decided to get the xw6400 as well, as it DOES support vt-x. It actually worked out quite nicely as it now means I have 16 gig of RAM between two machines, a reasonable amount of disk, and the ability to spread loads. Basically the plan being to run 32-bit stuff and clients on Ernie, and anything that needs 64-bit can go on Eric.</p>
<p>You&#8217;ll notice two vSwitches on the boxes. What I have is two Broadcom NICs in each box. One connects to my local LAN, the other two connect back to back with the Virtual Machines vSwitch on them. All the VMs connect to this switch, save for one, which runs m0n0wall and bridges onto the main network too. It&#8217;s configured just to route, and do not much else; my main router (running DD-WRT) has a static route pointing to it, so clients on the Virtual Machines vSwitch are able to get out onto the internet, but not send any wayward data onto my main LAN.  I may change m0n0wall it for something a little more suitable in time, but for now it works. I&#8217;d like something which is a routing firewall, rather than a slightly knocked around NAT gateway.</p>
<p>Finally, there&#8217;s an NFS filesystem exported from my NAS with ISO images on from Technet and elsewhere, so I can install software and not waste space on the local datastores.</p>
<p>So far I&#8217;ve only thrown a few VMs on, but it seems to work quite nicely, and they aren&#8217;t particularly noisy when running. I only turn them on as needed, so power isn&#8217;t a big concern either. Hopefully with this setup I can play around with stuff to my heart&#8217;s content.</p>
<p>If you&#8217;re wondering where I picked up this stuff, it was from a company on eBay called <a title="bargain*hardware eBay store" href="http://stores.ebay.co.uk/bargainhardware" target="_blank">bargain*hardware</a> selling ex-corporate workstations. Pretty good prices for the kit you can get.</p>
<div id="attachment_620" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/2011-12-23-18.20.532.jpg"><img class="size-full wp-image-620" title="Eric and Ernie" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2011/12/2011-12-23-18.20.532.jpg" alt="" width="600" height="450" /></a><p class="wp-caption-text">Eric and Ernie (and the NAS)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2011/12/23/meet-eric-and-ernie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Tis the season to dig up the roads, fa-la-la-la, la-la-la-la</title>
		<link>http://www.davidrickard.net/2011/07/22/tis-the-season-to-dig-up-the-roads-fa-la-la-la-la-la-la-la/</link>
		<comments>http://www.davidrickard.net/2011/07/22/tis-the-season-to-dig-up-the-roads-fa-la-la-la-la-la-la-la/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 19:29:04 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Friday Blog]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Rave]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=613</guid>
		<description><![CDATA[It happens every year. Councils have bits of budgets left they need to use up, so they start going round looking for work to do. In this case they&#8217;re looking for road works to do. The last couple of winters have left our roads round here full of more holes than Swiss Cheese. I&#8217;ve come [...]]]></description>
			<content:encoded><![CDATA[<p>It happens every year. Councils have bits of budgets left they need to use up, so they start going round looking for work to do. In this case they&#8217;re looking for road works to do. The last couple of winters have left our roads round here full of more holes than Swiss Cheese. I&#8217;ve come to grief on some of these pot holes &#8211; I&#8217;ve had three wheel rims replaced, and got an advisory on my MOT recently that two of my wheels are still a bit bent.</p>
<p>Recently a whole fleet of little roadworks signs have descended on us round here, each giving the date of impending roadworks and &#8216;possible delays&#8217;. I looked at them at first and sighed, resigned to the fact I&#8217;d end up sitting in traffic for the forseable future. I saw plenty of people ranting about it on Facebook and Twitter alike.</p>
<p>But something dawned on me. This year the council has done it differently. As a rule, they&#8217;d be doing all this work around September time. Just as all the schools go back. However, they seem a little bit ahead of themselves this year and are doing it all as the schools finish. So basically when the traffic is lighter &#8211; i.e. they&#8217;re doing exactly what people have been saying they <em>should</em> have been doing for years.</p>
<p>So far the disruption to me has been quite minimal. My drive home was slowed down a little because they&#8217;d taken off the top surface so I had to slow down to get over that. I think one of the back roads it due to be completely closed for a day or two next week &#8211; but that doesn&#8217;t matter because I have the choice of two alternate routes anyway; had the schools still been open it&#8217;d only be one route.</p>
<p>The amount of signage has been quite something too &#8211; in so much, I&#8217;ve seen approximately eight signs on one junction warning of the impending works. That&#8217;s something that they never really used to bother with. You&#8217;d maybe get a little sign strapped to a lamp post, but nothing major. This time they&#8217;ve gone all out with proper road-side signs, which are clear, and legible when whizzing by.</p>
<p>So I&#8217;d just like to say well done, Council. You got it right for once!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2011/07/22/tis-the-season-to-dig-up-the-roads-fa-la-la-la-la-la-la-la/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There and back again</title>
		<link>http://www.davidrickard.net/2011/07/01/there-and-back-again/</link>
		<comments>http://www.davidrickard.net/2011/07/01/there-and-back-again/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 23:27:29 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=609</guid>
		<description><![CDATA[I&#8217;ve moved web hosts again. Or rather, I&#8217;ve moved back. Many moons ago I had hosting with the fine chaps at UK Websolutions Direct. They provided an excellent service, but I wanted to do more fancy things with my hosting, so I moved to a VPS with Rapidswitch. For a while I was managing my [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border: 0px initial initial;" src="http://ukwebsolutionsdirect.co.uk/img/banners/468x60.gif" border="0" alt="UK Web.Solutions Direct" width="468" height="60" />I&#8217;ve moved web hosts again. Or rather, I&#8217;ve moved back. Many moons ago I had hosting with the fine chaps at <a title="UK Websolutions Direct" href="http://ukwebsolutionsdirect.co.uk/portal/aff.php?aff=007" target="_blank">UK Websolutions Direct</a>. They provided an excellent service, but I wanted to do more fancy things with my hosting, so I moved to a VPS with Rapidswitch. For a while I was managing my own email, and hosting my domains on this little box. However, I&#8217;d neglected to think about the fact said box needs to be maintained.</p>
<p>My problem was I&#8217;d spend all day at work maintaining boxes, then come home and occasionally have to maintain another box. Not only that but I was paying the best part of £10 a month for this. It just suddenly didn&#8217;t add up any more. I had a look for some new hosting and was recommended iPage.</p>
<p>Their support was excellent, and their package was very generous (for the price). The problem was, their hosting is in the US in Boston. It seems their routing and peering is really not up to capacity, so page load times were horrendous. They actually use the caching system Akmai to give better page load times, and it&#8217;s a freebie for UK customers; in hindsight, that should&#8217;ve set off the alarm bells. With dynamic content like a WordPress blog, it&#8217;s really a pointless endeavour using caching as it was the initial connection and page load which took time, not pulling down static content like images. Although the images were slow too they weren&#8217;t as noticeable as staring at a blank page for anything up to ten seconds. I also host the bnluk.net site, and it just wasn&#8217;t good enough, as it was frustrating users.</p>
<p>The final nail in the coffin came earlier this week when their database server decided to hose itself, and my databases with it. It came back up, seemingly OK, but the databases weren&#8217;t working properly. I resurrected it and then started looking for new hosts.</p>
<p>After a great many recommendations from various people I found myself back at UKWSD, signing up to a slightly higher tier of service than I&#8217;d had before, which gave me the extra scope to host what I wanted. The account was set up in no time, all the data slurped over, and the DNS was switched. iPage refunded me my hosting charges.</p>
<p>If I was hosting a site aimed at US-based users, then I&#8217;d possibly use iPage again, but for UK-based users it&#8217;s a no-go. It&#8217;s a shame because as I say, their support and general service was great. Just a shame their network isn&#8217;t.</p>
<p>Rapidswitch were in the throes of migrating all their VPS customers to a sister company&#8217;s platform, and my cancellation request seemed to have dropped through the cracks, so I now need to unravel that too. I still need to tidy up my domain registrations &#8211; they&#8217;re between two hosts still!</p>
<p>But, I DO have two working domains. So that&#8217;s the main thing. All thanks to <a title="UK Websolutions Direct" href="http://ukwebsolutionsdirect.co.uk/portal/aff.php?aff=007" target="_blank">UK Websolutions Direct</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2011/07/01/there-and-back-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cheetah, Namemapper, and &#8216;the docs don&#8217;t say that&#8217;.</title>
		<link>http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/</link>
		<comments>http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 18:41:50 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/</guid>
		<description><![CDATA[You may find this useful (I did). If you’re installing the Python Cheetah library, you’ll most likely follow the instructions, which say to do the following: To install Cheetah in your system-wide Python library: Login as a user with privileges to install system-wide Python packages. On POSIX systems (AIX, Solaris, Linux, IRIX, etc.), the command [...]]]></description>
			<content:encoded><![CDATA[<p>You may find this useful (I did).</p>
<p>If you’re installing the Python <a href="http://www.cheetahtemplate.org/" target="_blank">Cheetah</a> library, you’ll most likely <a href="http://www.cheetahtemplate.org/docs/users_guide_html/users_guide.html#SECTION000420000000000000000" target="_blank">follow the instructions</a>, which say to do the following:</p>
<blockquote><p>To install Cheetah in your system-wide Python library:</p>
<ol>
<li>Login as a user with privileges to install system-wide Python packages. On POSIX systems (AIX, Solaris, Linux, IRIX, etc.), the command is normally &#8216;su root&#8217;. On non-POSIX systems such as Windows NT, login as an administrator. </li>
<li>Run <font face="Courier New">python setup.py install</font> at the command prompt. </li>
<li>The setup program will install the wrapper script <b>cheetah</b> to wherever it usually puts Python binaries (&quot;/usr/bin/&quot;, &quot;bin/&quot; in the Python install directory, etc.) </li>
</ol>
</blockquote>
<p>Quite simple. However, what it neglects to mention is that there is a little module within the library called ‘namemapper’. What it does, I don’t entirely know (something to do with mapping names would be my guess), but this module is written in C. Simply running the install as per the Cheetah docs won’t build this module, which results in much slower performance from Cheetah overall as it falls back to a python-based internal equivalent. However, if you run the command <font face="Courier New">python setup.py build</font> BEFORE the install command, it will happily compile said module. The install will then install it along with everything else, and all is well. Obviously you need gcc installed to do this (I had the dev pattern installed on my OpenSuSE box).</p>
<p>Why the docs don’t mention this, I don’t know. Still, nice to know there’s a simple fix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2011/02/22/cheetah-namemapper-and-the-docs-dont-say-that/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Storm Chasers &#8211; more like Ratings Chasers</title>
		<link>http://www.davidrickard.net/2010/12/30/storm-chasers-more-like-ratings-chasers/</link>
		<comments>http://www.davidrickard.net/2010/12/30/storm-chasers-more-like-ratings-chasers/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 00:50:17 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[TV]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=590</guid>
		<description><![CDATA[Being British, the weather rarely fails to intrigue me. Over the years there&#8217;s been various weather-related shows pop up on BBC 4, Discovery and National Geographic. One particular show which caught my intrigue is Storm Chasers, on Discovery. The show follows various groups of scientists and chasers in the famous Tornado Alley in America, following tornadoes. [...]]]></description>
			<content:encoded><![CDATA[<p>Being British, the weather rarely fails to intrigue me. Over the years there&#8217;s been various weather-related shows pop up on BBC 4, Discovery and National Geographic. One particular show which caught my intrigue is <a title="Storm Chasers Website (Discovery.com)" href="http://dsc.discovery.com/tv/storm-chasers/" target="_blank">Storm Chasers</a>, on Discovery. The show follows various groups of scientists and chasers in the famous <a title="Wikipedia article about Tornado Alley." href="http://en.wikipedia.org/wiki/Tornado_Alley" target="_blank">Tornado Alley</a> in America, following tornadoes.</p>
<p>The first two seasons mostly followed Dr Josh Wurman&#8217;s team of scientists, who were chasing storms to try and study them more closely. They were also accompanied by Sean Casey, a film maker who was trying to capture film of a tornado from the inside with an IMAX camera. Dr Wurman&#8217;s team would direct Casey&#8217;s team towards &#8216;safe&#8217; tornados so they could place their specially adapted road vehicle (called the Tornado Intercept Vehicle, or &#8216;TIV&#8217;) in the path and capture film of it passing over.</p>
<p>During the second season we also saw the introduction of Reed Timmer&#8217;s team from Tornadovideos.net. They would chase partly for fun, but also to study and document tornados, eventually selling the film they recorded onto local news outlets for the inevitable reports they would produce post storm.</p>
<p>The third season saw less of Dr Wurman&#8217;s team as he had joined a much larger government-funded project, but introduced Tim Samaras&#8217;s TWISTEX team to the show. Timmer&#8217;s team had taken the lead on the show now. The fourth season has continued this, and has seen Dr Wurman&#8217;s team disappear altogether.</p>
<p>Throughout the seasons, a noticeable change has happened. In the first couple of seasons, Dr Wurman and Casey would regularly butt heads over decisions over which storm to chase, and a healthy rivalry existed between all the teams. Ultimately they all were in it for the same reasons, so despite the odd little bit of sniping, it was relatively friendly.</p>
<p>The show has steadily grown in popularity, and Discovery has &#8211; in the UK at least &#8211; moved it from random late-night times, to being part of the Prime Time lineup, and giving the show great deals of promotion. Since this has happened, the whole tone of the show has changed, and for the worse.</p>
<p>The show originally made use of a voiceover (localised to the UK, but a US-based VO was also used; Discovery UK occasionally would show the original HD version with US voiceover, yet the SD version had a UK VO). The VO would explain things going on, and give explanations of how the storms formed and grew.</p>
<p>During the filming of the show the various people we would see would respond to questions from producers about what they were doing, and what was going on. Occasionally the odd gripe about the other teams would creep in, but nothing major. It was all good, and informational.</p>
<p>Each episode would usually concentrate on a couple of good storms, and the chase and aftermath of those storms, as well as how the teams would interact and chase. It was a great format which informed, but also entertained. During the episodes I&#8217;d often find myself getting quite involved in the narrative, and really rooting for the teams.</p>
<p>As the show has climbed in ratings, it seems the producers behind the show (or possibly Discovery) decided that the show needed a little shakeup. Season four has lost the original feel of the show, and now focuses far more on the conflict and relationships between the teams. It started to creep in during Season three, where a whole storyline of Reed Timmer and his driver Joel Taylor fall out of favour with each other. Given it happened mid-season, it was relevant to the show, so it was fair to include it.</p>
<p>Season four has also dropped the VO, and instead relies on the various faces in the show doing &#8216;faux interview&#8217; segments which are obviously scripted where they explain what happened. The people in the show aren&#8217;t actors, and so they are wooden and forced, and do nothing to help the narrative of the show. The &#8216;interview&#8217; segments are quite liberally peppered throughout the show, and as a consequence in Season four I&#8217;ve seen three episodes, and only seen a couple of tornadoes &#8211; briefly.</p>
<p>Storm Chasers has gone from a scientific entertainment show, to becoming a show basically about the teams and their infighting. More emphasis is put on the rivalries between the teams; the TWISTEX team is quite highly regarded all round, so they barely feature, other than when they are making negative comments about storms Timmer has decided to chase.</p>
<p>The whole premise of the show now seems to centre around false jeopardy, and conflict. Not the storms suggested in the title.</p>
<p>Unfortunately for me, I think Storm Chasers has jumped the shark. I&#8217;m willing to give it the benefit of the doubt. I hope it picks up, but I somehow don&#8217;t think it&#8217;s likely. A real shame.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/12/30/storm-chasers-more-like-ratings-chasers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t touch that dial!</title>
		<link>http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/</link>
		<comments>http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 22:18:36 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/</guid>
		<description><![CDATA[VideoLan (or VLC as it is otherwise known) is a great piece of software. It’s capable of playing a plethora of video and audio file types. It’s also capable of converting files, streaming files over the network, and viewing live TV via any TV cards you might have. Because of the way it works, it’s [...]]]></description>
			<content:encoded><![CDATA[<p>VideoLan (or VLC as it is otherwise known) is a great piece of software. It’s capable of playing a plethora of video and audio file types. It’s also capable of converting files, streaming files over the network, and viewing live TV via any TV cards you might have.</p>
<p>Because of the way it works, it’s possible to take any input, and spit it out in any way pretty much. Some time ago I’d seen a discussion on a mailing list about using VLC and a digital TV card to broadcast live TV over the network (using multicast). I’d had a quick play, but never got it working. A discussion popped up on the Multiplay forums, so I thought I’d try and get it working again. Last night I was successful, so I thought I’d blog it up in case it’s useful for others. VLC is documented, but the documentation is a bit hit and miss in places – always the problem for many Open Source projects.</p>
<p>Read more after the jump.</p>
<p><span id="more-586"></span></p>
<h3>Background</h3>
<p>Digital TV, using either satellite (DVB-S) or terrestrial (DVB-T) is fundamentally the same – MPEG2 Transport Streams, which are multiplexed into one stream, then broadcast on a single frequency. The tuner will tune to the frequency, then pick the stream it wants, and play it on screen.</p>
<p>The idea behind what we’re doing here is to take that multiplex, and pick out the streams we want, then just multicast them as is onto the network. Using the SAP protocol, it’s possible to announce them in a nice neat way so clients can pick them up easily.</p>
<p>Because it’s already MPEG2, no re-encoding is really needed. I suppose you could do that, but I’ve not tried. This method uses hardly any CPU time, as it’s just pulling data in, patting it about a bit, and throwing it out the other side. In the original mailing list postings I read, the author was using some old Pentium 4 PCs with hardly any RAM. They were capable of tuning multiple channels with ease.</p>
<p>One caveat of this is that the tuner can only lock onto one frequency, so one multiplex is all you can play with; on Terrestrial (i.e. Freeview), the BBC multiplex contains all the BBC channels. If you wanted to multicast BBC and ITV channels for example, you’d need to add a second tuner and tune to the ITV multiplex.</p>
<p>In my investigations, I had the following setup:</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="200" valign="top"><strong>Server</strong></td>
<td width="200" valign="top"><strong>Client PC</strong></td>
</tr>
<tr>
<td width="200" valign="top">Windows 7<br />
Hauppauge WinTV HVR-1300 Terrestrial Digital card<br />
VLC 1.0.5</td>
<td width="200" valign="top">Mac OSX 10.6<br />
VLC 1.0.5</td>
</tr>
</tbody>
</table>
<p>Both are connected over a Gigabit network. However, the video streams are quite small (5-6Mb/s). Even 10Mb network could cope with that, although not many concurrently!</p>
<h3>The server end</h3>
<p>First of all, here’s the full command to kick start VLC on the Server.</p>
<pre>vlc dvb-t://frequency=578000000 :adapter=0:dvb-bandwidth=8 --programs=4171,4235
--sout #duplicate{dst=std{access=udp,mux=ts,dst=239.255.255.239,sap,name="BBC One",
group="BBC"},select="program=4171",dst=std{access=udp,mux=ts,dst=239.255.255.238,
sap,name="BBC Two",group="BBC"},select="program=4235"</pre>
<p>That’s all on one line, I had to break it up a bit!</p>
<p>So an explanation of it. Basically it runs VLC, tunes the frequency, using a selected adapter and channel bandwidth. It then selects the two programs I want (BBC One and Two), then outputs them via UDP on two different multicast addresses, using SAP to announce it.</p>
<p>First of all, I’d recommend running VLC up manually. Go to <strong>Media</strong> &gt;<strong>Open Capture Device</strong>. Change the capture mode to <strong>DVB Directshow</strong>. Select the video format you’re using (I’m using DVB-T). Then dial in the frequency of the multiplex you want. Select <strong>8Mhz</strong> for the bandwidth. You can find out the multiplex frequency using <a href="http://www.ukfree.tv/" target="_blank">UKfree.tv</a>.</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="Opening the TV card" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/OpenCard.png" border="0" alt="Opening the TV card" width="548" height="545" /></p>
<p>Click Play, and it should open.</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/VideoWorking.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="Testing the video works" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/VideoWorking_thumb.png" border="0" alt="Testing the video works" width="644" height="361" /></a></p>
<p>If it doesn’t you might need to select your video adapter explicitly. I have two in my PC. The DVB-T card is adapter 0, whilst my DVB-S card is adapter 1. Click <strong>Media</strong> &gt; <strong>Open Capture Device</strong> again , then tick<strong> Show more options</strong> and enter “<strong>:adapter=0</strong>” into the options box. In the previous screenshot I have highlighted this. Change the number until it works.</p>
<p>Once you are able to see the video, go to <strong>Tools</strong> &gt; <strong>Messages</strong>. Change the Verbosity to <strong>2</strong>. Stop and start VLC and watch the log fill up. There’s too much to try and work with it in the window, so click <strong>Save as…</strong>. Open the file you have saved, and look for a section similar to the following:</p>
<pre>ts debug: new SDT ts_id=4107 version=3 current_next=1 network_id=9018
ts debug:   * service id=4171 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC ONE
main debug: EsOutProgramMeta: number=4171
ts debug:   * service id=4235 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC TWO
main debug: EsOutProgramMeta: number=4235
ts debug:   * service id=4415 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC NEWS
main debug: EsOutProgramMeta: number=4415
ts debug:   * service id=4479 eit schedule=0 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC Red Button
main debug: EsOutProgramMeta: number=4479
ts debug:   * service id=4671 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=CBBC Channel
main debug: EsOutProgramMeta: number=4671
ts debug:   * service id=4351 eit schedule=1 present=1 running=4 free_ca=0
ts debug:     - type=1 provider=BBC name=BBC THREE
main debug: EsOutProgramMeta: number=4351</pre>
<p>Notice all the Service IDs. As you can probably tell, each of these represents a TV channel within the multiplex. You need to note down the ones you want to multicast. In this case I want BBC One (4171) and BBC Two (4235).</p>
<p>The next part of the command selects those programs and outputs them:</p>
<pre>--programs=4171,4235 --sout</pre>
<p>The next part is to make up the multicast. As the video is already in MPEG2 we don’t need to go re-encoding it, so it’s simply a case of spitting it out.</p>
<p>I’ll be honest, I’m not sure what this next section does – I <em>think</em> it is basically saying take the input and duplicate it to output elsewhere (i.e. other than on screen).</p>
<pre>#duplicate{</pre>
<p>We are going to broadcast on a multicast address (anything in the range 224.0.0.0 to 239.255.255.255). You need to choose your addresses. On a large network with multicast enabled, these could be in use, so it’s worth checking first. If you know you don’t have any multicast I think it’s fairly safe to pick a random address. I chose 239.255.255.255.239 and went down from there!</p>
<p>This next line is where we select UDP, make it a Transport Stream, select the target IP, and advertise it with SAP. The channel name, and group name are set here too:</p>
<pre>dst=std{access=udp,mux=ts,dst=239.255.255.239,sap, \
name="BBC One",group="BBC"},select="program=4171",</pre>
<p>Repeat for BBC Two. Use a different multicast address though!</p>
<pre>dst=std{access=udp,mux=ts,dst=239.255.255.238,sap, \
name="BBC Two",group="BBC"},select="program=4235"</pre>
<p>Now we have a full command, it’s a case of running it. I used a command prompt and ran VLC from there, but you could of course put it into a shortcut, batch file, registry run key, or whatever.</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Multicasting.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Multicasting" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Multicasting_thumb.png" border="0" alt="Multicasting" width="644" height="444" /></a> Once it’s running, a very simple, hacky way of checking it is working is to look at your network switch. If it’s flashing away merrily on all ports, then it’s doing <em>something</em>!</p>
<h3>The clients</h3>
<p>Run VLC on another PC, Go into <strong>Preferences</strong> &gt; <strong>Playlist</strong> &gt; <strong>Services Discovery</strong> and tick <strong>SAP</strong>. You might need to re-start VLC. Go to the playlists, and you should see a group with the name you made, and your channels. Click one, it plays!</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Screenshot20100618at23.14.41.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Screen shot 2010-06-18 at 23.14.41" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/06/Screenshot20100618at23.14.41_thumb.png" border="0" alt="Screen shot 2010-06-18 at 23.14.41" width="644" height="394" /></a> As you can see, I’m doing this on my Mac, so it’s truly cross platform!</p>
<p>I did find in testing that it caused an effective DoS on my Wireless. I&#8217;m guessing the multicast was too fast for the slowest wireless device associated to the AP, and just wiped the lot out or something. Wired carried on working fine though. Something to bear in mind anyway!</p>
<p>I’m sure it’s possible to refine this a little more. The original version of this I saw had VLC daemonizing itself, which I’m not entirely sure is possible in Windows. Still, it’s a great way to get video served up over the network.</p>
<p>Oh, and remember, you still need a TV licence!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/06/18/dont-touch-that-dial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bridgedy-doo-dah</title>
		<link>http://www.davidrickard.net/2010/05/26/bridgedy-doo-dah/</link>
		<comments>http://www.davidrickard.net/2010/05/26/bridgedy-doo-dah/#comments</comments>
		<pubDate>Wed, 26 May 2010 07:47:47 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/?p=572</guid>
		<description><![CDATA[At work we often have a requirement to test out things on our network, as if we were an external user. It&#8217;s useful to check that firewall settings are right, or to check access rights. We recently had an ADSL connection installed which serves that purpose. Via some spare fibres and various spare switches, we&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>At work we often have a requirement to test out things on our network, as if we were an external user. It&#8217;s useful to check that firewall settings are right, or to check access rights. We recently had an ADSL connection installed which serves that purpose.</p>
<p>Via some spare fibres and various spare switches, we&#8217;ve got access to it in various switch closets. I wanted to be able to access it from my desktop. My preference was to use a virtual machine, which I could set up with all the software I needed and test. This would mean bridging said virtual machine to that network.</p>
<p>I added a second network adapter to my PC, unbound it from all the local protocols (so my PC doesn&#8217;t touch that network) and set VMware Player to use bridged mode. With VMware workstation, you can use the virtual network tool to configure which NIC bridges to the virtual machines. However, that tool is missing with VMware player. By default, it was bridging to my first NIC, which was no good, as it was on the uni network.</p>
<p>A little bit of clicking around, and I found that there is a protocol bound to all the network cards called VMware Bridge Protocol. By default, it seems to bind itself to all the NICs. I simply unbound it from my main NIC:</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/mainadapter1.png"><img class="aligncenter size-full wp-image-576" title="mainadapter" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/mainadapter1.png" alt="" width="377" height="474" /></a><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/mainadapter.png"></a></p>
<p>And left it bound to the NIC connected to the ADSL network:</p>
<p><a href="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/zenadsl.png"><img class="aligncenter size-full wp-image-575" title="zenadsl" src="http://www.davidrickard.net/wordpress/wp-content/uploads/2010/05/zenadsl.png" alt="" width="377" height="474" /></a></p>
<p>I restarted VMware Player, and my virtual machine nows bridges to the ADSL connection.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/05/26/bridgedy-doo-dah/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dear Opera, I&#8217;m not in Norway!</title>
		<link>http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/</link>
		<comments>http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/#comments</comments>
		<pubDate>Thu, 06 May 2010 20:43:42 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/</guid>
		<description><![CDATA[I upgraded Opera (it told me to) a few weeks ago. I don’t use it often – I just keep it around for testing, and as ‘another’ browser. It’s also configured with a lot of things turned off, so it’s useful for browsing to sites I don’t like the look of. Post update, it decided [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded Opera (it told me to) a few weeks ago. I don’t use it often – I just keep it around for testing, and as ‘another’ browser. It’s also configured with a lot of things turned off, so it’s useful for browsing to sites I don’t like the look of.</p>
<p>Post update, it decided to redirect me to google.nl all the time. No idea why, as it had been working fine previously. Checking every option I could within Opera, I could find no reason why.</p>
<p>The answer, lies in a config file, which lives here: (I’m on Windows 7, so yours may vary slightly)</p>
<p>C:\Users\&lt;Your Username&gt;\AppData\Roaming\Opera\Opera\operaprefs.ini</p>
<p>Towards the end of the UserPrefs section, is this line:</p>
<blockquote><p>Google TLD Default=.google.nl</p>
</blockquote>
<p>That was the one! I changed it to .co.uk, restarted Opera, <em>et voila</em>, it now goes where it’s meant to. I can only assume it’s something the installer did. My system is set to UK everything (I checked) and I’ve never had anything else go whizzing off to google.nl. Even going to google.com redirected properly.</p>
<p>Very odd!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/05/06/dear-opera-im-not-in-norway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disillusioned</title>
		<link>http://www.davidrickard.net/2010/05/01/disillusioned/</link>
		<comments>http://www.davidrickard.net/2010/05/01/disillusioned/#comments</comments>
		<pubDate>Sat, 01 May 2010 23:11:09 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/05/01/disillusioned/</guid>
		<description><![CDATA[There’s less than a week to the 2010 General Election. I’m a Labour party supporter. I give money to the party indirectly through my Unison subs (I’m a Unison member too). I consider myself less ‘New Labour’, as that was a ploy to get the middle classes to vote Labour. It worked in 1997, but [...]]]></description>
			<content:encoded><![CDATA[<p>There’s less than a week to the 2010 General Election. I’m a Labour party supporter. I give money to the party indirectly through my Unison subs (I’m a Unison member too). I consider myself less ‘New Labour’, as that was a ploy to get the middle classes to vote Labour. It worked in 1997, but now has become a dirty phrase it would seem.</p>
<p>Currently, according to most polls, Labour is mostly trailing. The Tories are slightly out in front, and the Lib Dems are mostly weaving up and down the polls. There’s lots of talk of a possible ‘hung parliament’. Personally, I can’t help but feel that it won’t happen. The Tories are edging slowly higher on a daily basis. They need around a hundred seats to take a majority. It’s possible it could happen, and each day seems more likely.</p>
<p>A hung parliament could be a good thing, as it could bring around a lot of reform people have often spoken of. Electoral reform would be a great thing, given that our local seat is ALWAYS Tory, and has been since 1926. The likelihood of him losing his seat is amazingly low. I don’t feel represented in parliament because of this. My vote is effectively useless, because the winning party represent an opposite view to my own. Some sort of reform could change that. I don’t think a hung parliament is likely though.</p>
<p>The notion of a Tory government being formed concerns me, given how dead-set they seem on hacking so much money out of the government budget. Right now is the wrong time. I just know they’ll sell the government stake in the banks off almost instantly. It’s too soon to do those things. </p>
<p>It’s right the budget is too high though. The BBC put together this useful <a href="http://news.bbc.co.uk/1/hi/uk_politics/election_2010/8623321.stm" target="_blank">infographic</a> on spending. It’s a never-ending issue that the electorate want a government that doesn’t tax them, but spends massively on public services. Efficiencies can be found all over government. Hacking money out at the top isn’t going to work. It has to start within. Despite what many people will say, there’s plenty of career benefits claimants milking the system. I fully agree in a totally free healthcare, schools, and a social security system to help those that need it. Claiming benefits shouldn’t be a viable alternative to working. It should be there for those who find themselves out of work suddenly, or can’t work due to illness or whatever. Social security accounts for a massive slice of government money. It should be carefully reviewed and reduced. </p>
<p>When I went through school, it was mostly under the Tories. I remember schools being like something out of the latter years of Soviet Russia. Poor books, peeling paint, ripped curtains, broken furniture. Just before I left things were turning around a lot. Taxation on the richest parts of society brought in money to fix those things. </p>
<p>The Tories are planning to raise the threshold on Inheritance Tax. Well that’s good – if you’re in a tiny minority of people. They want to cut corporation tax. Even better. Now those big corporations can earn even more off us. Money we never see! So fatcat bosses can earn yet more off share options and dividends. More money they can hand over to their children in inheritances. At least it won’t be taxed!</p>
<p>Meanwhile, the lowest parts of society, those who need it, will find themselves unable to get benefits they need. The career benefit cheats will however continue to claim. </p>
<p>The thing is, it’s ordinary working class and middle class people voting in the Tories. Why, I don’t know. They only do things to benefit the rich. Privatisation only made a bunch of rich shareholders richer. </p>
<p>I don’t believe everything the Labour Party has done is right. The war in Iraq was stupid and pointless. The Digital Economy Bill was a whitewash. However, I feel that Labour offers a much, MUCH safer option in this post recession climate.</p>
<p>It feels to me that we’re heading towards some very bleak years. </p>
<p>On a similar note, today saw the English Defence League <a href="http://www.bucksherald.co.uk/news/EDL-leave-Aylesbury-after-peaceful.6265965.jp" target="_blank">pay a visit</a> to our little town. It passed off largely uneventfully. However, the comments bandied around on Twitter and the news articles on the Bucks Herald website leave me cold. There’s this hard core of ‘ordinary’ people who are convinced their liberties and laws are going to be replaced with some sort of radical Islamic legal system. I’m really not sure why. A local event is being held on Monday to claim the town back. It’s our town – everybody who lives here. We all live together quite happily, and don’t need anybody poking their oars in trying to incite trouble. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/05/01/disillusioned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;BT&#8217; fail</title>
		<link>http://www.davidrickard.net/2010/04/21/bt-fail/</link>
		<comments>http://www.davidrickard.net/2010/04/21/bt-fail/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 19:47:46 +0000</pubDate>
		<dc:creator>David Rickard</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Unified Comms]]></category>

		<guid isPermaLink="false">http://www.davidrickard.net/2010/04/21/bt-fail/</guid>
		<description><![CDATA[I was sitting at my desk at work this morning, doing something probably very important when the phone rang. I answered it, and a nice lady began by telling me she was calling from British Telecom, and was updating customer information. She asked if it was OK to do this. I replied that we’d been [...]]]></description>
			<content:encoded><![CDATA[<p>I was sitting at my desk at work this morning, doing something probably very important when the phone rang. I answered it, and a nice lady began by telling me she was calling from British Telecom, and was updating customer information. She asked if it was OK to do this. I replied that we’d been trying for ages to get all our customer info updated (we have various company names, and errors in invoices and bills – trivial stuff, but it’s messy). She then started asking really basic questions, like company name, and address. I didn’t answer anything, and asked her to prove she was looking at our account. She reeled off some really basic facts you could find off the website (including the URL of the University website). I wasn’t convinced she may have been from BT, so asked her to confirm an account number or something, but she waffled on about asking about line useage, and products we wanted. I told her I wasn’t interested and hung up.</p>
<p>The thing about the call which intrigued me the most was that BT are notoriously bad at acting on changes of information. Indeed, somebody from BT told me that a lot of their billing hangs off company names and addresses, so changing it causes all sorts of headaches for the billing department – hence why they don’t! </p>
<p>I can’t help but feel my friend on the phone was cold calling from some random agency, basically looking to find info about us and what we do and needed, which they’d then cold call us about and try to sell to us. Maybe I was being over-cautious, and she was legit. I don’t know, and don’t care. Frankly BT, there’s much better ways of doing this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidrickard.net/2010/04/21/bt-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

