Tuesday, 20 October 2009

Backing Up That Wordpress Blog

Well I suppose this could be considered the last in an unintended series about backing up and recovering a blog, with a specific focus on Wordpress.

In the first part I covered recovering a deleted blog when no back up existed. While the second part talked specifically about how to get the Google Reader ATOM file converted so it can be imported in to Wordpress.

In this last part I am going to concentrate on backing up your blog, specifically Wordpress because that is what I use.

In the first part one of the recovery methods relied on you having subscribed to your own blogs RSS feed in Google Reader. It also relied on the full post being in the RSS feed and not a summary. So this is our first way of backing up our Wordpress blog. This will also work with any other blogging platforms, so is a nice general tip.

Now Wordpress should adapt the iPhone ad campaign to say “there’s a plugin for that” (thanks Duncan for that quote). Because by installing the WordPress Database Backup plugin you are then able to backup the important Wordpress database tables for your blog. Not only that you can schedule the backup to happen on a regular basis and have the backup emailed to your inbox.

The third and final backup method we will use is to back up all our Wordpress files. To find out how to do that pop on over and read “Automatically Backup Your WordPress Site”. Now this will only work with self hosted Wordpress blogs where you have FTP access to your files. Although this would work with any blog platform where you can get FTP access. So potentially a nice general tip. This will also work if you want to back up a website to.

So there we have it use these three methods and you should be covered if anything goes wrong. Just make sure you keep multiple copies of the back ups and at least one of them offsite (maybe use something like Dropbox, or Live Mesh).

Importing That Google Reader Atom File To Wordpress

Ok so in my previous post I told you how to get your blog posts back if for whatever reason you deleted your blog. In that post if you went the Google Reader route you ended up with a ATOM/XML file.

Sadly Wordpress in both forms (Wordpress.com and Wordpress.org) will not read this ATOM file. But it is possible to get it into a format that can be read by them.

Firstly you are going to have to visit a couple of places on the web and download a couple of things.

The first thing you need to do is download the atom2rss.xsl (from Atom conversion tools). Store that in the same directory that your ATOM file is stored. Next you need to visit the Microsoft site to download msxsl.exe (get from here), and also save this in the same place as the other files.

Now you will have to open a command prompt up and change to the directory where you have all the files stored.

From the command prompt type the following:

msxlr.exe –o OUTPUTFILENAME.RSS ATOMFILENAME atom2rss.xsl

where OUTUTFILENAME.RSS is the name of the new file we want to create

and ATOMFILENAME is the name of our ATOM file containing all our blog posts.

If all has gone to plan then we should have sitting in the directory a file with a .rss file extension.

Now if you have a self hosted Wordpress blog, all you have to do is login, go to the Dashboard. Go to Tools, Import, click on RSS locate the .rss file created and that’s it. You should now have all your old posts loaded back into the blog.

For a Wordpress.com blog you need to do some extra steps. Sadly for whatever reason Wordpress.com does not allow you to import an RSS file. See nothing is ever easy.

Firstly you are going to have to install Wordpress locally! Now don’t worry that sounds harder than it actually is. Especially if you follow the steps detailed in this excellent blog post HERE.

Once you have XAMPP up and running with Wordpress, log in, go to the Dashboard, go to Tools and Import. Yes this sounds awfully like what the self hosted lot have just done, and it is. So I won’t continue with the steps just read what they had to do.

Now with all the posts sitting there locally on your pc, go to Tools, Export and export your blog posts out as wxr file to your hard drive.

Now log in to your Wordpress.com blog, go to the Tools section and Import and select Import Wordpress blog and follow the prompts.

That’s it, you have you lost posts back up.

Phew!!!

Wednesday, 14 October 2009

Getting Your Deleted Blog Back

Ok for whatever reason your blog has been deleted. It then dawns on you that you don’t have a back up to fall back on. Don’t worry all is not lost.

Using Google Reader

Hopefully you are subscribing to your own RSS feed in Google Reader, and that you are posting the complete post to your RSS feed and not a summary. If you are doing both then getting your content back is going to be really quick and minimum effort.

Google Reader doesn’t just allow you to read RSS feeds that you subscribe to, it also caches the feed and archives it. That’s why when you scroll down when reading the feed you can read all the previous posts of that feed.

It’s this caching and archiving that we are going to be making use of now to get our deleted blog posts back.

In an web browser enter the following URL in the address bar:

http://www.google.com/reader/atom/feed/FEED_URL?r=n&n=NUM_ITEMS

Replace the FEED_URL with the feeds address, and replace NUM_ITEMS with the number of posts you want to retrieve.

Here is an example that retrieves the last 100 posts from my Outdoors Blog Whitespider1066.com:

http://www.google.com/reader/atom/feed/http%3A%2F%2Fwhitespider1066.com%2F%3Ffeed%3Drss2?hl=en?r=n&n=100

What is returned is an ATOM/XML file that you can save to your local hard disk. This file can then be imported into your blogging software and thus restoring your lost blog posts.

Using Google Cache

Ok the above Google Reader way was the easy option if you met the conditions I mentioned at the start of it. The remaining ways require effort. This particular way is also useful if you have any static pages you want to recover as well.

Hopefully you haven’t banned Google from crawling your blog. Which means that Google has indexed your blog. So what we need to do is find out what Google has indexed. We do this with the following command in the Google Search box:

site:NAME_OF_BLOG

for example:

site:whitespider1066.com

gcachescreenshotYou then get a list of entries that Google has indexed. Below each entry found is a link to a cached version of that entry (see screen grab left). Click this and it takes you to that cached copy of the post.

If there are images on the page, you can right click and “save as” these if you don’t have a back up of them already.

Next you need to view the source code of the cached page that you are viewing. Select the code that starts with the title, and finishes with the close paragraph tag. Copy this, and then paste into a text file.gcachesrcshot

Repeat this process of viewing the cached copy, viewing page source and cutting and pasting for each of the posts/pages you want to recover.

I’m assuming a Wordpress blog from this point on. Log into your Wordpress blog, and go to the Write Post screen. Copy and paste from the text file the title of the post, then switch from “visual” mode to “code”. Then paste in the rest of the  post, starting with the paragraph tag that opens the post and the stopping with the end paragraph tag that the post finishes with. The benefit of doing it this way is that it keeps any links and images intact without having to redo them.

Finally the timestamp can be set in Wordpress using the Post Timestamp option to that of the original post. That can be found between the title and and the post content that we have cut and pasted.

Now you have to repeat this for each post. See how much more effort this is to just getting the RSS feed cache from Google Reader. I bet you wished you had posted the full post now.

Warrick

warrickscr

I’ve not used this option, but it is a third way that seems to automate the process of getting the copies of your blog/website from the stored caches from several sources. Having not used it I can’t say how easy it is either in getting the data back up either. But having said that it’s worth checking out when your back is against the wall.

Here is the link to Warrick.

Of course all of the above does not replace doing regular backups of your blog.

Friday, 2 October 2009

The Little Photo Lab On Your Phone

I wrote the following post for my blog whitespider1066.com but thought it may be of interest and totally suitable for the readers of here as well. I’ll apologise for those that read both for duplicating the post.Oh there is a difference for some reason WLW and blogger don’t like me posting images! SO I have had to remove the screen shots that I was able to post over on whitespider1066.com.

Roger in the comments on the post “The Best Camera” asked me what iPhone apps I used to generate the photo that I posted. I thought that this would be easier to answer with a blog post than with a comment. Well I wanted to break up the OTS coverage, and to post a couple of screen shots from the iPhone. Any ol’ excuse to be geeky really.

The iPhone I have is the 3G which has a 2 mega pixel camera, unlike the 3GS which has a 3 mega pixel camera that also shoots video. The other difference is that the camera on the 3GS also has an auto focus, plus you can also select the area to focus on by touching the point on the screen. So those with the 3GS should be getting better results than I can with my 3G.

The iPhone has some great apps to allow you to manipulate photos while away from your pc/Mac. Which makes it really useful when out on the hills or doing a multi-day hike to live blog and attach images to the post.

After taking the photo using the camera on my iPhone I then load the photo into Photogene. Photogene costs £1.79 from the App Store, but is a very handy power packed tool. For starters it allows you to crop and straighten a photo. Plus enhance photos with multiple colour adjustment options and a sharpen filter. You can also add effects like text balloons, frames or special filters.

So using Photogene I cropped the photo, used the auto colour correct, and applied a frame to the picture (in this case the sticky tape on the corners).

The resulting picture I saved and loaded in to Collage Lite. Collage Lite is the  free limited version of Collage. Lite versions are the way you get to try before you buy in the iPhone App Store world. In Collage Lite the limitations are that you are limited to four photos and that you don’t get the crop functionality. At the moment the Lite meets my needs, but the full blown version is only 59p so like a lot of iPhone apps not going to break the bank. So using Collage Lite I assembled the photos to make the simple collage that you saw.

As I commented on the blog posting I just thought that it would be a fun way to present the photos that I had taken on the iPhone. We need to have fun sometimes.

So there you have the two apps that I used for the picture I posted. However I have a couple of other apps that I use as well. The first app is Pano. This app allows you to take panoramic photos using the iPhone and costs £1.79 on the App Store.

So as you can see on this post I have screen shots of the iPhone. How did I do them and get them on my netbook so I can use them in this post?

To take a screen shot on the iPhone quickly press and release the Sleep/Wake and Home buttons at the same time. A white flash of the screen lets you know the screenshot was taken, you will also hear an audible queue as well. The screenshot just taken is then added to the Camera Roll on your iPhone. Simple and very handy.

I then had to get this onto my netbook. Sadly my netbook does not have iTunes on it, and I only sync my iPhone with my Macbook anyway. So how to transfer files? Dropbox that’s how. Dropbox gives you 2GB of free online storage, and they have just released a free iPhone app. So with a small install of the Dropbox software on my netbook and creating a free account I was able to sync the photos quickly across from the iPhone to the netbook to be used in this post.

CropForFree is a free app that allows you to crop an image. It is a new one that I have recently downloaded to have a  look at. But with cropping already in Photogene and in Collage (if I buy full version) unless this adds something really special I can see this one being deleted from my iPhone. But still a handy one to know about if you want to crop without splashing out any cash.

Another app I have just downloaded is NoiseBlaster at 59p. It’s by the same author as Photogene, so it has a good pedigree. As the author describes it “NoiseBlaster implements an advanced algorithm, specifically designed to remove the noise created by the iPhone camera”.

So I hope that answered your question, and I haven’t bored you.

Sunday, 27 September 2009

Lilly Allen, File Sharing And My Thoughts

In the last week or so Lilly Allen has caused a bit of a stir on line with her “blog”. Well calling it a bit of a stir is an under statement, more like a shit storm. I can’t link to what she wrote, because she has taken the offending postings down. However I did get a chance to read them before they were removed. Basically Lilly came out in support of the Labour Governments plan to remove repeat file sharers from the web.

Since the shit storm, Lilly has backed down a little or in her words “had a rethink” and is now in favour of not disconnecting them but cutting the amount of band width down that they can use.

See I can understand Labour coming up with their blinkered bought view. Lets face it they have taken the music industries money. And yes we can argue that Lilly has also.

But there is a difference.

Lilly stated that file sharing hurt artists and stops new talent being discovered. I disagree, the music industry has been exploiting musicians and ripping off the public for decades. Which they were able to get away with while they were the gatekeepers to what we got to see and hear.

But the music industry got caught napping. The internet came along, and as it has in so many other industries it has removed the gatekeeper. For the music fan the internet has been a positive thing. It has forced down the price of owning music, from cd’s to being able to get individual tracks as downloads.

Yes there is still lots of music that gets downloaded for free. But it is incorrect to assume that these are lost sales. Very often these are people that would never of bought the record anyway

For years now musicians have made their money from touring and merchandise, and not record sales. The only people profiting from the record sales are the record companies.

Musicians need to get fans to come along to the concerts and buy merchandise. How do they do that? Have as many people listen to their music as possible. With the logic being “oh I like that group I’ll go and see them play live”. The only thing that I can see that will get in the way of this is if the artist/musicians involved get a rep for miming to their songs when playing live. That is unforgivable. Plus will put fans off from going to see them live.

Maybe Lilly could answer the question from all the money that the RIAA has gotten in the fines awarded by the courts in the US, how much of that has actually made it back to the artists?

Despite what Lilly has said the internet has made it easier for new artists. It has enabled them to build a fan base, and get their music out to the public easier. It has also enabled established acts to connect with their fans in a more direct way. In fact it has removed the barrier of entry for the artists of getting their music out there.

Now I can see why there were personal attacks on Lilly from the online community. They felt that Lilly was attacking them. Which in a way I think she was. But that doesn’t justify the personal attacks. I think you can debate/discuss the issues and the points raised without getting personal. If you make it personal then how can you ever hope to change a persons mind with your reasoned argument? That person won’t be listening to what you have to say.

I feel sorry for Lilly. I don’t think she realised how much her fans, and the public feel about this subject. If Lilly reads this which I doubt she ever will, I would like to invite her up North to discuss this subject on camera over a cuppa while out with my dogs. I think it would make a great vidcast. One day, one of these celebs will accept the invite and then I’m done for as I won’t be prepared.

Wednesday, 16 September 2009

Some Great Free Stuff From Microsoft

Wow I bet that title shocked folks. Yep Microsoft do some great stuff, and it is free as well!

Windows Live Writer (WLW) – I had to start with this it for me is the best bit of blogging software out there at the moment. So good in fact that on my Macbook I have VMWare Fusion running an XP virtual machine so I can use WLW on my Macbook. It really is worth the effort. There are also some nice free plugins that can be installed that expand it’s functionality.

Windows Live Photos (WLP) – You can install this at the same time as you install WLW, which I do recommend. There is one feature here that I find very useful indeed, and that is the ability to stitch photos together to make a panorama (details here). You can see the results I got from a panorama I did with it here.

Live Mesh – 5GB of online storage for your files. Runs on Windows (naturally), Macs (although there is a Snow Leopard incompatibility at the moment), the web and other mobile devices (no iPhone client yet). So 5GB of synced stored files, and the ability to access the desk top of the computer as well. So when you are away from your desk or office your able to get easy access to them and the apps that access them.

Office Live – Want another 5GB of storage just for your office documents? Want to collaborate on them as well? Then this great M$ freebie is just for you.

Sky Drive – 25GB of online storage! Yep a massive 25GB of free online storage. ‘nuff said really.

Of course with the above there may be file size restrictions. But if you are using these to back up photos, documents and the odd mp3, then this shouldn’t be a problem.

So using three free Microsoft services I make that 35GB of free online storage. Not bad if you ask me. Plus don’t forget when Office 10 comes out there will be a free online version of that to include in this list. It won’t be the full version naturally, but hopefully be more functional than Google Docs. I think that Google Docs will have some pretty stiff competition.

Friday, 11 September 2009

Yet Another “Social Media” Phone

Yet again another new phone that is aimed as a “social media” phone. This time it’s a Google Android phone from Motorola. I hate it when the phone company or network provider try to sell a new phone trying to ride on the back of “social media”. I’ve ranted about this previously about Nokia.

What they are trying to pass off as a “unique selling point” isn’t really. Any “smart phone” that can have apps installed on it can be a “social media” phone. The Google Android G1 phone is a “social media” phone, as is the Blackberry and the iPhone along with the Palm Pre. They all have Twitter and Facebook apps, plus other apps to hook up to other social networks. Also the majority of these apps are free and pretty good as well. In fact I prefer accessing Facebook from my iPhone to using the website (yes the apps can be that good).

I suppose to a general population that is none the wiser then this “unique selling point” may get them the odd extra sale. For those in the know we just aren’t fooled by this sales/marketing snow job.