Matt Langtree

The Mega Road Trip!

Starting on the 31st August, I’ll be jumping in the car and driving from the North of Australia, all the way down to the bottom of the continent (Melbourne).

This has been something I’ve been talking about doing for the last year or two. This is the real deal, I’m moving to Melbourne!

screen-shot-2009-08-21-at-82600-pm

Subscribe to the RSS feed and keep an eye on my progress! Cya back here on 31st August!

iPhone in Coffee Experiment

There were rumours going around the office that I dropped my new iPhone into a fresh cup of coffee.. These allegations are completely _untrue. _But I figured it would be a great experiment to try out.

The experiment is, to see how big the splash would be if an iPhone went diving into coffee. [Apple start reading here] Or, alternatively how the slippery back of the iPhone is unsuitable for resting on a laptop that resides on an inclined stand.

Recipe for disaster:

  • 1 x brand spankin’ new iPhone 3GS
  • 1 x Griffin laptop stand
  • 1 x Cup of freshly brewed PIAZZA D’ORO — Dolce Vita Coffee Here’s the experiment..
    First place the new iPhone on the inclined laptop surface. Then, place the full cup of coffee under the laptop stand so as to encourage the biggest splash! img_0751

Here’s what it would have looked like (using Abhi’s iPhone 3G) ..

img_0748And this is the amount of coffee that would need to be sponged up after the experiment.

img_0745

And the result.. A nice big mess to clean up! N.B: no iPhones were harmed during this experiment.

Phoenix - Lisztomania / Brat Pack Alternative

By far the best musical discovery for me, so far this year is Phoenix. The french group dropped their latest album Wolfgang Amadeus Phoenix in February this year and it peaked at #13 on the Australian album charts.

Here is an unplugged version of Lisztomania by Phoenix.

Here is the Brat Pack Mashup, which the band seems to fancy more than their original “expensive” version.

Vodafone 16GB iPhone 3Gs Ordered

iphone-3gsMy new iPhone 3Gs 16GB is ordered and en route from Vodafone Australia.

My preference is towards the $69 plan (with 1GB data) from Vodafone over the Virgin $70 equivalent plan.

Vodafone is also the first Australian telecom provider to offer visual voicemail and is currently performing a $500M major national network upgrade to regional areas of Australia.

Virgin mobile operates on the Optus network which suffered major network outages on the east coast of Australia for several consecutive hours during August of last year.

shrt.tw

A new project that I’m currently working on is SHRT.TW. This one I’m keeping pretty quiet for now.. If you are a web/application developer or a mac user expect shrt.tw to be an integral part of your daily workflow. Check back over the next few weeks for updates on the status of this one.

screen-shot-2009-07-12-at-122119-pm

UPDATED — shrt.tw has been replaced by Medium Stack

2 Degrees Mobile

A witty ad featuring Rhys Darby ( played characters in flight of the concords [band manager] and [bank manager from the movie] Yes Man! ) a quirky fellow endorsing New Zealand’s phone company 2 degrees.

Leopard/Snow Leopard - Mysql_connect() Can’t Connect to Local MySQL Server Through Socket ‘/var/mysql/mysql.sock’ (2)

I was setting up my local PHP/MySQL development environment on my local MacBook Pro to mirror our work development setup.

I ran into the following error:

1
2
3
4
`**Warning** on line 365 of include/lib/adodb/drivers/adodb-mysql.inc.php
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]:
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
(2)`

I have fixed this issue in the past on a previous Leopard install, so I thought it was the perfect candidate for a blog post.

Customise php.ini file to use custom MySQL socket

If you have made manual customisations to your php config file already, skip this part; otherwise run the following in Terminal.app:

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

Next, open Sequel Pro and connect to the mysql server on your local Mac. If you don’t know how to do this, take a look at Getting Connected on the Sequel Pro documentation page.

Then, choose _Database > Show Server Variables… _

show-server-variables

Scroll down through the list of variables until you get to socket.

screenshot-on-2009-07-05-at-24810-pm

Open up /etc/php.ini in Textmate or Coda and scroll down the where it says:

; Default socket name for local MySQL connects.  If empty, uses the built-in ; MySQL defaults. mysql.default_socket =

Change the mysql.default_socket line to read:

mysql.default_socket = /tmp/mysql.sock

Restart Web Sharing Service (Apache)

Now, restart your Web Sharing service by going to  > System Preferences

Choose Sharing from the System Preferences page.

sharing-page

On the sharing pane, uncheck Web Sharing, wait a second for it to do its thing, then recheck it. If it was already unchecked, you will just need to choose the checkbox once.

screenshot-on-2009-07-05-at-30027-pm

Now, just reload your php page in Safari, and it should hopefully just work. Your app should now be connecting to the local MySQL server on your Mac. Enjoy!

Jim Breuer

Here is some hilarious stand-up content from comedian Jim Breuer:

And another, with Metallica: