Installing ionCube Loader 5.3 on MAMP in 2 minutes.

Today I needed to install ionCube 5.3 to run WHMCS locally and it was surprisingly easy :)

  1. Download ionCube from  http://www.ioncube.com/loaders.php
  2. Copy the whole ioncube folder to
    /Applications/MAMP/bin/php/php5.3/lib/php/extensions/
  3. Open /Applications/MAMP/conf/php5.3/php.ini
  4. Add this line somewhere around line 1088 
    zend_extension="/Applications/MAMP/bin/php/php5.3/lib/php/extensions/
    ioncube/ioncube_loader_dar_5.3.so"
  5. Restart Apache.

Done.

Configuring Drush on OS X Lion and MAMP 2.0

Today I finally decided to install Drush on my MacBook Air and everything was going great using pear to install Drush until I ran into the error: No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)    [warning] environment.inc:518

Luckily it's an easy fix. Simply create a symbolic link in /var/mysql to /Applications/MAMP/tmp/mysql/mysql.sock with the following code.

sudo mkdir /var/mysql
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock

And your done.

MAMP won't start via Dashboard Widget

I've had this problem a few times and it's easily re-producible. It happens to me when I leave my Mac in sleep mode (by pressing the power button once quickly) and I have MAMP running. When I come back to the Mac sometimes it simply won't recover from sleep and the only way is to kill the power or hold in the power button. Once It reboots I press F4 to access the dashboard and my MAMP widget indicates that both MySQL and and Apache are already running but the server is inaccessible. It's obvious that the widget has some kind of memory regarding the on/off state of each service stored.

Mac Finder copy error code -41

Today I had the annoying error code -41 when copying files around on my Mac. Well I had no idea what that was supposed to mean, errors are hard enough to solve at the best of times without something as useless as "error code -41". Anyway I found my solution with a little bit of searching and I felt the link was well worth sharing. http://reviews.cnet.com/8301-13727_7-20046071-263.html

For those of you who don't care why but want a quick fix then it's a simple as

Rydges Melbourne /dev/world/2010

I have just returned from the 2010 /dev/world conference held at the Rydges in Melbourne. The event was a fantastic experience and offered me the chance to get a insight on a lot of what is happening in the Mac development community from some of the most talented developers in Australia. The event had over 20 guest speakers who spoke for a hour at a time over the two days. Three speeches were presented simultaneously offering a diverse amount of information for varying experience levels or different interests.

The three tracks offered were: