Convert “localhost” to your Mac’s current IP address

When developing web pages, I use my Mac’s built-in Apache or MAMP.app. Viewing the page means using an address such as http://localhost/mypage.html. I decided to make my life a little easier by writing an AppleScript that looks at the open tabs in Chrome and Safari then replaces “localhost” (or custom domain) with my current IP address. Saving this as a service enables me to go to Chrome > Services to run the script.

Setting OS X Desktop Picture Based on Time of Day

I recently changed jobs (Hello, FireEye!) and was issued a new MacBook Air. I spend a lot of time looking at the screen and was getting bored with the supplied desktop pictures. I also start work very early most days (7am-ish), and thought it would be nice to have a desktop picture that matches the … Continue reading “Setting OS X Desktop Picture Based on Time of Day”