Software

How to clone LCD to projector using fglrx

Even though I used IBM ThinkPad T43 for a month, I just have a chance to give a short talk and presentation in this week. So I have to show my slide on a projector. Anyway, Fn+F7 didn't work as expect like I did in BenQ as well as amdcccle which didn't help. Eventually, I find a right way through command line interface. Note that I use driver from ATI, fglrx 8.38.6.

How to configure laptop hotkey in Ubuntu

Today I have a little trouble. All hotkeys of my T43 didn't response my finger by displaying on-screen display. Instead, it was just nothing happen. After investigated 2 hours, I found a solution. It is hotkey-setup.

How to display user's fullname in Drupal

By default, Drupal will have only username and password for such a user. Whenever username is displayed, it will try to call a theme funtion namely username by specified $node. If you want to display user's fullname instead, you have to customize a little bit.

How to list nodes in multiple taxonomies in Drupal using Subquery

I found a good question regarding PHP snippet for Drupal. Usually, we will list nodes in multiple taxonomies using OR operator. However, you might need to list using AND operator which nodes must be in all specified taxonomies instead. It is not easy to do so using plain SQL. The straightforward solution is to use subquery.

How to manually sort table in Drupal

Drupal provides powerful and flexible built-in table sort functionality. However, it will only work with database query through standard db_query() and pager_query(). In many cases, rows are fetched from external system, e.g., mailbox. We may add a few lines to get the same behavior.

How to compile PHP for Plesk

I would like to enable mbstring and/or iconv in PHP running on Plesk. This is a painful process. I have to compile and install lots of packages. The most important thing is the configure. Note that this host is FreeBSD.