Archive for MacOSX
Oktober 18, 2009 at 5:46 pm · Filed under Allgemein, MacOSX, Note to self, Ruby
Suche nach Wort unter dem Cursor in vim: #.
jssh ist eine JavaScript Shell, die den Firefox per Port 9997 fernsteuerbar macht.
Download z.B. hier.
y erzeugt einen YAML dump auf der Rails console, mehr dazu hier.
=3D ist ein escaptes “=” in quoted_printable.
sudo /usr/libexec/locate.updatedb aktualisiert unter MacOSX sofort die locate Datenbank.
rake db:migrate:redo führt unter rails die letzte Migration rückwärts und sofort wieder vorwärts aus, so dass sich die Vorwärts-Action korrigieren läßt
ack -Q bringt ack dazu, literal, also ohne RegExp zu suchen.
Oktober 1, 2009 at 11:24 am · Filed under MacOSX, Note to self
In den single user mode (root shell) starten, beim Neustart:
<Cmd>s
In den
verbose mode (boot log) starten:
<Cmd>v
In den
safe mode (nur core kexts) starten:
<Shift>
November 25, 2007 at 12:07 am · Filed under MacOSX
After installing Leopard, the previous Apache configuration file in /etc/httpd/httpd.conf is no longer used. The Apache configuration sits in /etc/apache2/httpd.conf now.
In order to enable PHP again, I uncommented the following line first:
LoadModule php5_module libexec/apache2/libphp5.so
Second, to get my virtual hosts running again, I used the adapted Leopard version of Patrick Gibsons excellent utility
virtualhost.sh which even automatically moves all prior (Tiger) virtual hosts.
Finally to get rid of the error
Can't connect to local MySQL server through socket '/var/mysql/'
I successfully followed the steps found here:
sudo mkdir /var/mysql/
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
Everything is up and running fine now.
Februar 23, 2007 at 5:02 pm · Filed under MacOSX
Some days ago I tried installing svk on MacOSX using fink.
Everything worked fine except when I finally tried to use it:
aljoscha% svk
Can't locate Class/Autouse.pm in @INC
(@INC contains: /System/Library/Perl/5... [snip] ...5.8.1 .) at /Library/Perl/5.8.6/SVK.pm line 6.
BEGIN failed--compilation aborted at /Library/Perl/5.8.6/SVK.pm line 6.
Compilation failed in require at /usr/bin/svk line 6.
BEGIN failed--compilation aborted at /usr/bin/svk line 6.
The solution was not so obvious to me: Fink sets its paths in
/sw/bin/init.sh (/sw/bin/init.csh for csh users respectively)
Putting a
source /sw/bin/init.sh
into your ~/.zshrc makes svk happy.