Monthly Archives: January 2009

Starbucked – book review




Like many software developers, I'm fuelled by coffee. I really enjoy a good cup of coffee, and even a dodgy cup has enough of that coffee taste to bring some good thoughts to my mind. I'm happiest working on a hard problem with a cup of coffee in my hand.

I recently picked up a copy of Starbucked: A Double Tall Tale of Caffeine, Commerce, and Culture, from the library and had a nice light read,enjoying reading the history of Starbucks (I grew up travelling to Seattle, so know them from when their focus was selling beans).

The book is a good read, well written, telling the story of Starbucks from it’s beginnings to today. Love or hate Starbucks coffee (perhaps it is a little over-roasted), there is no denying that they brought expresso (Cappuccino and Late anyway)and a love of at least half decent coffee to the masses. Hearing the history of the company, and getting some insights into the good and bad of where they are today was particularly interesting.

There is also a good dose of coffee culture and the life-cycle of coffee, from farm to cup. Like many people, I’ve always been aware of the issues relating to ensuring that growers actually get paid something for their coffee crops. I’ve had a tendency towards Fair Trade, and organic coffee for a long time. What I didn’t realise was some of the issues and weaknesses with the Fair Trade movement. The book presents a strong argument for going with one’s selfish tendencies, and getting the best product available. By doing this you are going to influence the free market, and help farmers who produce good products get the best prices (if you want to learn about the free market, ask an MBA, or visit the Adam Smith Institute if you are afraid of being exploited by a money hungry business type).

A final area that I found particularly interesting was the discussion on Illy coffee. A pilot coffee drinking friend (he knows the best coffee shops in every airport in Australia) has it at home, so I was interested to read about it. I’ve always been a bit cynical of the possibilities of it comparing to local roasts out of concerns for freshness. How could an imported coffee be as good as fresh coffee just roasted around the corner. What I hadn’t realised was the impact of a chemist (Dr. Ernesto Illy, son of the founder) spending 50 years working on the process of making and distributing coffee. The work of quality at Illy, has resulted in the publication of Espresso Coffee, Second Edition: The Science of Quality edited by his son, Andrea Illy, the current CEO of Illy coffee.

I’d definitely recommend taking a read of Starbucked for all people interested in business or coffee. It makes for a good interesting read, covering coffee, coffee culture, and Starbucks.

footnote: when researching this article I was interested to see that Illy runs on IBM WCM, the latest company to OEM Ephox EditLive!

Getting php and MySQL up and running on OS X 10.5

Much of the free and open source web technologies in the world runs on Apache, MySQL and PHP. Getting this up and running on your Mac is important to ensure you can do development on the Mac. Once you know the right steps to follow in setting this up, it isn’t too hard, but finding the right information can be a bit tricky.

As at January 15 2009, here is the process that works. If you have problems, let me know and I’ll update this page accordingly.

I’m assuming that you have basic knowledge of how to use a Terminal.

1) Enable php in Apache

Ensure that the php module is loaded. This is done in the httpd.conf, and simply involves uncommenting the LoadModule line. sudo vim /etc/apache2/httpd.conf remove the comment (#) char at the front of the line containing LoadModule php5_module

LoadModule php5_module libexec/apache2/

After doing this you will need to restart apache

sudo apachectl restart

2) Install MySQL

Download MySQL from, and follow the instructions (if you go with the dmg file it’s really easy).

3) Download and Install the MySQL System prefPane

System Preferences is the place to start and stop things in OSX. Many versions exist. The one that actually works with 10.5 is available for download from the MySQL site:

4) php.ini

You’ll need to tell php where the MySQL socket lives. To do this take the default php.ini provided, copy it to php.ini, and ensure that the mysql.default_socket and mysqli.default_socket settings both reference /tmp/mysql.sock (that’s for the MySQL and MySQL improved extensions).

sudo cp /etc/php.ini.default /etc/php.ini

sudo vim /etc/php.ini

mysql.default_socket = /tmp/mysql.sock
mysqli.default_socket = /tmp/mysql.sock

After making these changes you’ll need to restart apache.

sudo apachectl restart

5) Install phpMyAdmin

phpMyAdmin is the standard tool for administering MySQL databases. It’s a php client that just works. While you might be able to get away with using a rich client on Mac OSX you should probably use phpMyAdmin because it’s the standard, and running on servers everywhere. Grab a copy from, read the documentation (there is a quick install guide), and you are off and running.