I'm new with drupal, and I wish sobody told me this yesterday: To make an absolute link to an image in a theme, without worrying about where the theme is going to be installed, you can do the following:
<img alt="logo" src="<?php echo(base_path().drupal_get_path('theme','your_theme_name'))?>/img/some_image.png" />
If you are using phptemplate, the drupal_get_path-call might be substituted by just $directory, making it even simpler:
<img alt="logo" src="<?php echo(base_path() . $directory )?>/img/some_image.png" />
The second one was found here: http://drupal.org/node/52520
2009-10-15
Netbeans got a nice css preview
Was doing some spare time drupal work in Netbeans 6.8 when I suddenly found out it had working css preview. See screenshot below for details:
Logging into my other (work ) account I found it in Netbeans 6.7 too, which explains why it wasn't mentioned in NetBeans 6.8 -- New and Noteworthy
Logging into my other (work ) account I found it in Netbeans 6.7 too, which explains why it wasn't mentioned in NetBeans 6.8 -- New and Noteworthy
2009-05-10
The "bug"
2009-05-06
A very short review of the N82
I got my Nokia N82 about one year ago. Here is my short review:
The good
- Built in camera is good!
- Build in GPS is decent. I like it. (the reason I say it's decent is that my brother, who was used to the Nokia navigator phone says the N82 it's horrible in comparison.)
- Makes good use of features. Examples:
- Camera can geotag pictures automatically.
- The "Sports tracker"-program uses both GPS and motion sensor to provide detailed information.
- Stable. (Was horribly slow a couple of days ago, but that problem disappeared after uninstalling shozu. Also this was the first time I experienced real trouble with this phone.)
- Handles 1500 messages in sms inbox withouth a hitch.
- You can search for keywords and the phone will find all occurrences in calendar, mail, addressbook, music etc. And it is resonably fast.
- Go back to previous suggestion feature when writing sms
- Syncs with eGroupware. (Takes some effort to get it right, but that is mostly because of eGroupware, not because of the phone.)
- Alarm clock: You can choose which days it will ring.
- You can access the phone using bluetooth easily under Linux (Ubuntu, at least.)
- Wifi.
- Lacks autocomplete on entering phone numbers.
- Two needlessy easy-to-hit shortcut key to access media features.
- If you store the same cell phone number on two contacts, just the phone number will be shown in the display, with no warnings given.
2009-04-13
Updated the pomodoro timer
I've finally upgraded the pomodoro timer. List of updates:
- You can now open the applet in a pop-up window. See fourth tab on the top.
- Buttons instead of small links. (Thanks Sten, Johan)
- Fixed a bug that prevents new unplanned and urgent items beeing added after the last one has been moved up.)
2009-03-27
Inverting the colors
is as easy as pressing Win + m (on my machine, Ubuntu 8.10, "Extra" desktop effects)
Makes programming a little easier on the eyes a late friday night.
Makes programming a little easier on the eyes a late friday night.
2009-03-17
A four leaf clover!
Subscribe to:
Posts (Atom)


