WordPress + TwinHelix ‘IEPNGFIX’

If you are having trouble getting the IE PNG FIX from TwinHelix to work in your WordPress theme, make sure that you set the correct path to the .htc file in your themes stylesheet.

/* To fix IE 6 or less PNG issues */
img, div, span { behavior: url(wp-content/themes/your_theme_name/iepngfix.htc) }

If the relative path doesn’t work for you, try an absolute path instead.

/* To fix IE 6 or less PNG issues */
img, div, span { behavior: url(http://www.yourdomain.com/wp-content/themes/your_theme_name/iepngfix.htc) }

You also need to set the correct path to the image file in the .htc file.

if (typeof blankImg == 'undefined') var blankImg = 'wp-content/themes/your_theme_name/images/blank.gif';

Again, if the relative path doesn’t work, try the absolute path.

Once you have both paths set correctly everything should work fine. If you’re still having problems, chances are that the paths are still incorrect. Double check them and try again.

It took me a while to figure this out, so I hope this post saves you the bother.

Samsung F480 Tocco Accessories

Since buying the Samsung F480 Tocco a while back, I decided to have a look to see what kind of accessories are available for it.

Here are some of the more essential accessories (to me) that I came across:

I haven’t bought any of these as of yet so I can’t comment on how good they are.

2009: A good year for movies!

2009 looks like it’s going to be a very good year for movies. Here are some of the movies I’m looking forward to seeing the most.

X-MEN Origins: Wolverine

Release date: May 1st

Transformers: Revenge of the Fallen

Release date: June 24th

Watchmen

Release date: March 6th

The International

Release date: February 13th

Star Trek

Release date: May 8th

Fast and Furious

Release date: April 3rd

PUSH

Release date: February 6th

Knowing

Release date: March 20th

Terminator Salvation

Release date: May 21st

Inglourious Basterds

Release date: August 21st

CodeIgniter Profiler: Globally Enable/Disable

Here is a quick tip for users of the CodeIgniter PHP Framework (and a reminder to myself). If you wish to enable or disable the profiler globally while developing your application (as opposed to changing the value in each seperate controller), you can do the following.

1. Open the config.php file in the application/config/ folder.
2. Add a new config setting using the following code:

/*
|---------------------------------
| Globally Enable/Disable Profiler
|---------------------------------
|
| TRUE  = On
| FALSE = Off
|
*/
$config['profiler_status'] = TRUE;

3. Then in each of the controllers that you want to the profiler to be displayed on, add the following code to the constructor.

$this->output->enable_profiler($this->config->item('profiler_status'));

Note: If you prefer to only have the profiler be displayed on some methods, then place the code from step 3 above into each of the methods.

Hope  this helps :)