n8blog
distraction in action

Like my work? Check out HexaLex, my game for iPhone & iPod Touch. It's a crossword game like Scrabble, but played with hexagonal tiles. http://www.hexalex.com

Posts in category Tips :

This took me waaaay too long to figure out. A while back I set up printer sharing (with browsing) on my Ubuntu-based server. My Mac (running Tiger at the time) found the server just fine and it all just worked — I couldn’t believe how simple it was! But then I upgraded [...]

Here's a list of Unix commands that only appear in Darwin. wait4path looks handy, and so do authopen and textutil. PPCExplain would be cool if Apple weren't dropping the PPC platform. I'm always meaning to do something slick with pbcopy and pbpaste, but I'm never sure exactly what.

OMG! OMG! From the Advanced Technology section of Apple's Tiger Preview:

Remappable Modifier Keys

Remap modifiers such as control and caps lock to be super elite.

Who knew that remapping modifier keys required Advanced Technology?

Now I've got to upgrade! I mean, uControl is nice and all, and it's made life under OS X bearable, but [...]

I thought I would finish out the “keybindings trilogy” with these additional bindings that I use:

/* Page up/down should move the cursor, not just scroll */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";

/* Cmd+Left/Right for next/prev [...]

Anybody who's messed with the OS X color chooser has noticed that it's quite
a versatile tool with lots of nice features. However, there's one glaring
deficiency that rears its head if you try to use it in conjunction with web
design. Say you've picked a nice palette for your website using the color
picker and want [...]

This is an interesting little file that can be found in /System/Library/CoreServices:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ProductBuildVersion</key>
<string>7F44</string>
<key>ProductCopyright</key>
<string>Apple [...]

My last entry discussed the
~/Library/KeyBindings/DefaultKeyBinding.dict file, but there was
one bit of knowledge left out. Where did those key codes (e.g. Home = \UF729)
come from? It took me a while, but now I understand. They are described in the
header file for the NSEvent
class. It should be located here:
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h

Also, see this entry at
CocoaDev [...]

For some reason the Mac gods decided that Home and End scroll your window to the beginning and end of file respectively. This is just wrong. They should move the cursor to the beginning or end of the line it's on, just like they do in every other modern UI. Thankfully, there's a way to [...]

Lately I've been trying to get an x86 emulation environment working on my
powerbook so I can test out the backend of our compiler. Eventually I hope to
write a PPC backend, but in the near future x86 is the only platform it's going
to run on.

The first step was to build a [...]

Like my work? Check out HexaLex, my game for iPhone & iPod Touch. It's a crossword game like Scrabble, but played with hexagonal tiles. http://www.hexalex.com