How I like to code

Tag Archives: Mac OS X

Finding the “file in use” culprit in Mac OS X

Thank to a tip at MacWorld, I was able to find out what process was locking a file I wanted to delete. lsof | grep [whatever]

Enabling PHP5 on Mac OS X

Thanks to for this tutorial!

Cool window tool for Mac OS X

Here is a tool that allows you to do some cool things with the windows in Mac OS X: moom

List open files

On the Mac OS, if you need to know what files are open and by what application and on what disk, you can use the lsof command in Terminal. Pair that command with grep and you can isolate things like this: ?View Code BASHlsof | grep "Snow Leopard" This will show you what files are […]

Important command to demangle C++ code in your pasteboard

Cool command line I can run from DTerm on the contents in my clipboard, outputted from Xcode: ?View Code BASHpbpaste | c++filt | mate This command will take my clipboard contents, which were originally created from Xcode, pass that to the c++filt command and then create a new file in TextMate with the resulting contents.

Hey… where’d you go?

A co-worker of mine had trouble debugging his library in Xcode. For some strange reason, GDB would not stop at any of his breakpoints. He did the usual printf and NSLog to see if the code was even being called, and sure enough… it was. The only way he was able to fix it was […]

How to stop Nikon Transfer 2 autoload

This is one of those things that has been really bugging me. I know it bugs other people but they have given up trying to figure out a solution. I have to hand it to the nikonians for showing me how to stop this problem on my computer. This trick may or may not work […]

Pop-up dictionary

I found this tip from, where you can get a pop-up dictionary window in Mac OS X by clicking Command+Control+D while hovering the cursor over a word. I found though that this does’t work with every application, like in Google Chrome when I’m editing a blog entry, but almost every other application seems to […]

Weird EXC_BAD_ACCESS error with NSPopAutoreleasePool

Recently I worked on a project that had a NIB and XIB in it and for some strange reason I was getting a EXC_BAD_ACCESS error message in GDB with NSPopAutoReleasepool being the culprit. The best part about the problem was that the only indicator I had for the call stack was was four question marks […]

Envy no more

I’m currently working on a website and like any website, it needs graphics. I was checking out some websites that have awesome icons, like CruxTech and Panic and I envy the cool tools that exist for Windows for making icons. One of those programs is Axialis IconWorkshop.  This Windows only application looks really cool and appears to […]