Monday, December 26, 2005

Dharma: Offering and Vow before Meal

I make offerings to the Buddha.
I make offerings to the Dharma.
I make offerings to the Sangha.
I make offerings to all sentient beings.

I vow to deliver numerable sentient beings.
I vow to cut off endless vexation.
I vow to master the limitedless approaches to Dharma.
I vow to attain supreme buddhahood.

Computer: Testing drive compression on Windows XP

Dec 26, 2005:

I am testing drive compression on my new Hitachi hard drive. At this moment, I found that it works quite well and very efficiently.

I copy 2.53GB of data from my trusty Maxtor to the new Hitachi drives. The size on the uncompressed Maxtor drive is 2.57GB (Figure 1), but the size on the compressed Hitachi drive is only 2.22GB (Figure 2). The side effect is the cost for CPU overhead. During copying, CPU usage is virtually 100%. The drive with compression will be shown with blue label, while the common ones are in the block label (See figure 3).

Figure 1. Size on uncompressed volume is 2.57GB, which is larger than the size of data.

Figure 2. Size on compressed volume, which is smaller than the size of data.

Figure 3. Label of a compressed volume is blue, while others are black.

Experiment about copying time was conducted too. I copied about 2.53 GB of data from an USB uncompressed hard drive to a Firewire hard drive. The Firewire drive was uncompressed for the first phase of copying experiment. Then the same Firewire drive was compressed to perform the second phase of copying experiment. The first phase of copying finished in 5:01 minutes, while the second phase spended up to 6:29 minutes. The space was saved by 13.6%, but writing time increased by 29.2%. This implies that for the test data, it is not a big deal to use compressed volume to save disk space unless we are really run out of space.

I may stop using this feature if I am going to use the new hard drive as a main one. At this point, I am testing the new drive, along with its Firewire interface, to find if the new solution is reliable, but is faster than my old solution. A faster hard drive, will be the main one, and the slower one will be a backup one.

Computer: Enclosure Issues

Dec 26, 2005:
I obtained a new Syba enclosure a few days before, and it causes so many problems First, it corrupts data on my trusty Maxtor hard disk. Second, the fan is surprisingly noisy. I found out later that the fan itself is not very noisy, but the fan along with airflow rushing into the enclosure is very noisy. Third, LEDs do not work. Again, I found out later that workers at assembly lines do something wrong or document is not accurate, since I need to flip the direction of LED power line to make it works correctly.

I need to go back to use the old enclosure for my trusty hard drive.

At this moment, I bought a new Hitashi Deskstar 7K250 hard drive (160GB/IDE interface) to use with the new enclosure. I am testing if it can work correctly with my new hard drive. My trusty Maxtor might not work with this new Syba enclosure just because I enabled delayed write feature for it. I need to wait and see.

Dec 26, 2005:
Okay, I now realize that the issue about delayed write of this enclosure persists and I need to switch to use quick removal optimization mode. The performance is dropped by about 20%. Referred by my next post, a test on the same data takes 6:26 minutes for uncompressed volume with no delayed write.

So, the new hard drive will be used as a backup volume. I also plan to make it a CVS repository.

At this point, I have two things to do with my hard drive before building a ghost image for a hard drive:
1. Install Matlab toolbox.
2. Get key for dictionary.

Friday, December 23, 2005

Study: Going to finish Exam A preparation

รู้สึกว่าพลังฝึกปรือเริ่มได้ที่ตอนนี้คงเหลือแค่เขียนสรุปอีกเล็กน้อยแล้วก็ช่วยแหละคุณ Sandra นิดหน่อยก็น่าจะผ่านได้ค่อนข้างแน่ ดังนั้นขอสรุปสิ่งที่ต้องเขียนและศึกษาเพิ่มเติมสักเล็กน้อย

  • Algorithm part
    1. ศึกษาปัญหาของ dynamic programming ตรงส่วนที่เป็น final exam อีกครั้งแล้วบันทึกบทสรุปออกมา

    2. ศึกษาคุณสมบัติของกราฟอัลกอริทึมแบบต่างๆ โดยเฉพาะ running time และเงื่อนไขของ applicability ของแต่ละอัลกอริทึม

  • Programming language part
    1. Lamda calculus
    2. Function activation record mechanism
    3. Concurrency in Java

Monday, December 19, 2005

Life: ไปให้ถึงที่สุดของความอดกลั้น

Dec 19, 2005:
เรานึกถึงเรื่องราวของตัวเองที่ Retreat Center แล้วเราพบว่า เพราะตอนนั้นเราไปถึงที่สุดของความอดทน ทำให้เราได้ของขวัญมาอย่างหนึ่งคือความไม่เมื่อยล้าในเวลานั่ง. ทำให้ในเวลานี้เรานึกเพิ่มเติมต่อไปว่าถ้าเราจะไปให้ถึงที่สุดของความอดกลั้ นคือความละเว้นจากความบันเทิงทั้งมวลและการเสพสุขทั้งมวลแล้วเราจะได้อะไรเป ็นของขวัญ เราจะลองทำดู ในเมื่อพระพุทธเจ้าบอกไม่ให้เสพกามเราก็จะลองทำดู ที่ retreat center เราอดทนด้วยศรัทธาอันแรงกล้า ในเวลนี้เราก็จะอดกลั้นด้วยศรัทธาอันแรงกล้าเช่นกัน. อันปัญญาของเรามีเพียงเท่าเศษธุลีอวกาศ เราคงต้องดันตัวเองจากความเชื่อก่อนไม่งั้นคงไปได้ไม่ไกลนัก.

(หมายเหตุ กามหมายความรวมคือ รูป รส กลิ่น เสียง สัมผัส ไม่ได้เจาะจงอยู่ที่เรื่องเพศเท่านั้น)

Computer: Software in my Computers

Dec 19, 2005:
ตอนนี้คิดจะทำการฟอร์แมตเครื่องเพื่อล้างวินโดวส์ใหม่ ก็เลยต้องการทำรายการซอฟต์แวร์ที่ต้องลงแน่ๆ พร้อมๆกับหมวดหมู่ของซอฟต์แวร์ต่างๆในเครื่อง พร้อมๆกับรายการแบ็คอัพ เราจะทำการเปลี่ยนโครงสร้างพาร์ติชันของฮาร์ดดิสก์ให้เป็นแบบพาร์ติชันเดียว แล้ว เพราะพาร์ติชันอันที่สองที่สามก็มีอยู่ที่ฮาร์ดิสก์แบบภายนอก

  • รายการแบ็คอัพ
    1. Mail and favorites in Mozilla
    2. Thesis (this portion will not be formatted though)
    3. Personal Web
    4. Thai Student Association Web
    5. My Documents
    6. Testing Ground
    7. Work Partition
    8. Droplet Recognition
    9. VFX
    10. Candidacy Note (included in Personal Web Actually)
    11. Files for Prolog and ML
    12. Java project files

  • รายการซอฟต์แวร์แบ่งตามหมวดหมู่
    1. Dictionaries
      • Stedman's medical dictionary
      • Cambridge's advanced learner dictionary
      • Longman's dictionary of contemporary English
      • Random house
      • So Sethabutr's dictionary
      • WordWeb

    2. Communication
      • Secure Shell Client
      • Mozilla
      • Firefox Thai
      • MSN
      • Cisco VPN
      • Filezilla
      • Humming Bird
      • Cygwin

    3. Programming and Research
      • Studio (3D Viewer)
      • Virtual Navigator and ROI Surface Writer
      • Studio 8 (Macromedia's)
      • Visual Studio .Net 2003
      • Eclipse
      • CVS (not now, use unmanaged snapshot may be better)
      • jEdit
      • Apache Webserver
      • PHP engine
      • Prolog
      • ML

    4. Entertainment
      • Napster
      • Windows media player latest version
      • iTune
      • Arcsoft Showbiz
      • QuickTime
      • Power DVD

    5. Document Tools
      • WinEdt and MikTex
      • OpenOffice.org 2.0
      • Microsoft Office 2003
      • GIMP
      • Dia
      • PDF Creator
      • PDF 995
      • PDF Blender
      • GhostScript
      • GhostView
      • Adobe Acrobat (via Adobe Creative Suite 2)
      • Doxygen

    6. Utilities
      • DVD Writer
      • FileAnt (File Explorer)
      • NetAnt
      • GetLeft
      • 7-zip
      • Samsung driver and utilities


Computer: Firewire Enclousure

On Wednesday night Dec 14, 2005, Jua came to my apartment and tried to download his robotic vehicle movie from video camera to a disk. At first, it is expected that my laptop could not do the job since it has only 4-pin Firewire interface, but the connector line from the camera had 6-pin interface. However, I realized that my DVD writer enclosure came with Firewire interface and can be connected to other products in a serial manner. Plus, the connector in my enclosure is 6-pin interface. So, I connect the camera through my enclosure and got that job done.

The bottom line is if your enclousure has Firewire interface, you can use it as a Firewire convertor as well. This can add value to your enclosure.

Today (Sunday Dec 18, 2005), I just bought a new enclosure for my hard disk to give it Firewire interface instead of USB 2.0, because Firewire gives more bandwidth, even though its theoretical bandwith is lower than USB 2.0. I think I will connect my devices-- hard drive and DVD drive-- through Firewire instead.

Computer: Disc Publisher


I got an advertisement about Disc publisher (CD/DVDs copier and printer) from Rimage. It is quite interesting product, esp. for a small software company or any organization that may publish some media at small scale (less than 1000 copies). Their products offer all-in-one solution--duplicator and printer (both text and images). Plus, we can input them 100 discs for a single job. Hmm, it's a good idea to use it for public presentation.

Tuesday, December 06, 2005

Study: News about CAS

I read news about Computer Aided Surgery from manager.co.th; however, I still do not know its technique to mark target area. Actually, I write this blog just to keep the link here for later reference:
http://manager.co.th/QOL/ViewNews.aspx?NewsID=9480000167345

Saturday, December 03, 2005

ชีวิต: เรื่อง รถโฆษณาในรัฐพ่อค้า โดย นิธิ เอียวศรีวงศ์

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

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

เช่นเดียวกับคำ ขู่ของรํฐบาลที่ตำหนิคำวินิจฉัยของศาลตุลาการเกี่ยวกับการระง ับการขายหุ้น กฟผ. ว่าทำให้ตลาดหุ้นซบเซา แต่แท้จริงแล้วคนไทยที่อยู่ในตลาดหุ้นตามบทความของอาจารย์นิธินั้นมีน้อยกว่ า 0.25% ยิ่งไปกว่านั้น ความซบเซามันมาจากการที่พวกเก็งกำไรในระยะสั้นถอนหุ้นออกไป ซึ่งหุ้นพวกนั้นไม่ได้สร้างความแข็งแกร่งอะไรให้กับบริษัทหรือโรงงานเลย การที่คนพวกนั้นถอนหุ้นออกไปที่แท้ก็จะไม่กระทบกับภาพรวมทางเศรษฐกิจเลย แต่หลายคนในประเทศเรากับมาพะวงสนใจกับผลประโยชน์อันไม่ยั่งยีนของคนเพียง 0.25% โดยไม่คำนึงถึงผลกระทบกับสังคมโดยรวมเลย

ส่วนที่สำคัญอีกอย่าง ของบทความก็คือ การพูดถึงการรักษาความเป็นชุมชนของชาวเชียงใหม่ที่นับวันจะหลงทางไปทุกที พวกเค้าพยายามรักษารถโฆษณาที่ไม่เข้ากับสภาพเศรษฐกิจในปัจจุบัน แต่กลับไม่รักษาพวกประเพณียี่เป็ง งานปีใหม่ งานสวดมหาชาติ ให้เป็นของชุมชน กลับปล่อยให้มันกลายเป็นงานของ ททท. เพื่อผลประโยชน์ทางการค้าอีกเช่นเคย เรื่องนี้เราก็พึ่งสังเกตว่าคนต่างชาติจะเข้าใจว่าของพวกนี้เป็นวิถีชีวิตขอ งชาวท้องถิ่น แต่ที่จริงความเป็นส่วนหนึ่งของชีวิตคนในชุมชนมันจางหายไปหมดด้วยการที่ประเ พณีถูกทำให้เป็นเพียงส่วนหนึ่งของการค้าและการท่องเที่ยวเท่านั้น

อ้างอิง
นิธี เอียวศรีวงศ์ มติชนสุดสัปดาห์ 2 ธ.ค. 2548 ฉบับที่ 1320 http://www.matichon.co.th/weekly/weekly.php?srctag=0414021248&srcday=2005/12/02&search=no