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)

Plugin: Recently Updated Posts

The plugin Recently Updated Posts for WordPress finds the posts (and optionally pages) which were modified most recently. You can show them as HTML list or get a PHP array to do treat them how you like it.


Features:

  • Easy to use sidebar widget – no theme modification required
  • Flexible interface for advanced users who want more control


Den ganzen Beitrag lesen »

Plugin: Anonymous WordPress Plugin Updates (English)

Hinweis: Diesen Beitrag gibt es auch (sogar ausführlicher) auf deutsch. Lies mehr über mein Plugin Anonymous WordPress Plugin Update Checks.

What is Anonymous Wordpress Plugin Updates about?

WordPress 2.3 has a new feature to check for plugin-updates automatically. While doing that it sends the following data to a server at wordpress.org:

  • your blog’s url and version number
  • a list of all installed plugins (incl. description etc.)
  • a list of all plugins that are activated

My plugin now replaces wordpress version and your blog’s url, strips most information off the plugin list (except name and version) and sends an empty list of activated plugins.

Den ganzen Beitrag lesen »