Weblog updated

My weblog have been updated to Serendipity 0.7-beta3.

The Sims 2

I have bought The Sims 2, and I must say that I’m not dissapointed (at least not yet). It has a lot of new twists to it which makes it differ from the original and a lot more fun and variated. The only bad thing about it is that I don’t have the time to play the game :)

Storing Hierarchical Data in a Database

I’m going to implement types/categories on sumbissions for Debianart.dk to classify them. I friend send me this great link on how to implement this and at the same time think of performance.

Take a look at this: Storing Hierarchical Data in a Database

Debianart using Smarty... soon

I have started rewriting debianart.dk to use the Smarty template engine. I gives me better overview of the coding and it also provides me with tools which helps me create a better website. Although I have already encountered a few quirks with it. I had trouble concating smarty variables with smarty variables and text strings with smarty variables within a smarty function. I use the Smarty plugin: PNG image with Alpha Transparency to display PNG images with transparency in IE.

Here is my ugly workaround. Notice the ‘src’ and ‘extra’ parameter:

{* It have to be possible to do this better... but for now it will suffice *}
{* It seems to impossible to call modifiers / functions from within a function
   and at the same time concat with a string, with default modifies / functions *}
{* concat is a custom plugin *}
{assign var="thumb_title" value=$submission.file_size|filesizeSize}
{png_image src="`$thumb_path``$submission.thumb`" Height="0" width="0"
 alt="Thumb for `$submission.file_name`"
 extra='class=\"thumb" title="File size '|concat:$thumb_title|concat:'"'}

GAIM notifications

I found a promising GAIM plugin, Guifications recommended by a friend. It displays buddy states similar to MSN with a popup box in the cornor of the screen, which disappears after a few seconds.

It comes in Debian packages too :)