Backup Address Book on MAC

Most of us have joined the icloud extravaganza and are now dependent on Apple not losing our data. Just imagine how upset you would be if you all of a sudden lost all your contacts. I personally am running OSX Lion 10.7.2 and I’m going to show you a simple way to backup your Address Book contacts onto your local hard drive.

  • Launch Address Book
  • File > Export… > Archive Address Book…

  • Choose a saving destination (I choose my desktop for now)

You should now have an ABBU (Address Book BackUp) file called Address Book – <date> saved to your computer.

To recover you contacts:

  • Launch Address Book
  • File > Import…
  • Choose your backup file Address Book – <date>

iCloud Verification email

I ran into a problem when trying to setup my iCloud account with Apple. No matter what I did, I couldn’t figure out how to complete the verification email part of the setup, as Apple needed my Apple ID to be an email address (the one I was using was not). I tried a few things and had no luck figuring out the problem. Come to find out, it looks like I had multiple Apple IDs related to the same email account.

A very nice guy by the name of Rob Wheatley posted the fix in Apple’s discussions.

I first went to and clicked the Find out link at the bottom right of the page.

I was then shown two Apple ID’s that were associated to my email address.

  • r1tommy

I logged into my Apple ID (the account that I never used) and changed it to (now is only associated to my r1tommy Apple ID account).

I then logged into my r1tommy Apple ID (all my apps & music is purchased on this account). I was given the option to merge my r1tommy Apple ID & together as one (like two peas in a pod), making my my primary Apple ID.

Everything then fell into place and worked seamlessly.


Mac Terminal Loading Slow

ASL stands for Apple System Logger. If your Mac is launching Terminal very slowly, try clearing your ASL logs.

$ sudo rm -f /private/var/log/asl/*.asl

Check out for preventative measures.

All I did was add the following lines to /etc/asl.conf.

= archive 0
= utmp_ttl 604800

= fs_ttl

“So, you want to know what’s happening right?

  • The first parameter = archive 0 disables archiving.  I like to set this because I have no desire to retain masses of archived versions of my logs.  That’s a zero after the word archive by the way.
  • utmp_ttl sets the time-to-live for messages in seconds.  604800 is 7 days.  Set this to the length of time you would like.
  • fs_ttl is the time-to-live for filesystem errors.  This is in seconds too.”

Cisco VPNClient – Error 51

Error 51: Unable to communicate with the VPN subsystem.
Please make sure that you have at least one network interface that is currently active and has an IP address and start this application again.


Snow Leopard operates in 32 bit mode by default, Lion is a 64 bit operating system. Cisco’s VPN client only runs in 32bit mode.


Don’t try to restart your Cisco client, it doesn’t work.


$ sudo SystemStarter restart CiscoVPN
Stopping Cisco Systems VPN Driver
(kernel) Kext not found for unload request.
Failed to unload - (libkern/kext) not found.
Starting Cisco Systems VPN Driver
/System/Library/Extensions/CiscoVPN.kext failed to load - (libkern/kext) requested architecture/executable not found; check the system/kernel logs for errors or try kextutil(8).

All you need to do is start Lion in 32bit mode. You can simply do this by holding down the 3 and 2 key when booting up.

It’s not the best solution but it is a temporary solution until Cisco comes out with a 64bit compatible client.


Switching between Lion 64-bit and 32-bit

To check which mode you are currently in, run this command on the terminal:

$ systemsetup -getkernelbootarchitecturesetting

To set your machine to boot into 64-bit mode, enter this command and reboot:

$ sudo systemsetup -setkernelbootarchitecture x86_64

To set your machine to boot into 32-bit mode, enter this command and reboot:

$ sudo systemsetup -setkernelbootarchitecture i386

To set your machine to boot into default mode, enter this command and reboot:

$ sudo systemsetup -setkernelbootarchitecture default

Your settings are updated in /Library/Preferences/SystemConfiguration/

PHP Switch Statement – output result from selected option

I was asked to come up with a way to give users a list to choose from and output a result based on their selection. I decided to use PHP. I ended up using a Switch Statement to accomplish this task. I am not a PHP expert  but was happy to figure this out on my own.

Create the form

Create choice.html

<form action="choice.php" method="post">
<b>Choose your Selection:</b><br /><br />
 <input type="radio" name="formChoices[]" value="A" />A<br />
 <input type="radio" name="formChoices[]" value="B" />B<br />
 <input type="radio" name="formChoices[]" value="C" />C<br />
 <input type="radio" name="formChoices[]" value="D" />D<br />
 <br /><input type="submit" name="formSubmit" value="Submit" />

Output should look like this.


Create the PHP action (called choice.php)


$result = $_POST['formChoices'];

switch ($result[0])
 case "A":
 echo "You have selected A.";
 case "B":
 echo "You have selected B.";
 case "C":
 echo "You have selected C.";
 case "D":
 echo "You have selected D.";