Friday, September 21, 2007

Precompiled header does not exist

Friday Sep 21, 2007

I wasted about 20 minutes to figure out how to solve this compile error: precompiled header does not exist. I performed rebuild the entire solution with the hope that the precompiled header will be recreated.

Finally, I found that we could explicitly tell Visual Studio to create a precompiled header as shown in the figure below. After a successful compilation, Visual Studio will automatically change the 'Create' option to 'Use' option instead.

Sunday, September 16, 2007

Visual C++ and LNK2005 Problem

Sep 16, 2007

Today, I badly got strucked with LNK2005 error in Visual C++. According to linking error messages, it was a conflict between nafxcwd.lib and uafxcwd.lib. This issue will arise if one module (library or executable) "Use Unicode Character Set" and another "Use Multi-Byte Character Set".

It is important to note that LNK2005 normally arises because of two or more projects are set differently. There are two spots worth looking:

1. General Setting
2. Code Generation Setting

Notice that there is nothing to do with linking setting, although this issue is linking problem.

More info at:
http://www.velocityreviews.com/forums/t285209-lnk2005error-in-visual-c-v-60.html
http://support.microsoft.com/kb/q148652/

Saturday, September 15, 2007

LaTex Equation Editor on the web

Sep 15, 2007

There is an interesting work on the web, and it's free. It is LaTex Equation Editor, http://test.izyba.com/equationeditor/equationeditor.php. This tool creates an image with transparent background, making it easy to embed in other software such as MS PowerPoint.

The drawbacks are:
1. Text in the equation cannot be changed. If we need white text, we will find ourselves in trouble.
2. Text size is a bit too small. I like it bigger in many situations.

Note: if you know a way to handle these problems, please leave a comment in this blog.
Many thanks

Update (Oct 28, 2007): I found a better one. It is Roger's Online Equation Editor at http://rogercortesi.com/eqn/index.php#note. It can generate transparent background. Plus, we can increase resolution of an output to suit our work.

Texmaker: Free cross-platform LaTeX editor

Sep 15, 2007

Texmaker (http://www.xm1math.net/texmaker/) seems to be a very good LaTex editor tool. I used it once a long time ago. It's pretty impressive, and I think it is better than TeXnicCenter (http://www.texniccenter.org/). The tool has no more update for more than a year). However, Texmaker does not have some cool features in WinEdt such as DVI search.

FYI: DVI search is a feature in WinEdt helping a user to find a portion in DVI document corresponding to a target text in the editor. You can try it by ctrl-shift-s in a WinEdt editor. If your DVI file is open, it will jump to the corresponding text.

FYI: there is a forum about LaTex and its editors at forum http://latex-community.org/. This forum has dedicated sections for TeXnicCenter, Texmaker, and WinEdt. Sounds interesting.

Aurora: Embedding LaTex Math into MS Office

Sep 15, 2007

A few days ago, I found an interesting (but not free) tool for embedding LaTex Math into MS PowerPoint. Its name is Aurora, http://elevatorlady.ca/. Interestingly, this tool works in other MS Office tools, including Word, Excel, and Visio.

I have not tried it yet, but I will surely take a look at it when I have more time.

Sunday, September 09, 2007

ว่าด้วยเรื่องของ JFileSync

JFileSync เป็นโปรแกรมที่ทำการ synchronize file บนสองไดเรกทอรีแบบง่ายๆ มีการเปรียบเทียบให้เห็นความเก่าใหม่ของไฟล์ที่เข้าใจง่าย ตอนนี้พึ่งลองใช้บน Windows XP 32 bits ก็คงยังวิจารณ์อะไรไม่ได้มาก แต่ที่สังเกตเห็นก็คือ มันไม่รองรับการติดต่อไปที่ remote file ที่ไม่ใช่้ JFileSync server ทำให้เราต้องแม็พไดรฟ์ก่อนทุกคราไป

ยังไงก็ตามด้วยความง่ายและเพียงพอต่อความต้องการเราก็พบว่ามันน่าพอใจแล้วสำหรับซอฟต์แวร์ฟรีตัวนี้
http://jfilesync.sourceforge.net/

Wednesday, August 08, 2007

การใช้ฟอนต์ที่ลิขสิทธิ์ไม่ได้ติดมากับวินโดวส์

(Aug 8, 2007)

การจะใช้ฟอนต์ไทยในระบบปฏิบัติการอื่นนั้น แต่ก่อนเรามักจะคัดลอกฟ้อนต์จากวินโดวส์ไปใส่ ซึ่งหากเราไม่ได้มีวินโดวส์อย่างถูกกฎหมาย การคัดลอกฟอนต์ก็มักจะไม่ถูกกฎหมายตามไปด้วย วิธีแก้ปัญหานี้ก็คือใช้ฟอนต์ไทยที่ได้เค้าแจกให้เราใช้กันได้อย่างอิสระ เช่น ฟอนต์จากเนคเทค และ http://f0nt.com/ (หลังตัว f ที่จริงเป็นเลขศูนย์ ไม่ใช่ตัวโอ) เป็นต้น

ส่วนเรื่องที่จะเขียนในที่นี้ จะเจาะจงการใช้ฟอนต์การูด้า (Garuda) ซึ่งเป็นฟอนต์ที่หน่วยงานราชการไทยเลือกใช้ และฟอนต์ Tlwg Typist ซึ่งเป็นฟอนต์แบบความกว้างคงที่ทั้งสองภาษา (ใช้งานได้ฟรีเช่นกัน) และเราก็สามารถไปดาวน์โหลดได้จาก http://linux.thai.net/ (ดูตรงหัวข้อ ThaiFonts-Scaleable)
หลังจากทดลองใช้ในการพิมพ์ในไมโครซอฟต์เวิร์ดดูก็พบว่า ขนาดฟ้อนต์การูด้าที่ควรใช้คือ 12 เพราะขนาดจะกำลังค่อนข้างใหญ่ อ่านง่าย ดูเป็นมิตร แต่ถ้าต้องการให้มันดูเป็นวิชาการมากขึ้นก็ควรลดขนาดลงเหลือ 10 ส่วนขนาดฟอนต์ของ Tlwg Typist นั้นถ้าจะให้จับคู่กับการูด้าขนาด 12 ก็ควรจะเป็นขนาด 14 เพราะฟอนต์ Tlwg Typist นั้นเล็กกว่าการูด้าเล็กน้อย (ประมาณสองจุด) และถ้าจะให้จับคู่กับฟอนต์การูด้าขนาด 10 ก็ควรจะเลือกใช้ฟอนต์ Tlwg Typist ขนาด 12

สำหรับการเซ็ตขนาดฟอนต์เพื่อใช้พิมพ์ในเวิร์ด เราก็ควรทำในลักษณะรูปแบบแม่แบบ (Template Style) ซึ่งก็ทำได้จาก Format->Styles and Formatting จากนั้นก็ให้เลือก New Style ... และกำหนดให้ Save to Template เพื่อสร้างรูปแบบแม่แบบที่ต้องการไว้ใช้ในคราวต่อๆไปด้วย

สำหรับการเซ็ตขนาดฟอนต์เพื่อใช้พิมพ์ในโอเพนออฟฟิศ เราควรตรวจดูก่อนว่า CTL ที่เห็นเป็นภาษาไทยหรือเปล่า ซึ่งทำได้ที่ Tools->Options::Language Setting->Languages เมื่อทุกอย่างพร้อมแล้วก็ให้ไปที่ Tools->Options::OpenOffice.org Writer->Basic Fonts (CTL) นอกจากนี้หากเราต้องการตั้งค่าต่างๆให้เป็นรูปแบบแม่แบบเช่นเดียวกับที่ทำในเวิร์ด เราก็ทำได้ที่ Format->Styles and Formatting ที่แถบเมนูข้างบนในลักษณะเดียวกับที่เราทำในเวิร์ด

Wednesday, May 30, 2007

Adobe Contribute 3 and PSAPI.DLL problem

I installed Windows XP Professional x64 and Adobe/Macromedia Studio 8. It turned out that I could not run Contribute 3 successfully. It said something about entry point in PSAPI.DLL. According to Adobe (http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=fc6e9ff5), this problem comes from Internet Explorer 7, we need to get psapi.dll from C:/Windows/System32 and place it to Contribute directory.

Monday, April 16, 2007

valarray problem in Visual Studio

(Apr 16, 2007)

I tried to use valarray in Visual Studio and got some compile errors and warnings:
"warning C4003: not enough actual parameters for macro 'min'
warning C4003: not enough actual parameters for macro 'max'

error C2059: syntax error : ')'
c:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\include\valarray(427) : see reference to class template instantiation 'std::valarray<_ty>' being compiled

error C2334: unexpected token(s) preceding ':'; skipping apparent function body
...
"

These problem will occur only when we try to use statically linked MFC library. In http://www.codeguru.com/forum/archive/index.php/t-342787.html, Paul suggested that we need to make sure that valarray is included before afx stuff. This is because MS implements min and max macro and defines them in afx pre-compile header file. Any class that has min and max will have this problem.

However, if I switch the order, it seems that all declaration of valarray will be removed and I just got other compiler errors. It seems that the solution from Paul could not work for my situation.

After trying for a while, I finally decided to rename valarray.h to valarray_mod.h and change the function names from min and max to minimum and maximum instead.

Wednesday, March 28, 2007

Pilgrimage

ผมกับเจ้าก้องคิดว่าจะไปจาริกแสวงบุญที่วัดต่อไปนี้

1 หลวงปู่ทา วัดถ้ำซับมืด ปากช่อง
2 หลวงพ่ออุทัย วัดเขาใหญ่เจริญธรรม ปากช่อง (แผนที่ http://larndham.net/index.php?showtopic=25059)
3 หลวงปู่บุญฤทธิ์ สวนทิพย์ นนทบุรี (แผนที่ http://www.suanthip.com/contact/images/bmap.gif)
4 วัดสนามใน (ไม่รู้มีใครอยู่หรือไม่) นนทบุรี
5 วัดกระโจมทอง หลวงพ่อสุทัศน์ นนทบุรี
6 หลวงพ่อปราโมทย์ สวนสันติธรรม
7 หลวงพ่ออัครเดช (ตั๋น) วัดบุญญาวาส ชลบุรี (แผนที่ http://www.palungjit.com/club/kondee/)
8 วัดป่าอัมพวัน อ.เมือง จ. ชลบุรี เดินทางสายมอเตอร์เวย์มาจากกรุงเทพ ฯ
- ป้ายบอกทางเลี้ยวซ้ายไป อำเภอบ้านบึง
- ให้ท่านเลี้ยวซ้ายตามป้ายบอกทางถึงถนนสายบ้านบึง ประมาณ 500 เมตร จะเห็นสพานลอยคนข้ามถนน - ให้ท่านชิดขวา เลี้ยวรถกลับ ประมาณ 50 เมตร จะเห็นป้ายบอก วัดหนองรี และ วัดป่าอัมพวัน
- ขับตรงไป ประมาณ3 ก.ม มีป้ายบอกชี้ไปทางซ้าย ตรงไปอีก 2 - 3 ก.ม
- มีป้ายบอก วัดป่าอัมพวัน อ่างเก็บน้ำช่องมะเฟือง เลี้ยวขวา ไปตามเส็นทางนี้ จนสุดสาย 2 ก.ม

ชีวประวัติหลวงปู่มหาเจิม ปญฺญาพโล

(ข้อมูลได้รับการอนุเคราะห์จากที่คุณ x และคุณพงศ์โพสต์ไว้ที่ http://www.konmeungbua.com/webboard/aspboard_Question.asp?GID=8127)

ชีวประวัติหลวงปู่มหาเจิม ปญฺญาพโล

หลวงปู่มหาเจิม นามเดิม เจิม วรรณโมฬี เกิดที่บ้านหนองแหน ต.เมืองใหม่ อ.พนมสารคาม(ปัจจุบันเป็น อ.ราชสาสน์) จ.ฉะเชิงเทรา เมื่อวันที่ ๑๒ ตุลาคม พ.ศ. ๒๔๕๙ ตรงกับวันแรม ๑ ค่ำ เดือน ๑๑ ปีมะโรง บิดามีนามว่า นายหรุ่น วรรณโมฬี มารดามีนามว่า นางม้วน วรรณโมฬี มีพี่น้องทั้งหมด ๖ คน เป็นผู้ชาย ๔ คน ผู้หญิง ๒ คน ได้เสียชีวิตแล้วทั้งหมด ๕ คน ที่มีชีวิตอยู่ปัจจุบันเหลือหลวงปู่เพียงองค์เดียว

การศึกษาของหลวงปู่ในวัยเด็กต้องศึกษากับวัดที่อยู่ใกล้บ้าน โดยเรียนหนังสือมูลบทบรรพกิจของพระยาศรีสุนทรโวหาร(น้อย อาจารยาง***ร)พออ่านออกเขียนได้เท่านั้น เพราะยังไม่มีโรงเรียนประชาบาลตั้งอยู่ในวัดสมัยนั้น และยังต้องย้ายออกจากบ้าน ห่างจากบิดามารดาและญาติพี่น้องมาอยู่ที่วัดตั้งแต่อายุประมาณ ๘ ขวบ

หลวงปู่ได้บรรพชาเป็นสามเฌร เมื่อปี พ.ศ. ๒๔๗๐ อายุได้ ๑๒ ขวบ กับหลวงพ่อทองซึ่งเป็นเจ้าอาวาสวัดแสนภุมมาวาส และได้อยู่กับท่าน ๑ พรรษา ในปี พ.ศ. ๒๔๗๑ หลวงปู่ได้เดินทางเข้ามาในกรุงเทพฯ และมาอยู่ที่วัดบรมนิวาส ถนนรองเมือง เขตปทุมวัน กรุงเทพมหานคร โดยคุณย่าอิ่ม รัดสกุล เป็นผู้นำมาฝากฝังกับท่านเจ้าคุณพระอุบาลีคุณูปมาจารย์ (จันทร์ สิริจันโท) และได้ญัตติเป็นธรรมยุต กับท่านเจ้าคุณพระอุบาลีคุณูปมาจารย์ อีกด้วย

การศึกษาบาลีและนักธรรม ได้เริ่มศึกษาเมื่อปี พ.ศ. ๒๔๗๑ หลวงปู่สอบบาลีไวยากรณ์ได้ที่ ๔ เมื่อปี พ.ศ. ๒๔๗๒ และ ในปี พ.ศ. ๒๔๗๗ สอบได้นักธรรมเอก และหลวงปู่ยังสามารถสอบได้เปรียญธรรม ๕ ประโยค ได้ในปีเดียวกัน

เมื่อหลวงปู่อายุครบ ๒๐ ปี บริบูรณ์ จึงได้เข้าพิธีอุปสมบทเป็นพระภิกษุ เมื่อปี พ.ศ. ๒๔๘๐ ณ พระอุโบสถวัดบรมนิวาส โดยมีพระพรหมมุนี (ติสโส อ้วน) เป็นพระอุปัชฌาย์ พระครูพินิจ วิหารการ (ขำ) เป็นพระกรรมวาจาจารย์ พระครูวินัยธรดำ เป็นพระอนุสาวนาจารย์

ปี พ.ศ. ๒๔๘๔ หลวงปู่ได้ออกปฏิบัติ โดยเดินทางขึ้นสู่ภาคเหนือ ได้จำพรรษาที่วัดเจดีย์หลวง อ.เมือง จ.เชียงใหม่ ๑ พรรษา

ปี พ.ศ. ๒๔๘๒ – พ.ศ. ๒๔๘๗ จำพรรษาที่วัดป่าโรงธรรมสามัคคี อ.สันกำแพง จ.เชียงใหม่

ปี พ.ศ. ๒๔๘๘ จำพรรษาที่วัดทิพย์วนาราม อ.แม่แตง จ.เชียงใหม่

ปี พ.ศ. ๒๔๘๙ ได้กลับมาจำพรรษาที่ วัดป่าโรงธรรมสามัคคี อีกครั้ง

ปี พ.ศ. ๒๔๙๐ ลงมาอยู่ภาคกลาง ได้ลงไปจำพรรษาที่อ่าวยาง จ.จันทบุรี เพียงรูปเดียว

ปี พ.ศ. ๒๔๙๑ ได้ไปจำพรรษาที่อ่าวหมู กับ พระอาจารย์น้อย เกตุโร อยู่ ๑ พรรษา และได้เดินทางลงไปจำพรรษาที่ปักษ์ใต้ โดยได้ไปอยู่กับหลวงปู่เทสก์ เทสรังสี (พระราชนิโรธรังสีคัมคีร์ปัญญาวิศิษฏ์) ที่จังหวัดภูเก็ต

ปี พ.ศ. ๒๔๙๕ จำพรรษาที่อ่าวลึก จ.กระบี่ กับอาจารย์พรหมมา

ปี พ.ศ. ๒๔๙๖ – พ.ศ. ๒๔๙๘ ได้อยูจำพรรษาที่คลองช่องลม อ.อ่าวลึก จ.กระบี่

ปี พ.ศ. ๒๔๙๙ กลับมาจำพรรษาที่วัดแสนภุมมาวาส อันเป็นบ้านเกิด เพื่อเยี่ยมโปรดโยมบิดา โยมมารดา

ปี พ.ศ. ๒๕๐๐ กลับลงไปภาวนาที่ภาคใต้อีกครั้ง โดยจำพรราที่อ่าวลึก จ.กระบี่ ได้ ๑ พรรษา

ปี พ.ศ. ๒๕๐๓ จำพรรษาที่วัดอรัญญบรรพต จ.หนองคาย กับหลวงปู่เหรียญ วรลาโภ (พระสุธรรมคณาจารย์)

ปี พ.ศ. ๒๕๐๔ – พ.ศ. ๒๕๐๗ จำพรรษาที่วัดเขาแก้ว จ.จันทบุรี

ปี พ.ศ. ๒๕๐๘ – พ.ศ. ๒๕๑๗ จำพรรษาที่วัดป่าคลองกุ้ง จ.จันทบุรี

ปี พ.ศ. ๒๕๑๘ กลับไปวัดเขาช่องลม อ.อ่าวลึก จ.กระบี่อีกครั้ง และได้รับแต่งตั้งให้เป็นเจ้าอาวาส จนถึงปี พ.ศ. ๒๕๑๙ – พ.ศ. ๒๕๓๑ และในระหว่างนั้นหลวงปู่ได้ปฏิเสธที่จะรับตำแหน่งเจ้าคณะจังหวัดกระบี่ และ พังงา

ต่อมาท่านได้มาอยู่ที่มูลนิธิพระอาจารย์มั่น ภูริทัตโต ซอยจรัลสนิทวงค์ ๓๗ เขตบางกอกน้อย กรุงเทพมหานคร.

เพื่อรักาอาการอาพาธ และมาพักอยู่กับ หลวงปู่เจี๊ยะ จุนโท (พระครูสุทธิธรรมรังษี) ที่วัดป่าภูริทัตตปฏิปทาราม อ.สามโคก จ.ปทุมธานี

ปี พ.ศ. ๒๕๓๓ – ปัจจุบัน หลวงปู่ได้รับอารธนานิมนต์มาเป็นประธานสงฆ์ วัดสระมงคล อ.กำแพงแสน จ.นครปฐม ซึ่งเดิมมีพื้นที่เป็นป่าช้าเก่า



ชมภาพงานฉลองอายุ ๙๐ ปี หลวงปู่มหาเจิม ปญฺญาพโล ได้ที่

www.watpa.com

ข้อความที่ 11

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

จากคุณ นายพงศ์ เมื่อวันที่ 28/12/2549 19:21:38


http://www.watpa.com/board_detail.asp?board_id=754

Friday, March 23, 2007

เบอร์โทรไป Airticket Agency

1. Travel plus (Atlanta)
1800-875-9988 คุณแดง

2. Airticket USA
1888-888-7157 คุณคำหล้า

Friday, May 26, 2006

Tech: Open HTML Help via Network

May 26, 2006

I used doxygen to generate HTML help files from MS Visual Studio by using Kings' tool download from Code Project website, but when I put the outputs to the network and opened the help file, it said "Action Cancelled". This happened because Windows does not allow opening a network HTML help file, unless we specifically allow the file.

To solve the problem, we need to register the help file. This can be done intuitively by HHReg software, which is freely available at http://www.freedownloadmanager.org/downloads/make_chm_files_info/.

References:
http://www.codeproject.com/macro/KingsTools.asp, Kings' tool download page.

Monday, May 22, 2006

Pending Note: May 22-31

May22:
Matlab plotting capability:
We can now set aspect ratio, and when we want to export sth., Matlab 7.1 will capture the screen to reflect the current aspect ratio for us.
http://www.csc.fi/visualization/intensk99/matlab/

Linking problem in C++:
I got weird linking problem from template functions today. When I moved those functions from one class to another, linker did not work properly. Justin told me that we need to move its implementation to header files. Yeah, his suggestion did work.

Programming:: King's Tool--Doxygen for MS Visual Studio

I works nicely and can generate both WinHelp and HTML docs. Class hierarchy diagrams can also be generated. I highly recommend this tool.

More info and download link are available at:
http://www.codeproject.com/macro/KingsTools.asp

Matlab:: Matlab Links

For graphics:
http://www.csc.fi/visualization/intensk99/matlab/

For Reference:
Quick Ref: http://web.cz3.nus.edu.sg/~bao/teach/cz2105/matqkref.pdf

Sunday, May 21, 2006

Where are my files?

รู้สึกสับสนว่าเก็บสำรองไฟล์ไว้ที่ไหนบ้าง ดังนั้นต้องมาบันทึกและคอนเฟิร์มให้เต็มที่เลยว่าจะเก็บไว้ที่ไหน
1. Massive Backup เช่น Drive MAIN_MAXTOR หรือว่า output จาก master thesis ให้เก็บไว้ที่ Clemente W
2. Active Work (Esp. src code) ให้เก็บไว้ที่ Hornsby Z
3. Active Outputs ให้เก็บไว้ที่ไดร์ฟเราเองเพื่อใ้ห้โหลดได้เร็วๆ จะมีปัญหาเล็กน้อยตรงที่อักษรไดร์ฟอาจจะเปลี่ยนได้ระหว่างเครื่อง ดังนั้นเราอาจจะต้องทำฟังก์ชันไว้ให้เปลี่ยนไดร์ฟได้ง่ายๆ

Sunday, May 14, 2006

Pending Note: May 1 - 15, 2006

May 8, 2006
extern function to organize global function highly related to a specific class
(http://www.accu.org/begincpp/public/disc_topics/extern.html)
1. Declare a function as an extern in .h class
2. Implement it in .cpp class

May 9, 2006
Memory leakage due to CWinThread.
Memory leakage due to newVolume method in perform method.
Circular heading file when organizing the code is very hard to find.
Constructor inheritance ( : super_class_name() ) -> http://www.ugrad.cs.ubc.ca/~cs260/chnotes/ch4/Ch4Cov02.html.

Elusive memory leakage is now known. It is from NVVolume. Its destructor does not work properly.
However, I don't know what the if structure in NVVolume.h shown below for.
After I commented it out, every thing is still okay.

for (k=0; k \lessthan m_nslices; m_pdata = 0) delete k=

May 14
Default setting for inline expansion in debug mode is disabled in VS.Net 2003. To enable it, do as follows

1. right click and invoke project properties
2Go to c++ :: General
3. Change 'Debug Information Format' to 'Program Database (/Zi)'. We cannot use 'Program Database Edit & Continue (/ZI)' because it is incompatible with inline expansion feature.
4. Go to 'C/C++ :: Optimization'.
5. Change 'Inline Function Expansion' to 'Only __inline (/Ob1)'.

May 15, 2006
A. Mysterious subnet mask problem with CSE servers.
B. Mysterious rebuild and memory leak stuff. If you found memory leak in NVKernel, perhaps, you need to rebuild each project one by one. I think it is a linking problem. Oh, maybe, I actaully need to rebuild the release version of it. :: No, just rebuild each project, except the NVKernel itself.
C. virtaul inline function: if an inline function is inherited, it's must also the virtaul function, or its implementation in a subclass will not exist and linking problem occurs.

May 16, 2006
A. OpenOffice can export large poster to PDF accurately. Even better than Adobe Acrobat!!!
B. Project dependency may not be saved in a project file. Namely, if we remove a project and add it again to our solution, dependency information will lose and we need to configure it again.

May 17, 2006
A. Do what is correct and consistent with your style, although it may not the fastest. Consistency is very important to build a reliable multi-processing software. If Big-O complexity is the same, choose straightforward and consistent style.
B. A large, tall male subject :: we do not use ' large and tall' since it means two subjects, one is tall and another is large.

Saturday, May 13, 2006

คำอวยพรเนื่องในวันวิสาขบูชา

ไปอ่านบล็อกของพี่เทพมา http://thep.blogspot.com/2006/05/blog-post.html
คิดว่าเราน่าจะหาคำอวยพรเนื่องในวันวิสาขบูชามั่ง ก็คิดได้ดังนี้
ขอให้ความสงบใจจงเกิด ขอให้ศีลธรรมจงงอกงาม ขอให้ปัญญาจงสว่างไสว :)

Saturday, April 29, 2006

Prog: CPP Sensitivity

April 28, 2006:

I learned that sometimes we just can't transfer our C++ VS solution to a new machine and use it. For some unknown reason, function calls were messed up in my case. I called wrong functions; for example, my code called the function A(), but when I ran and debugged, it called B() instead. If we encounter the similar case, just try recompiling each project one by one.