Problem
I hit a page-numbering snag in a 20-page Word document. I wanted to use the Page X of Y AutoText entry in the footer, but I didn't want the footer to appear on the title page. I fixed that problem by selecting the Different First Page option in the Layout tab of the Page Setup dialog box, which left the footer on the title page blank. One problem remains, though: The total number of pages in the document is still 20, so the page after the title page says Page 2 of 20. I want it to say Page 1 of 19, since the title page doesn't count.
Solution
Word builds the Page X of Y AutoText entry from a pair of fields: Page and Numpages. You can manipulate the Numpages field to return the page count you're after. Then you can use Word's Start At setting to display page 1 for the page following your title page.
Tweaking the Numpages field
Open the footer and press [Alt][F9] to display field codes. You should see this:
Page { PAGE } of { NUMPAGES }
Highlight { NUMPAGES} and press [Ctrl][F9] to create a new field that nests the Numpages field, like this:
Page { PAGE } of { { NUMPAGES} }
The insertion point will be where you need it, between the two opening braces, so just type =.
Click between the two closing braces and type -1. Here's what you should have:
Page { PAGE } of { = { NUMPAGES} -1 }
Highlight the contents of the footer and press [F9] to update the fields.
Press [Alt][F9] to switch to results mode, and you should see this:
Page 2 of 19
Start at zero
Now you just need to make the 2 appear as 1. Stay in the footer and click Format Page Number on the Header And Footer toolbar. Enter 0 in the Start At text box and click OK. Word will then number the title page as 0 (invisibly) and change the footer on the second page to Page 1 of 19.
ที่มา http://articles.techrepublic.com.com/5100-10878_11-5307788.html
Thursday, November 5, 2009
Tuesday, November 3, 2009
2009-2 305383 Operating Systems
2009-2 305383 Operating Systems
Announcement
- สัปดาห์ที่ 2 ของดการเรียนการสอนวิชานี้ทั้ง 2 ครั้งครับ
- ภาคปกติวันพุธ กับ วันศุกร์
- ภาคพิเศษวันจันทร์กับวันพุธ
- (2 พ.ย. 52) ให้งาน Assignment 01
- ขอให้ตัวแทนแต่ละ sec รวบรวมตารางเวลาว่างของ sec ส่งให้กับอาจารย์ในวันที่ส่ง assignment 01
- หมู่เรียนที่1 (ภาคปกติ) เปลี่ยนห้องเรียนจากเดิมเป็น Slope EE ทั้งหมด
- URL สำรองของรายวิชานี้ คือ http://panupongsk.blogspot.com/2009/11/2009-2-305383-operating-systems.html
- มีคำถาม ถามได้ที่ http://board.cpenu.com/index.php?topic=1479.0
Course Syllabus
Lectures
Lab
Assignment
Assignment012009-2 305171 Computer Programming
2009-2 305171 Computer Programming
Lectures
Lab
Assignment
- ภาคปกติหมู่เรียนที่ 2-5 และภาคพิเศษหมู่เรียนที่ 2
- วันจันทร์และอังคารที่ 9-10 พ.ย. 52 งดเรียนวิชานี้ เนื่องจากผู้สอนต้องเข้าร่วมพิธีรับพระราชทานปริญญาบัตร แล้วจะแจ้งสอนชดเชยภายหลัง
- วันพุธ ที่ 11 พ.ย. 52 เรียนตามปกติ แต่ขอให้นิสิตแต่งกายด้วยชุดนิสิต ผูกไทด์ เนื่องจากจะมีการถ่ายทำวีดีโอแนะนำคณะฯ
- (2 พ.ย. 52) ให้งาน Assignment 01
- ขอให้ตัวแทนแต่ละ sec รวบรวมตารางเวลาว่างของ sec ส่งให้กับอาจารย์ในวันที่ส่ง assignment 01
- หมู่เรียนที่ 4 ขอเปลี่ยนห้องเรียนจาก EN314 เป็นEE606 เวลาเดิม
- ตั้งกระทู้ถามเกี่ยวกับวิชานี้ได้ที่ http://board.cpenu.com/index.php?topic=1478.0
- URL สำรอง คือ http://panupongsk.blogspot.com/2009/11/2009-2-305171-computer-programming.html
- ในการใช้ห้องคอมพิวเตอร์ ให้แต่ละคนนั่งประจำเครื่องดังต่อไปนี้
- ลำดับที่ 1-55 นั่งห้อง EE106 ประจำเครื่องที่ 1-55 (ตามเลขที่)
- ลำดับที่ 56 เป็นต้นไป นั่งห้อง EE113 ประจำเครื่องที่ 1 เป็นต้นไป (ตามเลขที่)
Lectures
Lab
Assignment
Labels:
305171,
C++,
Computer programming,
Engineering,
Naresuan University
Tuesday, September 22, 2009
ติดตั้ง true-type font ใน Ubuntu
ติดตั้ง font ให้กับทุก user
$sudo cp myfont.tff /usr/share/fonts/truetype
$fc-cache
จาก http://ubuntuswitch.wordpress.com/2009/02/19/howto-install-ttf-font-in-ubuntu/
$sudo cp myfont.tff /usr/share/fonts/truetype
$fc-cache
จาก http://ubuntuswitch.wordpress.com/2009/02/19/howto-install-ttf-font-in-ubuntu/
Labels:
font,
install font,
ttf,
Ubuntu
Monday, September 21, 2009
การใช้ Latex กับ ภาษาไทย
1. ติดตั้งระบบ LaTex (tex live) {ใช้เวลานานมาก เพราะ package ใหญ่มาก}
$sudo apt-get install texlive-full
2. ติดตั้ง thailatex
$sudo apt-get install texlive-full
2. ติดตั้ง thailatex
- download file จาก ftp://linux.thai.net/pub/thailinux/software/thailatex
- แยกไฟล์ลง hdd
- ติดตั้งไฟล์โดยดูขั้นตอนได้จากไฟล์ install
Wednesday, July 29, 2009
Virtual box error NS_ERROR_FAILURE
หลังจากที่ update Ubuntu ในบางครั้ง เราจะพบปัญหา ไม่สามารถ run virtual machine ใน virtual box ได้ เนื่องจากว่า มีความไม่สอดคล้องกันกับ kernel module
ซึ่งเราจะพบ error ดังนี้
วิธีแก้ คือ
เท่านี้ก็เรียบร้อยแล้วครับ
ซึ่งเราจะพบ error ดังนี้
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Machine
Interface:
IMachine {13420cbb-175a-4456-85d0-301126dfdec7}
Kernel driver not installed
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
วิธีแก้ คือ
sudo /etc/init.d/vboxdrv setup
เท่านี้ก็เรียบร้อยแล้วครับ
Labels:
0x80004005,
NS_ERROR_FAILURE,
Ubuntu,
Virtual Box
Saturday, July 25, 2009
ความมหัศจรรย์ของดอกเบี้ยทบต้น
"The most powerful force in the universe is compound interest", Albert Einstein [1]
เป็นคำกล่าวของ อัลเบิร์ต ไอน์สไตน์ แปลว่า "พลังที่ยิ่งใหญ่ที่สุดในจักรวาล คือ ดอกเบี้ยทบต้น" ทำไม ไอน์สไตน์จึงกล่าวเช่นนั้น ลองมาดูว่า ถ้าเราฝากเงินไว้ แล้วคิดอัตราดอกเบี้ยแบบทบต้นจะได้ผลลัพธ์เป็นอย่างไร
จากรูป จะเห็นว่า ที่อัตราดอกเบี้ย 5% ต่อปีแบบทบต้น (เอาดอกเบี้ยฝากต่อไปเรื่อย ๆ) มูลค่าจะกลายเป็น 1.28, 1.63, 2.08, 2.65, 3.39, และ 4.32 เท่า เมื่อเวลาผ่านไป 5, 10, 15, 20, 25, และ 30 ปี ตามลำดับ แต่ถ้าเปลี่ยนเป็นอัตราดอกเบี้ย 20% ต่อปี มูลค่าจะกลายเป็น 237.38 เท่า เมื่อเวลาผ่านไป 30 ปี
ดังนั้น ถ้าเรามีเงินเริ่มต้น 100,000 บาท เมื่อเวลาผ่านไป 30 ปี จะกลายเป็น 23.7 ล้านบาท ที่อัตราดอกเบี้ยทบต้น 20% ต่อปี เมื่อรู้อย่างนี้แล้ว เราต้องรีบฝากเงินยิ่งเริ่มเร็วเท่าไหร่ยิ่งดี
แต่ปัญหาก็คือ
แล้วจะทำอย่างไรดี
Reference
[1] http://thinkexist.com/quotation/the_most_powerful_force_in_the_universe_is/158830.html
เป็นคำกล่าวของ อัลเบิร์ต ไอน์สไตน์ แปลว่า "พลังที่ยิ่งใหญ่ที่สุดในจักรวาล คือ ดอกเบี้ยทบต้น" ทำไม ไอน์สไตน์จึงกล่าวเช่นนั้น ลองมาดูว่า ถ้าเราฝากเงินไว้ แล้วคิดอัตราดอกเบี้ยแบบทบต้นจะได้ผลลัพธ์เป็นอย่างไร
จากรูป จะเห็นว่า ที่อัตราดอกเบี้ย 5% ต่อปีแบบทบต้น (เอาดอกเบี้ยฝากต่อไปเรื่อย ๆ) มูลค่าจะกลายเป็น 1.28, 1.63, 2.08, 2.65, 3.39, และ 4.32 เท่า เมื่อเวลาผ่านไป 5, 10, 15, 20, 25, และ 30 ปี ตามลำดับ แต่ถ้าเปลี่ยนเป็นอัตราดอกเบี้ย 20% ต่อปี มูลค่าจะกลายเป็น 237.38 เท่า เมื่อเวลาผ่านไป 30 ปีดังนั้น ถ้าเรามีเงินเริ่มต้น 100,000 บาท เมื่อเวลาผ่านไป 30 ปี จะกลายเป็น 23.7 ล้านบาท ที่อัตราดอกเบี้ยทบต้น 20% ต่อปี เมื่อรู้อย่างนี้แล้ว เราต้องรีบฝากเงินยิ่งเริ่มเร็วเท่าไหร่ยิ่งดี
แต่ปัญหาก็คือ
- อัตราดอกเบี้ยที่ธนาคารให้ ไม่ได้สูงถึง 20% ต่อปี (ณ ปัจจุบัน อยู่ที่ประมาณ 2% ต่อปีเท่านั้น สำหรับฝากประจำ
- ตอนที่อายุน้อย ๆ เรายังไม่มีเงินต้นมากพอ
แล้วจะทำอย่างไรดี
- เอาเงินไปลงทุน เช่น ซื้อหุ้น กองทุนรวม หรือ ทองคำ เป็นต้น
- ทยอยออมเงิน และ ลงทุนอย่างสม่ำเสมอ และนำผลตอบแทนมาลงทุนต่อเรื่อย ๆ เช่น ถ้าเราลงทุนเดือนละ 1000 ก็คือ ปีละ 12,000 บาท ให้ได้ผลตอบแทน 10% ต่อปี และนำผลตอบแทนมาลงทุนต่อไปเรื่อย ๆ เมื่อเวลาผ่านไป 30 ปี จะมีเงินประมาณ 2.1 ล้านบาท จากการลงทุนทั้งสิ้น 0.36 ล้าน ซึ่งถ้าเราเพิ่มจำนวนเงินออมให้มากกว่านี้ ก็จะได้เงินล้านเร็วขึ้นกว่านี้
Reference
[1] http://thinkexist.com/quotation/the_most_powerful_force_in_the_universe_is/158830.html
Labels:
Einstein,
การลงทุน,
ดอกเบี้ย,
ดอกเบี้ยทบต้น,
วางแผนการเงิน
Subscribe to:
Posts (Atom)