Main

February 01, 2007

Compile dar on OSX 10.4.8

CFLAGS="-DINSTALLPREFIX=/usr/local"
./configure --disable-nls
./make
sudo ./make install

that is all

self, out

January 18, 2007

Cocoa manual binding to selection in NSArrayController

If I want to do this manually binding.jpg
I have to do this
    [vizController bind:@"runData"
               toObject:runsController
            withKeyPath:@"selection.self"
                options:nil];
My RTFM skills lack the voodoo to find where this is documented. Is there perhaps another way?

October 11, 2006

bash is cool

We know this functionality is there, but often forget.
IF we have a directory full of folders with plone_*

for i in plone_*; do mv $i iavtheme_${i#plone_}; done

will replace plone_ with iavtheme_ for each directory name

See these for other pattern toys (thanks Juan for reminding me of this useful stuff I never seem to use):

${variable%pattern}
Trim the shortest match from the end
${variable##pattern}
Trim the longest match from the beginning
${variable%%pattern}
Trim the shortest match from the end
${variable#pattern}
Trim the shortest match from the beginning

http://linuxgazette.net/issue18/bash.html