<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title></title>
	<atom:link href="http://chonlatee.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chonlatee.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 17 Mar 2008 09:35:50 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chonlatee.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/11af6f7bd5722e30d01a13939626c3eb?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title></title>
		<link>http://chonlatee.wordpress.com</link>
	</image>
			<item>
		<title>เคย refactor code ที่เขียนมั้ย</title>
		<link>http://chonlatee.wordpress.com/2008/03/17/%e0%b9%80%e0%b8%84%e0%b8%a2-refactor-code-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b9%89%e0%b8%a2/</link>
		<comments>http://chonlatee.wordpress.com/2008/03/17/%e0%b9%80%e0%b8%84%e0%b8%a2-refactor-code-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b9%89%e0%b8%a2/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 09:35:50 +0000</pubDate>
		<dc:creator>chonlatee</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://chonlatee.wordpress.com/?p=17</guid>
		<description><![CDATA[    หัวข้อที่แล้วแนะนำ แหม่จะพูดแนะนำก็ไม่ถูกเพราะไอ้ที่ผมเขียนก็มีอาจารย์ท่านหนึ่งบอกมาอีกที แต่ก็นั้นแหละ ขอพูดว่าแนะนำละกัน  ได้คุยกับเขาแหละเขาก็แนะนำการ refactor code ผมก็งงว่ามันคืออะไร อาจารย์ท่านนั้นก็บอกว่า มันคือการทำให้ code ของเราอ่านเข้าใจง่ายขึ้น ดูไม่ซับซ้อน เวลาใครนำไปใช้หรือ นำไปพัฒนาต่อเขาได้ดูง่ายๆ ผมก็บอกว่าไม่เคยได้ยิน อาจารย์ก็บอกอีกว่า คือคนไทยยังไม่ค่อยชินกับการ refactor code เท่าไร พอจะพัฒนาต่อก็ไม่ได้ ทำให้ต้องทำใหม่หมด ทำให้เสียเวลา  เพราะฉนั้นแล้วการ refactor code ถือว่าสำคัญ ผมเองยังไม่ค่อยเก่ง programming เท่าไรก็ได้อาจารย์ท่านนั้นสอน แล้วก็นำมาเขียน blog อีกทีนึง เอาละ การ refactor code เราจะทำยังไงกันดี
ตัดสิ่งที่ไม่จำเป็นออกไป ผมว่าตรงตัวนะ refactor   ยกตัวอย่างเช่น   คุณเขียน program บวกเลข ยกตัวอย่างเช่น เขียนง่ายๆก็จะได้ประมาณนี้ทำเป็น function นะ
def add(a,b):
c = a + b
return [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chonlatee.wordpress.com&blog=2423020&post=17&subd=chonlatee&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://chonlatee.wordpress.com/2008/03/17/%e0%b9%80%e0%b8%84%e0%b8%a2-refactor-code-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b9%89%e0%b8%a2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f7baa5f1917673d1bacb6fedbb88eab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chonlatee</media:title>
		</media:content>
	</item>
		<item>
		<title>code ที่คุณเขียนใช้เวลาเท่าไร</title>
		<link>http://chonlatee.wordpress.com/2008/03/13/code-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%84%e0%b8%b8%e0%b8%93%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b9%80%e0%b8%97%e0%b9%88/</link>
		<comments>http://chonlatee.wordpress.com/2008/03/13/code-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%84%e0%b8%b8%e0%b8%93%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b9%80%e0%b8%97%e0%b9%88/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 09:09:24 +0000</pubDate>
		<dc:creator>chonlatee</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://chonlatee.wordpress.com/?p=16</guid>
		<description><![CDATA[    ปัญหาอีกอย่างนึงของคนเขียนโปรแกรมคือ นอกจากจะได้ output ที่ออกมาตามความต้องการแล้ว คุณต้องทำให้ไว ถ้าทำได้ให้ล้านนึง(กำ เหมือนรายการไรหว่าจำไม่ได้)  เพราะว่าความเร็วถือว่าเป็นปัจจัยสำคัญในการเขียนโปรแกรมอีกอย่างหนึ่งเลยก็ว่าได้  ยิ่งคุณเขียน code ให้ทำงานไว ประมวลผลใช้เวลาไม่นาน ก็อาจจะทำให้ประสิทธิภาพโดยรวมดีขี้น เพราะเดี๋ยวนี้อะไรมันต้องไวครับ (เหมือนโฆษณาอะไรหว่า) คือบางทีการเขียน code นี้มันวัดกึ๋นคนเขียนเลยก็ว่าได้นะ แต่ผมเขียนไม่เก่งหรอก ผมอยากเป็น programmer เก่งๆ ตอนนี้ก็คลืบคลาน มืด 11 ด้านอยู่ ก็หัดไปเรื่อยๆ เดี๋ยวจะคิดว่าผมเป็นโปรแกรมเมอร์ เหอๆ (คงไม่มีใครคิดหรอกมั้งเพราะดูจาก code ที่เขียนไม่เซียนเลย) ร่ายสะยาวไปดูวิธีตรวจสอบโปรแกรมดีกว่าว่าเร็วขนาดไหน อันนี้ได้มาจากพี่ท่านหนึ่งครับ เขาเป็นอาจารย์ แล้วก็เขียนโปรแกรม ไม่ได้จบ คอมพิวเตอร์มา แต่เก่งเขียนโปรแกรมมาก เพราะฉนั้นแล้ว ผมว่า อยู่ที่ใจรักจริงๆ ต้องขอบคุณท่านนี้ครับที่ มอบความรู้ให้ผม มาดู code กันเลย
from datetime import datetime
start = datetime.now()
for i in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chonlatee.wordpress.com&blog=2423020&post=16&subd=chonlatee&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://chonlatee.wordpress.com/2008/03/13/code-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%84%e0%b8%b8%e0%b8%93%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b9%80%e0%b8%97%e0%b9%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f7baa5f1917673d1bacb6fedbb88eab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chonlatee</media:title>
		</media:content>
	</item>
		<item>
		<title>hi5 ระบาดไปยังโปรเจคจบ</title>
		<link>http://chonlatee.wordpress.com/2008/03/12/hi5-%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%b2%e0%b8%94%e0%b9%84%e0%b8%9b%e0%b8%a2%e0%b8%b1%e0%b8%87%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%80%e0%b8%88%e0%b8%84%e0%b8%88%e0%b8%9a/</link>
		<comments>http://chonlatee.wordpress.com/2008/03/12/hi5-%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%b2%e0%b8%94%e0%b9%84%e0%b8%9b%e0%b8%a2%e0%b8%b1%e0%b8%87%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%80%e0%b8%88%e0%b8%84%e0%b8%88%e0%b8%9a/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 16:11:42 +0000</pubDate>
		<dc:creator>chonlatee</dc:creator>
				<category><![CDATA[myself]]></category>

		<guid isPermaLink="false">http://chonlatee.wordpress.com/?p=15</guid>
		<description><![CDATA[    หลังจากสอบหัวข้อโปรเจคแล้ว ก็ผ่านแล้ว ก็ดีใจ เฮ้อ.. ทำ  Blog provider แต่อาจารย์กลับจะให้ทำแบบ hi5 ผมก็ไม่รู้เหมือนกันจะติดกันไปถึงไหนไอ้ hi5 เนี้ยเซ็ง ที่ทำ blog provider เนี้ยจะได้ให้คนมีความรู้มาเขียนจะได้เผยแพร่ความรู้สักหน่อย อาจารย์ก็จะเอาแต่ hi5ๆๆๆๆๆๆๆ  เพราะอาจารย์ไม่รู้จก blog แต่รู้จัก hi5  เอากะเขาสิ   ระบาดจริงๆ  ไอ้เราก็ไม่ใช่ไม่อยากทำหรอกแบบ hi5 อะ แต่เราอยากทำ blog provider มากกว่า ชอบในการทำ blog มากกว่าไม่ comment ใน hi5 ความคิดเห็นส่วนตัวผมว่ามันไม่ค่อยได้ประโยชน์เท่าไร  อาจจะได้ประโยชน์ตรงที่ มีเพื่อนเยอะ  แต่ถ้าเพื่อนเยอะ แล้วไม่ได้ทำอะไร ที่มันเกิดประโยชน์ขึ้นมาก็เท่านั้นแหละ อาจจะไม่ถูกใจคนเล่น hi5 นะ  ขอโทษละกัน
เซ็ง hi5 สุดกะว่าจะไม่เจอกะตัวแล้วเชียว หลอกหลอนมาตามโปรเจคจบอีก
     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chonlatee.wordpress.com&blog=2423020&post=15&subd=chonlatee&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://chonlatee.wordpress.com/2008/03/12/hi5-%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%b2%e0%b8%94%e0%b9%84%e0%b8%9b%e0%b8%a2%e0%b8%b1%e0%b8%87%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%80%e0%b8%88%e0%b8%84%e0%b8%88%e0%b8%9a/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f7baa5f1917673d1bacb6fedbb88eab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chonlatee</media:title>
		</media:content>
	</item>
		<item>
		<title>วิธีเปิดไฟล์ .chm บน kde</title>
		<link>http://chonlatee.wordpress.com/2008/03/11/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-chm-%e0%b8%9a%e0%b8%99-kde/</link>
		<comments>http://chonlatee.wordpress.com/2008/03/11/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-chm-%e0%b8%9a%e0%b8%99-kde/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 12:04:46 +0000</pubDate>
		<dc:creator>chonlatee</dc:creator>
				<category><![CDATA[myself]]></category>

		<guid isPermaLink="false">http://chonlatee.wordpress.com/?p=14</guid>
		<description><![CDATA[            พอดีได้ e-book จากพี่คนนึงที่รู้จักกันมา ไอ้เราก็ดีใจ ได้มาทั้งเป็นไฟล์ pdf และก็ .chm  เราก็เปิดดู แต่ทำไมเปิดไฟล์  .chm ไม่ได้ก็ไม่รู้ เซ็งเลยเยอะสะด้วย เคยจำได้ว่าบน gnome มันเปิดได้ แต่ทำไมบน kde เปิดไม่ได้หว่า กะว่าจะ logout เข้าใหม่เป็น gnome แล้ว พอดีเออลองหาใน internet ดูดีกว่า ก็ไปเจอมา วิธีดูไฟล์ .chm บน linux ต้องติดตั้งโปรแกรมก่อน
sudo apt-get install kchmviewer (สำหรับ kde , kubuntu)
sudo aptitude install gnochm   (สำหรับ gnome , ubuntu)
    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chonlatee.wordpress.com&blog=2423020&post=14&subd=chonlatee&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://chonlatee.wordpress.com/2008/03/11/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-chm-%e0%b8%9a%e0%b8%99-kde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f7baa5f1917673d1bacb6fedbb88eab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chonlatee</media:title>
		</media:content>
	</item>
		<item>
		<title>แยก string ด้วย split ใน python</title>
		<link>http://chonlatee.wordpress.com/2008/03/11/%e0%b9%81%e0%b8%a2%e0%b8%81-string-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-split-%e0%b9%83%e0%b8%99-python/</link>
		<comments>http://chonlatee.wordpress.com/2008/03/11/%e0%b9%81%e0%b8%a2%e0%b8%81-string-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-split-%e0%b9%83%e0%b8%99-python/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 07:41:16 +0000</pubDate>
		<dc:creator>chonlatee</dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://chonlatee.wordpress.com/?p=13</guid>
		<description><![CDATA[    python นั้นมี function แยก string ด้วย space  ถ้าเป็น default แต่ท่านก็สามารถให้ function นี้แยกด้วยอะไรก็ได้ ตามที่ท่านต้องการ เอามาดูกันว่าทำยังไง
สมมุติว่ามี string ประมาณนี้
string = &#8220;111111 222222 3333333&#8243;
สามารถสั่งได้ด้วยการ
string.split()
ก็จะได้
['111111','222222','3333333']
แต่ถ้าเกิดเราไม่เอาหมดหละเราจะเอาแค่ 111111 ทำยังไง หรือจะเอาแค่ 222222 หรือจะเป็น 3333333 จะทำยังไง เราก็สั่งมันยังงี้ครับ
s= string.split()    #แยก string
n = s[0]               [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chonlatee.wordpress.com&blog=2423020&post=13&subd=chonlatee&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://chonlatee.wordpress.com/2008/03/11/%e0%b9%81%e0%b8%a2%e0%b8%81-string-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-split-%e0%b9%83%e0%b8%99-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f7baa5f1917673d1bacb6fedbb88eab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">chonlatee</media:title>
		</media:content>
	</item>
	</channel>
</rss>