Archive for January, 2010

Simple solution: PNG-24 alpha transparency on IE 6

January 30, 2010

This solution only uses CSS and doesn’t involve creating additional images other than the single source PNG-24 file. The point is to put the image in a div, using IE specific “filter” extension for IE6 only and background-image for other browsers only. I’ve tested on IE6/7, FF3.5 and Safari.


<div id=”header”>
<div id=”hdr_content”><div id=”hdr_logo”></div></div>


background: url(“images/logo_24.png”) repeat-x;
*background: none;
width: 191px;
height: 34px;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’images/logo_24.png’, sizingMethod=’scale’);


Best database field type for a URL

January 23, 2010

“< MySQL 5.0.3 use TEXT

or >= MySQL 5.0.3 use VARCHAR(2083)


Setting Windows XP as default boot entry on Ubuntu

January 18, 2010

Scenario: I installed Ubuntu (9.04) under Windows XP Professional and found out the default boot entry was Ubuntu and I wanted it to be WinXP instead.


  1. Boot to Ubuntu.
  2. cd /boot/grub
  3. sudo pico menu.1st
  4. If Windows XP had the following entry: “…savedefault…”, then add the following line to menu.1st:
    default saved
  5. Save menu.1st and reboot.

See: info grub or GNU GRUB Manual 0.97