Firefox-Standard-Geolokalisierung komplett abschalten

Gerade festgestellt, daß nach einem Update auf Firefox 3.5 die Geolokalisierung standardmäßig eingeschaltet ist (auch wenn man angeblich jedesmal gefragt wird, bevor Daten an irgendwen übermittelt werden).

Das kann man aber auch komplett abschalten, indem man auf der Seite about:config die Einstellung geo.enabled auf false stellt. Weitere Infos gibts auch auf der Mozilla-Seite.

Bilder per Batch aus Picasa runterladen

Normalerweise benötigt man selbst einen Picasa-Account, um ein komplettes Album eines anderern Picasa-Benutzers in einem Rutsch runterzuladen. Leider gestattet Google keinen direkten Download, sondern nur einen Download in ein eigenes Picasa-Album.

Allerdings gibt es den Picasa Tiny Downloader. Das Tool parst einfach den RSS-Feed und lädt alle Bilder in einzelne Dateien runter. Leider gehen dabei die ursprünglichen Dateinamen verloren.

Show http header / file information without actually downloading

To show the http meta information such as modification date or file size without downloading actually the data you can use the following commands:

$ HEAD http://www.georglutz.de/blog
200 OK
Cache-Control: no-cache, pre-check=0, post-check=0
Connection: close
Date: Sat, 05 Sep 2009 18:12:30 GMT
Pragma: no-cache
ETag: "Sat, 05 Sep 2009 09:11:22 GMT"
Server: Apache/2.0.52 (CentOS)
Content-Type: text/xml; charset=utf-8
Expires: 0
Last-Modified: Sat, 05 Sep 2009 09:11:22 GMT
Client-Date: Sat, 05 Sep 2009 18:12:31 GMT
Client-Peer: 85.214.18.185:80
Client-Response-Num: 1
Set-Cookie: PHPSESSID=xyz; path=/
Set-Cookie: PHPSESSID=abc; path=/
Status: 200 OK
X-Blog: Serendipity
X-Powered-By: PHP/4.3.9
X-Serendipity-InterfaceLang: de
X-Serendipity-InterfaceLangSource: Content-Negotiation
X-Session-Reinit: true

$ wget -S --spider http://www.georglutz.de/blog/feeds/index.rss
Spider-Modus eingeschaltet.  Prüfe ob die Datei auf dem Server existiert.
--2009-09-05 20:13:38--  http://www.georglutz.de/blog/feeds/index.rss
Auflösen des Hostnamen »www.georglutz.de«.... 85.214.18.185, 2002:55d6:12b9::1
Verbindungsaufbau zu www.georglutz.de|85.214.18.185|:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort...
  HTTP/1.1 200 OK
  Date: Sat, 05 Sep 2009 18:13:38 GMT
  Server: Apache/2.0.52 (CentOS)
  X-Powered-By: PHP/4.3.9
  Status: 200 OK
  Set-Cookie: PHPSESSID=xyz; path=/
  Expires: 0
  Cache-Control: no-cache, pre-check=0, post-check=0
  Pragma: no-cache
  Set-Cookie: PHPSESSID=abc; path=/
  X-Session-Reinit: true
  X-Serendipity-InterfaceLangSource: Content-Negotiation
  X-Serendipity-InterfaceLang: de
  X-Blog: Serendipity
  Last-Modified: Sat, 05 Sep 2009 09:11:22 GMT
  ETag: "Sat, 05 Sep 2009 09:11:22 GMT"
  Connection: close
  Content-Type: text/xml; charset=utf-8
Länge: nicht spezifiziert [text/xml]
Datei auf dem Server existiert.

In Fedora 10 HEAD is part of the package perl-libwww-perl.

gallery2 and password plugin

With recent version of gallery2 (at least with 2.3) password protected albums do not work anymore. This means that after entering the correct password the user sees a blank page instead of being logged in and forwarded to the gallery.

I found a post in gallery’s forum describing this issue. There seems to be a problem with SSL/Cookie-Handling. The captcha plugin is also concerned.

However the quick fix presented by valiant works for me:

but there's a easy fix:
just add GalleryCoreApi::requireOnce('modules/core/classes/GalleryTranslator.class'); right before line 780 in modules/core/classes/GallerySession.class.

Unfourtunately up to now (2009-05-10) the fix is not yet included in trunk.

Broken RPM installation of MoinMoin

The RPM-Installation of MoinMoin (at least versions 1.5.6 and 1.5.7) is somehow broken. The typo lays in the spec file inside the tarball. There the changelog section contains an invalid date: “Do” instead of “Thu”. In order to work with “rpmbuild -ta” you need to correct it to “Thu” and recreate the tarball.