(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, August 08, 2007
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.
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.
Labels:
C++,
Compile Error,
Standard Template Library,
STL,
Visual Studio
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 ก.ม
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
http://www.watpa.com/board_detail.asp?board_id=754
ชีวประวัติหลวงปู่มหาเจิม ปญฺญาพโล
หลวงปู่มหาเจิม นามเดิม เจิม วรรณโมฬี เกิดที่บ้านหนองแหน ต.เมืองใหม่ อ.พนมสารคาม(ปัจจุบันเป็น อ.ราชสาสน์) จ.ฉะเชิงเทรา เมื่อวันที่ ๑๒ ตุลาคม พ.ศ. ๒๔๕๙ ตรงกับวันแรม ๑ ค่ำ เดือน ๑๑ ปีมะโรง บิดามีนามว่า นายหรุ่น วรรณโมฬี มารดามีนามว่า นางม้วน วรรณโมฬี มีพี่น้องทั้งหมด ๖ คน เป็นผู้ชาย ๔ คน ผู้หญิง ๒ คน ได้เสียชีวิตแล้วทั้งหมด ๕ คน ที่มีชีวิตอยู่ปัจจุบันเหลือหลวงปู่เพียงองค์เดียว
การศึกษาของหลวงปู่ในวัยเด็กต้องศึกษากับวัดที่อยู่ใกล้บ้าน โดยเรียนหนังสือมูลบทบรรพกิจของพระยาศรีสุนทรโวหาร(น้อย อาจารยาง***ร)พออ่านออกเขียนได้เท่านั้น เพราะยังไม่มีโรงเรียนประชาบาลตั้งอยู่ในวัดสมัยนั้น และยังต้องย้ายออกจากบ้าน ห่างจากบิดามารดาและญาติพี่น้องมาอยู่ที่วัดตั้งแต่อายุประมาณ ๘ ขวบ
หลวงปู่ได้บรรพชาเป็นสามเฌร เมื่อปี พ.ศ. ๒๔๗๐ อายุได้ ๑๒ ขวบ กับหลวงพ่อทองซึ่งเป็นเจ้าอาวาสวัดแสนภุมมาวาส และได้อยู่กับท่าน ๑ พรรษา ในปี พ.ศ. ๒๔๗๑ หลวงปู่ได้เดินทางเข้ามาในกรุงเทพฯ และมาอยู่ที่วัดบรมนิวาส ถนนรองเมือง เขตปทุมวัน กรุงเทพมหานคร โดยคุณย่าอิ่ม รัดสกุล เป็นผู้นำมาฝากฝังกับท่านเจ้าคุณพระอุบาลีคุณูปมาจารย์ (จันทร์ สิริจันโท) และได้ญัตติเป็นธรรมยุต กับท่านเจ้าคุณพระอุบาลีคุณูปมาจารย์ อีกด้วย
การศึกษาบาลีและนักธรรม ได้เริ่มศึกษาเมื่อปี พ.ศ. ๒๔๗๑ หลวงปู่สอบบาลีไวยากรณ์ได้ที่ ๔ เมื่อปี พ.ศ. ๒๔๗๒ และ ในปี พ.ศ. ๒๔๗๗ สอบได้นักธรรมเอก และหลวงปู่ยังสามารถสอบได้เปรียญธรรม ๕ ประโยค ได้ในปีเดียวกัน
เมื่อหลวงปู่อายุครบ ๒๐ ปี บริบูรณ์ จึงได้เข้าพิธีอุปสมบทเป็นพระภิกษุ เมื่อปี พ.ศ. ๒๔๘๐ ณ พระอุโบสถวัดบรมนิวาส โดยมีพระพรหมมุนี (ติสโส อ้วน) เป็นพระอุปัชฌาย์ พระครูพินิจ วิหารการ (ขำ) เป็นพระกรรมวาจาจารย์ พระครูวินัยธรดำ เป็นพระอนุสาวนาจารย์
ปี พ.ศ. ๒๔๘๔ หลวงปู่ได้ออกปฏิบัติ โดยเดินทางขึ้นสู่ภาคเหนือ ได้จำพรรษาที่วัดเจดีย์หลวง อ.เมือง จ.เชียงใหม่ ๑ พรรษา
ปี พ.ศ. ๒๔๘๒ – พ.ศ. ๒๔๘๗ จำพรรษาที่วัดป่าโรงธรรมสามัคคี อ.สันกำแพง จ.เชียงใหม่
ปี พ.ศ. ๒๔๘๘ จำพรรษาที่วัดทิพย์วนาราม อ.แม่แตง จ.เชียงใหม่
ปี พ.ศ. ๒๔๘๙ ได้กลับมาจำพรรษาที่ วัดป่าโรงธรรมสามัคคี อีกครั้ง
ปี พ.ศ. ๒๔๙๐ ลงมาอยู่ภาคกลาง ได้ลงไปจำพรรษาที่อ่าวยาง จ.จันทบุรี เพียงรูปเดียว
ปี พ.ศ. ๒๔๙๑ ได้ไปจำพรรษาที่อ่าวหมู กับ พระอาจารย์น้อย เกตุโร อยู่ ๑ พรรษา และได้เดินทางลงไปจำพรรษาที่ปักษ์ใต้ โดยได้ไปอยู่กับหลวงปู่เทสก์ เทสรังสี (พระราชนิโรธรังสีคัมคีร์ปัญญาวิศิษฏ์) ที่จังหวัดภูเก็ต
ปี พ.ศ. ๒๔๙๕ จำพรรษาที่อ่าวลึก จ.กระบี่ กับอาจารย์พรหมมา
ปี พ.ศ. ๒๔๙๖ – พ.ศ. ๒๔๙๘ ได้อยูจำพรรษาที่คลองช่องลม อ.อ่าวลึก จ.กระบี่
ปี พ.ศ. ๒๔๙๙ กลับมาจำพรรษาที่วัดแสนภุมมาวาส อันเป็นบ้านเกิด เพื่อเยี่ยมโปรดโยมบิดา โยมมารดา
ปี พ.ศ. ๒๕๐๐ กลับลงไปภาวนาที่ภาคใต้อีกครั้ง โดยจำพรราที่อ่าวลึก จ.กระบี่ ได้ ๑ พรรษา
ปี พ.ศ. ๒๕๐๓ จำพรรษาที่วัดอรัญญบรรพต จ.หนองคาย กับหลวงปู่เหรียญ วรลาโภ (พระสุธรรมคณาจารย์)
ปี พ.ศ. ๒๕๐๔ – พ.ศ. ๒๕๐๗ จำพรรษาที่วัดเขาแก้ว จ.จันทบุรี
ปี พ.ศ. ๒๕๐๘ – พ.ศ. ๒๕๑๗ จำพรรษาที่วัดป่าคลองกุ้ง จ.จันทบุรี
ปี พ.ศ. ๒๕๑๘ กลับไปวัดเขาช่องลม อ.อ่าวลึก จ.กระบี่อีกครั้ง และได้รับแต่งตั้งให้เป็นเจ้าอาวาส จนถึงปี พ.ศ. ๒๕๑๙ – พ.ศ. ๒๕๓๑ และในระหว่างนั้นหลวงปู่ได้ปฏิเสธที่จะรับตำแหน่งเจ้าคณะจังหวัดกระบี่ และ พังงา
ต่อมาท่านได้มาอยู่ที่มูลนิธิพระอาจารย์มั่น ภูริทัตโต ซอยจรัลสนิทวงค์ ๓๗ เขตบางกอกน้อย กรุงเทพมหานคร.
เพื่อรักาอาการอาพาธ และมาพักอยู่กับ หลวงปู่เจี๊ยะ จุนโท (พระครูสุทธิธรรมรังษี) ที่วัดป่าภูริทัตตปฏิปทาราม อ.สามโคก จ.ปทุมธานี
ปี พ.ศ. ๒๕๓๓ – ปัจจุบัน หลวงปู่ได้รับอารธนานิมนต์มาเป็นประธานสงฆ์ วัดสระมงคล อ.กำแพงแสน จ.นครปฐม ซึ่งเดิมมีพื้นที่เป็นป่าช้าเก่า
ชมภาพงานฉลองอายุ ๙๐ ปี หลวงปู่มหาเจิม ปญฺญาพโล ได้ที่
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 คุณคำหล้า
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.
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.
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
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
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 ให้เก็บไว้ที่ไดร์ฟเราเองเพื่อใ้ห้โหลดได้เร็วๆ จะมีปัญหาเล็กน้อยตรงที่อักษรไดร์ฟอาจจะเปลี่ยนได้ระหว่างเครื่อง ดังนั้นเราอาจจะต้องทำฟังก์ชันไว้ให้เปลี่ยนไดร์ฟได้ง่ายๆ
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.
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.
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.
Wednesday, April 12, 2006
This Week: April 10 - 16, 2006
Monday: Learn parameter-passing method for dynamic array. We need to force casting in some way, but the function signature is always float* arInput, const int SIZE.
Tuesday: Learn how to read data from binary file and learn how to save binary data to file. In reading, we cannot flush the buffer, just read again and overwrite the old data. In writing, it is much faster to perform large write (write multiple bytes). Moreover, we don't need to flush data. See Convolver class (xConvolve function).
I also learn that casting is a time consuming task. If we can provide compatible variable types, we might want to consider provide one as much as we can. It reduces running time significantly.
Wednesday: I encountered a strange problem. I cannot promote a protected member function to a public one. It causes linking problem in other projects using a library with the promoted function. I have to avoid the problem by deriving the class and build an interface to provide a way to call the protected member as a public one. I did it in VesselTreeUtilities by providing the same function name and signature. To create the function we can do it as follows:
float***
VesselTreeUtilities::init3DArrayFloat( int nNumSlc, int nNumRow, int nNumCol ) {
return CommonCore::init3DArrayFloat( nNumSlc, nNumRow, nNumCol );
}
Tuesday: Learn how to read data from binary file and learn how to save binary data to file. In reading, we cannot flush the buffer, just read again and overwrite the old data. In writing, it is much faster to perform large write (write multiple bytes). Moreover, we don't need to flush data. See Convolver class (xConvolve function).
I also learn that casting is a time consuming task. If we can provide compatible variable types, we might want to consider provide one as much as we can. It reduces running time significantly.
Wednesday: I encountered a strange problem. I cannot promote a protected member function to a public one. It causes linking problem in other projects using a library with the promoted function. I have to avoid the problem by deriving the class and build an interface to provide a way to call the protected member as a public one. I did it in VesselTreeUtilities by providing the same function name and signature. To create the function we can do it as follows:
float***
VesselTreeUtilities::init3DArrayFloat( int nNumSlc, int nNumRow, int nNumCol ) {
return CommonCore::init3DArrayFloat( nNumSlc, nNumRow, nNumCol );
}
Tuesday, April 04, 2006
Tech: Shear Transformation in Illustrator
April 4, 2006
I tried to use draw an isometric grid with some text in it. Kun-Chang suggested me to use Illustrator to draw a grid, but he did not know how to call shear transformation feature in it. In short, we want to draw a rectangular grid and shear transform it to an isometric one.
To draw a rectangular grid:
When export it for later use with other document, we'd better use somewhat high resolution to do that job.
I tried to use draw an isometric grid with some text in it. Kun-Chang suggested me to use Illustrator to draw a grid, but he did not know how to call shear transformation feature in it. In short, we want to draw a rectangular grid and shear transform it to an isometric one.
To draw a rectangular grid:
- Show a grid (in top menu bar)
- Snap to grid (in top menu bar as well)
- Draw a grid easily as you want
When export it for later use with other document, we'd better use somewhat high resolution to do that job.
Monday, April 03, 2006
Latex: \left\{ and \right.
ตามปรกติแล้วเวลาใช้ \left\{ มันจะต้องไปกับ \right\} แต่ว่าบางทีเราก็ต้องการจะเขียนแค่ \left\{ จริงๆ
ปัญหาแบบนี้แก้ได้ด้วยการใช้คำสั่ง \right. เพื่อเป็นการแจ้งกับ LaTex ว่าเราไม่ได้ลืมปิด แต่เราไม่ต้องการใส่มันเข้าไปจริงๆ
ปัญหาแบบนี้แก้ได้ด้วยการใช้คำสั่ง \right. เพื่อเป็นการแจ้งกับ LaTex ว่าเราไม่ได้ลืมปิด แต่เราไม่ต้องการใส่มันเข้าไปจริงๆ
Thursday, March 23, 2006
Latex: {\tiny ... } and \begin{spacing}{1.0}
(Mar 23, 2006)
Today, I learned two new LaTex command: {\tiny ... } and \begin{spacing}{1.0} \end{spacing}
\tiny is used to make the font in the bracket specifically small.
spacing environment specifies line spacing within the environment. 1.0 is actually the default line spacing. If you want double space, say {2.0} instead.
Today, I learned two new LaTex command: {\tiny ... } and \begin{spacing}{1.0} \end{spacing}
\tiny is used to make the font in the bracket specifically small.
spacing environment specifies line spacing within the environment. 1.0 is actually the default line spacing. If you want double space, say {2.0} instead.
Saturday, March 18, 2006
Latex: align and equation environments
ในตอนที่เราต้องการที่จะทำให้สมการเดียวที่ยาวต่อๆกันหลายบรรทัดจัดเรียงกันสวยๆ พร้อมกับใส่หมายเลขให้มันเป็นสมการเดียว เราอาจจะต้องใช้สอง environment ควบคู่กันไป คือ
1. ใช้ \begin{equation} \end{equation} นำ
2. ตามด้วยการใช้ \begin{aligned} \end{aligned} ไว้ที่ด้านใน
3. ใส่สมการไว้ภายใน aligned environmentg
\begin{equation}
\begin{aligned}
%Your equation is here
\end{aligned}
\end{equation}
น่าจะใช้ gather ได้แต่ไม่รู้่ว่าใช้ไงกันแน่ ถ้าใครรู้แล้วบังเอิญผ่านมาบล็อกนี้พอดีก็บอกด้วยนะ
1. ใช้ \begin{equation} \end{equation} นำ
2. ตามด้วยการใช้ \begin{aligned} \end{aligned} ไว้ที่ด้านใน
3. ใส่สมการไว้ภายใน aligned environmentg
\begin{equation}
\begin{aligned}
%Your equation is here
\end{aligned}
\end{equation}
น่าจะใช้ gather ได้แต่ไม่รู้่ว่าใช้ไงกันแน่ ถ้าใครรู้แล้วบังเอิญผ่านมาบล็อกนี้พอดีก็บอกด้วยนะ
Sunday, February 05, 2006
Subscribe to:
Posts (Atom)

