<?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>Wizardlike research &#187; Personal</title>
	<atom:link href="http://wizardlike.ca/blog/category/personal/feed/" rel="self" type="application/rss+xml" />
	<link>https://wizardlike.ca/blog</link>
	<description>Computer geekery</description>
	<lastBuildDate>Sat, 19 Mar 2011 15:25:31 +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>Watch the Internet die</title>
		<link>https://wizardlike.ca/blog/2011/03/watch-the-internet-die/</link>
		<comments>https://wizardlike.ca/blog/2011/03/watch-the-internet-die/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 15:25:31 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">https://wizardlike.ca/blog/?p=339</guid>
		<description><![CDATA[
That's a plot I've been making based on this data. If the y-axis doesn't make any sense to you, this represents the number IP address blocks each of the world's five Regional Internet Registries has left to assign to Internet users. North America is looking pretty safe for a while (hooray). Asia and Australia ...]]></description>
			<content:encoded><![CDATA[<p><img src="https://wizardlike.ca/files/ipv4.png" style="width:550px;" /><br />
That’s a plot I’ve been making based on <a href="http://www.potaroo.net/bgp/ipv4-stats/allocated-all.html">this data</a>. If the y-axis doesn’t make any sense to you, this represents the number IP address blocks each of the world’s five Regional Internet Registries has left to assign to Internet users. North America is looking pretty safe for a while (hooray). Asia and Australia are currently expected to run out on April 30, 2011. Bad things are going to be happening then.</p>
<p>I seem to have a thing for plotting things.</p>
<p>Plot also available in <a href="https://wizardlike.ca/files/ipv4.svg">SVG format</a>. Both should be updated vaguely daily.</p>
<p class="wp-flattr-button"></p> <p><a href="https://wizardlike.ca/blog/?flattrss_redirect&amp;id=339&amp;md5=08848f5074eb9bdb776d13532c77c384" title="Flattr" target="_blank"><img src="https://wizardlike.ca/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2011/03/watch-the-internet-die/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fuel consumption</title>
		<link>https://wizardlike.ca/blog/2011/03/fuel-consumption/</link>
		<comments>https://wizardlike.ca/blog/2011/03/fuel-consumption/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 00:53:36 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">https://wizardlike.ca/blog/?p=335</guid>
		<description><![CDATA[The following plot shows our car's fuel consumption over the past 16 months. It's a pretty old car but is still doing kind of mostly okay.

Of note are the two local maxima at the left and right of the plot which are during the winter months. The minimum between fill-ups 10 and 20 (roughly) ...]]></description>
			<content:encoded><![CDATA[<p>The following plot shows our car’s fuel consumption over the past 16 months. It’s a pretty old car but is still doing kind of mostly okay.<br />
<a href="https://wizardlike.ca/blog/wp-content/uploads/2011/03/fuel.png"><img src="https://wizardlike.ca/blog/wp-content/uploads/2011/03/fuel.png" style="width:550px;" /></a><br />
Of note are the two local maxima at the left and right of the plot which are during the winter months. The minimum between fill-ups 10 and 20 (roughly) are the summer months. The weather does make a pretty big difference.</p>
<p class="wp-flattr-button"></p> <p><a href="https://wizardlike.ca/blog/?flattrss_redirect&amp;id=335&amp;md5=40d6cd9d3ebc15af3f95491df2c1e9ce" title="Flattr" target="_blank"><img src="https://wizardlike.ca/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2011/03/fuel-consumption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bowling</title>
		<link>https://wizardlike.ca/blog/2010/12/bowling/</link>
		<comments>https://wizardlike.ca/blog/2010/12/bowling/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 01:13:38 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[holiday]]></category>
		<category><![CDATA[Jasna]]></category>

		<guid isPermaLink="false">https://wizardlike.ca/blog/?p=330</guid>
		<description><![CDATA[A video of Jasna bowling the other night.

]]></description>
			<content:encoded><![CDATA[<p>A video of Jasna bowling the other night.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/D_kHu-Ho44U?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/D_kHu-Ho44U?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p class="wp-flattr-button"></p> <p><a href="https://wizardlike.ca/blog/?flattrss_redirect&amp;id=330&amp;md5=bfdf3e6da677560f50f14da49d892040" title="Flattr" target="_blank"><img src="https://wizardlike.ca/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/12/bowling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freenet and Wikileaks</title>
		<link>https://wizardlike.ca/blog/2010/11/freenet-and-wikileaks/</link>
		<comments>https://wizardlike.ca/blog/2010/11/freenet-and-wikileaks/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 00:24:24 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">https://wizardlike.ca/blog/?p=326</guid>
		<description><![CDATA[Several months ago I wrote about Freenet. It's technically neat but I was underwhelmed by its utility, thinking an uncensorable network isn't very necessary in today's Internet. I wrote:The primary value of some­thing like Freenet in mostly-​​free coun­tries like Canada would be Wikileaks, I would think. Well there is some of that — for instance there’s ...]]></description>
			<content:encoded><![CDATA[<p>Several months ago <a href="http://wizardlike.ca/blog/2010/01/freenet/">I wrote about Freenet</a>. It’s technically neat but I was underwhelmed by its utility, thinking an uncensorable network isn’t very necessary in today’s Internet. I wrote:<br />
<blockquote>The primary value of some­thing like Freenet in mostly-​​free coun­tries like Canada would be Wikileaks, I would think. Well there is some of that — for instance there’s a frees­ite devoted to the leaked Sarah Palin emails — but the fact of the mat­ter is that Wikileaks exists in the “real” cen­sor­able Inter­net and it hasn’t been cen­sored. Or at least not yet. There’s been pos­tur­ing that maybe it will be some day, we’ll see. But the fact that it hasn’t been yet takes away a niche mar­ket for Freenet.</p></blockquote>
<p>Considering <a href="https://twitter.com/wikileaks/statuses/9609091915718656">the reaction by the world’s governments to the most recent Wikileaks leak</a>, I may have to reconsider Freenet’s role a little bit.</p>
<p class="wp-flattr-button"></p> <p><a href="https://wizardlike.ca/blog/?flattrss_redirect&amp;id=326&amp;md5=4ce76caca366370ff1f37403f86e98c9" title="Flattr" target="_blank"><img src="https://wizardlike.ca/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/11/freenet-and-wikileaks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Saskatoon</title>
		<link>https://wizardlike.ca/blog/2010/09/saskatoon/</link>
		<comments>https://wizardlike.ca/blog/2010/09/saskatoon/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 19:38:24 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[holiday]]></category>
		<category><![CDATA[Jasna]]></category>

		<guid isPermaLink="false">https://wizardlike.ca/blog/?p=321</guid>
		<description><![CDATA[Jasna and I are in Saskatchewan for a couple days to celebrate our 4th anniversary: usually we take a little trip or something to celebrate our anniversary. We haven't really gone out and done and seen a whole lot, as is our nature: mostly we take the time to hang out together without other ...]]></description>
			<content:encoded><![CDATA[<p>Jasna and I are in Saskatchewan for a couple days to celebrate our 4th anniversary: usually we take a little trip or something to celebrate our anniversary. We haven’t really gone out and done and seen a whole lot, as is our nature: mostly we take the time to hang out together without other distractions. We have done a <i>few</i> things, though, and there is a <a href="https://wizardlike.ca/pictures/Saskatoon">picture album up</a> for the few pictures I’ve taken of it.</p>
<p>The highlight so far was our rushed trip last night to Regina to see the Rider game: we almost didn’t make it in time to pick up the tickets. It was Jasna’s first time seeing a live CFL game and <a href="http://cfl.ca/video/index/id/14157?autostart=true">it was definitely a good one to see, one of the best games of the year</a>. It was a little chilly—around 0°C—but good times anyway. I captured one of the touchdowns!<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ep6SE8rPmbk?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ep6SE8rPmbk?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>Anyway today we’re doing pretty much nothing. We went for a walk around the river this morning and we’re going to take a river cruise later this afternoon, but other than that not much of anything. It’s pretty awesome.</p>
<p class="wp-flattr-button"></p> <p><a href="https://wizardlike.ca/blog/?flattrss_redirect&amp;id=321&amp;md5=0ddbc71f4c682edce4434b0583afd68e" title="Flattr" target="_blank"><img src="https://wizardlike.ca/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/09/saskatoon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Online portable password manager</title>
		<link>https://wizardlike.ca/blog/2010/08/online-portable-password-manager/</link>
		<comments>https://wizardlike.ca/blog/2010/08/online-portable-password-manager/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 14:33:33 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">https://wizardlike.ca/blog/?p=316</guid>
		<description><![CDATA[I've posted this elsewhere, but I feel comfortable now posting it publicly.

There's this problem of having to have a password for every website you have an account with, which is a serious problem if you have an account on a lot of sites. OpenID was supposed to solve this problem by allowing you to---securely---share ...]]></description>
			<content:encoded><![CDATA[<p>I’ve posted this elsewhere, but I feel comfortable now posting it publicly.</p>
<p>There’s this problem of having to have a password for every website you have an account with, which is a serious problem if you have an account on a lot of sites. <a href="http://en.wikipedia.org/wiki/OpenID">OpenID</a> was supposed to solve this problem by allowing you to—securely—share one account across multiple sites, but never took off due to a chicken-and-egg problem: almost no one uses OpenID which means almost no sites feel the need to support it. Most web browsers will store passwords for you, but that doesn’t do you any good if you want to access one of your accounts from a different computer.</p>
<p>You can use the same password—or the same few passwords—across multiple sites, but <a href="http://www.businessinsider.com/mark-zuckerbergs-and-privacy-crimes-2010-3">this is actually a real security risk</a> and is something that should be avoided if possible.</p>
<p><a href="https://wizardlike.ca/private/password-test.html">So I put together a wee bit of Javascript</a> to help manage passwords. You have to remember one base password—which should not be from the dictionary, but otherwise has no constraints—and from that password it will automatically generate what your particular password is for any given site. Your base password is never transmitted across the network. The generated passwords should hopefully meet the criteria of any site you come across: they all contain one uppercase letter, one punctuation mark and one numeric digit. If some unscrupulous website owner gets your password to one site, it is veritably intractable for them to determine your base password or your password to any other site. <i>And</i> it requires you to only remember one site.</p>
<p>I post <a href="https://wizardlike.ca/private/password-test.html">it</a> in case anyone finds it useful or wants to use it for their own purposes. If you <i>do</i> want to use it, follow these steps:
<ol>
<li><a href="https://wizardlike.ca/private/password-test.html">Steal my HTML document</a> and change around the style, etc., to suit your needs.</li>
<li>Find a place to host the HTML document.</li>
<li>Come up with a base password, hopefully something harder to guess than “galvatron”.</li>
<li>Determine the SHA1 hash of your base password. You can find online SHA1 calculators, but from a security standpoint it would be preferable to calculate the hash on your home computer (e.g., on a Unix-based operating system with OpenSSL installed, one can do something like <tt>echo –n “galvatron” | openssl sha1</tt> to calculate the hash).</li>
<li>In the HTML document, modify the Javascript variable <tt>password_hash</tt> according to what you just calculated.</li>
</ol>
<p>The script will then give you passwords that you should use for sites you sign up for in the future, which you will then never have to remember.</p>
<p class="wp-flattr-button"></p> <p><a href="https://wizardlike.ca/blog/?flattrss_redirect&amp;id=316&amp;md5=e5db182bffcddddbe70131a90841d2c3" title="Flattr" target="_blank"><img src="https://wizardlike.ca/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/08/online-portable-password-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our media server</title>
		<link>https://wizardlike.ca/blog/2010/07/our-media-server/</link>
		<comments>https://wizardlike.ca/blog/2010/07/our-media-server/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 14:52:35 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[silly]]></category>

		<guid isPermaLink="false">http://wizardlike.ca/blog/?p=309</guid>
		<description><![CDATA[I can finally show off my weekend project! Well okay the vestiges of it started a couple weekends ago and it bled into this morning by a couple hours, but I think it still counts as a weekend project.



Jasna and I don't have cable or an antenna for our TV, which means we download ...]]></description>
			<content:encoded><![CDATA[<p>I can finally show off my weekend project! Well okay the vestiges of it started a couple weekends ago and it bled into this morning by a couple hours, but I think it still counts as a weekend project.</p>
<p><a href="http://wizardlike.ca/pictures/Nerd%20stuff/Media%20server/"><img src="http://wizardlike.ca/pictures/albums/Nerd%20stuff/Media%20server/summary-page.png" style="width:550px;" /></a></p>
<p>Jasna and I don’t have cable or an antenna for our TV, which means we download everything we watch, or borrow it from friends on rare occasions. My MacBook was starting to run near the end of its useful life as my main work computer—the trackpad was becoming unusable which meant I couldn’t depend on it when travelling—but it’s still got some life in it as a server. It was wireless networking (no cables to string around), uses very little power, is completely silent, comes with media software (<a href="http://en.wikipedia.org/wiki/Front_Row_%28software%29">Front Row</a>) <i>and</i> comes with a remote control, is really small (less than 2cm tall), which makes it more or less the perfect media server.</p>
<p>The only downside is it was a pain to get shows onto it to watch, as you have to search for the shows manually, download them, then copy them manually over to the server. So, I decided to make a web interface.</p>
<p><a href="http://wizardlike.ca/pictures/Nerd%20stuff/Media%20server/">Check here for screenshots of the new web interface for the media server</a>. EasyNews, our Usenet provider, provides very handy services like global searches, thumbnails and AutoUnRARing. A big benefit to this is not having to wait until something has finished downloading it before watching it. So far I’ve got services for downloading from Usenet—which is where we get almost all of our TV shows to watch, <a href="http://wizardlike.ca/blog/2010/07/watching-cfl-games-on-linux/">downloading CFL games from TSN</a> and just uploading individual files from your browser. At some point I need to set up scheduling so that it automatically downloads new episodes of shows when they’re released, but I guess that’s for another weekend.</p>
<p>I’m kind of embarrassed at how proud I am to have actually finished it in a weekend like I’d planned, especially considering I haven’t done any web development in years and years. The astute of you may have noticed I used straight-up CGI instead of technologies the cool kids are using: no love from me for PHP or RoR or Ajax or anything. Since I haven’t put any password security in yet—that’s for another weekend yet—and the box is publicly addressable via IPv6 I’ve had access to the web interface to just within our local network, but if IPv6 takes off some day it’ll be cool to be able to download movies while I’m away from home.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/07/our-media-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Rock Point</title>
		<link>https://wizardlike.ca/blog/2010/07/rock-point/</link>
		<comments>https://wizardlike.ca/blog/2010/07/rock-point/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 22:01:32 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[holiday]]></category>
		<category><![CDATA[Jasna]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://wizardlike.ca/blog/?p=305</guid>
		<description><![CDATA[Jasna and I just got back today from a spur-of-the-moment camping trip. We'd been wanting to have a couple days just for the two of us for a while now, and our schedules aligned, so why not? We thought camping would be more fun and relaxing than anything else, and I've wanted to see ...]]></description>
			<content:encoded><![CDATA[<p>Jasna and I just got back today from a spur-of-the-moment camping trip. We’d been wanting to have a couple days just for the two of us for a while now, and our schedules aligned, so why not? We thought camping would be more fun and relaxing than anything else, and I’ve wanted to see the towns along the Grand River forever, so we combined the two and went to <a href="http://en.wikipedia.org/wiki/Rock_Point_Provincial_Park">Rock Point Provincial Park</a>: it’s virtually right where the Grand River empties into Lake Erie and necessitates driving along the Grand River, a fairly nice drive.</p>
<p>I’ve got <a href="http://wizardlike.ca/pictures/Rock%20Point/">a grand total of 3 pictures</a> from the trip and I’m happy with that. It wasn’t the sort of trip to you take to take pictures of. Apparently the park is known for its fossils, but we didn’t go hunting for those, either. We went down to the beach a few times—twice for moonlight swims—and spent most of the rest of our time in our campsite sitting around and talking and enjoying one another. We got a nice campsite with fairly good privacy and shade, and none of the campsites directly around us were taken. It was pretty much the perfect couple of days, only because we were together.</p>
<p>Jasna bought me an e-reader! She actually bought it before we’d planned on going on the trip, but I guess this seemed a good time to give it to me, and give me an easier time reading. It’s a <a href="http://www.koboereader.com/">Kobo</a>, which I adore. I’m actually a bit of a freak in that I’m somewhat anti-paper: I often prefer reading on screen to reading on paper; maybe it’s a side-effect of growing up with a computer. The Kobo has a really beautiful display and is easier for me to read than anything I’ve ever read from, CRT, LCD or paper. The display can’t refresh very often—maybe once a second or something like that—and it’s super low-powered which makes it unsuitable for anything but reading, which suits me fine. I have only two complaints: firstly, that the font size is typically too big, but that’s a criticism of the books that are formatted for it, not the device itself; and secondly, that it’s really difficult to skip forward or backward a lot of pages at a time. With paper it’s easy to do a binary search for the page you want, but the Kobo seems determined to make you do a linear search.</p>
<p>I did bring my laptop, but only so I could do just enough work to make my guilt levels fall to the point where I could genuinely relax. It turns out that’s about half an hour, ha! I’m still more or less pleased with how the thesis is progressing.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/07/rock-point/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watching CFL games on Linux</title>
		<link>https://wizardlike.ca/blog/2010/07/watching-cfl-games-on-linux/</link>
		<comments>https://wizardlike.ca/blog/2010/07/watching-cfl-games-on-linux/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 23:08:57 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://wizardlike.ca/blog/?p=301</guid>
		<description><![CDATA[This article is for you if you're a Canadian football fan, you don't have cable TV, you use an operating system which doesn't run Microsoft Silverlight (such as Linux) and you can't afford to go out to the bar all the time to watch football games. I may have described only one person (myself), ...]]></description>
			<content:encoded><![CDATA[<p>This article is for you if you’re a Canadian football fan, you don’t have cable TV, you use an operating system which doesn’t run Microsoft Silverlight (such as Linux) and you can’t afford to go out to the bar all the time to watch football games. I may have described only one person (myself), but just in case there’s another person out there, I will describe to you how to watch your football games. I should say that while I’m no lawyer, my understanding is that what I describe here could become illegal should <a href="http://copyright.michaelgeist.ca/bill-c-32">Bill C-32</a> pass, and we all hope it won’t.</p>
<p>The first and most important part is to install <a href="http://rtmpdump.mplayerhq.hu/">rtmpdump</a>, a utility which you will use to actually download the video stream. I’m using a relatively ancient version of rtmpdump and I don’t think it matters particularly which version you use.</p>
<p>From there all that is needed is a way to get the rtmp URLs of the game you want. To use the script below, you give it a link to a game you want to download—something of the form <tt>http://watch.tsn.ca/cfl-games-on-demand/week-1-alouettes-vs-roughriders/</tt> (one of the best football games I’ve seen in a long time, incidentally)—as an argument. It then extracts the clip IDs for each quarter (including overtime, if needed), determines the rtmp URL for each video clip, and downloads the video files in sequence.</p>
<div class="codesnip-container" >
<div class="bash codesnip" style="font-family:monospace;"><span class="co0">#!/bin/bash</span><br />
<span class="re2">match_name</span>=$<span class="br0">(</span><span class="kw3">echo</span> <span class="st0">“$1″</span> <span class="sy0">|</span> <span class="kw2">sed</span> <span class="st_h">‘s,\(http://.*\)\(week-[^/]*\)\(.*\),\2,’</span><span class="br0">)</span><br />
<span class="re2">q</span>=<span class="nu0">0</span><br />
<span class="co0"># get through all the videos (quarters) linked to by the given game (“episode”)</span><br />
<span class="kw1">for</span> i <span class="kw1">in</span> $<span class="br0">(</span><span class="kw2">wget</span> <span class="re5">–q</span> <span class="re5">–O</span> — <span class="st0">“$1″</span> <span class="sy0">|</span> <span class="kw2">fgrep</span> <span class="st_h">‘#clip’</span> <span class="sy0">|</span> <span class="kw2">sed</span> <span class="st_h">‘s/\(.*#clip\)\([0–9]*\)\(.*\)/\2/’</span> <span class="sy0">|</span> <span class="kw2">uniq</span><span class="br0">)</span> ; <span class="kw1">do</span><br />
        <span class="re2">src</span>=$<span class="br0">(</span><span class="kw2">wget</span> <span class="re5">–q</span> <span class="re5">–O</span> — <span class="st0">“http://esi.ctv.ca/datafeed/flv/urlgenjs.aspx?vid=<span class="es2">$i</span>”</span> <span class="sy0">|</span> <span class="kw2">sed</span> <span class="st_h">‘s@\(.*\)\(rtmp://.*\.flv\)\(.*\)@\2@’</span> <span class="sy0">|</span> <span class="kw2">tr</span> <span class="re5">–d</span> <span class="st_h">‘\n\r ‘</span><span class="br0">)</span><br />
        <span class="kw3">echo</span> <span class="st0">“saving from <span class="es2">$src</span>“</span><br />
        <span class="kw3">echo</span> <span class="st0">“saving to <span class="es2">$match_name</span>-<span class="es2">$q</span>.flv“</span><br />
        rtmpdump <span class="re5">–r</span> <span class="st0">“<span class="es2">$src</span>”</span> <span class="re5">–o</span> <span class="st0">“<span class="es2">$match_name</span>-<span class="es2">$q</span>.flv“</span><br />
        <span class="re2">q</span>=$<span class="br0">(</span><span class="br0">(</span><span class="re1">$q</span> + 1<span class="br0">)</span><span class="br0">)</span><br />
<span class="kw1">done</span><br />
<span class="co0"># create dummy file so we don’t know beforehand if a game went into overtime</span><br />
<span class="kw1">if</span> <span class="br0">[</span> <span class="re1">$q</span> <span class="re5">–eq</span> 4 <span class="br0">]</span> ; <span class="kw1">then</span><br />
        <span class="kw2">touch</span> <span class="st0">“<span class="es2">$match_name</span>-<span class="es2">$q</span>.flv“</span><br />
<span class="kw1">fi</span></div>
</div>
<p>It’s worked well for me but there are certainly no guarantees about it. CTV could break it easily if they so wanted (if you’re reading this, CTV, please don’t be meanies. Let’s be BFFs). The only unfortunate downside to it is that CTV potentially loses out on some advertising revenue. My recommendation is to stare extra hard at the commercials to make up for it on the days you do go out to the bar to watch a game. Heading out to the stadium—at the very least whenever the Riders are in town—would also be a nice way to support the league and TSN for putting games up online.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/07/watching-cfl-games-on-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A new laptop and a new look at Linux</title>
		<link>https://wizardlike.ca/blog/2010/06/a-new-laptop-and-a-new-look-at-linux/</link>
		<comments>https://wizardlike.ca/blog/2010/06/a-new-laptop-and-a-new-look-at-linux/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 22:55:12 +0000</pubDate>
		<dc:creator>Mike Burrell</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">http://wizardlike.ca/blog/?p=289</guid>
		<description><![CDATA[I bought a new laptop a couple days ago. For the past 6 years I've been using Macs just about exclusively; for the past 3 years or so it's been my MacBook that's been my main machine. However, for the past several months I've been increasingly annoyed with the MacBook: the case is cracking; ...]]></description>
			<content:encoded><![CDATA[<p>I bought a new laptop a couple days ago. For the past 6 years I’ve been using Macs just about exclusively; for the past 3 years or so it’s been my MacBook that’s been my main machine. However, for the past several months I’ve been increasingly annoyed with the MacBook: the case is cracking; the trackpad button is sticking; and, something which matters to very people other than me, Apple has been slow in fixing some bugs and the source code wasn’t available for me to fix them myself. So, after much deliberation, a couple days ago I picked up a Toshiba Satellite, on sale and marked down even further because it was a demo model. According to the specifications it’s better than a modern MacBook in pretty well every way, and at about one quarter the price. The only downside was it didn’t run OS X, which I was becoming disillusioned with anyway.</p>
<p>I intended to run <a href="http://opensolaris.org">OpenSolaris</a> on it because I quite like the technologies in OpenSolaris. Unfortunately OpenSolaris’s hardware support is very poor, but the laptop I bought looked like it had the highest chances of working, and it was very highly rated by Consumer Reports as well. After trying various OpenSolaris distributions and developer builds, I’ve come to the conclusion that it’s not going to work, at least not yet. It was probably naïve of me to think I could get my wireless card working under OpenSolaris.</p>
<p><span id="more-289"></span>No matter, though! My back-up plan was to run Linux. The last time I ran GNU/Linux as my primary operating system was in 2004. I ran Slackware with a custom built window manager and custom, well, everything, and I stayed willfully ignorant of what was happening with “mainstream” Linux. When it came time to install Linux on this laptop, I went with Ubuntu—as mainstream a Linux distribution as you can get—just because I wanted DVD burning software <i>immediately</i> so I could try yet another OpenSolaris install CD, and Ubuntu seemed like it would have the quickest install time.</p>
<p>I think I’m going to stick with Ubuntu. Setting up <i>everything</i> was so mind-blowingly painless it hardly even feels like Linux anymore. I’m perversely a little mournful about that. I dare say Ubuntu is easier to use (for me) and easier to set up (for me) than OS X is. Wireless, email, instant messaging, Flash, Dropbox, all my development tools, everything is cohesive and is set up in a matter of seconds; it all feels immediately comfortable. Even ZFS, my one source of geek pride, my one deviation from “mainstream” Linux, the one reason I wanted to install OpenSolaris in the first place: set up in a couple seconds and working flawlessly, and still light-years beyond OS X’s Time Machine. Maybe Ubuntu isn’t easier than OS X for the general public, but I’m not the general public so that doesn’t matter much to me.</p>
<p>The plan is to eventually retire the MacBook and turn it into a full-time media player (it’s currently only a part-time media player). I don’t think it’s going to be too long before Ubuntu is my full-time operating system. I never thought I’d say that.</p>
<p class="wp-flattr-button"></p> <p><a href="https://wizardlike.ca/blog/?flattrss_redirect&amp;id=289&amp;md5=8a037bbe71a41d2fc7ed80cbc8b05eb4" title="Flattr" target="_blank"><img src="https://wizardlike.ca/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://wizardlike.ca/blog/2010/06/a-new-laptop-and-a-new-look-at-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
