Spiel, Spass, Spannung, Abenteuer

Posted in Helden der Lyrik, Linux, Software | Tagged , , , | Leave a comment

Das mit dem Rabatt üben wir nochmal, oder?

Posted in Helden der Lyrik, Helden der Technik, Mac, Software | Tagged , , | Leave a comment

Slowing down

This has been a very hectic couple of weeks. Not only the beta testing for the (now not so) new Netgear ReadyNAS boxes with ARM architecture: the Duo v2 and the NV+ v2. But also building add-ons for the new interface. Currently available are:

Especially the new web interface was a major obstacle there for in some situations it behaves quite different than the old and trusty Frontview. But now that I’ve got the hang of it I’m quite confident that more stuff is going to follow soon. And of course updates to the ReadyNAS Sparc stuff that has been put on hold for doing the ARM thing ;) Since I’ve just upgraded this site to WordPress 3.3, I might do an add-on for that as well – we’ll see.

For now it’s relaxing time – at least until the end of the week.

Posted in Cloud Computing, Hardware, internet, Linux, ReadyNAS, Software | Tagged , , | 1 Comment

Die Rückkehr des runden Töpfchens

Ich bin wirklich nicht so vermessen zu glauben, dass Lidl aufgrund meiner Nicht-Kaufen-Empfehlung reagiert hat. Aber ich freu’ mich, dass es das Töpfchen wieder gibt und die Qualität auch wieder die alte ist ;)

Posted in Entertainment, the ugly truth | Tagged , | Leave a comment

Fixing PHP-FPM’s SCRIPT_NAME Bug The Brute Force Way

It’s not really news that PHP in it’s CGI or FPM flavor has slight to modest problems getting it’s environment right when using Apache as the front end web server, especially the $_SERVER['SCRIPT_NAME'] variable many scripts rely on to determine their true location on the hard drive. This erratic behavior is heavily documented in bug reports 51983 and 55208. As is common practice for the PHP-FPM team, their approach is to sit still and wait until this bug goes away on it’s own. This approach, proven to work for many politicians, may however not work for those folks, that need a solution to the problem at hand. A quite simple solution that unfortunately requires to recompile PHP is the following brute force patch for PHP 5.3.8:

--- php-5.3.8/sapi/fpm/fpm/fpm_main.c.org   2011-07-18 23:03:44.000000000 +0200
+++ php-5.3.8/sapi/fpm/fpm/fpm_main.c.  2011-11-24 18:29:37.000000000 +0100
@@ -1084,6 +1084,7 @@
 {
    char *env_script_filename = sapi_cgibin_getenv("SCRIPT_FILENAME", sizeof("SCRIPT_FILENAME") - 1 TSRMLS_CC);
    char *env_path_translated = sapi_cgibin_getenv("PATH_TRANSLATED", sizeof("PATH_TRANSLATED") - 1 TSRMLS_CC);
+   char *env_redirect_url = sapi_cgibin_getenv("REDIRECT_URL", sizeof("REDIRECT_URL") - 1 TSRMLS_CC);
    char *script_path_translated = env_script_filename;
    char *ini;
    int apache_was_here = 0;
@@ -1118,6 +1119,16 @@
 
        /* Hack for buggy IIS that sets incorrect PATH_INFO */
        char *env_server_software = sapi_cgibin_getenv("SERVER_SOFTWARE", sizeof("SERVER_SOFTWARE") - 1 TSRMLS_CC);
+                if (env_redirect_url &&
+                        strncmp(env_server_software, "Apache", sizeof("Apache")-1) == 0) {
+                        /*
+                         * If we have an env_redirect_url and the web server is Apache
+                         * it's very likely that env_redirect_url is the one we really
+                         * want
+                         */
+                        env_script_name = _sapi_cgibin_putenv("SCRIPT_NAME", env_redirect_url TSRMLS_CC);
+                }
+
        if (env_server_software &&
            env_script_name &&
            env_path_info &&
@@ -1159,7 +1170,7 @@
        if (CGIG(fix_pathinfo)) {
            struct stat st;
            char *real_path = NULL;
-           char *env_redirect_url = sapi_cgibin_getenv("REDIRECT_URL", sizeof("REDIRECT_URL") - 1 TSRMLS_CC);
+           // char *env_redirect_url = sapi_cgibin_getenv("REDIRECT_URL", sizeof("REDIRECT_URL") - 1 TSRMLS_CC);
            char *env_document_root = sapi_cgibin_getenv("DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT") - 1 TSRMLS_CC);
            char *orig_path_translated = env_path_translated;
            char *orig_path_info = env_path_info;
Posted in Helden der Technik, internet, PHP, Software, the ugly truth | Tagged , , , | Leave a comment

Best Summing-up of Google’s new Search App for iPad

Yep its great and now they can move on to a decent Google+ app for iPad.
–Carlos Rodrigues

[ More ]

Posted in Cloud Computing, Helden der Technik, internet, mobile, the ugly truth | Tagged , , , , , , | Leave a comment

Interessanter Algorithmus

Posted in Helden der Lyrik, internet, Misc, the ugly truth | Tagged , , | Leave a comment

On heavy rotation

… on my Sonos while porting CUPS 1.5.0 to the ReadyNAS ;)

Posted in Entertainment, Misc, Multimedia, Sonos | Tagged , , | Leave a comment

Fourtyfour

’nuff said :)

Posted in Misc | 1 Comment

Nicht-kaufen-Empfehlung der Woche

Früher gab’s bei Lidl mal eine tolle Sache. Nannte sich “Butterschmalz”, verpackt in einem runden Töpfchen, und war total genial geeignet zum braten, kochen, backen.

Das Produkt an sich gibt’s immer noch – es nennt sich sogar gleich. Geändert hat sich aber neben der Verpackung (jetzt in Quaderform) noch was: im Gegensatz zu früher ist der Wasseranteil im Schmalz um gefühlte 1000% gestiegen.

Das Zeug zischt, brutzelt und spritzt jetzt schon, wenn man es in die Pfanne schmeisst. Und es will sich auch schon bei Raumtemperatur in seine flüssige Aggregatsform umwandeln, was die Verarbeitung nicht wirklich leichter macht.

Keine Ahnung, wer hier Gewinnmaximierung betrieben hat, Lidl oder der Zulieferer. Auf alle Fälle ist das Produkt in der aktuellen Form nur für einen Zweck zu empfehlen: so lange bei Lidl im Regal stehen lassen, bis die wieder bessere Qualität liefern.

Posted in Misc, the ugly truth | Tagged , , | 1 Comment

Ich war’s nicht.

Könnte aber durchaus von mir sein ;)

Posted in Misc, the ugly truth | Tagged , , | Leave a comment

External Supervisor of Illegal Services

Posted in Misc | Leave a comment

So nutzt man Facebook richtig

Sehr geehrter Herr Xxxxxx,

sind Sie der Michael Xxxxxx aus der Xxxxxxxxxxstr. 46, in XXXXX Xxxxxxxx-
Wenn ja, ich bin der Allianz-Fachmann von Ihrem Nachbar Gunter Xxxxxxx. Der hat Ihren autositz beschädigt.
Damit ich den Schaden begleichen kann, benötige ich Ihre Bankverbindung.

Mit freundlichen Grüßen
Mathias Xxxxxxx
Allianz Agentur Xxxxxx-Xxxxxxx

Wozu einen Brief schreiben, wenn man doch über Facebook wahllos (die falschen) Leute anschreiben kann?

Posted in Helden der Lyrik, Helden der Technik, internet, Misc | Tagged , , | Leave a comment

Most Legally Encumbered “Hello World” Program

can be found right there, at Oracle’s ;)

Hat tip goes to the Webmink

Posted in Entertainment, Helden der Lyrik, Helden der Technik, Software, the ugly truth | Tagged , | Leave a comment

The Day The Routers Died

Can’t believe I missed that.

I especially like the part about “those who stay silent”.

Posted in Hardware, Helden der Technik, internet, Linux, Mac, Networks, Software, the ugly truth | Tagged , , , , | Leave a comment

Connect a Mac to a Minolta 2490MF

This isn’t a very common problem but since the solution is simple, it may come in handy. Konica-Minolta is one of the rare companies that doesn’t provide Mac drivers for at least some of their printers. Luckily enough not all of their printers are manufactured by Konica-Minolta either. So to print on a MagiColor 2490MF simply install the printer drivers for the Xerox 6115MFP. Works great via both, USB and network connection.

Posted in Hardware, Helden der Technik, Mac, the ugly truth | Tagged , , , , | Leave a comment

This any good?

I consider buying a new (Windows) notebook and found this machine which seems to fit the bill quite nicely. Any experiences with this or ASUS machines in general?

Posted in Misc | 3 Comments

Make your ReadyNAS a Wake-on-LAN Hub

Today an interesting request came up in the ReadyNAS forums: Would it be possible to build an add-on that could send Wake-on-LAN (WoL) packets to any host on your local network? You bet it is ;) Took me a bit time to fiddle in the password protection but here you go:

Version for the x86 ReadyNAS line: ReadyWOL_0.1-readypro-0.1.3.bin
Version for the Sparc ReadyNAS line: ReadyWOL_0.1-readynas-0.1.3.bin

After installation you can wake any machine on your LAN by requesting a special URL from your ReadyNAS. And once you’ve properly configured your router, you can even wake up machines while you’re on the road.

Posted in internet, mobile, ReadyNAS, Software | Tagged , , , , , | 11 Comments

Dropbear for ReadyNAS (Sparc)

DropbearUsing SSH to connect to the ReadyNAS has many advantages for the experienced user. However, OpenSSH is kind of a resource hog which is especially true when being used together with rsync. To make rsync over SSH run a bit smoother I decided to replace OpenSSH with Dropbear on my Sparc line of ReadyNAS boxes. So here’s the latest addition to my add-on collection:

DropbearSSH_0.52-readynas-0.1.1.bin

Posted in Bash, Linux, ReadyNAS, Software | Tagged , , , , | 1 Comment

Google Maps: Almost Off By One (street) Error

Almost Off By One

To be fair: Google is not alone there. All major navigation systems try to send visitors through the gardens of my neighbors because of this small glitch.

Posted in Helden der Technik, internet, Misc, mobile, Software | Tagged , , , | Leave a comment