- Mouse Gestures
- Tab Mix ถ้าเป็น Mac OS X ก็ให้ใช้ Tab Mix Plus
- FlashGot
- Down Them All
วันศุกร์, กรกฎาคม 29, 2548
FireFox Extensions ที่น่าสนใจ
ขาดไม่ได้เลยอันนี้
สลับปุ่ม Ctrl กับ Caps Lock
เพิ่มส่วนนี้เข้าไปใน registry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
Config TeXlipse
หมายเหตุ MikTeX เป็นอีก Implementation หนึ่งของ LaTeX ที่น่าสนใจ
ถ้าไม่คิดเรื่องภาษาญี่ปุ่น
options และค่าต่างๆ ที่ต้องตั้งเวลาลง TeXlipse
ถ้าไม่คิดเรื่องภาษาญี่ปุ่น
options และค่าต่างๆ ที่ต้องตั้งเวลาลง TeXlipse
- Builder Settings: หากเราเซต PATH environment variable ของ user ให้มี TeX/bin และ อื่นๆซึ่งหาดูได้จาก อ้างอิง แล้วล่ะก็ TeXlipse จะหาค่าต่างๆ ได้เอง ยกเว้น ps2pdf ซึ่งเป็นของ Ghostscript
- Ps2pdf program () ให้ใส่ค่า $GHOSTSCRIPT_PATH\lib\ps2pdf.bat
- Arguments ใส่ค่า -dPDFsettings=/prepress %input
- Viewer Settings: ต้องตั้งค่าบางอย่างสำหรับพวก viewer ตามนี้
- acroread (C:\Program Files\...\AcroRd32.exe) ตั้ง path ของ Acrobat Reader
- gv (C:\Program Files\Ghostgum\gsview\gsview32.exe) ตั้ง path ของ Ghostview
- dviout (D:\bin\dviout\dviout.exe) แล้วเลือก file type เป็น dvi [อันนี้ต้องเพิ่มเอาเอง เพราะมันไม่ได้มีอยู่ใน default list]
- เกี่ยวกับ Ghostscript
- เกี่ยวกับ TeX
วันพฤหัสบดี, กรกฎาคม 28, 2548
XP Home to XP Pro
C'T writes in its latest print issue (in German only) that you need to copy the root directory and the i386 directory of the WindowsXP CD to your harddisk, extract the Bootsector of your WindowsXP CD and change only 2 bytes in i386Setupreg.hiv by using Regedit. In fact all you have to do is edit the binary key "default" and change "01" to "00" and "02" to "00" in HKEY_LOCAL_MACHINEHomekeyControlSet001Servicessetupdd, C'T claims.
There is one big drawback, though. Users won't be able to install Service Pack 2, unless they integrate SP2 in the installation CD. And that's probably too much trouble for most users, who of course are better off buying a legal version anyway. It is expected that Microsoft will change the setup files soon to prevent this hack. "
There is one big drawback, though. Users won't be able to install Service Pack 2, unless they integrate SP2 in the installation CD. And that's probably too much trouble for most users, who of course are better off buying a legal version anyway. It is expected that Microsoft will change the setup files soon to prevent this hack. "
วันอังคาร, กรกฎาคม 26, 2548
Mac OS X Login Hook and Logout Hook
เวลาต้องการรัน startup สคริปต์ตอนล็อกอิน หรือ ล็อกเอาท์ใน
MacOS X มี ระบบซึ่งเรียกว่า Login Hook และ Logout Hook
อ้างอิงจากอันนี้ดีที่สุด หน้านี้ และ หน้านี้
วิธีใหม่
sudo defaults write com.apple.loginwindow LoginHook /path/to/script
(where /path/to/script is the full path to the script that you want to execute when a user logs in—it doesn't have to be in the user's Home directory).
This modifies the /var/root/Library/Preferences/com.apple.loginwindow file.
วิธีเก่า
หลักๆแล้วก็คือ แก้ /private/etc/ttys โดยเพิ่ม
เพิ่มระหว่าง console "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
-LoginHook /private/mydir/myLoginHookScript -LogoutHook /private/mydir/myLogoutHookScript vt100 on secure windows=...
MacOS X มี ระบบซึ่งเรียกว่า Login Hook และ Logout Hook
อ้างอิงจากอันนี้ดีที่สุด หน้านี้ และ หน้านี้
วิธีใหม่
sudo defaults write com.apple.loginwindow LoginHook /path/to/script
(where /path/to/script is the full path to the script that you want to execute when a user logs in—it doesn't have to be in the user's Home directory).
This modifies the /var/root/Library/Preferences/com.apple.loginwindow file.
วิธีเก่า
หลักๆแล้วก็คือ แก้ /private/etc/ttys โดยเพิ่ม
-LoginHook /private/mydir/myLoginHookScript -LogoutHook /private/mydir/myLogoutHookScript
เพิ่มระหว่าง console "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow
-LoginHook /private/mydir/myLoginHookScript -LogoutHook /private/mydir/myLogoutHookScript vt100 on secure windows=...
วันจันทร์, กรกฎาคม 25, 2548
LaTeX กับ Mac OS X
วันเสาร์, กรกฎาคม 16, 2548
แสดงภาษาไทยและญี่ปุ่นใน xterm ของ Mac OS X แบบ そのまま
จริงๆ แล้วไม่ต้องใช้ iTerm ก็ สามารถ แสดงภาษาไทยบน xterm ของ Mac OS X ได้
เวลาเรียก ให้เรียก uxterm แทน มันเป็น wrapper เอาไว้ห่อ xterm -u8 ซึ่งสำหรับ
รองรับ UTF-8.
เวลา ls ให้ใช้ ls -v แทน หรือจะทำเป็น alias ไว้ก็จะดี จะสามารถแสดงภาษาไทยและ
ญี่ปุ่นได้เลย ไม่ต้องยุ่งยาก. ส่วนการ input ที่ terminal นั้นก็สามารถ input ภาษาไทย
ได้เลย เนื่องจากว่า input method สำหรับภาษาไทยของ Mac นั้นเป็น Unicode อยู่แล้ว
แต่สำหรับภาษาญี่ปุ่นนั้นมันเป็น IM เฉพาะของมัน และ(คาดว่า) ไม่เป็น Unicode เพราะ
เวลาใส่อินพุตภาษาญี่ปุ่น ลงไปแล้วมันเป็นขยะไป
คาดว่าวิธีแก้สำหรับภาษาญี่ปุ่นนันน่าจะเป็นการใช้ input method สำหรับ unix เช่น kanna2
หรือว่า anthy เป็นต้น. ขี้เกียจลอง
เวลาเรียก ให้เรียก uxterm แทน มันเป็น wrapper เอาไว้ห่อ xterm -u8 ซึ่งสำหรับ
รองรับ UTF-8.
เวลา ls ให้ใช้ ls -v แทน หรือจะทำเป็น alias ไว้ก็จะดี จะสามารถแสดงภาษาไทยและ
ญี่ปุ่นได้เลย ไม่ต้องยุ่งยาก. ส่วนการ input ที่ terminal นั้นก็สามารถ input ภาษาไทย
ได้เลย เนื่องจากว่า input method สำหรับภาษาไทยของ Mac นั้นเป็น Unicode อยู่แล้ว
แต่สำหรับภาษาญี่ปุ่นนั้นมันเป็น IM เฉพาะของมัน และ(คาดว่า) ไม่เป็น Unicode เพราะ
เวลาใส่อินพุตภาษาญี่ปุ่น ลงไปแล้วมันเป็นขยะไป
คาดว่าวิธีแก้สำหรับภาษาญี่ปุ่นนันน่าจะเป็นการใช้ input method สำหรับ unix เช่น kanna2
หรือว่า anthy เป็นต้น. ขี้เกียจลอง
วันศุกร์, กรกฎาคม 15, 2548
iTerm กับ terminal ที่เป็น Unicode
วันนี้ลองใช้ iTerm อีกครั้ง หลังจากคราวที่แล้วใช้งานแล้วมันไม่เวิร์ค
เหตุที่ทำให้กลับมาใช้อีกครั้งก็เพราะ 7-zip ฉบับ Mac OS X มันออกมาเฉพาะ
command-line version เท่านั้น ก็เลยต้องใช้กับ Terminal แต่ทีเด็ดของเจ้า
7-zip เนี่ยมันอยู่ตรงที่มัน fully support unicode filename ก็เลยทำให้เราสามารถ
บีบอัดทั้งไฟล์ทั้งโฟลเดอร์ที่ตั้งชื่อเป็นภาษาไทย (ซึ่งส่วนมากก็คือไอ่เพลงที่อยู่ใน
auditorium ของเรานั่นเอง) และภาษาญี่ปุ่นได้
โอ้ัโฮ ไอ่เราอยากได้มาันานแล้วไอ่โปรแกรมอย่างงี้
มีเรื่องปวดหัวหลายๆ ทีแล้ว ไอ่เรื่องชื่อไฟล์แบบ อินเตอร์แนชั่นแนล เนี่ย
เข้าพ้อยท์สำคัญเลยดีกว่า ที่มันแสดงชื่อไฟล์ภาษาไทยและญี่ปุ่นไม่ได้เวลาสั่ง ls เนี่ย
เพราะเราไม่ได้ set environment variable ที่สำคัญไปตัวหนึ่งซึ่งก็คือเจ้า LANG
$ export LANG=en_US.UTF-8 ปุ๊บก็จะแสดงได้ทันที
เหตุที่ทำให้กลับมาใช้อีกครั้งก็เพราะ 7-zip ฉบับ Mac OS X มันออกมาเฉพาะ
command-line version เท่านั้น ก็เลยต้องใช้กับ Terminal แต่ทีเด็ดของเจ้า
7-zip เนี่ยมันอยู่ตรงที่มัน fully support unicode filename ก็เลยทำให้เราสามารถ
บีบอัดทั้งไฟล์ทั้งโฟลเดอร์ที่ตั้งชื่อเป็นภาษาไทย (ซึ่งส่วนมากก็คือไอ่เพลงที่อยู่ใน
auditorium ของเรานั่นเอง) และภาษาญี่ปุ่นได้
โอ้ัโฮ ไอ่เราอยากได้มาันานแล้วไอ่โปรแกรมอย่างงี้
มีเรื่องปวดหัวหลายๆ ทีแล้ว ไอ่เรื่องชื่อไฟล์แบบ อินเตอร์แนชั่นแนล เนี่ย
เข้าพ้อยท์สำคัญเลยดีกว่า ที่มันแสดงชื่อไฟล์ภาษาไทยและญี่ปุ่นไม่ได้เวลาสั่ง ls เนี่ย
เพราะเราไม่ได้ set environment variable ที่สำคัญไปตัวหนึ่งซึ่งก็คือเจ้า LANG
$ export LANG=en_US.UTF-8 ปุ๊บก็จะแสดงได้ทันที
วันอาทิตย์, กรกฎาคม 10, 2548
ลง มีเดียวิกิ บนเครื่อง bossanova Mac OS X G5 dual เรียบร้อยแล้ว
คิดว่าจะเอามาเป็นที่จดบันทึกทำลิ้ง เวลาอ่านเปเปอร์จะได้สบายๆ
แต่คงต้องอ่านรายละเอียดเกี่ยวกับวิธีการเขียนอีกสักหน่อย
น่าสนใจๆ
แต่คงต้องอ่านรายละเอียดเกี่ยวกับวิธีการเขียนอีกสักหน่อย
น่าสนใจๆ
วันศุกร์, กรกฎาคม 08, 2548
ลองลง Skippy แล้วมันไม่เวิร์ค
Skippy เป็นซอฟต์แวร์ตัวหนึ่งที่ช่วยให้ x11 windows manager เปลี่ยนหน้าต่างไปมา
ได้เหมือน Expose (tm) ของ Mac OS X
ได้เหมือน Expose (tm) ของ Mac OS X
วันอังคาร, มิถุนายน 28, 2548
耳のことなんだけど。。。
耳に関するいろいろなことばがある。意味は大体聞くこととか聞こえることを表現するが、微妙に違うところもある。
- 耳を澄(す)ます:何かを聞こうと思って注意してじっと聞く。
- 耳につく:聞こえた音が気になって、耳から離れないような感じになる。
- 耳が遠い:聞く力が弱っていて、よく聞こえない。
- 耳を傾(かたむ)ける:何かを聞こうと思って、他人の話などを真剣に聴く。
- 例)先生のアドバイスに耳を傾けた。
...やか、「やか」が付くことば。
最近、歌を聴いたりドラマを観たりするとき、よく出てくる形容詞は、なんとか「○○やか」が多いなぁと気がついた。เกือบทั้งหมดเป็นคำ ๔ พยางค์なので結構気になる。今後、注意して聞こうと思っているんだ。そして、
このblogに記述するように。
このblogに記述するように。
- 賑(にぎ)やか:これはもちろん最初日本語習った頃に知った言葉だ。
- 健(すこ)やか:
- 密(ひそ)やか:
- 穏(おだ)やか:
- 細(ささ)やか:tiny,small,modest
- 爽(さわ)やか:fresh,refreshing
- 豊(ゆた)やか:豊かなさま、ゆったりしたさま。
- 緩(ゆる)やか:緩いさま。ゆとりのあるさま。動きなどがゆっくりしているさま。
- 鮮(あざ)やか:ものの色彩・形などがはっきりしていて、目立つさま。
วันจันทร์, มิถุนายน 27, 2548
Mac OS X remote desktop จาก Windows XP
วันเสาร์, มิถุนายน 25, 2548
พ้อยโตะของเจซีบีเอาไปทำอะไร?
ใกล้จะถึงเวลาพ้อยโตะหมดอายุแล้ว ก็เลยไปคลิ๊กๆ ดูว่าที่มีอยู่พอจะทำอะไรได้บ้าง.
ดูแล้วของที่มันให้แลกก็ไม่ค่อยน่าสนใจเท่าไหร่. เอาพ้อยที่มีไปแลกของที่มันกำหนดไว้
นี่ก็เหมือนกับถูกบังคับยังไงไม่รู้. ไม่แลกชัวร์ๆ สู้เปลี่ยนพ้อยเป็นอย่างอื่นแล้วเอาไปใช้
เป็นส่วนลดซื้อของที่เราอยากได้ยังจะดีกว่าอีก.
ที่น่าสนใจและคุ้มๆหน่อยก็น่าจะเป็นแลกเป็นพ้อยของ "บิ๊กคาเมร่า" หรือไม่ก็ "ระคุเต็ง"
ของบิ๊กนี่มีแต้มเหลืออยู่พันกว่าๆ แลกมารวมกันน่าจะได้ซัก สี่พัน อืม ไม่เลวๆ.
แต่ของที่อยากได้ตอนนี้ที่บิ๊กคาเมร่าไม่มี คงต้องแลกเป็นของระคุเต็งแทน
อืม รวมกับพ้อยที่ได้รับมาจากอนาก็เป็นสี่พันเหมือนกัน ไม่เลวๆ ซื้อกระเป๋าใบนั้นที่อยากได้
ลงตัวคัมเปกิ
* แต่ถ้าเป็นของทสุมิโตะโมะ แลกเป็นไมล์ของอนาจะคุ้มกว่ามันแลกได้ 10 ไมล์ ต่อพอยท์
ได้เยอะกว่าพวกของระคุเต็งหรือบิ๊กสองเท่า
ดูแล้วของที่มันให้แลกก็ไม่ค่อยน่าสนใจเท่าไหร่. เอาพ้อยที่มีไปแลกของที่มันกำหนดไว้
นี่ก็เหมือนกับถูกบังคับยังไงไม่รู้. ไม่แลกชัวร์ๆ สู้เปลี่ยนพ้อยเป็นอย่างอื่นแล้วเอาไปใช้
เป็นส่วนลดซื้อของที่เราอยากได้ยังจะดีกว่าอีก.
ที่น่าสนใจและคุ้มๆหน่อยก็น่าจะเป็นแลกเป็นพ้อยของ "บิ๊กคาเมร่า" หรือไม่ก็ "ระคุเต็ง"
ของบิ๊กนี่มีแต้มเหลืออยู่พันกว่าๆ แลกมารวมกันน่าจะได้ซัก สี่พัน อืม ไม่เลวๆ.
แต่ของที่อยากได้ตอนนี้ที่บิ๊กคาเมร่าไม่มี คงต้องแลกเป็นของระคุเต็งแทน
อืม รวมกับพ้อยที่ได้รับมาจากอนาก็เป็นสี่พันเหมือนกัน ไม่เลวๆ ซื้อกระเป๋าใบนั้นที่อยากได้
ลงตัวคัมเปกิ
* แต่ถ้าเป็นของทสุมิโตะโมะ แลกเป็นไมล์ของอนาจะคุ้มกว่ามันแลกได้ 10 ไมล์ ต่อพอยท์
ได้เยอะกว่าพวกของระคุเต็งหรือบิ๊กสองเท่า
วันพฤหัสบดี, มิถุนายน 23, 2548
ค้นหา ebook ในกูเกิ้น
Using the google advanced operators:
If you don't know what are the google advanced operators, visit this page:
------------------
Querys to insert in the search box of google:
Query:
+("index of") +("/ebooks"|"/book") +(chm|pdf|zip|rar) +apache
Finding particular eBooks:
Query:
allinurl: +(rar|chm|zip|pdf|tgz) TheTitle
Query:
"Book" ext:chm chm
Query:
"OReilly" ext:chm chm
Query:
"ebook" inurl:ftp intext:chm
Query:
index of /pub/* intext:chm
Query:
?intitle:index.of? ebook (or ebooks, try with different words like mp3, etc...)
Query:
inurl:OReilly filetype:chm (or pdf or html or zip or rar, etc...)
Now, this are just examples, read the google tutorials and try to build your own querys and share them here, please.
http://www.trap17.com/index.php/how-to-fin...-com_t9057.html
If you don't know what are the google advanced operators, visit this page:
CODE
http://www.googleguide.com/advanced_operators.html
------------------
Querys to insert in the search box of google:
Query:
+("index of") +("/ebooks"|"/book") +(chm|pdf|zip|rar) +apache
Finding particular eBooks:
Query:
allinurl: +(rar|chm|zip|pdf|tgz) TheTitle
Query:
"Book" ext:chm chm
Query:
"OReilly" ext:chm chm
Query:
"ebook" inurl:ftp intext:chm
Query:
index of /pub/* intext:chm
Query:
?intitle:index.of? ebook (or ebooks, try with different words like mp3, etc...)
Query:
inurl:OReilly filetype:chm (or pdf or html or zip or rar, etc...)
Now, this are just examples, read the google tutorials and try to build your own querys and share them here, please.
http://www.trap17.com/index.php/how-to-fin...-com_t9057.html
วันพุธ, มิถุนายน 22, 2548
วันศุกร์, มิถุนายน 17, 2548
สิ่งที่จะทำต่อไปสำหรับโปรแกรม Inventorer
สร้าง List ของ Terms ของ Category กับ Aspect ทำเป็น list box เอาไว้ให้เลือกได้.
แล้วก็จัดการเกี่ยวกับการ check isbn ก่อน add และแจ้งเตือน เมื่อมีการ add ซ้ำ
จะได้ดูได้จากไฟล์จริงว่าไฟล์เก่าหรือใหม่มีเนื้อหาที่เหมาะสมกับการเก็บไว้ใน
ไลบรารี่มากกว่ากัน (และ จัดการเกี่ยวกับ Interface ให้สวยงามขึ้น)
แล้วก็จัดการเกี่ยวกับการ check isbn ก่อน add และแจ้งเตือน เมื่อมีการ add ซ้ำ
จะได้ดูได้จากไฟล์จริงว่าไฟล์เก่าหรือใหม่มีเนื้อหาที่เหมาะสมกับการเก็บไว้ใน
ไลบรารี่มากกว่ากัน (และ จัดการเกี่ยวกับ Interface ให้สวยงามขึ้น)
วันพฤหัสบดี, มิถุนายน 16, 2548
Eclipse LaTex Plugins
ลองคุ้ยๆ ใน google ดูว่ามี ลาเท็ช plugin ตัวไหนบนอีขลิบบ้างที่น่าใช้ๆ
เจอ TeXlipse ค่อนข้างใหม่ แต่สมบูรณ์ คิดว่าน่าใช้ดี แต่ ดูจาก activity ใน sourceforge แล้วยังต่ำอยู่ อาจจะเป็นเพราะว่ายังใหม่ก็ได้ พึ่งลงทะเบียนกับทาง sourceforge เมื่อเดือนมีนาคมที่ผ่านมา
*DocJar เป็น plugin อีกตัวที่น่าใช้ (เอาไว้ใช้หา open source Java jar file ที่มีอยู่ในเนต)
เจอ TeXlipse ค่อนข้างใหม่ แต่สมบูรณ์ คิดว่าน่าใช้ดี แต่ ดูจาก activity ใน sourceforge แล้วยังต่ำอยู่ อาจจะเป็นเพราะว่ายังใหม่ก็ได้ พึ่งลงทะเบียนกับทาง sourceforge เมื่อเดือนมีนาคมที่ผ่านมา
*DocJar เป็น plugin อีกตัวที่น่าใช้ (เอาไว้ใช้หา open source Java jar file ที่มีอยู่ในเนต)
วันพฤหัสบดี, มิถุนายน 09, 2548
บทวิเคราะห์ การทำงานของ Amazon Web Service หรือ ECS (e-commerce service)
วันนี้มาผ่าตัดเจาะลึกเกี่ยวกับ Amazon Web Service กันหน่อย.
ทำเอาไม่ได้หลับได้นอนมาหลายวัน เล่นก้ับ SOAP แบบ schemas 3
แล้วมันไม่เวิร์ค(ใช้ tools ของ sun มา gen พวก stub classes) ต้องใช้
schemas2.
หลังจากดิ้นรนจนทำให้ไม่ได้หลับได้นอนไปกับการเรียนรู้ไอ่บัด SOAP ก็ระลึกได้ว่า
เฮ้ย! REST แม่งน่าจะเวิร์คกว่าว่ะ (คิดเรื่อง flexibility portability) เพราะมันเรียกผ่าน
เว็บแล้วก็ http ไม่ได้อาศัยพวก RPC จึงน่าจะโปร่งใส ปลอดภัย จากเรื่องความแตกต่าง
ทางสถาปัตยกรรมของระบบ.
วันนี้ก็เลยหันกลับมาหา REST เริ่มต้นด้วยการผ่าตัดโปรแกรมตัวอย่างที่หาโหลดได้จาก
เว็บของ Amazon. ไม่พูดพล่ามทำเพลงแล้ว เริ่มเลย
1. เซต layout
getContentPane().setLayout( new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
2. สร้าง tabbed pane แล้วก็ add
JTabbedPane tabbedPane = new JTabbedPane();
getContentPane().add(tabbedPane);
3. สร้าง container ใหม่ เพื่อบรรจุลงใน tab ของ REST แล้วก็ add
this.xmlPane = new Container();
this.xmlPane.setLayout(new BoxLayout(this.xmlPane, BoxLayout.Y_AXIS));
tabbedPane.addTab("REST", null, this.xmlPane, "Send XML Requests");
ทำเอาไม่ได้หลับได้นอนมาหลายวัน เล่นก้ับ SOAP แบบ schemas 3
แล้วมันไม่เวิร์ค(ใช้ tools ของ sun มา gen พวก stub classes) ต้องใช้
schemas2.
หลังจากดิ้นรนจนทำให้ไม่ได้หลับได้นอนไปกับการเรียนรู้ไอ่บัด SOAP ก็ระลึกได้ว่า
เฮ้ย! REST แม่งน่าจะเวิร์คกว่าว่ะ (คิดเรื่อง flexibility portability) เพราะมันเรียกผ่าน
เว็บแล้วก็ http ไม่ได้อาศัยพวก RPC จึงน่าจะโปร่งใส ปลอดภัย จากเรื่องความแตกต่าง
ทางสถาปัตยกรรมของระบบ.
วันนี้ก็เลยหันกลับมาหา REST เริ่มต้นด้วยการผ่าตัดโปรแกรมตัวอย่างที่หาโหลดได้จาก
เว็บของ Amazon. ไม่พูดพล่ามทำเพลงแล้ว เริ่มเลย
1. เซต layout
getContentPane().setLayout( new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
2. สร้าง tabbed pane แล้วก็ add
JTabbedPane tabbedPane = new JTabbedPane();
getContentPane().add(tabbedPane);
3. สร้าง container ใหม่ เพื่อบรรจุลงใน tab ของ REST แล้วก็ add
this.xmlPane = new Container();
this.xmlPane.setLayout(new BoxLayout(this.xmlPane, BoxLayout.Y_AXIS));
tabbedPane.addTab("REST", null, this.xmlPane, "Send XML Requests");
วันพุธ, มิถุนายน 08, 2548
Tweak Windows XP สำหรับเครื่องที่มี RAM เหลือกินเหลือใช้
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Changing the value of the key LargeSystemCache from 0 to 1 will tell XP to allocate all but 4MB of system memory to the file system cache, allowing the XP Kernel to run in memory. The 4MB of memory left is used for disk caching, if more is needed, XP allocates more. Generally, this tweak improves performance by a fair bit but can, in some intensive applications, degrade performance. As with the previous tweak, you should have at least 256MB of RAM before attempting to enable LargeSystemCache. Input/Output Performance:
This improves performance of large file transfers. If this entry does not appear in the registry, you will have to create a REG_DWORD value called IoPageLockLimit. The data for this value is in number of bytes, and defaults to Zero which equates to 512KB on machines that have the value. Most people using this tweak have found maximum performance in the 8 to 16 megabyte range, so you will have to play around with the value to find the best performance. The value is measured in bytes, so if you want, 12MB allocated, it’s 12 * 1024 * 1024, or 12582912. As with all these memory tweaks, you should only use this if you have 256MB or more of RAM.
Disable Paging Executive:
XP pages data from RAM memory to the hard drive. We can stop this happening and keep more data in RAM, resulting in better performance. Users with a large amount of RAM (256MB+) should use this setting. The setting we change to disable the ’Paging Executive’, is DisablePagingExecutive. Changing the value of this key from 0 to 1 will de-activate memory paging.
Changing the value of the key LargeSystemCache from 0 to 1 will tell XP to allocate all but 4MB of system memory to the file system cache, allowing the XP Kernel to run in memory. The 4MB of memory left is used for disk caching, if more is needed, XP allocates more. Generally, this tweak improves performance by a fair bit but can, in some intensive applications, degrade performance. As with the previous tweak, you should have at least 256MB of RAM before attempting to enable LargeSystemCache. Input/Output Performance:
This improves performance of large file transfers. If this entry does not appear in the registry, you will have to create a REG_DWORD value called IoPageLockLimit. The data for this value is in number of bytes, and defaults to Zero which equates to 512KB on machines that have the value. Most people using this tweak have found maximum performance in the 8 to 16 megabyte range, so you will have to play around with the value to find the best performance. The value is measured in bytes, so if you want, 12MB allocated, it’s 12 * 1024 * 1024, or 12582912. As with all these memory tweaks, you should only use this if you have 256MB or more of RAM.
สมัครสมาชิก:
บทความ (Atom)