OS X: Geek Alarm Clock

There are for sure some visually nice alarm clocks to use on OS X, such like the 3-2-1 Dashboard timer-widget.

But for real Geeks, there’s a way over the Terminal for activating an audio-visual reminder, using the following simple command:

$ leave hhmm $ #f.eg.: "leave 0930" meaning 21h30 Alarm set for Mo 8 Feb 2010 21:30:00 CET. (pid 789)

This activates a leave-timer which will alarm you 5 and 1 minute prior to the given time, such as at the exact time. The date is always your current day.

To disable the alarm, you need to quit the according process using the following kill-command:

$ kill -s kill pid $ #pid = 789 as in above example

As usual, you can read all details about the “leave”-command by typing “man leave” in the Terminal.

OS X: Connect to the MAMP MySQL Server via Terminal

MAMP Logo MySQL Logo

When you have installed MAMP (Mac Apache, MySQL, PHP) on your Mac, you may want to connect to it’s MySQL Server using the OS X Terminal.app

To do so, execute the following command in a Terminal window:

/Applications/MAMP/Library/bin/mysql -uroot -proot -P 8889

When the authentication was successful, the message “Welcome to the MySQL monitor” will be displayed in the Terminal window.

OS X: Inhalte zweier Ordner zusammenführen (aka “merge”)

OS X Leopard Terminal Icon

Leider beherrscht der Finder unter Mac OS X die Funktion “Ordner zusammenführen” (im Fachjargon “merge” gennant) nicht. Der Finder basiert rein auf Copy-, Cut- & Paste (Kopieren, Ausschneiden, Einfügen).

Dennoch gibt es eine bequeme Variante, einen Ordner mit seiner gesamten Struktur (Unterordner & Dateien) zu “mergen” – und zwar über das Terminal.app mit dem Befehl “rsync”.

Continue reading

OS X: org.apache.httpd (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80

I am working on Mac OS 10.5.6 Leopard. Today I recognized, that every 10 seconds Apache forced the following error messages to appear in my console.log:

org.apache.httpd[10664] (13)Permission denied: make_sock: could not bind to address [::]:80 org.apache.httpd[10664] (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 org.apache.httpd[10664] no listening sockets available, shutting down org.apache.httpd[10664] Unable to open logs com.apple.launchd[79] (org.apache.httpd[10664]) Exited with exit code: 1 com.apple.launchd[79] (org.apache.httpd) Throttling respawn: Will start in 10 seconds

OS X Console.app Errors

After searching the web for this error(s), I got rid that somehow the httpd-service tries to listen on port :80, but which is already listened on by something else. The message “Unable to open logs” may refer to that Apache was not started with root-privileges, but which it needs to startup properly.

I was able to fix this error lines by doing the following steps:
Continue reading

OS X: Start der Startobjekte mit Automator kontrollieren

Ich hatte bisher diverse Applikationen in meinen Startobjekten, welche ich – sinngemäss – automatisch gestartet haben wollte wenn mein Mac hochfährt. Darunter sind beispielsweise auch reine “Internetapplikationen” wie Mail.app, Skype oder mein RSS-Feedreader.

Was mich aber störte war, wenn ich unterwegs war und keine Internetverbindung bestand, belasteten diese Applikationen beim Start erstens die Startgeschwindigkeit und meldeten anschliessend sowieso nur eine Fehlermeldung, da keine Daten abgerufen/kein Login möglich war. Es nervte mich jeweils, wenn ich ja WUSSTE, dass keine Internetverbindung vorhanden war, dass ich nichts gegen den automatischen Start dieser spezifischen Applikationen machen konnte.

Diesem Problem trat ich mit einem entsprechenden Automator-Workflow entgegen:
Continue reading