Blog nun direkt auf berhorn.de

Posted by Ansgar Berhorn Mon, 23 Apr 2007 19:26:00 GMT

Die Seiten meines Blog sind nun direkt auf der Domain berhorn.de zu finden:

berhorn.de

Neue Artikel erscheinen dort. Ansonsten bleibt aber alles beim alten und die Umleitung erfolgt weitestgehend automatisch. Alle Links hier führen ebenfalls auf berhorn.de.

Microsoft ist tot

Posted by Ansgar Berhorn Sat, 21 Apr 2007 13:49:00 GMT

Paul Graham – ein Maler, Informatiker und Startupmillionär aus den USA – hat ein interessantes Essay über den Untergang von Microsoft veröffentlicht. Er stößt mit etwas Blickwinkel in das gleiche Horn wie ich in meinem Artikel über meine Vista-Antipathie . Bei 37Signal in Chicago hält man eher zu Microsoft und will nicht mehr lange auf Yahoo wetten. Microsoft sicher noch einige Zeit den Firmenkundenmarkt im Griff und kann da ordentlich Geld verdienen. Aber gute neue Leute bekommt man in Redmond schon seit einigen Jahren nicht mehr und wirkliche Innovationen wie der Tablet-PC gehen bei Microsoft im Marketing-Scharmützel unter. Daher würde ich wenn ich die Wahl zwischen Yahoo und Microsoft-Aktien hätte, auch lieber zu Yahoo greifen.

Simplify lighty's configfiles with includes

Posted by Ansgar Berhorn Sun, 15 Apr 2007 11:35:00 GMT

Jan Kneschke, the creator of lighttpd gives some hints on simplifying the configfiles of the lighttpd with inlcudes. The idea can be extended to include also a redirection from “domain.tld” to “www.domain.tld” or vice versa.

A generic incl-redirect-subdomain.conf:
$HTTP["host"] != servername {
    url.redirect = (
        "^/(.*)" => "http://" + servername +"/$1",
    )
}
uses the variable “servername” to distinguish where all requests different to the main domain shall be redirected. Jan’s example can then be extended to with an include:
$HTTP["host"] =~ "^(www\.)?example\.org$" {
  var.servername = "www.example.org" 
  var.authdir = "/download/" 

  include "incl-redirect-subdomain.conf"
  include "incl-docroot.conf" 
  include "incl-auth-htpasswd.conf" 
}
With this include, all request for the pure domain, get redirected to “www.example.org” as defined by “var.servername”.

phpAutoGallery on Lighttpd

Posted by Ansgar Berhorn Thu, 05 Apr 2007 09:08:00 GMT

Ok, it is 2007 and I am still a fan of phpAutoGallery. The software is small and smart and is still serving my needs. phpAutoGallery only works with rewrite rules for the mod_rewrite of the Apache httpd. lighttpd has something similar, but is not source compatible to the Apache.

The httaccess rewrite rule for the Apache is:
RewriteCond %{REQUEST_URI} !.*__phpAutoGallery/wrapper\.php.*
RewriteRule .* /__phpAutoGallery/wrapper.php [NE,QSA,L]

The ligthtpd does not support per-directory rewrite rules, but it has a mod_rewrite.

A working rule for this scenario for the lighttpd is this one:
url.rewrite-once = ( "^/__phpAutoGallery/wrapper.php.*$" => "$0",
                     "^/([^.]+)?" => "/__phpAutoGallery/wrapper.php?$1")
Links: Mod_rewrite documentation for the lighttpd , Typo3 on lighttpd

Gimp auf Mac Os X

Posted by Ansgar Berhorn Thu, 29 Mar 2007 15:06:00 GMT

Nachdem es von Openoffice durch NeoOffice eine native, voll integrierte Version für Mac Os gibt, kann man wohl bald auf eine ähnlich gute Version von Gimp hoffen. Im Wiki eine Anleitung, wie man Gimp mit Gtk+ kompiliert. Die Liste kann man flott durcharbeiten, wenn man das meiste mit Macports installiert:
 sudo port install expat libart p5-xml-parser libpng lcms cairo py-cairo py-gobject py-gtk2
Mit der libtiff hatte ich genauso wie der Autor des Howtos Probleme und musste es selber aus den Quellen installieren. Die libjpeg bereitete auf meinem System ebenso Probleme. Hier sind einige Screenshots:
Gimp auf Mac Os X
Copy&Paste aus anderen Grafikanwendungen funktioniert. Die Menüs sind noch etwas hakelig und es wäre wünschenswert, wenn das Menü nicht im Fenster hängen würde, sondern Mac-typisch am oberen Bildschirmrand. Aber das kann ja alles noch kommen.