2010.07.28 - 22:27 |
patrick
*emacs
Finally a nice Emacs command:
M-x viper-mode
2010.07.01 - 16:36 |
patrick
GitX
While I am generally speaking a terminal fan, I started to like
GitX, an OS X
git GUI.
2010.06.08 - 04:11 |
patrick
iOS
Just why did Apple decide to rename "iPhone OS" to "iOS"?
This will make searching for Cisco IOS literature and tips & tricks a pain!
2010.05.19 - 23:32 |
patrick
Print vs. Display
Smart: "Print color output is different than screen color output because of one huge reason: print is
subtractive output, while a light source like a monitor or the sun is
additive output." -- Comment,
AVSForum
2010.05.07 - 23:35 |
patrick
What I am doing...
This
Federal News Radio podcast covers part of my current work.
2010.04.29 - 15:55 |
patrick
ctags & vim
The problem with Exuberant Ctags is that .h are by default C++, not C. Consequently, letting Ctags read only the header files is not enough - unless you want to have missing exports. An easy solution is to add the following definition to your "global" Makefile:
CTAGS_OPTS = -f .tags \
--fields=+aS --c-kinds=+p --extra=+q \
--langmap=C:.c.h --totals
Your directory-specific Makefile will look like this:
tags:
@ctags $(CTAGS_OPTS) *.h $(SOME_OTHER_DIR)/*.h
Obviously, you want vim (and OmniCppComplete) to look for your new ".tags". Just add the following to your .vimrc:
set tags=.tags;$HOME
The ";" at the end tells vim to start looking for a ".tags" in the current directory, and if not found to go up one level, etc.
2010.03.24 - 22:22 |
patrick
eMails
Sorry for not responding to my emails, but (a) I'm busy (b) had to reinstall my system (c) I will not have private Internet access for a few days.
2010.03.15 - 15:41 |
patrick
Shadow-less Stickies
The Stickies.app windows clearly look better w/o shadow. Here is how you can get rid of the shadow:
- Open Terminal.app
- $ cd /Applications/Stickies.app/Contents/Resources/English.lproj/StickiesDocument.nib
- $ plutil -convert xml1 -o keyedobjects.plist keyobjects.nib
- Open "keyedobjects.plist" with vim (or the Property List Editor)
- Replace the "NSWTFlags" value with "1886916608"
- Save and quit
- $ mv keyedobjects.nib keyobjects.nib.org
- $ plutil -convert binary1 -o keyedobjects.nib keyedobjects.plist
all rights [r] belong to us.