Unscientific benchmark of Python’s hash and checksum algorithm

Speed turned out to be an important factor in choosing a hash or a checksum algorithm, so I did some benchmarks on a 1GB in memory dataset to see what the throughput will be. The CPU used was a 2.83GHz quad core xeon. These are the results (in megabytes / second):

SHA256: 115.89

SHA512: 179.65

SHA1: 310.59

MD5: 467.58

CRC32: 903.8

Adler32: 1316.2

Share

Save on Taxi Fares in Bangkok

The fee structure for Bangkok taxis are set up in a such a way where the further the distances the more expensive your journey becomes. There must be a point where it is cheaper to get off and hail another cab, right? So I created a Cheap Bangkok Taxi fare calculator which tells you at which distance to get off and grab another taxi and how much you will save!

Share

(ไทย) Renderfarm แห่งชาติ

ช่วงหลังๆมานี้มี หลายคนถามผมว่าทำไม Renderfarm แห่งชาติในประเทศไทยจึงเกิดขึ้นไม่ได้ซักที เนื่องจากว่าผมได้มีส่วนเกี่ยวข้องในการติดตั้ง Renderfarm แห่งชาติทั้งที่ประเทศไทย (ซึ่งได้เงียบหายไป) และที่มาเลย์เซีย ผมจึงตัดสินใจเขียนเกี่ยวกับบทเรียนที่ได้รับมาจากการติดตั้ง Renderfarm ที่ประเทศมาเลย์เซีย เพื่อที่ว่าคนไทยจะสามารถเอามาใช้เป็นแบบอย่างในการสร้างระบบได้อย่างสมบูรณ์ที่ นี่ด้วย ผมจะไม่ขอพูดถึงข้อเสียของระบบที่นี่เพราะผมถือว่าเป็นอะไรที่ผ่านไปแล้ว

(more…)
Share

Performance penalty in using imap() vs map() in python multiprocessing

In order to checkout Python’s multiprocessing functionality and quite inspired by Benjamin Scherrey’s presentation on Test Driven Development, I wrote a pi calculator using the monte carlo method that utilizes the Python multiprocessing module.

(more…)

Share

Compression Comparison for .cin and .dpx files

Here are some comparison of size differences of various compression formats when used to compress .cin and .dpx files for transferring over a relatively slow bandwidth link such as that present in Thailand.

(more…)

Share

Increase Bittorrent Download Speed in Thailand

Thailand’s limited international bandwidth tends to lead to somewhat slow bittorrent transfer speeds especially during peak internet usage hours. This short guide shows you how to uses Vuze with the Ono plugin in order to prioritize Bittorrent connections to peers closest to Thailand thus reducing bottlenecks and increasing upload/download speeds.

(more…)

Share

QContact front end Thai localization

I translated QContact’s front end into Thai, you should be able to get it here shortly.

ผมได้แปล frontend ของ qcontact เป็นภาษาไทยเรียบร้อยแล้วนะครับ คุณสามารถโหลดได้จากที่นี่ภายในเร็วๆนี้ (ถ้ามีอะไรบกพร่องในการแปล ช่วยบอกกันบ้างนะครับ)

Share

Joomla on Hostgator MySQL error

Joomla installation on hostgator fails with a “Database Error: Unable to connect to the database: Could not connect to MySQL” it has been discovered that this issue goes away when I change the mysql password from a whole range of characters (including special ones such as ” > < | / ) to a string of alphanumerical characters. Somehow I suspect that some of the special characters gets accepted by Hostgator’s MySQL database administration interface but not joomla.

Share

Screencast demonstrating unbootable Intel BIOS Update ISO

YouTube Preview Image

As you can see, a flashcd downloaded from bootdisk.com boots up fine, but Intel’s BIOS Update CD just dies.

Original blog post is here

Share

Did Intel messed up BIOS Update ISO?

intel-bios-screenshot

click for full size image

I downloaded the bios ISO for the Intel DP43TF motherboard and didn’t boot giving the error that implied that the cd was invalid. I opened up the iso file in magiciso and this is what I got:

The Image does not say “Boot” like it should and the iso image name has a bunch of invalid characters, I think something messed up in their ISO build process.

Share