Desktop linux again

Posted on: Sun, 03/24/2013 - 23:28 By: dae

openSUSE 12.3 and openSUSE 13.1

ปุ่มปรับ backlight ไม่ work

เครื่อง asus zenbook ให้แก้โดยเพิ่ม kernel option

acpi_backlight=none acpi_osi=

ทำโดย

sudo vi /etc/default/grub

แล้วแก้โดยเปลี่ยน

GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/system/swap splash=silent quiet showopts"

เป็น

GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/system/swap splash=silent quiet showopts acpi_backlight=none acpi_osi="

แล้วสั่ง sudo update-grub

Drupal feed importer

Posted on: Sun, 03/25/2012 - 20:52 By: dae

Recently, I have a chance to use drupal commerce with feed importer. Feed importer is very good because I can easily transfer data from MySQL to the website.

However, sometime the import process crash and I am stuck with importing page with xx% status and nothing can be done via UI.

To fix this, I have to manually edit the status of the import. Basically, all I have to do is to

update feeds_source set state = 'b:0;'; update feeds_source set fetcher_result='b:0;';

Check this .

Rockstar with PhD

Posted on: Sat, 09/24/2011 - 22:40 By: dae
Tags

My favorite band is always Queen. Three years ago, I was thrilled to known that The band's guitarist, Brian May, just got his PhD in astrophysics two weeks after my graduation procedure is filed. At that time, I can't contemplate how it was to be a rock star and to holds scientific PhD at the same time.

FARR

Posted on: Fri, 06/24/2011 - 09:27 By: dae
Tags

I have been using Launchy for a long time. It is a very good keystroke launcher, a best tool for keyboard fanatic. However, it takes too much ram on my Win7 machine and keeps crashing constantly. After googling a while, I found [FARR]("The Ultimate Program for Keyboard Maniacs") (Find and Run Robot), a highly configurable, full-featured keystroke launcher which brands itself as "The Ultimate Program for Keyboard Maniacs". This one is less eye-candy than Launchy but definitely a tool for a fanatic.

Displaying TIS620 mysql on UTF8 page

Posted on: Thu, 06/02/2011 - 16:48 By: dae

The ghost from the past is my MySQL database encoded in tis620. Worse, the table and the column itself is labelled as iso-8859-1. Of course, if the web page is to be "viewed" as tis620, all I must to is to simply use

SET NAMES tis620;
SET CHARACTER SET tis620;

In my php code. However, this is not the case because the page itself is utf8.

What comes to help me is iconv. In short, this is what I did.

Subscribe to