<?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>Talk Unafraid &#187; data</title>
	<atom:link href="http://www.talkunafraid.co.uk/tag/data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.talkunafraid.co.uk</link>
	<description>The (occasionally coherent) ramblings of a geek</description>
	<lastBuildDate>Sat, 07 Jan 2012 22:24:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MythTV and Freesat</title>
		<link>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/</link>
		<comments>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 17:01:54 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Awesome Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[dvb-s]]></category>
		<category><![CDATA[dvb-s2]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[satellite]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[stuffisawesome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1333</guid>
		<description><![CDATA[Or- how to make TV worthwhile if you happen to have a leftover Sky dish on your house. So when I moved in to my current university digs, the previous tenants had left a few things behind. Notably, they&#8217;d had Sky. So we had a Sky box in the living room and a dish on [...]]]></description>
			<content:encoded><![CDATA[<p>Or- how to make TV worthwhile if you happen to have a leftover Sky dish on your house.</p>
<p>So when I moved in to my current university digs, the previous tenants had left a few things behind. Notably, they&#8217;d had Sky. So we had a Sky box in the living room and a dish on the wall. In the UK, if you want fast internet these days, you need Virgin Media. VM gives you cable TV in the bundle, so I didn&#8217;t want to pay for Sky. But Freesat&#8217;s got some nice stuff on it, including BBC HD and that sort of thing. So how about we get ourselves some free TV?<span id="more-1333"></span></p>
<p>Now, Sky uses the same satellite for the UK as a lot of Freesat stuff. So ignore the dish- all you need is to leave that bit alone, and make sure that you&#8217;ve got a cable from the dish LNB to somewhere you can put your PC. Where it&#8217;s pointed is probably 28.2 East, which has a bunch of appropriate satellites.</p>
<p>What you then need is a capture card. DVB-S is the standard for satellite, though DVB-S2 is used for some HD encoding (specifically, BBC HD is now on DVB-S2). DVB-T is for terrestrial stuff, and comes in on coax from a standard TV aerial &#8211; you can get combo cards, which will let you pull down extra stuff if you&#8217;ve got the coax feed. Stuff from your LNB typically comes on F-type cables/connectors, down 75 ohm cable. I have yet to find a decent UK supplier for patch or extension leads &#8211; if you know one, let me know.</p>
<p>The LinuxTV wiki maintains a huge list of hardware compatibility with Linux and capture cards, so check there before you go buy anything. I got a Compro S350 card, which works great for DVB-S &#8211; I&#8217;ve also ordered a Technisat S2 HD card, which should do DVB-S2, and I&#8217;m going to look out for a DVB-T card.</p>
<p>Now, we need to tie all this together next. So we need some software and a PC. The PC wants to be a decent spec &#8211; I&#8217;m using a Pentium 4 box with 768MB of RAM as my server, which is on the low end of things. A faster machine would be better, obviously, but it&#8217;s all I have to hand. I stuck a decent (GeForce 6600) graphics card in there, too. Fast CPU is the priority, really- we&#8217;re talking high definition decoding, encoding, transcoding and playback. If you&#8217;re on a budget, look into Intel quad-core chips (Q6600s, that sort of thing). Intel is the way to go wherever possible. If you&#8217;re doing this properly, high-end i7 would be my choice- that or a Xeon or similar. 6-12 core chips would be just the ticket. High-end (newer 8800 series and above) nVidia cards support VPDAU, which lets you offload video decoding and processing to the GPU.</p>
<p>The software to use is MythTV. I&#8217;m using a standard Ubuntu 10.04/11.04 (&#8216;Classic&#8217; mode on 11.04) install, and then installing MythTV atop that. On the server, just install the mythtv, mythtv-themes, xmltv and mythweb packages. On any other clients you can install the mythtv-frontend package, and optionally the mythtv-themes package. The client-server model of MythTV means you can combine backends and frontends to build your system. It&#8217;s crazy powerful in terms of flexibility. But the short story is, you can have a very nice TV system in very little configuration.</p>
<p>See this <a href="http://parker1.co.uk/mythtv_freesat.php">excellent guide</a> for more information on how to set up MythTV with Freesat. Basically you just need to tune it in to the right satellite and set up the input properly so it&#8217;ll get the channel list. MythTV&#8217;s config options take some getting used to, but it&#8217;s eminently doable. And once you&#8217;ve gotten everything talking, you have a -very- capable system.</p>
<p>So, well done to the MythTV team. One hell of a package, that&#8217;s for sure. And Linux DVRs are now in my mind far, far more capable than any other potential choice for DVRs. With MythWeb, I essentially have my own private little iPlayer- but for every single bit of Freesat&#8217;s programming. What&#8217;s not to like?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix voting by popularity</title>
		<link>http://www.talkunafraid.co.uk/2011/03/how-to-fix-voting-by-popularity/</link>
		<comments>http://www.talkunafraid.co.uk/2011/03/how-to-fix-voting-by-popularity/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 05:54:22 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Odds and Ends]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[commentary]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[elections]]></category>
		<category><![CDATA[rhul]]></category>
		<category><![CDATA[surhul]]></category>
		<category><![CDATA[voting]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1283</guid>
		<description><![CDATA[At SURHUL, the Student&#8217;s Union of Royal Holloway, University of London, we have a problem. I&#8217;m sure it&#8217;s not an uncommon one, particularly at student&#8217;s unions. Our electoral system is essentially a popularity contest. Manifestos, campaigning and student outreach have very little impact on the results. Many positions are uncontested and whoever runs wins by [...]]]></description>
			<content:encoded><![CDATA[<p>At SURHUL, the Student&#8217;s Union of Royal Holloway, University of London, we have a problem. I&#8217;m sure it&#8217;s not an uncommon one, particularly at student&#8217;s unions.</p>
<p>Our electoral system is essentially a popularity contest. Manifestos, campaigning and student outreach have very little impact on the results. Many positions are uncontested and whoever runs wins by virtue of being the candidate who is running; people assume that this means that they care about the position enough to run, and that&#8217;s enough for them.</p>
<p>I don&#8217;t think this is a good way to run elections, and it&#8217;s not something that should be encouraged. But it&#8217;s something that can be very easily fixed, or at least I think so.</p>
<p><span id="more-1283"></span>Essentially- why not make the candidates unlisted? Let&#8217;s say there&#8217;s a candidate running for a position- let&#8217;s call them John Smith. They&#8217;ve been out hard campaigning throughout the week, and you&#8217;ve just gotten canvassed by this candidate on your way to the library. You sit down and decide you should probably vote, so you grab your laptop or a public terminal and load the website up, log in&#8230; and vote.</p>
<p>But here&#8217;s the crucial bit. We use alternative transferable vote for most of our elections, which requires you to put a number by each candidate, ranking them in priority. There are also two meta-options: re-open nominations (RON), and no further preferences (NFP). The way this is presented to you is as a list of all candidates, followed by the NFP/RON options, and you just type in a number by each option in descending order of preference.</p>
<p>The lazy voter just sticks a 1 by the only candidate and hits vote. If we&#8217;re lucky (in terms of improving democracy) they vote for RON as their second preference, or maybe they even vote RON for first preference. In terms of improving democracy by encouraging people to go out and canvass for their position (which is more likely to discourage people running for the sake of running/sticking it on their CV and encourage people who care enough about the position that they&#8217;re willing to go out and get people voting for them), the ideal option is that people vote for people they&#8217;re aware of through canvassing (online or in person) and vote RON for any positions they&#8217;ve not had any contact from people over.</p>
<p>So how can we encourage this over the default impulse to vote for whoever&#8217;s running? Simple- we remove the candidate&#8217;s names from the ballot. <em>&#8220;What on earth is he on?&#8221;</em>, you may well be thinking. Well, here&#8217;s the thing- if we remove people&#8217;s names and require people to actually enter the name of a candidate they want to vote for, people <em>cannot</em> just vote for people because they&#8217;re running; they won&#8217;t know who is running, if anyone. Of course, they can go find out who is running by looking at the candidate and manifesto listings. But this encourages people to find out more about who they&#8217;re voting for, and discourages lazy voting- both good things for democracy. Canvassing gets your name into people&#8217;s heads (and, through flyers etc, into people&#8217;s hands, making the process of voting even easier).</p>
<p>And because our votes are 100% online, the process of typing in someone&#8217;s name can be made easier &#8211; if we want to vote for John Smith, we type J and are immediately autocompleted to John Smith. This entry is now an entry we can put a preference number by (or in perhaps a better UI, we could have draggable lists to make specifying preference easier). This stops people with complex names from being disadvantaged against other candidates in elections.</p>
<p>So with this system, the view that would greet you on any election position vote page would be &#8220;Hello, this is the election for the position of X. Type a candidate&#8217;s name in below, re-order the entries so the option you most want to win is at the top and no further preferences is above any entries you don&#8217;t want to cast a vote for, and press vote&#8221;. Voters would either just click vote to vote for re-open-nominations, or could go look at the manifestos etc and see who&#8217;s running and why, type in the people they want to vote for, drag the markers around, click vote, confirm their vote after seeing a screen detailing their vote, and then they&#8217;re done. Simple as that.</p>
<p>I figure I might do a quick proof of concept system that demonstrates what I&#8217;d imagine a voting UI to look like that used this system. I don&#8217;t see any major downsides to this system, but I&#8217;d love some feedback if I&#8217;m missing something obvious. And if people think it&#8217;s a good idea, who knows- maybe we&#8217;ll get this to a general meeting and see about making it the standard, or at least get it trialled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2011/03/how-to-fix-voting-by-popularity/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Building Backchat, Part 2</title>
		<link>http://www.talkunafraid.co.uk/2010/05/building-backchat-part-2/</link>
		<comments>http://www.talkunafraid.co.uk/2010/05/building-backchat-part-2/#comments</comments>
		<pubDate>Sat, 08 May 2010 13:26:46 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sinatra]]></category>
		<category><![CDATA[stuffisawesome]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=885</guid>
		<description><![CDATA[Or: How I learned to give up on projects. Okay, so, Backchat was hugely interesting as a project. Eventually, I produced a set of graphs using the classifier that showed sentiment over time. These graphs aren&#8217;t too accurate but are fairly good at showing how things were going. However, after this I pretty much dropped [...]]]></description>
			<content:encoded><![CDATA[<p>Or: How I learned to give up on projects.</p>
<p>Okay, so, Backchat was hugely interesting as a project. Eventually, I produced a set of graphs using the classifier that showed sentiment over time. <a href="http://assets.talkunafraid.co.uk/2010/05/frequency.png" rel="lightbox[885]"><img class="alignright size-medium wp-image-886" title="Tweets over Time for Debate #2" src="http://assets.talkunafraid.co.uk/2010/05/frequency-150x300.png" alt="" width="150" height="300" /></a>These graphs aren&#8217;t too accurate but are fairly good at showing how things were going. However, after this I pretty much dropped the project. This was mainly due to exams cropping up and stealing my time away, but also because of how difficult it was to approach a sensible level of accuracy.</p>
<p>In my &#8216;final&#8217; design I ended up using a bigram classifier. I added parsing of the tweets to pull out mentions of words, URLs and users, and then used this to generate my training sets, which improved things a lot. This gave me several thousand tweets for each training set, which worked okay. However, even with this classifier, which was doing a lot better than most others, my results weren&#8217;t very reliable on a tweet-by-tweet basis. Still, it wasn&#8217;t too shoddy, and the graphs on the right are fairly reliable I think in terms of general sentiment.</p>
<p>The AMQP-linked network of processors worked extremely well, and resulted in good throughput- I used two parsers, two classifiers and one classifier loader in the end; I was unable to achieve realtime performance due to network constraints. Sadly my ISP at home had decided that I&#8217;d used too much bandwidth and clamped me down to 128 kilobits a second. That said, thanks to the streaming API I did not (as far as I know, except for a few hundred to ratelimiting) lose any tweets, I just received them out of order and then reconstructed the correct order using the timestamps for each tweet. The machine I was using for this also pretty much went flat out on disk I/O and CPU usage, but was able to keep up- it&#8217;s a fairly old box, only a Pentium 4 with a couple of gigs of RAM.</p>
<p>In any case this was an interesting project and I&#8217;ll be open sourcing the data and source in the coming weeks if anyone wants to have a poke at it. While the debates are now gone and done, I&#8217;m sure people can come up with some great uses for sentiment analysis outside of UK politics.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2010/05/building-backchat-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

