Archive

Posts Tagged ‘mac os x’

XAMPP with Xdebug on Snow Leopard

March 8th, 2010

If you compiled the xdebug module and see the following in your log file:

Failed loading /Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626/xdebug.so:  dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626/xdebug.so, 9): no suitable image found.  Did find:
        /Applications/XAMPP/xamppfiles/lib/php/php-5.3.0/extensions/no-debug-non-zts-20090626/xdebug.so: mach-o, but wrong architecture

Just download the pre-compiled module from Komodo Debugger Extensions.

For context, here are some directions.

Aidan Findlater Impersonal , , ,

How to globally ignore .DS_Store when using Git

February 12th, 2010

If you don’t want OS X mucking up your Git repo with DS_Store files, you can set up a global ignore file. As per freshsauce, you simply execute the following two commands:

git config --global core.excludesfile ~/.gitignore
echo .DS_Store >> ~/.gitignore

Brilliant.

Aidan Findlater Impersonal ,

Use VPN for specific sites, on Mac OS X

February 3rd, 2010

Summary: To access a specific list of websites through a specific VPN on Mac OS X 10.6, I created /etc/ppp/ip-up, copied in the script below, and chmoded it executable.
Read more…

Aidan Findlater Impersonal ,

My desktop

February 3rd, 2010

In the vein of a recent Reddit thread, I present my desktop.

You can see many of my standard tools sitting quietly in the taskbar.

Aidan Findlater Personal

Don’t pollute user space

October 14th, 2009

Naughty applications fill up my user-specific Documents folder with garbage I neither created nor care to see. (A picture of the problem, as previously identified.) It’s gotten to the point where I’ve decided to abandon my Documents directory altogether.

And now, straight from Apple’s file system guidelines:

It is important to remember that the user domain (/Users) is intended for files created by the user. With the exception of the ~/Library directory, your application should never install files into the user’s home directory. In particular, you should never install files into a user’s Documents directory or into the /Users/Shared directory. These directories should only be modified by the user.

Even if your application provides clip art or sample files that the user would normally manipulate, you should place those files in either the local or user’s Library/Application Support directory by default. The user can move or copy files from this directory as desired. If you are concerned about the user finding these files, you should include a way for the user to browse or access them directly from your application’s user interface.

Emphasis mine, of course.

Aidan Findlater Impersonal