About the only thing I miss about hosting my sites on a Linux webhost running Cpanel is the ability to auto update WordPress sites with one click. Granted, my experience with WordPress auto update is a mixed bag. When it works, it is all kinds of awesome. When it doesn’t, it leaves your site inaccessible while you figure out exactly what went wrong and how to fix it.
Since I’ve moved my webhosting to my own colocated Mac mini, I’ve missed the ease of auto updating my WordPress sistes. Downloading the latest WordPress update is such a pain, especially when you have to update several sites each time an update is released. Thankfully, with a little command line code, you can perform this action quite quickly and easily.
First start by SSHing in to your Mac OS X Server. Once in, you will use the ‘curl’ command to download the latest version of WordPress. Thankfully, WordPress keeps it’s latest version at the same URL regardless of version number, so once you make note of this URL, it shouldn’t change.
curl -O http://wordpress.org.latest.zip
Once the download is complete, unzip the archive.
unzip latest.zip
Then change your directory to the wordpress folder.
cd wordpress
Now, the final piece is to copy the files in the WordPress folder to the location of your WordPress install. When you do this, make sure you use the ‘-pr’ modifier for the copy command so the copy maintains permissions (-p) and is recursive (-r).
cp -pr * /Library/Webserver/Sites/your-website-name/.
That’s it. You’re done. One of the nice things about the *NIX copy command is that it won’t obliterate directories on the destination if they aren’t present in the source directory. So when you copy the wp-content to the new location, your themes and plugins are all left intact.
In our next tip, we’ll show you how to combine all of these steps in to one script and further automate it.
Category: PHP,Tutorial,UNIX,Wordpress
Apple has posted a detailed list of questions and answers on the location data controversy that has been in the news of late.
For those who fully understood what was being collected and the details of it, there isn’t much new to see. Of note:
7. When I turn off Location Services, why does my iPhone sometimes continue updating its Wi-Fi and cell tower data from Apple’s crowd-sourced database?
It shouldn’t. This is a bug, which we plan to fix shortly (see Software Update section below).
and…
8. What other location data is Apple collecting from the iPhone besides crowd-sourced Wi-Fi hotspot and cell tower data?
Apple is now collecting anonymous traffic data to build a crowd-sourced traffic database with the goal of providing iPhone users an improved traffic service in the next couple of years.
So, Apple is gathering traffic data to build a database, which will ultimately power a service of some sort to provide traffic data. Couple this with Apple’s purchases in the map and geolocation services, and you have data that suggests Apple going to replace Google as the maps provider for iOS with their own maps data. Additionally, the traffic data suggests that Apple could be building it’s own turn by turn navigation system.
There’s a healthy amount of turn by turn navigaiton apps on the App Store, so I’m not certain that Apple offering this is a good idea. Still, many Android buyers cite the free turn by turn, high quality navigation system that Android builds in for free as a reason for their purchase. Apple might see this as a defensive addition to block Android’s appeal.
Category: Opinion
The WSJ has a story on Apple’s cash reserves, which are now nearly $66 billion dollars, and puts forth the question:
what are your ideas for what Apple should do with its cash?
Apple has stated publicly that it is hoarding it’s cash so that when the opportunity arises, it can afford to make a big purchase. There aren’t many companies Apple couldn’t buy right now with that cash pile, so let’s look at a few possibilities.
Adobe
An Adobe purchase would be a coup for Apple. Many of Adobe’s products align with Apple’s priorities. Adobe has some very smart people working for them, but lately it seems these smart people have been out muscled by the suits. An Apple purchase and injection of Apple culture could do a lot to restore Adobe to it’s hey day of being a company that people actually champion, instead of actively lambast.
Disney
Steve Jobs sits on their board. They bought his other company, PIxar, a few years ago. They are a content juggernaut. They encompass ABC, ESPN, DisneyTV, and a couple of movie studios. They epitomize many of the same ideals that Apple does in customer experience. Could Apple be hoarding its money to purchase the house that Mickey built?
A Disney purchase would give Apple preferred access to a large amount of content from radio, TV, and movies. It would give Apple access to advertise in all 11 of Disney’s theme parks and in front of the 120 million people who visit them each year.
That said, Disney is an entertainment company, and Apple is a technology company. The last time an entertainment company (Time Warner) merged with a technology company (AOL), the results weren’t pretty.
Sprint
Perenial 3rd place US cellphone carrier Sprint hasn’t been having that great of a time lately. Purchasing Spring would enable Apple to really own the whole cellphone widget in the US. Of course, it would also create problems with the other US carriers, so I doubt this would ever happen.
Samsung
Purchasing Samsung would give Apple ownership of the company that produces many of it’s parts – LCDs, SSDs, CPUs and more. Samsung is also a competitor in the mobile phone market. So this acquisition would give Apple better access to it’s component supplier, and kill a competitor in the mobile space.
Microsoft
So this acquisition doesn’t net Apple much in the way of technology it can use. But it does vanquish a competitor in the desktop, mobile and online space. Plus, it gives Steve Jobs the ability to finally declare victory over his longtime rival. Of course, there’s no chance that Apple would buy Microsoft, but that doesn’t mean we can’t fantasize about what would happen if they did.
Apple is a big company, but many of it’s divisions are run like startups. I’m sure part of the hesitation in making a mammoth purchase is that it would fundamentally transform the way Apple would operate, and I’m betting Steve Jobs and the upper management team are reluctant to mess with their formula for success right now.
Category: News
So everyone is up in arms over the revelation that the iPhone (and 3G iPad) collects and stores information on every place it has been. More accurately, it stores information and location on every cellphone tower it has connected to. The longitude/latitude data that is being stored is obtained by cellphone triangulation, which iOS uses to determine location when no GPS hardware or signal are available.
The iPhone stores this information without your consent on both your iPhone and on your computer, if you are syncing your iOS 3G capable device to your computer and letting it create a backup of your devices data.
Pete Warden and Alasdaid Allan have crafted an app that scans this information, and places the coordinates on a map, along with a date scrubber to see where your device has been.
Looking over my data, it showed what I already knew – that apart from trips over the last year to Minnesota (business), Florida (family) and North Carolina, I lead a pretty boring life.
However, there is one anomaly that was odd.
I bought my iPhone 4 new last year on the day it launched, June 24th. However, the location data on my iPhone shows that it traveled down US95, right outside Las Vegas on June 23rd. I’m assuming this where the iPhone entered the country on it’s trip from China, and then was routed to a plane that took it to the Apple Store in Buford, GA.

The odd thing is the phone wasn’t activated until the next day. I had assumed that for the phone to log the location data, it needed an activated SIM card. Apparently, that isn’t the case.
So apparently your 3G iOS device will log it’s connection to each and every cell tower it connects with, even if it hasn’t been activated yet.
Either that, or my iPhone spent the night before it’s launch having a grand old time in sunny Las Vegas.
Category: Apple,iPhone
Seamless lets you transition from playing music on your Mac to playing music on your iPhone or iPod touch –– in a single tap.
Yowza.
Category: Indie Developer,Software
Spot on assessment from Ted Landau:
The very first slogan used to advertise the original iPod, back in 2001, was “1,000 songs in your pocket.” A coming slogan for the iPhone could well be “the only thing in your pocket.”
I’ve been thinking recently about all the stuff I used to carry around that the iPhone has made obsolete for me. Watch. GPS. iPod. Portable gaming device. Consumer grade digital camera. Phone. Put simply, the iPhone is the ultimate swiss army knife.
Category: iPhone,Link Roundup,Opinion
Panic’s new terminal client, ‘Prompt‘ debuted this morning in the app store. The unversal iOS app supports autocomplete, key file support, multiple connections, bonjour discovery of servers, and customizable keys. As with anything Panic does, it’s a must have (and only $4.99).
Category: App Store,Software
Gus Mueller lays out his plan that he executed on for his quest to become an indie developer.
Lesson #7 – It’s not good enough to write and sell something that people want, it has to be got to be something they’ll spend money for as well.
I think this often gets overlooked by many developers. I’d sum this up by saying it’s not sufficient for your app to be good, your app needs to be indispensible if you want people to pay for it.
Category: Developers,Indie Developer
IDC claims that Windows Mobile will overtake iOS and become the #2 smartphone platform in 2015.
“By 2015, IDC expects Windows Phone to be number 2 operating system worldwide behind Android.”
Anything is possible, and of course, with IDC using the smartphone label, they discounting all the iPod Touches and iPads in the mobile space. But still, they have Windows Mobile taking a nearly 21% market share in 2015. Nokia won’t even have Windows Phones on the market until 2012. The first batches of Windows phones have been heavily discounted because they aren’t selling well, and Microsoft is desperate to get product out there, even at a loss. So things aren’t exactly looking rosy for the guys in Redmond at the moment.
Category: News
Last year, I purchased an iPad and after about 2 months, ended up selling it. As much as I liked the iPad, I couldn’t find a place in my world for it. I have my iPhone for when I’m away from home. I have my Macbook Pro as my main workstation. When I am at home, the iPad was nice to have for surfing the web on the couch, or for reading my RSS feeds while I ate breakfast. But being a web developer, there was little I could use it for to get work done. The device is certainly capable of performing these tasks, but the software doesn’t exist yet to accomplish this. The software might never exist, as Apple is adamant about not allowing other language processing software (read: Ruby, PHP, Perl, etc) on the App Store. And if you aren’t on the App Store, you aren’t on the iPad.

Enter the Macbook Air.
The 11.6 inch Macbook Air satisifes many of the iPads portability features – small, lightweight. Of course, it’s a little heavier (2.3 lbs. vs. 1.3 for the iPad 2) and has about half the battery life. But it also is a fully capable development machine.
The 11.6 inch version of the Macbook Air features an 1366 x 768 display. This is a higher resolution display than the 13″ Macbook Pro. It is a very crisp display. However, due to it’s small size and high resolution, type is noticeably smaller on the Air than what you would normally be used to on a Macbook Pro or iMac. This is easily rectified in many apps like Safari by zooming in, or increasing the font size. Some apps don’t offer this feature, so it’s not a universal fix if you find the display difficult to read.

Keyboard
The keyboard is very close to full size. The top row function keys are slightly thinner than the normal Macbook Pro keyboard. The arrow keys are similarly thinner. Overall the keyboard has a good feel, and if you like the standard Macbook Pro keyboard, you will probably enjoy the Airs keyboard.
Processor
I opted for the 1.6ghz version of the Air. Of all the upgrade options, this was the choice I was most torn about. At $200 more than the 1.4ghz CPU, it’s not entirely clear to me whether I will see much benefit from the increased horsepower.
Speed
The amazing thing you first notice when using this computer is how fast it feels. Startup is in the 20 second range. Applications launch nearly instantaneously. Obviously, anything that taxes the CPU or GPU is going to run slower than what you are probably used to. The odd thing is, you don’t realize how important disk speed is to your computing experience until you use an SSD equipped computer. Unless you spend your day rendering video or running CPU intensive Photoshop filters, chances are the Macbook Air with it’s pokey CPU and it’s bare metal SSD will feel much faster than your current non SSD computer.
Audio
I can not find where Apple placed the speakers on this thing. I see no speaker grills, but it sounds like the audio is eminating from underneath the keyboard. Either way, audio is plenty loud, and sounds amazingly good for a computer this size with no speaker grills.
Screen
The 11.6 inch Air has a 1366×768 glossy display. It is very sharp. Obviously, packing this many pixels in to a display this size means that most objects are going to be smaller than what you would be used to if you have been using a 13 or 15 inch Macbook Pro. When I’m typing on the Air while sitting at a desk, the screen resolution is comfortable and easy to read. When I’m sitting back on the couch, and I have the Air on my lap with the screen a few inches further away, the resolution can feel a bit too tiny at times. This could be due to my horrible eyesight. Either way, it’s a easy fix. Either bring the screen closer, or zoom in the screen if using Safari.
Battery
Apple claims 5 hours of battery life in their web surfing tests. I have been able to get 5 hours in my testing, which involved just using Safari to load a web page every minute until the battery ran out. When it comes to battery life, the Air isn’t going to best the iPad. But for a machine that is nearly as light, and infinitely more capable than the iPad, battery life is very good. In normal usage of performing work – which involves having Coda, Safari, Terminal, MAMP and Firefox open – I get just about 4 hours at about 50 percent screen brightness.
Wrap Up
The 11.6 inch Macbook Air is an amazing machine. It’s small. It’s fast. It’s light. It’s infinitely capable for many tasks including word processing, programming, web surfing & email, and lighter games. About the only people I would not recommend the Air too are those that work with 3D graphics, video, or Photoshop as their main tasks. In those cases, the power versus portability trade off probably isn’t as easy to digest. But if mobility is your primary concern, the 11.6 inch Air is the most mobile Mac ever made.
Buy the Macbook Air – 1.4ghz, 64GB SSD, 2GB RAM from Amazon.com.
Category: Hardware,Reviews