Tag Archives: WordPress

Blog Scare and Chrome OS Update

Today I had a kind of a scare. This morning, I noticed that this blog was down. My first guess was that it should probably be related to the intermittent outages my host was facing.

The blog was sending back 500 – Internal Server Error responses. The error.log file was filled with messages like these:

[Tue Nov 24 10:38:42 2009] [error] [client 149.117.7.28] Premature end of script headers: index.php
[Tue Nov 24 10:39:23 2009] [error] [client 149.117.7.28] Premature end of script headers: index.php
[Tue Nov 24 10:41:05 2009] [error] [client 209.85.238.214] Premature end of script headers: index.php
[Tue Nov 24 10:41:46 2009] [error] [client 209.85.238.214] Premature end of script headers: index.php

As usual, I looked for help on the WordPress Forums. When the initial suggestions did not resolve the problem, I decided to dig deeper. I downloaded WordPress and extracted a clean install. All I did was moved over this blog’s wp-config.php into this directory. It again resulted in the same 500 – Internal Server Error response. That almost certainly indicated a corrupt database.

Thankfully, reverting to the last good backup is fairly easy in DreamHost Panel. The Restore DB option is available under Actions for each database in the Main Menu → MySQL Databases section of the panel. After restoring the database, the blog was back up and running.

Now, only thing bothering me is – what caused the database corruption? Was it some server glitch, that would hopefully never happen again? Was it a plugin (like IntenseDebate, etc.) that misbehaved? Or a blog management client (like WordPress for BlackBerry, etc.)? Not sure. But the mystery does make me nervous. But for the time being, things look OK!

Chrome OS Update

In my last post about running Chrome OS in VirtualBox, there are some screenshots. As you can see, the default screen size of 800x600 is pretty tiny to do anything useful.

To increase the screen size, I tried two ways I would have tried for any other Linux guest:

Not sure why, but I could not install any Guest Additions to the Chrome OS running as guest.

I tried to update /etc/X11/xorg.conf to define screen modes (by first dropping to a shell using ALT + CTRL + t – which, by the way, does not always work for me :( ). But Chrome OS would not let me save the /etc/X11/xorg.conf, even with sudo. Is this normal?

In any case, I had to take the long route. Updating ~/chromiumos/src/rootfs_static_data/common/etc/X11/xorg.conf and re-building the image. But it worked! Now I am running Chrome OS in 1024x768 mode, which is so much better!

Chromium OS in VirtualBox in 1024x768 mode

Chromium OS build in VirtualBox, running Google Wave is so much better at 1024×768

That is it for now…

IntenseDebate or Disqus?

This blog is, by no means, a heavy traffic blog that receives hundreds of comments. So managing comments is not one of my headaches! Akismet does a good job of filtering spam, and that is pretty much what I need for this blog.

I’ve been learning PHP lately (sounds off topic, but stay with me here). The project I’ve started, as a tool for learning PHP, is a blogging platform. Being just a study project, it is as simple as it can get. Posts are saved in text files – a la blosxom. PHP merely displays the posts in a readable/navigable manner.

In order to keep the project simple, I had no plans of implementing comments in the blogging platform. No database. I called it OnlyBlog.

I soon figured that a blog has no soul without comments. So I decided to support hosted comment services like Disqus and IntenseDebate.

As I became more and more familiar with these comment systems, I thought this WordPress blog could use enhanced comment system too. Immediately, the question was, IntenseDebate or Disqus? Since IntenseDebate is owned by Automattic, who also owns WordPress, I figured that IntenseDebate should be the best choice. Since then, comments on this blog are managed by IntenseDebate.

However, like many I came across the internet, I still haven’t found a good answer to the question IntenseDebate or Disqus? So I decided to read a little about both and do a fair comparison. Here’s what I found (note – this is in no way a comprehensive review or comparison of the comment systems):

I’ll start with the point of view of a blogger who uses one of the popular blogging platforms. Next, I’ll deal with the point of view of a developer who wants to integrate these comment systems into an unsupported blogging platform.

Blogger/Commenter point of view

Installation

Both Disqus and IntenseDebate have plug-ins for most of the popular blogging platforms – Disqus supports WordPress, Blogger, Tumblr, MovableType, while IntenseDebate supports WordPress, Blogger, TypePad, and Tumblr . This makes installation and management of the comment system very easy.

I tried both on my WordPress blog. Both Disqus and IntenseDebate add elaborate configuration panels to the WordPress Dashboard, where you can customize their behavior in great detail. Both Disqus and IntenseDebate also imported the existing native WordPress comments into their own systems. In my case, IntenseDebate imported the comments flawlessly. Disqus, however, had some (unspecified) error during import and could import only a handful of comments – but that may just be the case with my blog. I’ll give Disqus another shot sometime soon, hopefully with better results.

Features

Features of both comment systems are listed on their respective websites – Disqus / IntenseDebate. As you will find out, the features are comparable for all practical purposes. Both systems support threading of comments, notification when someone comments on your thread, the ability to reply by email, even moderate by email.

Authentication

One of the things I like about both Disqus and IntenseDebate is that they provide a variety of ways to authenticate a commenter. A Disqus/IntenseDebate account is great, but not required – being registered on your blog is definitely required. Visitor can use OpenID, Twitter or Facebook to authenticate. I do prefer some kind of authentication, to a guest comment.

Here’s a couple of screenshots that show how the comment entry interface in the two comment systems looks when you are not logged in.

Disqus comment entry - Click for full size

Disqus comment entry when you are not logged in
IntenseDebate comment entry - Click for full size

IntenseDebate comment entry when you are not logged in

Pretty similar, isn’t it!

Spam

Even a not-so-busy blog like mine accumulates thousands of spam comments over period. Both Disqus and IntenseDebate have effective spam filters. I was happy to know that Akismet can be used on both the systems – since I was already using it before I switched to enhanced comments, and was loving it.

Moderation

Again Disqus and IntenseDebate sport a similar comment moderation functionality. Comments can be edited, deleted, marked as spam, etc. They both support having multiple blogs under one account. This is very convenient if you manage multiple blogs. Like I mentioned before, comments can be moderated by replying to notification email with appropriate moderation command also.

Social

For visitors who have a wide social presence, both systems allow cross posting to different social networks – a comment can be sent to Twitter, a comment can be put on your Facebook wall, etc.

From my experience, IntenseDebate only allows you to tweet your comment if you used Twitter to sign in. Disqus always provides you with this option, no matter how you signed in – I like that!

Disqus comment entry - Click for full size

Disqus comment entry when you are logged in. Notice the option to send the comment to Twitter
IntenseDebate comment entry - Click for full size

IntenseDebate comment entry when you are logged in

Instead of posting more screenshots, I’ll encourage you to experience Disqus and IntenseDebate on their respective blogs.

Documentation

Both these comment systems are extremely feature rich, to the extent of being complicated. However, the documentation on both websites does not scale up to the level of complexity of the features. All features are listed with very few details. Specifics are left for you to figure out. It would be nice if the Twitter connection and the Facebook connection was documented in a little more detail – for the not-so-Web-2.0-savvy folks!

Support

Like I said, documentation on Disqus and IntenseDebate leaves a bit to be desired. However, both @disqus and @intensedebate are active and very responsive on Twitter.

Developer point of view

I am not a hardcore developer, merely a PHP newbie trying to get my hands wet in the web-tech. So the developer point of view I present is specific to the little project I described above.

There are two aspects of commenting that I want to incorporate into the project – how the visitor enters comments and display of comment count on the index page.

Comment entry

In both Disqus and IntenseDebate, adding a comment entry text box at the bottom of a blog post is as easy as including a short JavaScript snippet in the HTML. This small stub brings in all the goodness of rich comment system. You can adjust appearance and functionality of comment input from your Disqus Comments settings or IntenseDebate Dashboard. Comment systems know how to associate comments made on a page to the blog post based on the URL of the page (permalink).

Comment count

It is neat to have a little comment count next to the blog post title on the index page. Both Disqus and IntenseDebate have ways to do this. This is one place I think a little more detailed documentation would greatly help. I could somehow get Disqus to do what I want. But I am still struggling with IntenseDebate. Both sites don’t make it clear on how to achieve this – what happened to good-old examples??

Conclusion

Asking IntenseDebate or Disqus? is like asking Coke or Pepsi?. People have their reasons to pick one over the other (although I don’t get why people drink Pepsi when there’s Coke!… well, see? :) ).

It is a matter of personal choice. What may seem like a minor feature missing may be a deal breaker for someone else. I use IntenseDebate on this WordPress blog, just because it worked out best. I don’t know how long it will stay – as new versions come out from Disqus and IntenseDebate.

If you are trying to decide between the two, it behooves you to at least try both. They are both free and easily available on most blogging platforms. And they are both awesome!

Incidentally, is there a third (or a fourth) hosted comment system out there waiting to be discovered?

Vimpress to edit/publish WordPress posts

This is very impressive. With Vimpress, you can publish/edit WordPress blog posts from within Vim, like I am doing now. It works great too. This brings together my favorite editor and my favorite blogging platform… Its been around for a while, I only found out today!

UPDATE:

I did find that the plugin does not play well in Vim compiled with python disabled. Vim throws a lot of errors when loading the vimpress plugin (blog.vim file). Adding the following lines before the command! lines in blog.vim addresses this:

if !has("python")
  finish
endif

Cheers!

Updated to WordPress 2.3

Just finished updating this blog to WordPress 2.3. I moved from using categories to using tags – since I was using categories more like tags.

I love the iTheme theme. I haven’t heard if it has been updated to be used with WordPress 2.3. My version of iTheme that worked with 2.2.* worked as-is with 2.3. I did make some small changes to use tags instead of categories.

Things seem to be working at this moment. If you find something missing/wrong, drop a comment.

Google Analytics Plugins for WordPress

If you have a WordPress blog and use Google Analytics to track its usage, you should consider using one of the following plugins:

Both considerably simplify Google Analytics usage with WordPress. You don’t have to open any WordPress file and physically enter the Analytics code. This is especially important if you change your WordPress theme every once a while – or may be upgrade to a later version of a theme.

I personally prefer the one from Semiologic because it ignores your hits if you are logged in as a author, editor or the admin. Without this feature, I was getting too many false hits on '/?p=XX&preview=true' every time I wrote a new post using Save and Continue Editing feature of WordPress.

The new ‘MMA Watch’ theme

After switching to WordPress I was trying to get custom theme going for my blog, instead of using the WordPress default theme.

I finally got down to getting one online yesterday. The new theme MMA Watch is remotely based on the default WordPress theme. Moreover I’ve set it up so that I can periodically change the header image to share one of the better photographs I keep taking every now-and-then.

If I manage to accumulate a collection of such photographs, I wish to make a random selection of the header image. Every visit, you’ll see a different theme!

More later…