Firefox add-ons I am using
November 20th, 2010 by celeron55I thought to write these down here just as a remainder for myself. Maybe someone will find some of these useful as well.
I thought to write these down here just as a remainder for myself. Maybe someone will find some of these useful as well.
Lately I’ve been making a InfiniMiner/Minecraft inspired game. You can check it out here:
http://celer.oni.biz/~celeron55/minetest/
You might want to call it a “Minecraft clone”, but that’s quite a rude way of saying it. You know, all of the first person shooters are clones of Quake, too. Get it?
Also, you can visit our IRC channel #minetest @ IRCnet.
I created a search engine randomizer, which redirects searches to a random search engine:
I had to compile python with debugging information in it and had to find out a few packages to install, which were not well documented. What you basically get is:
[pera@humppa Python-2.6.4]$ ./configure --enable-shared --with-pydebug
...
Failed to find the necessary bits to build these modules:
_hashlib _sqlite3 _ssl
bsddb185 bz2 gdbm
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Well, that’s not much said. Here’s what to do on debian or ubuntu (this is likely to work with at least python 2.5 and 2.6) (the patch is from [1]):
$ apt-get build-dep python2.5
$ wget http://celer.oni.biz/~celeron55/random/2010-01/python2.6-disable-old-modules.patch
$ patch -p1 < python2.6-disable-old-modules.patch
$ make
...etc
References:
[1] http://www.lysium.de/blog/index.php?/archives/229-Installing-Python-2.6-on-Ubuntu-8.04.html
[2] http://old.nabble.com/how-to-compile-python3.0-td23213995.html
Here’s a nice graph i generated. It shows the discharge-charge cycle (capacity-time) of my old HP Omnibook XE-3 laptop with a fairly new (6 months old) cheap battery from ebay:
Omnibook XE-3 discharge-charge graph
Charging seems to be a bit slow by today’s standards at more than two hours. The battery is actually a “11.1V 7200mAH 80WH” model, but as you can see, ACPI shows it as being 5400mAh. (I collected the data by reading /proc/acpi/battery/BAT0/state.)
I’m not sure whether the battery really is more like 5400 or 7200. If it’s 5400mAh, the power consumption would be about 15W, and for 7200mAh, it’d be more like 20W. I recall measuring it sucking about 15W from the wall adapter, so it just might be 5400mAh.