Codenone

Greatest Common Divisor

One of the most popular definition in mathematics is the Greatest Common Divisor or GCD. If i am not wrong, I studied about GCD in primary school or secondary school after I learned division. At that time, I don't know why I need to use GCD other than for calculating Fraction. Actually, GCD is used so often in high-level mathematics and computer sciences. Since it is very popular, there are many approaches for finding GCD of given numbers.

IP to Country 1.0 and Search Keywords 1.0 have been released

I have contributed 2 modules and a translation at Drupal such as IP to Country (drupal.org), Search Keywords (drupal.org) and Thai Translation (drupal.org) for a year. However, it seems I forgot to release such a stable release. I apologize for this missing piece. It is because I am too familiar with development but not releasing and I have no exact plan for next release. Thanks to the issue posted today to point me out about this missing piece.

Django: FloatField for newforms

I'm trying to develop something using Django because it must be cross-platform. The easiest solution for cross-platform application is web-based application. Since I have just started and the document recommends me to use newforms instead of the oldforms. The concept of newforms is to define fields in the form for later validation and rendering the form in various formats and styles. However, the current implementation of newforms is in very early state (I guess) so there are so many missing pieces. For example, I would like to have a float field which automatically validates the input to be a valid floating point number. So I have to implement it myself.

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

Tracking performance of supporters in case tracker module in Drupal

My organization is trying to track incoming requests from outsiders and also insiders. The reason and only one reason is that me and my colleagues work so hard for nothing. Our main works are in the state of no progress for so long time. Actually, all works are late for two months already and they are not finished yet. The problem is my boss has seen we worked so hard but he have never known what we did and why all works are not finished on time.

That is the thing drove me to deploy a kind of issue ticket management system to track what we are doing all days all nights. There are so many softwares that may solve our problems. However, I chose Drupal and Case Tracker. It works almost perfect and we have used it for a week without problem. Actually, it does not meet our requirements yet. We also want to track performance of support teams. There are so many performance metrics. The first one is how long it take to solve each case. I decided to write a report using PHP input format in Page content type.

has been organized for 2 times since . This activity aims to promote open source concept to students by offering 4500 USD to them, 500 USD to open source projects and a T-shirt to each mentor. As one of mentor at Drupal in last year, it is my duty to promote Google Summer of Code 2007.