Debian Sarge on IBM X40 howto - Part 9: Bluetooth

Today, while I was fiddeling around with my laptop, I tried transfering a file from my Nokia 6630 mobile phone to my laptop. I didn’t expect it to work becauce last time it didn’t. But this time it just worked!!

I have installed a few bluetooth Debian packages like: bluez-pin and bluez-utils. I use Bluetooth for GNOME (also packaged for Debian).

I have no idear what I have changed since the last time I tried it, but now I can extract all the pictures I have taken to my laptop. The only thing I remember having altered from the default settings is the device section in /etc/bluetooth/hcid.conf:

device {
    name "IBM X40";
    class 0x100100;

Look at the gnome-bluetooth mailinglist for more information about why I altered this.

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 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 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:'"'}