I'll soon make a control-based desklets on it.
I'd like to get the C backend used by GNOME battstat applet (supports only ACPI/APM, but i steel haven't been able to contact its maintainer. I think I'll have to provide a full patch to get a chance to get PMU support in ...
LibGTop
I'm working hard on libgtop. Fixed a nasty bug on Linux/Sparc64.
I've been granted access to 5 Solaris (sparcs) machines in a German University, and started to fix Solaris support. I still haven't decided if this will go 2.8.1 or 2.9.0 ...
Today, i've wasted one hour debugging a network app : receive an UDP packet, unpack it and insert data into a PostgreSQL database. Quite simple. The program sending data is written in C.
I was getting a pg error about bad queries. So i added a try...except and a print statement on exception. Everything looked OK, i didn't understand what was wrong. So i opened a psql shell and a python shell, dumped there my query. Ran fine. I was crazy. I spent 15 minutes sending packet and watching my error log ...
Then repr came !(Python lib)
so i replace my print 'Query was %s' % (my_query,) by print 'Query was %s' % (repr(my_query),) ... there were some non-printable chars in my data (C '\0' grrrr /me stupid). repr displays them, str doesn't.
Next time, i'll be more carefull with string and i'll use repr each time i'll need to print data in an error messages.
Benchmarks files and results DNABench.py doesn't provide the time module
time python ~/Python/tmp/DNABench.py found AAAGTAAGCC at 1000000 it took 0 miliseconds found AAATGAAAAAG at 1048960 it took 1071 miliseconds found GAAAAAGTAAG at 1085441 it took 1947 miliseconds found TCTAAAAATAG at 1179694 it took 4075 miliseconds found ACGTGATGTAG at 1204636 it took 4697 miliseconds found AATAGATTCGG at 1548576 it took 13325 miliseconds found TCGTACAAATG at 1576094 it took 14024 miliseconds found CGGACGTGATG at 1599255 it took 14524 miliseconds found ATTCGGACGTG at 1689064 it took 16926 miliseconds found AGATTCGGACG at 1859204 it took 20982 miliseconds found TGATGTAGTCG at 1984902 it took 23993 miliseconds found AAATAGATTCG at 2000000 it took 24339 miliseconds Python regex took 24339 millisecondsreal 0m24.459s user 0m19.622s sys 0m0.067s
time python /home/benoit/Python/tmp/DNABenchPsyco.py found AAAGTAAGCC at 1000000 it took 1 miliseconds found AAATGAAAAAG at 1048960 it took 309 miliseconds found GAAAAAGTAAG at 1085441 it took 631 miliseconds found TCTAAAAATAG at 1179694 it took 1220 miliseconds found ACGTGATGTAG at 1204636 it took 1529 miliseconds found AATAGATTCGG at 1548576 it took 4442 miliseconds found TCGTACAAATG at 1576094 it took 4645 miliseconds found CGGACGTGATG at 1599255 it took 4800 miliseconds found ATTCGGACGTG at 1689064 it took 5372 miliseconds found AGATTCGGACG at 1859204 it took 6490 miliseconds found TGATGTAGTCG at 1984902 it took 7377 miliseconds found AAATAGATTCG at 2000000 it took 7480 miliseconds Python regex took 7480 millisecondsreal 0m7.714s user 0m5.654s sys 0m0.029s
time bin/IronPythonConsole.exe /home/benoit/Python/tmp/DNABenchIron.py Python regex took - millisecondsreal 0m44.932s user 0m0.060s sys 0m0.044s
Ok. obviously Psyco wins. IronPython is damn slow, so my shell experience was more than a feeling.
Btw, as you can see, i have a bug to report because IronPython doesn't find any DNA subsequence ...
System.Type st = typeof(Stack);sweet.
System.Type st = my_stack.GetType();
obj.__class__KISS
(setq skeleton-pair t)
(global-set-key "[" 'skeleton-pair-insert-maybe)
(global-set-key "{" 'skeleton-pair-insert-maybe)
(global-set-key "(" 'skeleton-pair-insert-maybe)
very nice :D
last night, i've installed a debian mirror for x86 on a small server (400MHz / 128 MB)
deb http://paulla.paulla.asso.fr/debian/
i'm pretty happy with it, 'cause it's going pretty fast : 100MB/s for everyone at university !
afaik, it's working :D
i recieved a mail from mandrake cooker maintainer explaining that they don't want the rpm to use the distutils in post intallation ... ok ...
python setup.py --help-commands | grep RPM
bdist_rpm create an RPM distribution
Oh My God !
python setup.py bdist_rpm
# ...
ls dist/
pyxdg-0.5-1.noarch.rpm pyxdg-0.5-1.src.rpm pyxdg-0.5.tar.gz
so pyxdg will get soon into mandrake cooker :D
Artouste : une plateforme libre pour l'enseignement et la recherche
Knoppix-based distro for scientific stududents
I'm working since last summer on a KNOPPIX based distro designed for scientific students. My friend and i have worked a lot to get rid of KDE (excessive memory consumption) in favor of XFCE4 which is also Qter :D
We're having troubles with non-free software (e.g. scilab) but it's getting finalized. We have a big CD usage issue so we only have French locale : btw we are just targetting our own university and may be some other french universities.
French wiki
Pau Logiciels Libres Association
artouste-0.6RC4.iso
artouste-0.6RC4.iso.md5
xmlrpclib.Server("http://www.advogato.org/XMLRPC")
Some of you may have noticed that i have fucked up the blog diary because of an unbalanced quote and bold tag. The result was that the entire page was in bold and that the Edit page was broken (couldn't edit/preview anymore) ... i guess the tag parser failed -- if there is one.
Amen, xmlrpclib saved us ! i've just opened a python shell : login, retrieve my last entry, edit, send and that's all :D
I'm just back from the hairdresser... A cutie was washing my hair while i start thinking of Python2.3 itertools. I think i can map theses functions to C# IEnumerable. It would a good job to get some C# practice. I'll also have to learn NUnit and the C# embedded documentation system. I would give a good overview of C# and may be fun.
3, 2, 1 ... go-mono !
New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!