Lars Wirzenius: Stolen laptop, call home!
The Finnish computer magazine Tietokone has
an article on stolen laptops calling home
and the police using this to track down thieves.
The article reads like a press release from the proprietary software
company mentioned in the article, although perhaps that's just because
it only mentions that one company. However, the main point is that
by having the stolen laptop report its IP number, police can trace
it and recover it.
In the interest of helping Unix users have similar protection,
I provide you with the following
crontab snippet:
*/15 * * * * wget -q -O /dev/null http://your.home.page/call-home; true
That page does not need to exist, you just need to be able to access
the httpd logs for the web server it accesses to be able to find
out the IP number. By using a distinctive URL, you make it easier to
grep.
Perhaps someone would like to turn that into a Debian package? Add some
debconf magic to specify the URL to access, and it should be easily
usable. For all the people without a web site of their own, perhaps
there would be people interested in operating a server people could use
for that. (There's some privacy issues involved, but it's an opt-in
thing, obviously, so that lessens them.)
Now, to be fair, the proprietary software package mentioned does more
than my cron job. For example, they can take control of the system remotely,
and wipe it out and make it inoperable. Personally, I don't want that,
since it's a huge security risk, but if that kind of thing interests
you, you could enhance the cron job a bit.
For example, it could download the file and verify that it's
GnuPG signed with your key, and if so, execute it as a shell script.
One of the risks with this is that if anyone ever happens to get a
copy of a file you've made like that, say, your web hosting provider,
they can put it there whenever they want to, and boom goes your laptop.
I'm sure there are ways around that, but if you want the system, you'll
have to solve that yourself.
I've made a new release of the
This is the third plugin I have been working on for Rails - It's the one that still needs most work to be fully usable (for what I originally envisioned it), but is almost there - I have not touched it (nor the other two I recently presented here, 
I'm pretty impressed with the new
For a Debian package creation seminar:
Qt 4.4.0 rc1 was uploaded yesterday to unstable. It was previously available in experimental.
A rework of the packages was done :
After my
Learning that the Linux Professional Institute offered a chance for taking exams at a reduced price during this year's FOSDEM, I decided to take a shot at the level 1 exams.<br />
I was fairly occupied in the period before FOSDEM when I took that decision, but given that I've been using Linux heavily for over a decade, and after reviewing the objectives, I figured that I should be able to pass it without specific preparation.<br />
<br />
Yesterday I received an email that indeed I did, so now I am officially a Junior level Linux professional .<br />
I guess I should take a look at getting LPIC-2 sometime. 
There are many reasons to hate Java, it's like shooting fish in a barrel.
But in the last weeks I found some more, half of them aren't even fault of the
standard API (the usual culprit), and I want to share my frustration with the
rest of the world.
It has no unsigned types
Say you want to manage binary protocols, files, etc. You'd like to
store and retrieve bytes and words in machine format, of course, but
you'll have a hard time finding the right value because you can't have
a goddamn unsigned byte!
So if you want —for example— to read the length of a string
which can be bigger than 127 as a single byte, you'll end doing some
aberration like this: