Vitavonni

Fri, 08 Dec 2006

Fehler in der AVM Fritz!Box bei Multiboot

Die AVM Fritz!Box hat einen lästigen Fehler im DHCP-Server. Leider glaubt AVM, selbst besser zu wissen wie ein DHCP-Server funktionieren muss, statt auf bewährte Standardsoftware zu setzen...

Startet man einen Rechner abwechselnd unter Linux und unter Windows (wie es meine Mutter macht, da Videos unter Windows kaputten Sound haben), so kommt es vor, dass er unter einem der beiden Systeme auf einmal keine IP mehr bekommt über DHCP.

Windows schickt bei DHCP-Anfragen einen "client identifier" mit. Eigentlich komplett wertlos, denn er besteht aus nichts anderem als der MAC-Adresse, die eh schon im Paket drin ist. Linux macht das standardmäßig nicht. Und da die Anfragen in diesem optionalen Teil nicht übereinstimmen, erkennt die Fritz!Box anscheinend den Rechner zunächst wieder, dann findet es aber doch nicht die vorherige Adresse und schickt ihm doch keine...

Abhilfe schafft es, unter Linux explizit einen client-identifier anzugeben, per /etc/dhcp3/dhclient.conf

send dhcp-client-identifier 01:<mac-addresse>;
(die mac-adresse von der verwendeten Netzwerkkarte eintragen!)

Falls es jetzt Windows war, das von der Fritz!Box gerade keine IP mehr bekommen hat, wird es aber hässlich - dann muss man sich noch per telnet auf der Fritz!Box einloggen (und dazu überhaupt erstmal telnet aktivieren) und dort den DHCP-Cache löschen. Mehr auf der Fritzbox Probleme-Seite

[category: /de | Permalink]

British now divide by zero?

British now divide by zero.

Either this "Dr James Anderson, from the University of Reading's computer science department" is a crappy computer scientist (not to speak of his mathematical skills), or this is a case of really bad journalism.

Apart from having some facts wrong (infinity and -infinity aren't numbers, they're symbols outside of the numbers), he basically defines "0/0 = Nullity".

Well, some of us might prefer the name "NaN" for this. "Not a Number". In floating point calculations, 0/0 may (if you've disabled exceptions) return NaN.

So it is nothing new. And it's not particularly useful either, because all it solves is not having to raise an exception, but being able to continue your calculations (which will continue to return NaN) and handle the error at the end. With modern languages designed around exception handling, this of course is rarely ever used anymore.

Some simple calculations you might find convincing:

2 * Nullity = 2 * (0/0) = (2*0)/0 = 0/0 = Nullity

Nullity + 1 = (0/0) + (1/1) = (0*1 + 1*0)/(0*1) = 0/0 = Nullity

Nullity / Nullity = (0/0) / (0/0) = (0/0) * (0/0) = (0*0)/(0*0) = (0/0) = Nullity

So if you ever have Nullity anywhere in your equation the whole equation equals nullity. There is no way to remove Nullity from your results, since even Nullity/Nullity is Nullity.

So you could just call it "I divided by zero, so the result is invalid". Thats probably not as pretty as "Nullity", but as useful.

Some simple calculation, why you must not be allowed to divide by zero (independently from any nullity or whatever):

1*0 = 0 = 2*0     (This equation is right, isn't it?)
1 = 2             (I divided by 0 on both sides, removing the *0 factor)

This works for any number, not only for 1 or 2. So: if you divide by zero, all your numbers are equal (if you keep standard calculus rules such as associativity, distributivity etc. used in above equations). If that is okay for you, then you can divide by zero. I do prefer having 1 life to 0 life. And if 1 = 1000000, can you give me $1000000, I'll give you $1 back tomorrow...

But: Maybe it's just a bad piece of journalism.

He's a computer science guy. Maybe he knows about NaN. Maybe he's just trying to teach kids to use NaN when calculating, instead of teaching them to never divide by zero. There might be didactic benefits from this approach.

The 1200 year old problem (Pythagoras, cited in the article lived 2500 years ago, I have no idea how they made up this number) IS easy to solve, if the result is called "invalid" instead of just having no valid result...

That won't make your airplane land better, if it notices it's current height is Nullity... and what if his heart pacemaker obtains a result of "nullity", what is it supposed to do (as opposed to noticing it miscalculated?)

[Update: he has published papers on this, too. Unbelievable... So above theory that it maybe is good for educational purposes is incorrect. Anyway, journalists shouldn't have reported on this without talking to some serious mathematicians...]

[Update: Zoy, thats why I wrote "if you keep standard calculus rules such as associativity, distributivity, etc. - and I find these exceptionally useful. The last example is not using his rules, but standard math, but treats zero like all other numbers, to show that a canonical extension will just not give useful results. My whole point is NOT that you can't define 0/0=Nullity, but that it's not compatible with the standard calculus we're used to and relying on.]

[category: /en | Permalink]

Memory corruption during sleep

Yesterday I put my laptop to sleep (on AC power) while I went to the christmas party of a company I worked for.

After returning, I couldn't read my email any more; dovecot would segfault after login. Restarting dovecot didn't help, but a reboot helped.

Sounds to me as if during sleep, some kernel cache of the dovecot application was corrupted (read only memory; cached by the kernel, which is why it survived the restart of dovecot).

Whoa, this is like Windows. Rebooting the computer actually fixed something!

[category: /en | Permalink]
Menu
[planet.debian]
[planet.xmlhack]
[planet SELinux]
[munichblogs]
[email]
[RSS 2 feed]
[English RSS 2]
Categories
< December 2006 >
SuMoTuWeThFrSa
      1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930
31      
Archives
2010-Mar
2010-Feb
2010-Jan
2009-Dec
2009-Nov
2009-Oct
2009-Sep
2009-Aug
2009-Jul
2009-Jun
2009-May
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Dec
2008-Nov
2008-Oct
2008-Sep
2008-Aug
2008-Jul
2008-May
2008-Apr
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov
2007-Oct
2007-Sep
2007-Aug
2007-Jul
2007-Jun
2007-May
2007-Apr
2007-Mar
2007-Feb
2007-Jan
2006-Dec
2006-Nov
2006-Oct
2006-Sep
2006-Aug
2006-Jul
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Dec
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2005-Jan
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
Other links:
Swing and the City - Lindy Hop in Munich