sogudi compatibility update 16. Nov 2007

Für das exzellente Safari-Plugin Sogudi gibt es seit heute ein Kompatibilitäts-Update für Safari 3. Es handelt sich zwar nur um eine Betaversion, aber im Testbetrieb konnte ich bisher keinerlei Einschränkungen feststellen.

 

finding large directories 30. Oct 2007

Every once in a while there is the need to clear out the system. The question that inevitably pops up is: Where has all the disk space gone ? The solution of course lies in locating the largest directories. With WhatSize and OmniDiskSweeper there are two great tools on Mac OS X. There are also feasible Tools on Linux like Filelight, but if you’re administering a remote server and you don’t want to use remote x11 access you need a solution that can be controlled either on the command line or via browser. Of course you could use sturdy old du.


# Find all directories with the largest directories on top
$ sudo du -Sx / | sort -nr | less
# Find directories over 100MB with the largest directories on top
$ sudo du -Sh / | grep ^[1-9][0-9][0-9][0-9\.]*M | sort -nr

Or you could hack together some fancy perl script, but wouldn’t it be nice to have an interactive graphical visualisation through which you could comfortably navigate ? This is where Philesight pops in, which offers both command line and browserbased control. Putting it up on Debian is a breeze. Just install cairo and berkley db and their ruby bindings and then get rolling.


$ wget http://zevv.nl/code/philesight/philesight-2035.tgz
$ tar xvfz philesight-2035.tgz
$ sudo apt-get install libcairo2 libcairo-ruby
$ sudo apt-get install libdb4.2 libdb4.2-ruby1.8
# Generate index
$ sudo ./philesight --db base.db --index /
# Check if image is correctly generated
$ ./philesight --db base.db --path / --draw base.png

Firing up the web interface is just three small steps further. First configure the CGI-File.


# philelight.cgi
db = "./base.db"
default_path = "/"

Then create a reasonably named subdomain and after that just add a few lines to your lighttpd configuration file (or the corresponding lines to the webserver of your choice).


$HTTP["host"] =~ "philesight.yourdomain.net" {
  cgi.assign = ( ".cgi" => "/usr/bin/ruby" )
  alias.url = ( "/" => "/path/to/philesight/philesight.cgi")
  server.document-root = "/path/to/philesight"
}

That’s all there’s to it. Have fun.

 

last.fm for the menu bar 04. Oct 2007

Amua ist eine hochgradig elegante Lösung um Last.fm-Radiostreams in der Mac OS X-Menüleiste abzuspielen. Entwickelt wird die Software von Mathis und Simon Hofer und liegt seit Ende September nun auch in einer mit dem neuen Last.fm-Protokoll kompatiblen Version vor. Einen kleinen Bug gibt es leider noch, aber die Jungs arbeiten schon dran.

 

textmate via macfuse and t-dsl 25. Apr 2007

Webarbeitern dürfte bekannt sein, dass sich mit einer Kombination aus MacFUSE und SSHFS unter Mac OS X auf elegante Weise das Dateisystem eines entfernten Servers auf dem lokalen Rechner einhängen läßt und dank vorkompilierten Paketen ist das auch für Nichtexperten eine leicht einzurichtende Verbesserung.

Was ist dann naheliegender als mit dem besten Editor der Welt die neu erworbene Zugriffsfreiheit zu nutzen ? Eine der praktischen Funktionen in TextMate ist die Projektansicht, welche eventuelle Änderungen in einem vorher ausgewählten Verzeichnisbaum automatisch anzeigt. Wer nun allerdings von zuhause aus über eine ordinäre DSL-Leitung der Telekom arbeitet, und via MacFUSE auf einen entfernten Server zugreift, der dürfte daran wenig Freude haben.

Standardmäßig beträgt die durchschnittliche Round Trip Time eines DSL-Anschlußes der Telekom mit 6 Mbit/s etwa 80ms. Das mag für Websurfen ausreichend sein, aber für TextMates Projektansicht ist das völlig unbrauchbar. Sobald das Projekt mehr als ein dutzend Dateien enthält, treten nach dem Umschalten zwischen Browser und Editor schnell Wartezeiten von dreißig Sekunden oder mehr auf.

Der Trick besteht nun darin die von der Telekom für “Online-Games” beworbene FastPath-Option zu seinem Anschluß dazu zu buchen. Das Ergebnis dürfte je nach Entfernung zur nächsten Vermittlungsstelle variieren. In meinem Fall ergab sich dadurch eine Senkung der Round Trip Time auf schnittige 12ms, wodurch sich die Verzögerungen beim Umschalten nun typischerweise im niedrigen einstelligen Sekundenbereich bewegen. Summa summarum: Eine lohnenswerte Investition!

 

1 2 3