Today I read The End of OS X. I particularly liked the bit about the Unix philosophy:
- Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new “features”.
- Expect the output of every program to become the input to another, as yet unknown, program. Don’t clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don’t insist on interactive input.
- Design and build software, even operating systems, to be tried early, ideally within weeks. Don’t hesitate to throw away the clumsy parts and rebuild them.
- Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you’ve finished using them.
The $HOSTNAME shell variable on my Mac Book Pro (condor) was “condor.local” but I wanted it to be just “condor”. So I ran:
scutil --set HostName condor
which fixed the problem!
So I configured Terminal.app to use Option (Alt) as Meta key: Terminal => Preferences => Profiles => Keyboard => Use Option as Meta key
But wasn’t working for the key-bindings in my .vimrc:
nmap <M-j> mz:m+<cr>`z
nmap <M-k> mz:m-2<cr>`z
So I found this article: Fix meta-keys that break out of Insert mode and ended up with the following snippet for my .vimrc which fixed my Meta-key problem:
while c <= 'z'
exec "set <M-".tolower(c).">=\e".c
exec "imap \e".c." <M-".tolower(c).">"
let c = nr2char(1+char2nr(c))
Everything is easy when you know how!
I had a problem creating files/directories in /home on my Mac.
To fix the problem I edited /etc/auto_master and commented out the /home line.
Then I rebooted and was able to use /home.
I heard on the grape vine that Time Machine doesn’t backup /home, which is no problem for me…
Read about how to stop the iPhone from opening iPhoto…
Basically: Applications / Image Capture / Select iPhone / click up-arrow bottom left / set Connecting this iPhone opens: No application