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 are currently expected to run out on April 30, 2011. Bad things are going to be happening then.
I seem to have a thing for plotting things.
Plot also available in SVG format. Both should be updated vaguely daily.
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) are the summer months. The weather does make a pretty big difference.
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 something like Freenet in mostly-free countries like Canada would be Wikileaks, I would think. Well there is some of that — for instance there’s a freesite devoted to the leaked Sarah Palin emails — but the fact of the matter is that Wikileaks exists in the “real” censorable Internet and it hasn’t been censored. Or at least not yet. There’s been posturing that maybe it will be some day, we’ll see. But the fact that it hasn’t been yet takes away a niche market for Freenet.
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 few things, though, and there is a picture album up for the few pictures I’ve taken of it.
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 it was definitely a good one to see, one of the best games of the year. It was a little chilly — around 0°C — but good times anyway. I captured one of the touchdowns!
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.
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 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.
You can use the same password — or the same few passwords — across multiple sites, but this is actually a real security risk and is something that should be avoided if possible.
So I put together a wee bit of Javascript 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. And it requires you to only remember one site.
I post it in case anyone finds it useful or wants to use it for their own purposes. If you do want to use it, follow these steps:
Come up with a base password, hopefully something harder to guess than “galvatron”.
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 echo –n “galvatron” | openssl sha1 to calculate the hash).
In the HTML document, modify the Javascript variable password_hash according to what you just calculated.
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.
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 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 (Front Row) and comes with a remote control, is really small (less than 2cm tall), which makes it more or less the perfect media server.
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.
Check here for screenshots of the new web interface for the media server. 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, downloading CFL games from TSN 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.
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.
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 Rock Point Provincial Park: it’s virtually right where the Grand River empties into Lake Erie and necessitates driving along the Grand River, a fairly nice drive.
I’ve got a grand total of 3 pictures 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.
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 Kobo, 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.
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.
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 Bill C-32 pass, and we all hope it won’t.
The first and most important part is to install rtmpdump, 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.
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 http://watch.tsn.ca/cfl-games-on-demand/week-1-alouettes-vs-roughriders/ (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.
#!/bin/bash match_name=$(echo“$1″|sed‘s,\(http://.*\)\(week-[^/]*\)\(.*\),\2,’) q=0 # get through all the videos (quarters) linked to by the given game (“episode”) for i in $(wget–q–O — “$1″|fgrep‘#clip’|sed‘s/\(.*#clip\)\([0 – 9]*\)\(.*\)/\2/’|uniq) ; do src=$(wget–q–O — “http://esi.ctv.ca/datafeed/flv/urlgenjs.aspx?vid=$i”|sed‘s@\(.*\)\(rtmp://.*\.flv\)\(.*\)@\2@’|tr–d‘\n\r ‘) echo“saving from $src“ echo“saving to $match_name-$q.flv“
rtmpdump –r“$src”–o“$match_name-$q.flv“ q=$(($q + 1)) done # create dummy file so we don’t know beforehand if a game went into overtime if[$q–eq 4 ] ; then touch“$match_name-$q.flv“ fi
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.
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.
I intended to run OpenSolaris 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.