Linux

Welcome Ubuntu 7.04 Feisty Fawn Herd 5

Today morning, I decided to upgrade my laptop to Ubuntu 7.04 Feisty Fawn Herd 5. Actually, Herd 5 was released a week ago. The only thing made me wait is to run vmware-player. In Ubuntu 6.10 Edgy Eft, everything has been working almost perfect for me including built-in soundcard of BenQ Joybook S52 which I had built additional package with a small patch to alsa. Anyway, I would like to try Feisty Fawn early by the way.

How to play ASX using Mplayer

ASX is usually referred to a kind of media streaming service based on Microsoft protocol. It is not the standard format recognized in Linux environment. However, it is possible to play ASX on Linux using Mplayer with a simple trick.

How to play interlaced video using Mplayer

If you have ever watched any interlaced video, you might found that watching interlaced video on LCD is not funny at all. There are too many lines periodically appearing on screen and you have to watch them line by line. So it would be better to deinterlace them to watch smooth frames. Since I usually play video files in Mplayer, I will show you how to deinterlace in Mplayer.

How to prevent duplicate entry error in MySQL

Sometimes, errors should be ignored because they are not necessary at all. In MySQL especially for replication, the general architecture is to have a host for write and other hosts for read. As a result, response time of the whole system should be more scalable. If something goes wrong at the master node where all write operations must be performed, the error may propagate to other replications. One of common error oftenly occurs during replication is duplicate entry. It is possible to prevent this error which may lead the replication to stop.

How to encode DVD to AVI using Mencoder

If you have a DVD image in ISO format or in directory structure (see below) and you would like to encode this image to AVI format for later watching in smaller size, Mencoder may help you automate this task by a single command as well as consuming the computer power of a cluster through batch scheduler. The DVD structure looks like below.

DVD/
|--- AUDIO_TS
`--- VIDEO_TS
     |--- VIDEO_TS.BUP
     |--- VIDEO_TS.IFO
     |--- VIDEO_TS.VOB
     |--- VTS_01_0.BUP
     |--- VTS_01_0.IFO
     |--- VTS_01_0.VOB
     |--- VTS_02_0.BUP
     |--- VTS_02_0.IFO
     |--- VTS_02_0.VOB
     |--- VTS_03_0.BUP
     |--- VTS_03_0.IFO
     |--- VTS_03_0.VOB
     |--- VTS_04_0.BUP
     |--- VTS_04_0.IFO
     `--- VTS_04_0.VOB

How to make Gaim more reliable

I used Gaim and I compiled it myself. The latest version, 2.0.0 beta 6, looks very promising in term of user interface improvement. However, I got some serious issue which Gaim will crash occasionally without reason. Actually, I didn't know the reason since it was likely to occur randomly. So I decided to trace this issue by forcing Gaim to inject a core dump whenever it crashed. As a result, I have found the source of this error.