<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>how-it-work &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/how-it-work/</link>
	<description>Feed of posts on WordPress.com tagged "how-it-work"</description>
	<pubDate>Sat, 06 Sep 2008 16:46:36 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[วีดีโอ การทำงานของเม็ดประหยัดน้ำมัน "เอ็มพีจี แค็ป"]]></title>
<link>http://oilsaver.wordpress.com/?p=713</link>
<pubDate>Sat, 19 Jul 2008 04:56:01 +0000</pubDate>
<dc:creator>greenbiznet</dc:creator>
<guid>http://oilsaver.wordpress.com/?p=713</guid>
<description><![CDATA[
พากย์ไทย

English
อธิบายโดยเจอร์รี่ แลง ผ]]></description>
<content:encoded><![CDATA[<p>[dailymotion id=x66c7g]<br />
พากย์ไทย<br />
[viddler id=7494efcd&#38;w=437&#38;h=370]<br />
English<br />
อธิบายโดยเจอร์รี่ แลง ผู้เชี่ยวชาญด้านการเผาไหม้ของโลก และที่ปรึกษาด้านเทคนิคของบริษัทเอฟเอฟไอ</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Python: file object กับ file descriptor]]></title>
<link>http://openil.wordpress.com/?p=76</link>
<pubDate>Sun, 17 Feb 2008 04:32:52 +0000</pubDate>
<dc:creator>वीर</dc:creator>
<guid>http://openil.wordpress.com/?p=76</guid>
<description><![CDATA[พอดีมีคนถามที่ codenone (http://www.codenone.com/node/687 ว่า file]]></description>
<content:encoded><![CDATA[<p>พอดีมีคนถามที่ codenone (<a href="http://www.codenone.com/node/687">http://www.codenone.com/node/687</a> ว่า file object  ของ Python ต่างจาก file descriptor อย่างไร. ผมพยายามจะตอบจากการไปอ่าน code ของ Python 2.5.1 ก็ได้คำตอบมาแบบนี้.</p>
<p>เราสามารถขอ file descriptor ซึ่งเป็นเลขจำนวนเต็มธรรมดาๆ จาก file object ได้โดยใช้ method ชื่อ fileno() ตามตัวอย่างด้านล่าง</p>
<p>[sourcecode language='python']fp = open("foo.txt", "a+")<br />
print fp.fileno()[/sourcecode]<br />
เลขที่ print ออกมาคือ file descriptor. file object ที่หุ้ม file descriptor (fd; ต่อไปขอย่อว่า fd นะ) ไว้อีกที.จริงๆแล้ว file object ของ python ก็ไม่ได้ไปเก็บ fd ไว้ตรงๆ. แต่เก็บ FILE (ของ libc) ไว้. และใน FILE ก็มี fd อีกที.มันเป็น layer ประมาณนี้ (Python)File object -&#62; FILE (libc) -&#62; File descriptor (unix)</p>
<p>ถ้าเราสั่ง open("foo.txt") ใน Python. ข้างในมันก็จะไปเรียก</p>
<ol>
<li> fopen("foo.txt", "r") ในภาษาซีให้อีก.</li>
<li> แล้วใน fopen ก็ไปเรียก open("foo.txt", flags, mode); ของ unix อีกที (มั้ง ไม่ได้ check code ดู แค่เดาๆ เอา).</li>
<li> แล้ว open ของ unix นี่หละ return fd ออกมา.</li>
<li> พอ fopen ได้ fd มาก็จะเอาไปเก็บไว้ แล้ว return file pointer (FILE *) ออกมา ซึ่งข้างในเก็บ fd ไว้.</li>
<li> open ของ Python ก็ return file object ที่เก็บ file pointer (FILE *) ไว้อีกที.</li>
</ol>
<p>ผมดูแต่ code ของ Python. ไม่ได้ดูใน code ของ libc เท่าไหร่  อาจจะมีที่ผิดๆมั่วอยู่ได้ อย่างไรก็ตามก็น่าจะพอทำให้เข้าใจคร่าวๆ</p>
<p>ป.ล. สำหรับท่าใส่ source code ใน wordpress เอามาจาก <a href="http://wuhrr.wordpress.com/2007/11/09/colorize-your-code-for-free-online/">http://wuhrr.wordpress.com/2007/11/09/colorize-your-code-for-free-online/</a> ขอบใจหลายๆ. ต้อง credit Google ด้วยมั้ง เพราะไม่มี google ก็คงหาไม่เจอ แต่ถ้าไม่มี Internet ก็ไม่มี Google นะ .... พอก่อนละกัน.</p>
<p>ป.ล. (2) แหมอยากจะทำ animation ให้ดูเลย แต่สงสัยเว่อร์ไป</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How the system works?]]></title>
<link>http://glomates.wordpress.com/2007/04/11/how-the-system-works/</link>
<pubDate>Wed, 11 Apr 2007 15:51:58 +0000</pubDate>
<dc:creator>exinco</dc:creator>
<guid>http://glomates.wordpress.com/2007/04/11/how-the-system-works/</guid>
<description><![CDATA[Base on upline and downline.
Here are the example.
Consider you manage to recruite 5 member and the ]]></description>
<content:encoded><![CDATA[<p>Base on upline and downline.</p>
<p>Here are the example.</p>
<p>Consider you manage to recruite 5 member and the 5 member get another 5 member and so on until 6th level.</p>
<p>So this is what you get.</p>
<p>.<a href="http://glomates.files.wordpress.com/2007/04/5_member_downline1.gif" title="Diagram"><img src="http://glomates.files.wordpress.com/2007/04/5_member_downline1.gif" alt="Diagram" /></a></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana;">ANDA (RM10.00)</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Verdana;">Peringkat 1 RM3.30 x 5 Anda Dapat <strong>RM 16.50</strong></span><br />
<span style="font-size:10pt;font-family:Verdana;">Peringkat 2 RM1.20 x 25 Anda Dapat <strong>RM30.00</strong></span><br />
<span style="font-size:10pt;font-family:Verdana;">Peringkat 3 RM1.00 x 125 Anda Dapat <strong>RM 125.00</strong></span><br />
<span style="font-size:10pt;font-family:Verdana;">Peringkat 4 RM0.60 x 625 Anda Dapat <strong>RM 375.00</strong></span><br />
<span style="font-size:10pt;font-family:Verdana;">Peringkat 5 RM0.50 x 3125 Anda Dapat <strong>RM 1562.50</strong></span><br />
<span style="font-size:10pt;font-family:Verdana;">Peringkat 6 Rm0.40 x 15625 Anda Dapat <strong>RM 6250</strong></span></p>
<p><span style="font-size:10pt;font-family:Verdana;">Jumlah Besar Anda Dapat <strong>RM 8359.00!</strong></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[What is plan Available?]]></title>
<link>http://glomates.wordpress.com/2007/04/11/what-is-plan-available/</link>
<pubDate>Wed, 11 Apr 2007 15:46:57 +0000</pubDate>
<dc:creator>exinco</dc:creator>
<guid>http://glomates.wordpress.com/2007/04/11/what-is-plan-available/</guid>
<description><![CDATA[
]]></description>
<content:encoded><![CDATA[<p><a href="http://glomates.files.wordpress.com/2007/04/glomate_manual_plan.gif" title="Membership Plan"><img src="http://glomates.files.wordpress.com/2007/04/glomate_manual_plan.gif" alt="Membership Plan" /></a></p>
]]></content:encoded>
</item>

</channel>
</rss>
