April 2009
9 posts
Decoding Geohashes in pure Ruby
Wrote this for work, threw it away again in favour of using an actual gem that someone else will maintain,
but I thought I’d put it here anyway, because it might be useful. Also, the gem is written in C and therefore
hard to deploy sometimes.
#!/usr/bin/env ruby
# pure-ruby geohash decoding function
# default is the example from http://en.wikipedia.org/wiki/Geohash
geohash = ARGV[0] ||...
Delicious bookmarks counter in JavaScript
This is a script I use on a few sites to automatically count the number of
delicious links to various urls. There are a few of these that I’ve found, but
I quite like writing JavaScript like this. Also, mine will combine as many
urls as possible into a single request to the delicious API, because it’s
faster that way.
<!-- jquery -->
<script...
Mark: It's the '00s now right?
Tom: yep.
Tom: still.
Mark: Does that mean I can telecomute my flipping out?
Tom: No, that was early '00s.
Tom: now you just outsource it.
Mark: No, that was the mid '00s
Mark: Now you crowdsource it
Mark: you let your users flip out for you
Things my colo does
Been looking into getting rid of my colo. It costs a non-trivial amount of money, and philosophically I rather feel I should be able to exist in the cloud by now.
It hosts my SVN repository and clones of some of my git repositories.
It serves jerakeen.org
I run irssi in a screen session as an IRC client. This will be hard to replace.
I run some perl-based IRC bots from it.
I back up my mail...
Singularity
Don’t be late for the singularity. Once your mates get their brains uploaded, if you wait a week they’ll have experienced years of virtual time, and will have entirely forgotten about you. And you won’t know any of the in-jokes.
Don’t be early, either. I expect we’ll get the ability to upload brains (let’s assume it’s possible) well before we’ve...