Yes, you can “touch” this

“touch” is a handy unix utility to udate the time stamp on a file. Recenly I ran into a case on my mac book pro that required me to update all of the files and sub-directories of a project with the current date.

In terminal, I could have gone one by one an used this command on each file

touch thisIsAFileName

But after a few moments of onterweb searching, I came across a perfect solution

find . -print0 | xargs -0 touch

This command will find all of the file in all sub-directories, even if they have spaces in their name, and set their last updated time to the current time.

Just a handy tip I thought I would share

Optimizing the performance of WordPress

It’s no secret that I LOVE WordPress. I’ve been using the software for 6 years and have no plans to stop any time soon. Last year I attended WordCamp LA with @JasonKeller, it was awesome. I knew that I had to be involved with WordCamp 2010.

When WordCamp 2010 was announced, I signed up as a speaker. My topic, “Improving the performance of WordPress”.

I had a great time preparing and delivering my presentation. A lot of people asked me to post the slides online. I decided to do one better, and post a recorded version of my presentation.

Download the slides in PDF format

Macbook Pro – Make an external monitor your primary display

Recently, I got a mac laptop at work, which is sup[er sweet, but I wanted to hook it up to a real monitor, keyboard and mouse. All very easy things to do. The problem I had was that the laptop was acting as the primary monitor. Every application that I drug over to the secondary monitor worked great, but the application tool bar was still on the laptop.. annoying.

I did a quick Google search to see if there was a solution to the problem. There was, and it’s dead simple to put into action.

Connect the external monitor

  • Start up the “System Preferences” app
  • Click on “Display Preferences”
  • Within Display Preferences, choose Arrangement. You should see two blue squares that represent each display, main and secondary. On the main display you’ll notice a bar along the top.
  • Click and drag this bar from the Main Display to the Secondary Display.
  • Close Display Preferences
  • That’s it!