Biggest Obstacle To Move From WordPress To Blogger Is Permalinks!

So as I have mentioned previously, I switched web hosting for my WordPress blog. And while doing that I thought of migrating my blog from WordPress to Blogger at first. It was not like I was unhappy with WordPress. I just wanted to get involved with Blogger again since I last used a blogspot blog several years back. I did successfully migrate all of my blog content including WordPress posts, categories, comments, photos. But at the last step I got stuck :(

Moved This WordPress Blog to A New Web Host

This blog came to a standstill for last few months. I got busy with my work. And as lazy guy as I am, I couldn’t even gather some energy to write a blog post. Now few days back, I had to wake up. My blog was running out of time, literally. The web host package I had from Hostable.com was about to expire. So either I had to renew my web hosting or find a new web host for my WordPress blog. I had no complaints with Hostable.com. Great uptime and fast server and prompt support :) But now I just wanted to try something new and get engaged more with blogging activity. After all, I have had to migrate WordPress blog from a web hosting to another. But it’s not that big of a struggle. But I wanted to find the easiest of easy ways of doing it. And after quite a bit of searching and trying out different options and WordPress plugins, I have to say I have come up with a pretty easy way that requires only a few clicks to migrate your WordPress blog to a new host. I will write about it in my next blog post. But now I am planning to sit back, at least for tonight, as my WordPress blog is now up and running with serverhub.com :)

How To Open All External Links From WordPress Blog Posts In A New Window

Suppose you have written hundreds of blog posts in your WordPress blog and didn’t make your WordPress post links to open in a new window or tab by selecting the “Open link in a new window/tab” in post menu. Now you want to do that for all of your existing WordPress blog posts. One way to do this is through a WordPress plugin that I wrote about previously. Or if you want to do it without any additional WordPress plugin, then you will have to login to phpMyAdmin interface from your web hosting control panel and execute the following queries in WordPress MySQL database:

UPDATE wp_posts SET post_content=REPLACE(post_content,'target="_blank"','');
UPDATE wp_posts SET post_content=REPLACE(post_content,'<a href="','<a target="_blank" href="');

First one will remove any target=”_blank” attribute in your existing post links so that you don’t have it twice after executing the second query which will add target=”_blank” attribute to all of your WordPress post links. Don’t forget to create a backup of your database before modifying :) .

How To Add Facebook Fan Page Button To WordPress Blog

Yes, I am talking about Facebook Fan Page button, not Facebook Fan Page widget :) . If you are looking for a way to add Facebook Fan Page widget to your WordPress blog, just check this blog post of mine that I wrote recently. Anyways, this Facebook Like button is basically a strip down version of Facebook Fan Page widget. It doesn’t have any of your latest site stream or doesn’t even show the faces of Facebook users who liked your fan page. It will just show a thumbs up image as the screenshot below:

Free Download My Favourite Flash Cricket Game

I found this free flash cricket game several years back when I was still in college :) . I used to play it and love it. Then I lost track of it. Few months back I got it from a friend’s laptop and surprisingly I liked it just like I used to do before. This is simple. You just have to bat. A bowler will bowl 12 overs to you and you just have to stand and deliver. Time the shots and computer will compute the runs based on that. A tiny little game for fun ;)

How To Copy Putty Terminal Output To File

I was running some Java program to get output from a database from a remote server using Putty. Basically, that Java class just executes the select statement that the user enters using JDBC and prints the output to console. But the select statement that I executed returned a bit big dataset :) . I couldn’t find a way to select the whole output. So I was thinking like rather than writing command to copy output to clipboard and then writing it to a file, if there is an option to directly print Putty output to a .txt file that would be great. And yes, there really is a built-in feature in Putty that can log all session output to a file that you specify. Just look at the below screenshot:

How To Add Facebook Fan Page Widget To Your Site

I created a Facebook Fan page for this blog few days back. And I wanted to add a Facebook fan page button to the sidebar so that readers can directly like it from inside this blog. But creating a widget took some time as I wasn’t able to to find a working link where I can get the code snippet to add the Facebook page like widget. The links from other blogs were pointing to dead url actually. But after a bit of search I got to Facebook developers page where you can change and live preview your widget and copy the code snippet to add to your site or blog. You will get different options like code for HTML5 or IFRAME.

How To Execute Shell Script In Windows

Sometime back I wanted to compile and execute some Java files. I wrote a batch file for that as I use Windows. But then I needed to send it to some Linux system. So I wrote a shell script too. And then I thought of testing the shell script in my local machine before sending. I needed an easy way to run shell script in my Windows 7. Cygwin came to the rescue. It’s a popular Unix emulator for Windows. Using its command-line you can work with core Unix/Linux based functionalities under Windows.

View Formatted JSON In Firefox Just Like You Do For XML

Sometime back I wrote a blog post comparing performance of few online Json viewers. But what about if you can format your JSON data inside Firefox without any need to go to any website? Just install JSONView Firefox add-on. And now when you open any JSON document in your browser, instead of asking to download, it will show you formatted and highlighted data with collapsible objects and arrays. It is just like what you view when you open an XML document in Firefox.