RSS
 

Archive for June, 2009

Scrolling with the Thinkpad's TrackPoint in Ubuntu 9.04 Jaunty

30 Jun

I think scrolling using the middle button + TrackPoint was broken for a while, although it is now fixed. to fix it instead of modifying your xorg.conf, create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi with the following contents:

<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

Then restart your computer.

I have tested this method on my X200 and it looks working fine.
[ad#Ubuntu 9.04]

 
No Comments

Posted in Ubuntu

 

My beloved Tunisian dish

27 Jun

Tajine cattedWhat Tunisians refer to as a “tajine” is very different from the more well-known Moroccan dish.
Tunisian tajine is more like an Italian frittata. First, a simple ragout of meat cut into very small pieces, cooked with onions and various spices, such as a blend of dried rosebuds and ground cinnamon known as bharat, or a robust combination of ground coriander and caraway seeds, is called tabil.
Then something starchy is added to thicken the juices – common thickeners include cannellini beans, chickpeas, breadcrumbs or cubed potatoes.
When the meat is tender, it is combined with whatever ingredient has been chosen to be the dominant flavoring.
Tajine
Examples include but are not limited to fresh parsley, dried mint, saffron, sundried tomatoes, cooked vegetables, or even stewed calf’s brains. Next, the stew is enriched with cheese and eggs. Finally, this egg & stew is baked in a deep pie dish, either on the stove or in the oven until both top and bottom are crisply cooked and the eggs are just set. When the tajine is ready, it is turned out onto a plate and sliced into squares, accompanied by wedges of lemon. Tunisian tajines can be made with seafood, or as a completely vegetarian dish.
In rural parts of Tunisia, home cooks place a shallow earthenware dish over glowing olive wood, fill it, cover it with a flat earthen pan, and then pile hot coals on top. The resulting tajine is crusty on top and bottom, moist within, and is infused with a subtle smoky fragrance.

 
 

IPhone: iPod and iPhone Firmware Download

27 Jun

Here is a website where you can download firmware for you IPod and IPhone handsets.

 
No Comments

Posted in IPhone

 

Japan: Timetable of Airport Bus between Narita and Tsukuba Center

26 Jun


Airport Liner NATT’S
Narita->Tsukuba
(for Tsuchiura Station)
Tsukuba->Narita
[Reservation obligatory]
Narita Airport Tsukuba Ctr. Tsukuba Ctr. Narita Airport
7:40 9:20 6:00 7:45
9:05 10:45 7:00 8:45
10:35 12:15 8:50 10:30
12:50 14:30 10:40 12:20
14:30 16:10 12:20 14:00
16:15 17:55 13:35 15:15
17:20 19:00 14:35 16:15
18:45 20:25 15:50 17:30
20:10 21:50 17:35 19:15
Reservation: 029-852-5666 (8:30-19:00)
Fare: JPY2540. for one way

 
No Comments

Posted in Japan

 

OpenCV: Convert image between color spaces

26 Jun

Convert between color spaces:

cvCvtColor(src,dst,code); // src -> dst

code = CV_2 / = RGB, BGR, GRAY, HSV, YCrCb, XYZ, Lab, Luv, HLS

e.g.: CV_BGR2GRAY, CV_BGR2HSV, CV_BGR2Lab

 
No Comments

Posted in OpenCV