Pinyo's Programming and Software Notes

Friday, October 27, 2006

LaTex Editors
(Oct 27, 2006)


I try to find some LaTex editors that probably sufficiently useable. WinEdt is good, but not free. TexnicCenter is free, but buggy. Now, I find another good one, texMaker. It is a free cross-platform editor downloadable from http://www.xm1math.net/texmaker/. It also features a UTF-8 editor, so we can type Thai in its editor. However, we need to configure MikTex ourselves to make our LaTex compiler able to handle Thai. texMaker can compile the whole document into HTML files as well. However, I still think that WinEdt is the best. DVI search and WinEdt's compilation and jumping to the last point are the most wanted feature indeed.

There are some other free goodies that I don't try it yet, for example, WinShell and LEd.

(Updated Nov 18, 2006)
วันนี้ทดลอง Thai MikTex Extension พบว่ามันก็ใช้ได้ดีอยู่หรอก แต่ไม่ค่อยสะดวกเรื่องการตัดคำ ขอสรุปผลการใช้งานก่อนละกัน
1. เราควรจะดาวน์โหลดตัว installer บนวินโดวส์มาจาก sourceforge เพื่อป้องกันความวุ่นวายต่างๆที่เราไม่อยากเจอ

2. ติดตั้งมันลงไปตามปรกติ เราลงไปในไดเรกทอรีที่ใกล้เคียงกับ MikTex ตัวติดตั้งมันจะทำการหา MikTex แล้วลงไฟล์ให้ถูกที่เอง

3. ต้องประกาศเรียกใช้แพ็กเกจภาษาไทยให้ถูกต้องตรงหัวเอกสาร \usepackage[english,thai]{babel} ซึ่งเราพบว่าบางที Tex compiler มันจะบ่นว่าต้องเรียกใช้ package ภาษาอังกฤษก่อน ไม่รู้เหมือนกันว่าทำไม แต่ถ้า compile ซ้ำก็จะหายไปเอง

4. พิมพ์ไทยไปตามที่อยากจะทำ ซึ่งงานนี้ก็นับว่าทำได้สะดวกดีใน texMaker เพราะมันพิมพ์ออกมาเป็นภาษาไทยบนจอภาพได้เลย

5. มันตัวคำไทยไม่ได้ทำให้การแสดงผลไม่สวยงามนัก เราจำเป็นที่จะต้องรันโปรแกรม swath ซึ่งจะแทรก script \wbr ให้ ทำได้ดังนี้ swath -f latex \lessthan testThaiLatex.tex \greater testSwath.tex
(\lessthan และ \greater คือเครื่องหมายน้อยกว่าและมากกว่าตามลำดับ)

6. compile เอกสาร testSwath.tex แทน ก็จะได้เอกสารภาษาไทยที่ตัดคำไทยได้สวยงาม

Thursday, October 19, 2006

Cross Platform Native Graphical Toolikt
(Oct 19, 2006)

I was looking around for some well-documented cross-platform toolkits that do not require developers to open-source their products. There are some that catch my interest: wxWidgets and gtk. Actually, wxWidgets is based on gtk as well, but its documentation seems superior.

However, I also think about some other possiblities: SWT (eclipse) and GSL/VCL/UNO (OpenOffice.org). I wonder if they really have some easy to use toolkit for C++. However, if I need to write Java, I probably still stick to Swing for a while and see what I will get from its performance.

Thursday, October 05, 2006

Fixing displaying Thai in Hotmail under Firefox:
(Oct 5, 2006)

บางทีเข้าเว็บฮอตเมล์ไปแล้วมันจะดื้อแสดงทุกอย่างด้วยฟ้อนต์อังกฤษหมด เดือดร้อนคนใช้ต้องไปเปลี่ยน encoding เองอยู่บ่อยๆ บังเอิญว่าผ่านไปบล็อกของไอ้หวูดเพื่อนเราก็เลยพบว่ามี extension และ script มาแก้เกมให้ด้วย

สำหรับ extension นั่นก็คือ greasemonkey ซึ่งตัวของมันเป็น JavaScript ซึ่งทำงานได้หลากหลายมากสุดแล้วแต่ว่าเราจะเอา script ไหนไปทำงานร่วมด้วย ซึ่ง script ก็เอามาจากเว็บ http://dogpositive.com/userscript/hotmail.user.js

รายละเอียดแบบเต็มๆก็ไปอ่านจากบล็อกไอ้หวูดเองเน้อ

Opensource CMS and Related List Mania:
(Oct 5, 2006)

There are so many opensource CMS's, but which one we want to use.
This site, http://www.opensourcecms.com/, compiles a list of opensource CMS's. Plus, it has a demo page we can use to test their features before making a decision.

But wait. The webpage has more than that. It also complie lists of opensource blogs, image gallery, e-commerce, groupware, forums, e-learning, wiki, and miscellaneous. We might want to take a look at it if we want some free stuff for our website.

MediaWiki, a wiki software used by wikipedia.org, is also on the list. The official page is at: http://www.mediawiki.org/wiki/MediaWiki.