Ever biched over IE not being able to use transparent PNG's?

Well I have!!

Some days ago I found a link to a hack on Jakub ‘jimmac’ Steiner’s homepage.

I have now made a function in PHP which automaticaly uses this workaround in IE. Take a look at the code below.

$localDocumentRoot = str_replace($_SERVER['PHP_SELF'],
"", $_SERVER['SCRIPT_FILENAME']);

//$image is an array
/* This is a hack to use PNG transparentsy in IE */
function transparentImage($image, $ie) {
  global $localDocumentRoot;
  //The str_replace makes sure that images with spaces is also recognized
  $imageFile = getimagesize( str_replace(' ','%20',
  $localDocumentRoot.$image['src'] ) );
  if($ie) {
?>

<div


style=" filter:progid:DXImageTransform.Microsoft.\AlphaImageLoader(src='',
sizingMethod='scale');" > </div>

<img src=""



 width=""
 height=""

/>


//Now run the function
$image['src'] = "/gallery/image.png";
$image['id'] = "unique_image";
$image['class'] = "image";
$image['alt'] = "Image example with transparent PNG images";
$image['title'] = "Tooltip for image";

transparentImage($image, true);

Tomorrow I will take a look at this post to make sure that I havet posted shitty code ;) Perhapes I can find a way so that Serendipity doesn’t fuck with the layout?!

Pixel failuer - WTF!?!

Yesterday I recieved my my TFT monitor which I had been looking forward to all day. While I unwrapped this super slim eight wonder of the world I thought: “This really rocks”!

And I did… until I discovered a pixel error on the monitor :(

Monday I will send it back and order a new one :-/

New monitor for my desktop

Finnaly I pulled myself together and found a TFT monitor. I have looked on severel but I ended up buying a Samsung 172X because it think it was the best preforming and looking monitor I could find for the price. The Samsung 710T was also a candidate with slightly better specs but it looked ugly IMO.

My new TFT monitor is to replace my old CRT Samsung SyncMaster 959NF which still works. But it is quite big and after the last netparty I attended it got a scratch :-(

I’m looking forward to friday where it should arrive :-D

Debianart.dk up and running

Well the Debian Art site is online. It still needs a lot of work but now we have a base to work on :) My three first wallpapers is ready for download.

What are you waiting for?

Design for new debianart.dk website

Today I worked on a design for the upcomming debianart.dk site. The domain name isn’t enabled yet but on linux your don’t need DNS to access the site. Put something like the following in your /etc/hosts file like this:

80.196.151.225 debianart.dk www.debianart.dk

…and access it anyway. I don’t know if there is a similar way on Windows?!

I think it lookss pretty good so far.