Who? Me??

Random musings which I rather not say out loud :)

Archive for the ‘blog’ tag

Upgrading WordPress

without comments

With the WordPress 3.3 update coming out, I decided that it was about time that I upgrade the wordpress running on our company’s website from the lowly 2.7.1 to the current version. This has been a thorn in my side from quite some time (about a year now). I had earlier attempted to correct this, however direct update options available in WP always resulted in broken themes or worse, broken functionality. It’s a nightmare when you have to consider the SEO juice you would be loosing because of the change in URLs. Even if I put in 301 redirects, it was too much of an effort to consider the update.

Installation

  • Christmas and New Year is always a slow time for any business, the perfect time to update WordPress. Also, using Google Analytics, I noted the time of the day when we receive the least no. of visitors (2am to 7am IST, when the no. is around 300-400 visitors per hour, else it goes as high as 1700-2000 visitors per hour)
  • The first thing I did was ensure that my hosting environment was compatible with WP 3.3. Turns out that my PHP version was not updated. I found this excellent guide to upgrade PHP from 5.1 to 5.3.
  • Once that was done, I double checked to see if my existing packages were compatible with the updated PHP. Turns out, that a lot of the functions in the previous version were deprecated. My error_log was looking like a battlefield scarred with PHP Fatal Errors, and PHP Warnings. Some quick fixes, I was ready for the WP update.
  • Using the awesome 5-minute WP install, I installed a dummy version on a hidden subdomain. I was sure to disable search engines on this deployment.
  • I then exported all the data from our current system and imported it into this deployment. This was the easiest part!
  • I then copied our theme files, and installed it into this new WP package (you have to check the theme files for deprecated methods)
  • I then copied all the plug-ins from the old to the new WP. These were then updated. The good thing about updated plug-ins is that you get awesome set of functionalities and security updates that you so wanted. Note to New Webmasters: There are a lot of plug-ins out there whose older versions contain backdoors (more on this later), trigger false alarms on search engines, etc which need to be taken care of. Earlier I used to this clean-up using shell scripts, but not anymore :)
  • Now with a bit of tweaking here and there, the site had URLs which were function properly (no more worrying about loosing on our SEO efforts).
  • With adding a fair bit of plug-ins into the system, came a new problem – conflicting jQuery!! Earlier this month, I had asked our intern to hand script a jQuery menu, and that was conflicting with the other jQuery scripts. Fortunately, we have jQuery.noConflict().

A whole new World!

  • WordPress 3.3 is breathtakingly awesome!
  • The custom fields have been nerfed, now you have to do a fair bit of tweaking around to introduce custom fields in pages. But that allows me to have a higher controls on them. Earlier custom fields had this nagging way of getting out of control in a wordpress installation. Not any more!
  • Plug-ins like All-in-one-SEO make for better and simpler SEO efforts. All my worries of duplicate title tags are slowly vanishing away!
  • Better plug-in support! Earlier where I would myself script a small workflow on the WP installation, now I can again rely on the huge set of awesome wordpress plug-ins

The good part of this transition was that it took me a little of 3 hours to completely migrate. Of course for some other media (such as videos, pdfs, etc.) which I did not want to migrate to a new folder, I created softlinks and the task was done. All in all, if you are facing legacy wordpress systems, and are worried about upgrading them to the latest version … dont. The best method is to deploy a new version and migrate all the content (however ginormous the task sounds, its a better approach).

Written by Prasad

December 25th, 2011 at 1:10 pm

Nothing special

without comments

I wanted to make this a special post. It’s my 400th one on the blog.

However, 2 busy weeks and a sad case of writer’s block later, I decided to let myself go … where I get the inspiration, but cannot put pen to paper.

Nothing is special. It’s a post, there.

On the other hand, it does not have to be something unique or worldly … it does not have to be an insight. The mere number should make me happy … on to # 500 then!

Although if mere number of posts are going to satisfy my ego, then perhaps I should look at integration some sort of an RSS to my RPC. That never was the point, was it.

Written by Prasad

July 27th, 2011 at 12:37 am

Posted in foo

Tagged with , , , , ,

Criticism

with 4 comments

I often contribute to the team blog of the company where I work. It is fulfilling, where else can you blog at work :-)

In the past two days however, the team blog … specifically my posts have come in the spotlight. By a critic … the comments are coming from a different perspective, maybe by someone who has engaged with the philosophy and found it either too abstract or too disillusioned.

The outcome being that there is criticism about the ideology and some more criticism about the author. Personally speaking none of my blogs have ever attracted much traffic, so I never had to face much applause or critique other than my immediate circle of friends. Critique from an unidentified source, adds that element of mystery and even a little bit of surprise (Ohh!! Someone does read my stuff!).

What I have not picked up over the 4-5 years of passively active blogging I have done is … how to handle criticism. A post I recently found is pretty good and maybe it will help other bloggers as well, so sharing it here.

Appended –

Pallavi commented that the critique might just be a different perspective or a different opinion. The final choice of taking that is always upto us. I looked back at the comments I was getting, and have decided to take the new perspective and try something new on the team blog. Will update once I get the results.

Written by Prasad

March 27th, 2010 at 7:10 am

Posted in foo,personal

Tagged with , , , , ,