Taking a screenshot on a Samsung Galaxy S II

You can actually take screenshots on the Samsung Galaxy S II without having to root the phone. Simply press the HOME and POWER buttons simultaneously, and voila! you’ll hear a snapshot.

The screenshots are stored in /mnt/sdcard/ScreenCapture.

Changing the ‘WordPress Address URL’ of your blog the hard way

Follow the steps shown here if you can no longer access the admin site of your wordpress blog.

If you have accidentaly (or stupidly 🙂 ) changed the WordPress Address of your blog to an incorrect value, you’ll find out that you can no longer access the admin console to change it back. To fix it you have two options:

  • Temporary PHP change
  • Direct database change

Continue reading “Changing the ‘WordPress Address URL’ of your blog the hard way”

Windows update blocks internet access

Update (11 July): Checkpoint have released a new update for ZoneAlarm that resolves this issue.

If your internet connection stopped working after you installed windows update patches released yesterday, it’s most probably because you are running Zone Alarm with its security level set to high. One of the patches (KB951748) released yesterday doesn’t play very well with zone alarm.
Continue reading “Windows update blocks internet access”

WordPress and google webmaster tools sitemap

If you are trying to use your wordpress feed as your sitemap in google webmaster tools, and it looks like there are errors in lines 11 and 12 citing Invalid URL, Invalid XML: too many tags, and Incorrect namespace, it is because you are using your rss2 feed as the sitemap

If you are trying to use your wordpress feed as your sitemap in google webmaster tools, and it looks like there are errors in lines 11 and 12 citing Invalid URL, Invalid XML: too many tags, and Incorrect namespace, it is because you are using your rss2 feed as the sitemap.
Continue reading “WordPress and google webmaster tools sitemap”

Highlighting author comments on WordPress

How to highlight comments made by the article author in your blog. This method doesn’t use hard coded emails making it flexible and easier to implement. It also uses IDs so the comments can’t be faked.

When I was looking for a way to highlight the author comments in this wordpress template I was creating, I had a search on google. Most of the results were Continue reading “Highlighting author comments on WordPress”

WordPress Template Quirks

If you edit any of the wordpress system files or even just the functions.php of a template, make sure there are no spaces before the <?php or after the ?>.

If you do, it’ll just cause you grief. Some pages will be visible while others will have the following error:

Cannot modify header information - headers already sent

I guess it happens because functions.php is included before it sets the http headers. I haven’t looked at the code enough to figure out where the header is written, so no leading or trailing spaces in wordpress system php files!