Older blog entries for TazForEver (starting at number 6)

19 Jul 2004 (updated 20 Jul 2004 at 05:59 UTC) »
About C# reflexion
I'm really disapointed about C# reflection.

If you want to retrieve the type, i.e System.Type, of a class, you have to use the typeof operator :
System.Type st = typeof(Stack);
sweet.

But if you want to retrieve the type of an object, you have to use object::GetType().
System.Type st = my_stack.GetType();

This sucks so much ... why typeof can't be applied to an object ? and this ugly method call makes me crazy ... all the C# API is full of these shits, it seems that may be half of the ยต$ hackers were not aware of properties. And guess what, object::GetType() is overloaded ... We're so far from python __class__ attribute :
obj.__class__
KISS

This is a very bad design : it would have been too easy to extend the typeof operator and put everything else in System.Reflection ... i really can't understand why they did this. Even if i think C# is a bit better than Java, it just sucks. I hate these languages that are designed in 6 months... i can't understand ...
emacs tip
I was interested in a feature that is present in a lot of IDE. I don't know if this has a name or if there's a patent on it : when you instert a (, [ or {, a ), [ or } is automatically inserted you don't get unbalanced (), [] or {}

(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

Mirror, sweet mirror

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

python distutils vs. me
i've spend my week to find someone to build and maintain a RPM for pyxdg (Python bindings for FreeDesktop)

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

16 Apr 2004 (updated 16 Apr 2004 at 15:31 UTC) »
openMOSIX + Knoppix
I played with openMOSIX this nigh from 00h00 to 04h00 at university. As i've already worked with openMOSIX, i wanted to try it on live CD : found clusterKNOPPIX and Quantian. It's magic : just insert the CD and that's all, you can work on your cluster. I've worked with 6 Pentium 4 2GHz and run some benchmarks (e.g. cdparanoia + oggenc, etc): it did pretty fast :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

3 Apr 2004 (updated 13 Apr 2004 at 05:47 UTC) »
IEnumerableTools

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 !

2 Apr 2004 (updated 3 Apr 2004 at 00:32 UTC) »
C# Enumerate

Hi.

I'm learning C# since wednesday. The foreach loop statement is pretty usefull but is missing a feature : you can't iterate trought a sequence and get (index, element). I wanted to make something like the Python 2.3 enumerate.

Enumerate.cs
HTMLized Enumerate.cs

New Advogato Features

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!