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>

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/

CSS Basic Template

Here’s a basic CSS template that you can use. There’s a header, a footer, a left side and a right side.

You need to create an index.html and mystyle.css file. Place them in the same directory.



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="mystyle.css" />
<title>CSS Template</title>
<body id="backdrop">
<div id="container">
 <div id="header">
 <div id="leftBar">
 <center>Left Side</center>
 <div id="maincontent">
 <center>Main Content</center>
 <div id="rightBar">
 <center>Right Side</center>
 <div id="footer">


@charset "UTF-8";
 /* CSS Document */
#backdrop {
#container {
   width: 100%;
   background: #ffffff;
#header {
   background: #90F;
#leftBar {
   float: left;
   width: 20%;
   background: #999;
#maincontent {
   background-color: #FF9;
#rightBar {
   width: 20%;
   background: #999;
#footer {

iPod Photo Cache

When adding a bunch of photos to my iPhone, I received an error message stating “Some of your phots, including the photo “IMG_0157.JPG”, were not copied to the iPhone “Tommy’s iPhone” because they cannot be displayed on your iPhone.” I am not sure exactly why this happened but I do know how to fix it.

All you need to do is delete the iPod Photo Cache folder from your Pictures folder and re-sync your iPhone. It seems to rebuild the cache folder and correct the problem.

I also noticed from the Apple Support that you should check the compatible photo formats.