Candid’s brain

13er-Weisheit VII

Posted on: June 1st, 2008

LidL!

Aufklaerung

Posted on: May 29th, 2008

Koennte mal jemand den ganzen Unterstuflern erklaeren, dass, wenn sie schon den Zwang ihrer schwaebischen Macho-Vaeter, im Stehen pissen zu muessen, uebernehmen, sie dann wenigstens die Klobrille hochklappen und sich danach noch die Haende zu waschen, bevor sie die Tuerklinke damit zu Hunderten beruehren? Ist ja nicht auszuhalten, klebriger, nasser Boden und schwimmende, gelbe Klobrillen.

After spending about 3 hours searching for why I cannot connect to Google Talk neither using tkabber nor using gajim (I want to move my contact list to another server, as the Google Talk integration into Google Mail seems to be completely unusable), I finally found this bug explaining a problem in openssl. Upgrading to openssl-0.9.8g-r1 didn’t help, but downgrading to 0.9.8f immediately fixed the problem. Finally.

Schwaben…

Posted on: May 23rd, 2008

„Kuck mal, die Spinne hat ganz lange Füße!“

Militaer

Posted on: May 15th, 2008

Zu den Feldjaegern wollten die mich einziehen, zum 1. Juli. Nach “Stetten am Kalten Markt”, hoert sich ja nach Metropole an.

Eigentlich hatte ich mit denen ausgemacht, dass sie mich am 1. Oktober erst holen, denn der Musterungsbeamte wollte mich die dritte Ankreuzmoeglichkeit, den 1. Januar, nicht auswaehlen lassen.

Habe also meine Verweigerung gleich weggeschickt und noch dort angerufen. Zwei Monate langten locker, Verweigerungen von Leuten, die bereits einberufen worden seien, wuerden mit erhoehter Prioritaet behandelt werden.

Zwei Tage nachdem ich die Musterung in den Briefkasten geworfen habe, erhalte ich zwei Antwortbriefe (in separaten Umschlaegen): die Einberufung wurde aus “organisatorischen Gruenden” zurueckgenommen, weshalb ich alle Unterlagen zurueckschicken soll. Ausserdem wurde die Verweigerung an das Bundesamt fuer Zivildienst weitergeleitet (laut Telefonat erfolgt die Weiterleitung elektronisch und dauert deshalb “nur” etwa drei Stunden).

Glueck gehabt, waere doch der 1. Juli in den Zeitraum der Donaufahrt (eine Schulveranstaltung, bei der ich als Mentor dabei bin; ich frage mich, ob das ausgereicht haette, den Kriegsdienst um ein paar Tage zu verschieben) gefallen.

Validate e-mail address

Posted on: May 13th, 2008

This PHP code validates an e-mail address according to all rules of the standards I could find:

(preg_match("((?P[-A-Za-z0-9!#\$%&'*+/=?^_`{|}~]|\\\\[\\x00-\\x7f]|[-A-Za-z0-9!#\$%&'*+/=?^_`{|}~]|\\\\[\\x00-\\x7f][-A-Za-z0-9!#\$%&'*+/=?^_`{|}~.]|\\\\[\\x00-\\x7f])*[-A-Za-z0-9!#\$%&'*+/=?^_`{|}~]|\\\\[\\x00-\\x7f]|\"[\\x00-\\x7f]*[\\x00-\\x5b\\x5d-\\x7f]\")@(?P([-a-z0-9]{1,63}\.)*[-a-z0-9]{1,63}))s", $email, $m) && strlen($m["domain-part"]) <= 255)

http://en.wikipedia.org/wiki/E-mail_address has been updated, I don’t know if my code really follows all rules, as I have found there some I hadn’t known. Please correct my code if you know it better.

Abiturienten-Weisheit VI

Posted on: May 1st, 2008

Lernt man auf zwei Klausuren, die jeweils die Hälfte der Endnote ausmachen, halb so viel wie auf eine Klausur, die die ganze Endnote ausmacht, so unterscheiden sich die beiden Endnoten, obwohl dies dem mathematischen Verständnis des Abiturienten widerspricht.

Was fehlt

Posted on: April 23rd, 2008

Knetmasse, die zu einem ohmschen Widerstand bestimmbarer Größe erhärtet.

GnuPG not finding pinentry

Posted on: April 19th, 2008

This is the output of gpg-sign that I’ve recently got:

You need a passphrase to unlock the secret key for
user: "Candid Dauth "
1024-bit DSA key, ID F76ADFE9, created 2005-04-10

gpg: problem with the agent: No pinentry
gpg: no default secret key: General error
gpg: [stdin]: clearsign failed: General error

Hit return to continue.

The pinentry setting in my ~/.gnupg/gpg-agent.conf looked this way:

pinentry-program /usr/bin/pinentry-qt -g

The fix is easy: just remove the -g flag, as GPG newly seems to look for a file called “pinentry-qt -g”, which of course does not exist.

i810 and a second monitor

Posted on: April 5th, 2008

As always I have encountered lots of problems while trying to configure a second monitor on my Intel 855GM card. X just did not start, here is some of the output:

(WW) intel(0): Bad V_BIOS checksum
(II) intel(0): Primary V_BIOS segment is: 0xc000
(EE) intel(0): detecting sil164
(EE) intel(0): Unable to read from DVOI2C_E Slave 112.
(EE) intel(0): Unable to read from DVOI2C_E Slave 236.
(EE) intel(0): ivch: Unable to read register 0x00 from DVOI2C_B:04.
(EE) intel(0): Unable to read from DVOI2C_E Slave 112.
(EE) intel(0): tfp410 not detected got VID FFFFFFFF: from DVOI2C_E Slave 112.
(WW) intel(0): xf86AllocateGARTMemory: allocation of 10 pages failed
        (Cannot allocate memory)

During my research, I have found some interesting projects that could be useful to fix other problems with the Intel driver: i810switch, 915resolution and i855crt.

The common Intel driver fix was the simple solution: downgrade from the intel driver (in my case, both version 2.1.1 and 2.2.1 did not work) to the old i810 driver (the most recent seems to be 1.7.4). Don’t forget to change the driver in your xorg.conf, see mine for comparision.

One issue though is buggy with version 1: XRANDR does not work. As soon as any application (most common for me were the kdesktop kcontrol module and wine) tries to use that, the second monitor gets black and is not recognised anymore. You can still move your mouse (and thus windows) there, but the whole thing does not work like it should. I disabled XRANDR by adding Option "RANDR" "disabled" to the Extensions section.