How to secure your Wordpress blog by setting up SSL

The latest (from version 2.6) version of Wordpress has support for making the admin section of your Wordpress site use SSL or Secure Sockets Layer. This means that you’d be able to encrypt your admin pages if you want to.

Encrypting the admin pages provides more security for your Wordpress site. In order to enforce SSL in your admin pages you need to do things a couple of things.

Read more of “How to secure your Wordpress blog by setting up SSL” »

A simple way to find out the location of a running shell script

When a shell script is executed, the default directory would normally be the current directory of the user when the script is called. If you get into a situation wherein you want to determine the location of the shell script when it was called by the user, you can do the following within the shell script:

fullpath=`which $0`
scriptdir=`dirname ${fullpath}`

The scriptdir variable would contain the directory where the running script is stored. The which program returns the full path of the called script (e.g. /usr/bin/mybashscript.sh) while the dirname program returns the directory portion of the argument which was passed to dirname.

One use for it would be if for example you need to know where the shell script was stored because you need to call another script that was also stored in that directory when it was installed.

Making CSS work with Firefox and Internet Explorer

I have just finished up on updating my Javamidlet.com web site. It’s been almost a year since I’ve made any changes to the site’s wordpress theme. The theme I use on Javamidlet was one of my early themes when I was still learning how to make them in Wordpress.

I’ve learned quite a few from the exercise and one of them was — it’s really quite a challenge to have a web site theme that works on majority of the web browsers — Firefox, IE7 and IE6. Working with Firefox (both for Linux and Windows) and MSIE 7 was easy but you’ve got to give credit to IE6 for being such a creation! It’s a good thing that less and less people are using IE6.

Read more of “Making CSS work with Firefox and Internet Explorer” »