- 耳を澄(す)ます:何かを聞こうと思って注意してじっと聞く。
- 耳につく:聞こえた音が気になって、耳から離れないような感じになる。
- 耳が遠い:聞く力が弱っていて、よく聞こえない。
- 耳を傾(かたむ)ける:何かを聞こうと思って、他人の話などを真剣に聴く。
- 例)先生のアドバイスに耳を傾けた。
วันอังคาร, มิถุนายน 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.
วันพุธ, มิถุนายน 01, 2548
Transform DOM XML document ไปเป็น file ด้วย
javax.xml.transform.dom
javax.xml.transform.sax
javax.xml.transform.stream
javax.xml.transform.sax
javax.xml.transform.stream
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
TransformerFactory xformFactory
= TransformerFactory.newInstance();
Transformer idTransform = xformFactory.newTransformer();
Source input = new DOMSource(doc);
Result output = new StreamResult(System.out);
idTransform.transform(input, output);
Java : ใช้ static block ในการ initialize ค่าเริ่มต้นให้กับตัวแปลที่เป็น static
ปกติจะนิยมให้ Constructor initialize ค่าเริ่มต้นให้กับตัวแปรต่างๆ
แต่กรณีของคลาสที่มีความเป็น static สูง ต้องใช้ static block ในการ
initialize แทน เนื่องจากว่า Constructor อาจจะยังไม่เคยถูกเรียกเลยแต่ก็ดันไป
เรียกใช้ static method ของคลาสที่มีความเป็น static สูงนั้นแล้ว.
static {
initialize something here;
}
แต่กรณีของคลาสที่มีความเป็น static สูง ต้องใช้ static block ในการ
initialize แทน เนื่องจากว่า Constructor อาจจะยังไม่เคยถูกเรียกเลยแต่ก็ดันไป
เรียกใช้ static method ของคลาสที่มีความเป็น static สูงนั้นแล้ว.
static {
initialize something here;
}
สมัครสมาชิก:
บทความ (Atom)