Gesunde Ernährung leicht gemacht

Ein Mann, der etwas Sport treibt, soll etwa 3000 kcal pro Tag zu sich nehmen, so die Empfehlung.
Dank einer Fast-Food Kette ist es ganz einfach diesen Wert zu erreichen: 3000 kcal entsprechen in etwa drei Triple Whoppern (je 1066 kcal). Aber Ernährungsexperten gehen ja noch einen Schritt weiter: Nicht drei große Mahlzeiten sind das Optimum, sondern man solle lieber mehrere Kleinere bevorzugen. Nichts leichter als das: mit fünf Whoppern (je 611 kcal) hat man seinen Tagesbedarf gedeckt.

Wohl bekomm’s!

Howto: Umweltschutz effektiv ausbremsen

Wie nach einem Umzug üblich, habe ich mich bei einem Stromversorger angemeldet. Die Stadtwerke waren dabei das naheliegendste und ich war auch früher schonmal dort Kund. E-Mail hingeschickt, Anmeldung fertig.
Kurz darauf finde ich eine Vertragsbestätigung in meinem Briefkasten, laut der die Stadtwerke mich mit ihrem Standardtarif versorgen, weil ich bei der Anmeldung keinen Tarifwunsch geäußert hatte. Soweit so gut.

Anbei fand ich auch ein Informationsblatt mit einer Auflistung aller Tarife.
Allerdings kann man ja mal schauen um wie viel Ökostrom teurer ist, schließlich haben wir die Erde ja nur von unseren Kindern gemietet. Und jetzt kommt der Hammer: Es gibt einen Wasserkraft-Tarif der sogar billiger ist als der Standardtarif! Gibt’s da einen Haken?
Den ganzen Beitrag lesen »

Spam gets social

Today I found the following comment in my akismet spam folder:

xrumer ist die beste!!!

http://upload.wikimedia.org/wikipedia/—/thumb/—/—/XRumer—screenshot.gif/—XRumer—screenshot.gif*

;)

* link obfuscated

The link showed a screenshot of some software that tends to be a powerful spamming tool for forums/blogs/wikis/guestbooks/linklists/whatevers. Others report that it automates the complete workflow:
Den ganzen Beitrag lesen »

Saving UTF-8 files without BOM using Ultraedit (useful for PHP scripts)

Have you ever tried to convert text files to UTF-8 using UltraEdit? The conversion function works perfectly, but if the files are PHP (up to version 5) scripts you might encounter an error that is caused by PHP’s limited unicode capabilities (see bugs 22108, 42312 and more).

What’s The Problem?
UltraEdit by default writes a so-called Byte-Order-Marker (BOM) at the beginning of each UTF-8 file it saves. The BOM, which consists of three bytes (FF FE BE specifically), allows older programs to detect unicode encoded files. PHP however does not recognize the BOM and passes these three bytes directly to the output. In many cases this is no problem, as most browsers are capable of handling it. But if you want to send HTTP headers from that PHP file – e.g. by a session_start() – they will fail, because “output has already started”. Furthermore I noticed a strange behaviour with IE 6 that did not recognize the BOM and interpreted it as (non-printable) data before the DOCTYPE – which is invalid XHTML and caused IE to render my page wrong. Note that this error was also detected by the W3C XHTML validator, thus it is obviously not a bug in IE, but FF is maybe just a bit more relaxed.
Den ganzen Beitrag lesen »

Ein Kaktus ist eine zusammenhängende einstellige Funktion

II-8 Informationstheorie (3 Pkte)

Ein Kaktus ist eine zusammenhängende einstellige Funktion, bei der die in den Zyklus mündenden Bäume höchstens Gebüsche der Höhe 1 sind, also Bouquets von Stacheln. Auf einer endlichen Menge X, wie lang muss der Zyklus mindestens sein, damit der Kaktus moch starr, d.h. seine Symmetriegruppe die 1, werden kann?

(Aus: Prüfungs-Abschrift “Einführung in die theoretische Informatik” vom 16.09.2003, Aufgabe von Prof. Leeb)