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]

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.

An introduction to Drupal

As part of my research in the hopes of winning a position I applied for as a web developer in the city I am researching the companies two most used technologies Doctrine and Drupal. I've been developing web applications now for around 4 years and I've heard a lot about Drupal but I've never got around to testing it out. WordPress is the main platform I use at Mandurah Web with a few Joomla sites cropping up here and there.

An introduction to Doctrine

I recently applied for a new job as a web developer due to my 2012 plans involving moving to the city and working in a more corporate environment. After a technical interview over the phone mainly relating around PHP, MySQL and some general OO questions the interviewer finished by telling me more about the company. When he told me they specialise in Drupal development and use Doctrine for some in-house software and development I decided I better go do some research.

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.

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

c000135 Program can’t start %hs is missing from your computer – Windows 7

The Problem

Ok just a quick update regarding a problem I had today with AVG. The automatic AVG update completed and then begun to pester me about rebooting. When I finally rebooted my computer which is running Windows 7 ultimate it just switched of right before the Windows login screen. After attempting the Windows Startup repair with no luck I attempted to enter safemode, from their I could see the OS stalling at AVGIDSEH.sys meaning the next .sys file can not be loaded.