How do I install Bash >= 3.2.25 on Mac OS X 10.5.8?

Homebrew is generally a bit nicer than MacPorts, as it doesn’t require lots of sudo action. Here’s an article that guided me to upgrading my install of bash: http://concisionandconcinnity.blogspot.com/2009/03/upgrade-bash-to-40-in-mac-os-x.html As for steps: Install Homebrew from the docs on their homepage Install Git using Homebrew (optional, but nice to have a more up-to-date git) brew install … Read more

How do you install lxml on OS X Leopard without using MacPorts or Fink?

Thanks to @jessenoller on Twitter I have an answer that fits my needs – you can compile lxml with static dependencies, hence avoiding messing with the libxml2 that ships with OS X. Here’s what worked for me: cd /tmp curl -O http://lxml.de/files/lxml-3.6.0.tgz tar -xzvf lxml-3.6.0.tgz cd lxml-3.6.0 python setup.py build –static-deps –libxml2-version=2.7.3 –libxslt-version=1.1.24 sudo python … Read more

How do I make the apple terminal window auto change colour scheme when I ssh to a specific server

Put following script in ~/bin/ssh (ensure ~/bin/ is checked before /usr/bin/ in your PATH): #!/bin/sh HOSTNAME=`echo $@ | sed s/.*@//` set_bg () { osascript -e “tell application \”Terminal\” to set background color of window 1 to $1″ } on_exit () { set_bg “{0, 0, 0, 50000}” } trap on_exit EXIT case $HOSTNAME in production1|production2|production3) set_bg … Read more

What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

From the Apple Developer Forum (account required): “The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions. -mmacosx-version-min tells the tools what OS versions you need to work with, so the tools can disable optimizations that won’t run on those OS versions. If you need … Read more

How can we restore ppc/ppc64 as well as full 10.4/10.5 SDK support to Xcode 4?

The quick answer is: Yes, we can! Before I get to the “how it is done” part, here are some notes about my patch/hack/fix. Right from the start the major goals have been: Keep all modifications to an absolute minimum. We want to keep the Xcode setups as original as possible. By all means, try … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)