How to test a WordPress install against a new version, without breaking the old one

One problem with upgrading any piece of software is the question of what’s going to break? WordPress is no different in this regard than any other piece of software so before major upgrades I run a test upgrade whilst leaving my real blog alone. There’s no substitute to testing with your real data so what I do is run another WordPress instance under a different virtual domain with a copy of both the database and the installation.

The rough steps I use are:

  • Create a new test domain in DNS
  • Copy the database WordPress uses to a new one and set up appropriate grants on it
  • Go to the options table in the database and change the two references to the old URL of the blog (the siteurl and home rows) to the new URL (otherwise you’ll find yourself constantly getting redirected to the production blog!)
  • Copy your WordPress installation to a new directory (I use rsync -aP to preserve permissions) and configure Apache to serve the new domain from it
  • Edit the copies wp-config.php file to match the new database copy and the username and password for it
  • Go to the new domain and make sure it works!

That should be it really. I first did that for my upgrade to WordPress 2.5 RC1 and it just worked for WordPress 3.2.1.

Caveat emptor: Now warranty, batteries not included, if it breaks you get to keep both parts! 🙂

Google to acquire Motorola Mobility (Updated x1)

Very interesting news, especially given Motorola’s recent sabre rattling about going after patent victims^W income – hopefully this will put the end to that nonsense.

MOUNTAIN VIEW, Calif. & LIBERTYVILLE, Ill. – Aug. 15, 2011 – Google Inc. (NASDAQ: GOOG) and Motorola Mobility Holdings, Inc. (NYSE: MMI) today announced that they have entered into a definitive agreement under which Google will acquire Motorola Mobility for $40.00 per share in cash, or a total of about $12.5 billion, a premium of 63% to the closing price of Motorola Mobility shares on Friday, August 12, 2011. The transaction was unanimously approved by the boards of directors of both companies.

The acquisition of Motorola Mobility, a dedicated Android partner, will enable Google to supercharge the Android ecosystem and will enhance competition in mobile computing. Motorola Mobility will remain a licensee of Android and Android will remain open. Google will run Motorola Mobility as a separate business.

I hope with Google in control we’ll see some better Android devices out there – can we get a real keyboard please ?!?

Update 1:

It appears that patents are part of the reason for Google buying Motorola, but looks like they’re being trailed as defensive according to this TechCrunch article:

During today’s conference call explaining the deal, Page noted that Motorola’s “strong patent portfolio” will help Google defend Android against “Microsoft, Apple, and other companies.” The first two questions on the call went right to the patent issue as well. With Android under attack on the patent front by Apple, Microsoft, Oracle and others, buying Motorola is very much a defensive move as well.

Comment on Social Media and Social Unrest

My good friend Alec Muffett has written on ComputerworldUK about a discussion on the pros and cons of social media in light of the riots in the UK. He puts it really well:

I support that some people might want to use Blackberries to organise riots. If people want to use a cellphone or social media to conspire, that’s fine by me. I also believe that young lovers should be able to whisper sweet nothings to each other in secret, I believe that rape victims should be able to communicate in private, and that pregnant girls should be able to seek abortion advice without state, corporate, or parental eavesdropping. Cancer sufferers should be able to share in private their illness with the people who care for them, and I believe that dissidents should be free to communicate political opinion.

I believe all of these things because I discriminate the ability to obtain privacy from the exercise of criminal intent, and I believe that the ability to have a private conversation – something that 200 years ago was easily guaranteed – is a valuable asset to the individual. Plus I further believe that a state which has been too lazy, too profligate, or too cheap to police what people are doing rather than how they talk about doing it, is in no position to argue that ability or secrecy of communication should be inhibited because the problem is too expensive for them to address otherwise.

This is even more appropriate these days given that David Cameron, the UK PM, has now said:

We are working with the police, the intelligence services and industry to look at whether it will be right to stop people from communicating via these websites and services when we know they are plotting violence, disorder and criminality.

I guess because it worked so well in Tunisia, Egypt, etc…

I would also suggest you watch his video “On Cyberspace, Social Media and Censorship“, recorded before the UK unrest.

GNU/Linux based phones – sic transit gloria mundi

So it’s looking like there’s going to be a real dearth of “real” GNU/Linux based phones from now on, with the Nokia N9 likely to be the last that I can see for some time. For a while it was looking quite promising with the whole Meego idea, but Nokia’s new CEO from Microsoft seems to have put paid to that with their colours now tied to the sinking mast of Windows Mobile. On the Meego handset list changes to how bugzilla items relating to the handset CE were announced, with the disappointing message that:

Handset UX isn’t fully maintained and currently there’s no activities for 1.3. N900 CE project is only who is maintaining / developing anything to Handset UX and when bugs are fixed in CE the fixes are also available to add to the MeeGo release.

There has been some activity from Nokia contributing back some work done on Meego (in general) for the N9, but basically it appears there’s no interest in Meego phones from anyone other than the N900 community. 🙁

That means that for now we’re stuck with either pseudo-open Android/Linux phones (which, I’ve got to say, haven’t really impressed me too much so far) and Apple’s iPhone which I dislike for its extreme walled garden approach (and I’ve even less idea about usability than Android).

I guess what I’m missing is the power of having a real Linux distro (a shell and utilities that you expect with it) on a phone. I’ve been really happy with my N900 – the fact that I can ssh to our HPC clusters and use X forwarding to fire apps back to it has been really useful at times (not to mention vendor provided root access) – and I was struck that the Meego handset UX has full bash and (amazingly) even strace installed by default. Something approaching a real computer.

But then again I’m a niche market that makes most niche markets look positively huge, but having tasted freedom with the OpenMoko and the N900 I’m hungry for more..