Posts

Showing posts with the label osx

mac os x xattr and "protected" files (post download)

Mac OS X (10.6 maybe older or new) sets 'quarantine' bit on files and directories downloaded and unarchived (or just downloaded). Its a good idea to warn users what they are opening but this is a pain if the an archive is opened but then you want to move it somewhere else that isn't using typical OS X apps that understand and can clear this perm. (like unix dev location under webserver). I've found this xattr command to work to clear out that problem: xattr -d -r com.apple.quarantine directory It will verbose blurb out stuff but at least it gets rid of it and allows reading of those files by various unix programs (like apache). __END__

Building vim on os x 10.5

I like to build my own version of vim on systems. This usually avoids any problems later when I want to add something new in to it or upgrade to a newer version. In the past older versions of OS X (10.4 and 10.3 ) I could just build vim straight but on 10.5 I had a strange issue of it starting up X11 when I ran it in my terminal window. It seems that either vim or OS X became smarter when it came to talking between process using X Windows communication protocol. (XSMP) Just adding a --without-x to the configure statement didn't help. It required disabling the XSMP protocol. Here is the configure line: ./configure --without-x --disable-xsmp Much better, now I just need to figure out the best terminal font for my 24" iMac. :)

Switch between windows in any application on OS X

To switch between windows in any application on OS X use: cmd - ` . I started to think this was only in Safari but it works with any multi-window OS X app. Sweet!