Sometimes I’m facing the problem where my sIFR texts always stay on top my page, like this:

sIFR always on top of thickbox/lightwindow

sIFR always on top of thickbox/lightwindow

Really annoying when you’re using Thickbox or Lightwindow to display a (fullscreen) picture. The solution is simple, but weird: add transparancy to your sIFR.

This is a real timesaver. Instead of updating all your x records, you simple execute the following query:

UPDATE table SET column_name = REPLACE(column_name,"string_to_replace","string_new")

In this example I replace all the é’s that exist in the database to its proper version:

UPDATE contents SET content = REPLACE(content,"é","é")

Enjoy!

Very often I find myself wanting to get only the value of the last key in an array. I used to do

sizeof($array);

to find out the number of total elements, so I knew the position of the last value. Today I ran into a much easier way to select it.

As a finishing touch your website should have a favicon. I won’t go into the reasons why, i’ll just give you an easy tool to create them.

When working on a project I ran into this problem where lightwindow didn’t function properly. In some cases the black/greyish overlay didn’t fill up the entire page, like so:

Lightwindow overlay height goes wrong

Lightwindow overlay height goes wrong

How come it totally messes up?

Very often you need to put one or more email addresses on a website, for instance on the contact page. Since there are a lot of harvest-bots out there that are eager to crawl your website and put the adresses in a spamlist, it’s smart to encrypt those addresses.

Safe Mode Error

29 Sep
2008

When you have a fresh install of CakePHP 1.2 on your machine, the following error might appear:

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1023 is not allowed to access /usr/share/php owned by uid 0 in <your_location>/HTML/cake/libs/configure.php on line 476

This can be solved by changing the following lines…

top