06 Apr 2004
Today I was playing with ctypes. I was getting this error:
Traceback (most recent call last):
File "mb.py", line 4, in ?
mb = cdll.LoadLibrary("/usr/local/lib/libmusicbrainz.so.4")
File "/usr/local/lib/python2.3/site-packages/ctypes/__init__.py",
line 286, in LoadLibrary
return self._dlltype(name)
File "/usr/local/lib/python2.3/site-packages/ctypes/__init__.py", line
222, in __init__
self._handle = LoadLibrary(self._name)
OSError: /usr/local/lib/libmusicbrainz.so.4: undefined symbol:
__gxx_personality_v0
Turns out that I had built libmusicbrainz.so with an older g++. This debian bug report helped, as did this posting on gcc-l.
#python
01 Apr 2004
I’ve been tossing this back and forth. I don’t think Kerry knows what to do in Iraq. Actually I’m not sure if I know where to start with Iraq. But lack of openness kills you a viable candidate for me.
01 Apr 2004
House panel approves copyright bill:
A House of Representatives panel has approved a sweeping new copyright bill that would boost penalties for peer-to-peer piracy and increase federal police powers against Internet copyright infringement.
Go for it. All it means is Mnet, Freenet, and Tor will get the critical mass they need to work. And then what? The Omniscience Protocol will be your only hope then Mr. RIAA and Mr. MPAA, and it’s an April Fool’s joke.
Bring it.
30 Mar 2004
This weekend I found enough RAM to put in one of my boxes called “mp3slave” so that it can run mldonkey and btmanager at the same time again. With all the downloads I have they take up about 300mb and will swap like crazy if they have less than that.
Then the other reason I havn’t been using bittorrent kicked in: slow downloads. I had wondershaper up and running but the way I categorized traffic was bad. I knew everythink p2p related was coming from one machine and one user. So on that machine I put
`iptables -t mangle -A OUTPUT -m owner --uid-owner p2p -j MARK --set-mark 1`
And then got tc to put those packets into their own class
`/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 200 handle 1 fw classid 1:20`
So now all the p2p traffic is stuck in one class using no more than 3/4 of my outgoing traffic.
Oh and one more discovery: my outgoing while on dsl was 256Kbit/s, on cable modem it’s 512Kbit/s. Quite a step up.
14 Mar 2004
I found a way on some other site how to remap caps lock to ctrl in windows xp.
Putting it here so I can get to it later, now that my brain has it remapped in
my head. The two links below are regedit files. I don’t know if I’ve tested
the file that clears the remap, but I’m pretty sure it works.
caps_lock_to_ctrl.reg
clear_remapings.reg