Archive

Author Archive

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

Forward X11 over SSH after you su

February 3rd, 2010

Enabling SSH forwarding for X11 in general is easy: you simply put X11Forwarding yes in /etc/ssh/sshd_config, then SSH into the server with the -X or -Y (as appropriate for you).

However, if you want to be able to SSH in as a non-privileged user and su to become root, you’ll need to do a little more. Adding the following to the non-privileged user’s .bashrc works for me:

# Allows su to use X11
if [ ! -n "$XAUTHORITY" ]; then
    export XAUTHORITY=~/.Xauthority
fi

su passes environment variables to the new shell, so this ensures that applications that use the X server know where to look for the SSH forwarding info.

This manual configuration isn’t an issue with all distributions, but was required for my Debian Lenny box.

Aidan Findlater Impersonal