<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Natty's blog</title>
	<atom:link href="http://nattyait.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nattyait.wordpress.com</link>
	<description>Stay hungry. Stay foolish. -- Steve Jobs</description>
	<lastBuildDate>Wed, 16 Nov 2011 14:44:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nattyait.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Natty's blog</title>
		<link>http://nattyait.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nattyait.wordpress.com/osd.xml" title="Natty&#039;s blog" />
	<atom:link rel='hub' href='http://nattyait.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ปัญหา Library not loaded: libmysqlclient.18.dylib ใน Mac</title>
		<link>http://nattyait.wordpress.com/2011/11/16/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-library-not-loaded-libmysqlclient-18-dylib-%e0%b9%83%e0%b8%99-mac/</link>
		<comments>http://nattyait.wordpress.com/2011/11/16/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-library-not-loaded-libmysqlclient-18-dylib-%e0%b9%83%e0%b8%99-mac/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 14:31:58 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=191</guid>
		<description><![CDATA[ใช้ lib MySQL-python แล้วเจอ error ประมาณว่า ImportError: dlopen(/Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib Referenced from: /Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so Reason: image not found สำหรับ Mac เราลองแก้โดยรันคำสั่งนี้ใน command export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/ แล้วก็ Work เลย อ้างอิงจาก http://www.blog.bridgeutopiaweb.com/post/how-to-fix-mysql-load-issues-on-mac-os-x/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=191&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ใช้ lib MySQL-python แล้วเจอ error ประมาณว่า</p>
<blockquote>
<pre>ImportError: dlopen(/Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
  Referenced from: /Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so
  Reason: image not found</pre>
</blockquote>
<p>สำหรับ Mac เราลองแก้โดยรันคำสั่งนี้ใน command</p>
<blockquote><p><code>export </code><code>DYLD_LIBRARY_PATH</code><code>=/usr/local/mysql/lib/</code></p></blockquote>
<p>แล้วก็ Work เลย<br />
อ้างอิงจาก http://www.blog.bridgeutopiaweb.com/post/how-to-fix-mysql-load-issues-on-mac-os-x/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=191&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2011/11/16/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-library-not-loaded-libmysqlclient-18-dylib-%e0%b9%83%e0%b8%99-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>7.002046 100.457392</georss:point>
		<geo:lat>7.002046</geo:lat>
		<geo:long>100.457392</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 in review</title>
		<link>http://nattyait.wordpress.com/2011/01/04/2010-in-review/</link>
		<comments>http://nattyait.wordpress.com/2011/01/04/2010-in-review/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 19:50:59 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=187</guid>
		<description><![CDATA[The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health: The Blog-Health-o-Meter™ reads This blog is doing awesome!. Crunchy numbers A helper monkey made this abstract painting, inspired by your stats. A Boeing 747-400 passenger jet can hold 416 passengers. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=187&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here&#8217;s a high level summary of its overall blog health:</p>
<p><img style="border:1px solid #ddd;background:#f5f5f5;padding:20px;" src="http://s0.wp.com/i/annual-recap/meter-healthy2.gif" alt="Healthy blog!" width="250" height="183" /></p>
<p>The <em>Blog-Health-o-Meter™</em> reads This blog is doing awesome!.</p>
<h2>Crunchy numbers</h2>
<div style="width:288px;float:right;border:1px solid #ddd;background:#fff;margin:0 0 1em 1em;padding:6px;">
<p><img src="http://s0.wp.com/i/annual-recap/abstract-stats-7.png" alt="Featured image" /></p>
<p><em>A helper monkey made this abstract painting, inspired by your stats.</em></p>
</div>
<p>A Boeing 747-400 passenger jet can hold 416 passengers.  This blog was viewed about <strong>6,500</strong> times in 2010.  That&#8217;s about 16 full 747s.</p>
<p>&nbsp;</p>
<p>In 2010, there were <strong>3</strong> new posts, growing the total archive of this blog to 29 posts.</p>
<p>The busiest day of the year was October 11th with <strong>77</strong> views. The most popular post that day was <a style="color:#08c;" href="http://nattyait.wordpress.com/2010/10/11/google-code-fest-2010-devfest-what-i-have-got/">Google Code Fest 2010 #DevFest, What I have got?</a>.</p>
<h2>Where did they come from?</h2>
<p>The top referring sites in 2010 were <strong>google.co.th</strong>, <strong>narisa.com</strong>, <strong>twitter.com</strong>, <strong>agile66.com</strong>, and <strong>blognone.com</strong>.</p>
<p>Some visitors came searching, mostly for <strong>twitter facebook</strong>, <strong>facebook twitter</strong>, <strong>twitter to facebook</strong>, <strong>twitter บน facebook</strong>, and <strong>facebook to twitter</strong>.</p>
<h2>Attractions in 2010</h2>
<p>These are the posts and pages that got the most views in 2010.</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">1</div>
<p><a style="margin-right:10px;" href="http://nattyait.wordpress.com/2010/10/11/google-code-fest-2010-devfest-what-i-have-got/">Google Code Fest 2010 #DevFest, What I have got?</a> <span style="color:#999;font-size:8pt;">October 2010</span></p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">2</div>
<p><a style="margin-right:10px;" href="http://nattyait.wordpress.com/2009/05/17/twitter-facebook/">[twitter] facebook-twitter</a> <span style="color:#999;font-size:8pt;">May 2009</span><br />
1 comment</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">3</div>
<p><a style="margin-right:10px;" href="http://nattyait.wordpress.com/2009/06/10/php-mysql-performance/">[PHP] การเพิ่ม Performance ให้กับ PHP+MySQL ด้วย xDebug,APC,memcache</a> <span style="color:#999;font-size:8pt;">June 2009</span><br />
13 comments</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">4</div>
<p><a style="margin-right:10px;" href="http://nattyait.wordpress.com/2008/09/22/php-class-dbfmysql/">[PHP] Class สำหรับ convert DBF to MySQL</a> <span style="color:#999;font-size:8pt;">September 2008</span><br />
7 comments</p>
<div style="clear:left;float:left;font-size:24pt;line-height:1em;margin:-5px 10px 20px 0;">5</div>
<p><a style="margin-right:10px;" href="http://nattyait.wordpress.com/2008/10/03/jasper-java-clas/">[Jasper] run Jasper Report from Java class</a> <span style="color:#999;font-size:8pt;">October 2008</span><br />
2 comments</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=187&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2011/01/04/2010-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>7.002046 100.457392</georss:point>
		<geo:lat>7.002046</geo:lat>
		<geo:long>100.457392</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/meter-healthy2.gif" medium="image">
			<media:title type="html">Healthy blog!</media:title>
		</media:content>

		<media:content url="http://s0.wp.com/i/annual-recap/abstract-stats-7.png" medium="image">
			<media:title type="html">Featured image</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Code Fest 2010 #DevFest, What I have got?</title>
		<link>http://nattyait.wordpress.com/2010/10/11/google-code-fest-2010-devfest-what-i-have-got/</link>
		<comments>http://nattyait.wordpress.com/2010/10/11/google-code-fest-2010-devfest-what-i-have-got/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 17:29:12 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=182</guid>
		<description><![CDATA[I&#8217;m so proud about our work today with @juacompe at Google Code Fest 2010 about Maps and Twitter Integration (customized from Maps and Flickr integration). Please find the link below to see what we have done in only almost 1 hour in GMap v.3 session! Thanks Shawn Shen for his kindness, talk, and advise. https://sites.google.com/site/juacompe/google-code-fest-2010 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=182&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m so proud about our work today with @juacompe at Google Code Fest 2010 about Maps and Twitter Integration (customized from Maps and Flickr integration). Please find the link below to see what we have done in only almost 1 hour in GMap v.3 session!</p>
<p>Thanks Shawn Shen for his kindness, talk, and advise.</p>
<p><a href="https://sites.google.com/site/juacompe/google-code-fest-2010">https://sites.google.com/site/juacompe/google-code-fest-2010</a></p>
<p>What I have got from #DevFest</p>
<p>- Knowledge about GMap API, Google chrome extension, Buzz, Social API, Froyo android, HTML5 .. etc.<br />
- Google Maps and Twitter integration code<br />
- A bean bag from Q&amp;A session (question about google chrome update period and version: 6 and 6)<br />
- A google map T-shirt from GMap API session from Shawn Shen, Developer Advocate (while @juacompe got a chrome extension T-shirt)<br />
- A google chrome T-shirt from devfest registration<br />
- A google chrome book<br />
- A google chrome sticker (I put it on my notebook cover already <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )<br />
- Business cards from Shawn Shen, Developer Advocate at Google California and Alan Noble, Engineering Director at Google Australia and New Zealand</p>
<p>Thanks Google!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=182&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2010/10/11/google-code-fest-2010-devfest-what-i-have-got/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>7.002046 100.457392</georss:point>
		<geo:lat>7.002046</geo:lat>
		<geo:long>100.457392</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
		<item>
		<title>Agile66: A Great Pyramid of Agile / Planning poker</title>
		<link>http://nattyait.wordpress.com/2010/03/19/agile66-a-great-pyramid-of-agile-planning-poker/</link>
		<comments>http://nattyait.wordpress.com/2010/03/19/agile66-a-great-pyramid-of-agile-planning-poker/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 17:39:54 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=176</guid>
		<description><![CDATA[ช่วงนี้ไม่ค่อยได้มา blog ของตัวเองเท่าไหร่ มัวแต่ไปเริงร่าที่ blog ชาวบ้าน เอาลิงค์มาแปะละกันค่ะ - Planning poker มาโหวตกัน - A Great Pyramid of Agile<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=176&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ช่วงนี้ไม่ค่อยได้มา blog ของตัวเองเท่าไหร่ มัวแต่ไปเริงร่าที่ blog ชาวบ้าน เอาลิงค์มาแปะละกันค่ะ</p>
<p>- <a href="http://www.agile66.com/blogs/2010/03/17/planning-poker-how-to/">Planning poker มาโหวตกัน</a><br />
- <a href="http://www.agile66.com/blogs/2010/03/16/the-great-pyramid-of-agile/">A Great Pyramid of Agile</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=176&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2010/03/19/agile66-a-great-pyramid-of-agile-planning-poker/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<georss:point>7.002046 100.457392</georss:point>
		<geo:lat>7.002046</geo:lat>
		<geo:long>100.457392</geo:long>
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
		<item>
		<title>[grails] AcegiSecurity Plugin ในรูปแบบ Controller Annotations</title>
		<link>http://nattyait.wordpress.com/2010/02/11/grails-acegisecurity-plugin-%e0%b9%83%e0%b8%99%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%81%e0%b8%9a%e0%b8%9a-controller-annotations/</link>
		<comments>http://nattyait.wordpress.com/2010/02/11/grails-acegisecurity-plugin-%e0%b9%83%e0%b8%99%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%81%e0%b8%9a%e0%b8%9a-controller-annotations/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 18:24:36 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[grails]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=172</guid>
		<description><![CDATA[ลิงค์สำหรับ การใช้งาน AcegiSecurity Plugin ในรูปแบบ Controller Annotations ณ grails66 by natty<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=172&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ลิงค์สำหรับ <a href="http://www.grails66.com/blog/?p=948">การใช้งาน AcegiSecurity Plugin ในรูปแบบ Controller Annotations</a> ณ grails66</p>
<p>by natty</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=172&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2010/02/11/grails-acegisecurity-plugin-%e0%b9%83%e0%b8%99%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%81%e0%b8%9a%e0%b8%9a-controller-annotations/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
		<item>
		<title>วันแย่ๆ อีกวันหนึ่ง</title>
		<link>http://nattyait.wordpress.com/2009/12/27/%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b9%81%e0%b8%a2%e0%b9%88%e0%b9%86-%e0%b8%ad%e0%b8%b5%e0%b8%81%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%ab%e0%b8%99%e0%b8%b6%e0%b9%88%e0%b8%87/</link>
		<comments>http://nattyait.wordpress.com/2009/12/27/%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b9%81%e0%b8%a2%e0%b9%88%e0%b9%86-%e0%b8%ad%e0%b8%b5%e0%b8%81%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%ab%e0%b8%99%e0%b8%b6%e0%b9%88%e0%b8%87/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 12:00:21 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=169</guid>
		<description><![CDATA[วันนี้ เป็นวันที่สูญเสียคนที่เคารพมากที่สุดท่านหนึ่ง แม้เราจะไม่ใช่ญาติสนิทชิดเชื้อในสายเลือดเดียวกัน แต่เก๋ก็เคารพรักอาม่ามากๆ เพราะอาม่าเป็นคนที่ทำให้เก๋รู้สึกถึงความเป็นครอบครัวเดียวกัน ให้ความเป็นกันเอง เสมือนเป็นหลานคนหนึ่งของอาม่า เก๋ไม่เคยรู้สึกเหมือนเป็นคนนอก ในสายตาอาม่าเลย&#8230;&#8230; มันมีค่ามาก สำหรับเก๋..ที่ไม่ได้เป็นหลานแท้ๆ ของอาม่า เก๋ยังเคยคิด ว่าถ้าได้ไปทำงานกรุงเทพ จะไปช่วยดูแลอาม่า เพราะอาม่าก็เปรียบเสมือนคุณยายของเก๋เอง แต่..มันก็ไม่ทันซะแล้ว มันก็ได้แค่คิด ขอให้อาม่ามีความสุขบนสรวงสวรรค์ เก๋เชื่อว่าทุกคนที่ยังมีชีวิตอยู่ จะไม่ทำให้อาม่าผิดหวังเสียใจ จะทำเหมือนที่อาม่าต้องการ เก๋เองก็เหมือนกันค่ะ รักอาม่าค่ะ<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=169&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>วันนี้ เป็นวันที่สูญเสียคนที่เคารพมากที่สุดท่านหนึ่ง</p>
<p>แม้เราจะไม่ใช่ญาติสนิทชิดเชื้อในสายเลือดเดียวกัน แต่เก๋ก็เคารพรักอาม่ามากๆ</p>
<p>เพราะอาม่าเป็นคนที่ทำให้เก๋รู้สึกถึงความเป็นครอบครัวเดียวกัน ให้ความเป็นกันเอง เสมือนเป็นหลานคนหนึ่งของอาม่า<br />
เก๋ไม่เคยรู้สึกเหมือนเป็นคนนอก ในสายตาอาม่าเลย&#8230;&#8230; มันมีค่ามาก สำหรับเก๋..ที่ไม่ได้เป็นหลานแท้ๆ ของอาม่า<br />
เก๋ยังเคยคิด ว่าถ้าได้ไปทำงานกรุงเทพ จะไปช่วยดูแลอาม่า เพราะอาม่าก็เปรียบเสมือนคุณยายของเก๋เอง<br />
แต่..มันก็ไม่ทันซะแล้ว มันก็ได้แค่คิด</p>
<p>ขอให้อาม่ามีความสุขบนสรวงสวรรค์ เก๋เชื่อว่าทุกคนที่ยังมีชีวิตอยู่ จะไม่ทำให้อาม่าผิดหวังเสียใจ จะทำเหมือนที่อาม่าต้องการ<br />
เก๋เองก็เหมือนกันค่ะ</p>
<p>รักอาม่าค่ะ</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=169&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2009/12/27/%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b9%81%e0%b8%a2%e0%b9%88%e0%b9%86-%e0%b8%ad%e0%b8%b5%e0%b8%81%e0%b8%a7%e0%b8%b1%e0%b8%99%e0%b8%ab%e0%b8%99%e0%b8%b6%e0%b9%88%e0%b8%87/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
		<item>
		<title>ทำ readmore ใน blogger</title>
		<link>http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%b3-readmore-%e0%b9%83%e0%b8%99-blogger/</link>
		<comments>http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%b3-readmore-%e0%b9%83%e0%b8%99-blogger/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 10:34:29 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%b3-readmore-%e0%b9%83%e0%b8%99-blogger/</guid>
		<description><![CDATA[วิธีการทำ page break หรือ readmore ใน blogger ไปอ่านเจอมา เลยเอามาฝากค่ะ วิธีทำลิงค์ Read More&#8230; ใน blogger<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=153&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>วิธีการทำ page break หรือ readmore ใน blogger ไปอ่านเจอมา เลยเอามาฝากค่ะ</p>
<p><a title="วิธีทำลิงค์ Read More... ใน blogger" target="_blank" href="http://www.igetweb.com/www/free-agloco/index.php?mo=3&amp;art=57348" id="zqfk">วิธีทำลิงค์ Read More&#8230; ใน blogger</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=153&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%b3-readmore-%e0%b9%83%e0%b8%99-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
		<item>
		<title>ทดสอบจาก google docs</title>
		<link>http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%94%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%88%e0%b8%b2%e0%b8%81-google-docs/</link>
		<comments>http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%94%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%88%e0%b8%b2%e0%b8%81-google-docs/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 09:41:26 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%94%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%88%e0%b8%b2%e0%b8%81-google-docs/</guid>
		<description><![CDATA[เทสการแก้ไขจาก google docs อีกรอบค่ะ<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=151&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>เทสการแก้ไขจาก google docs อีกรอบค่ะ</b></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=151&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2009/11/25/%e0%b8%97%e0%b8%94%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%88%e0%b8%b2%e0%b8%81-google-docs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
		<item>
		<title>[PHP] การเพิ่ม Performance ให้กับ PHP+MySQL ด้วย xDebug,APC,memcache</title>
		<link>http://nattyait.wordpress.com/2009/06/10/php-mysql-performance/</link>
		<comments>http://nattyait.wordpress.com/2009/06/10/php-mysql-performance/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 18:07:09 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=145</guid>
		<description><![CDATA[เขียนโปรแกรมเล็กๆ ไม่ค่อยมีปัญหาอะไร แต่เมื่อไหร่ก็ตาม ที่งานของเรา ต้องทำงานกับข้อมูลเยอะๆ และ Application ขนาดใหญ่ มีหลาย module โดยเฉพาะ หากใช้ object-oriented ด้วยแล้ว แม้จะมีประโยชน์ในด้านของการออกแบบก็จริง แต่ด้านของ performance ก็มีผลกระทบในแง่ร้ายเช่นกัน ดังนั้น จึงควรที่จะเรียนรู้เกี่ยวกับการ config ค่าต่าง ๆ ทั้งในส่วนของ PHP และ MySQL ค่ะ blog นี้จะไม่กล่าวถึงการ install ในขั้นต้นนะคะ โดยเป็น Apache Server บน linux ค่ะ MySQL เริ่มกันก่อนในส่วน MySQL ปกติ หากเราลง MySQL แบบ default เราจะใช้ my.ini แบบที่กำหนดมาเป็น default แต่หากเราต้องการจะ modify ให้ใช้งานและรองรับข้อมูลจำนวนมาก ให้เราลองสังเกตใน folder [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=145&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>เขียนโปรแกรมเล็กๆ ไม่ค่อยมีปัญหาอะไร แต่เมื่อไหร่ก็ตาม ที่งานของเรา ต้องทำงานกับข้อมูลเยอะๆ และ Application ขนาดใหญ่ มีหลาย module โดยเฉพาะ หากใช้ object-oriented ด้วยแล้ว แม้จะมีประโยชน์ในด้านของการออกแบบก็จริง แต่ด้านของ performance ก็มีผลกระทบในแง่ร้ายเช่นกัน ดังนั้น จึงควรที่จะเรียนรู้เกี่ยวกับการ config ค่าต่าง ๆ ทั้งในส่วนของ PHP และ MySQL ค่ะ</p>
<p>blog นี้จะไม่กล่าวถึงการ install ในขั้นต้นนะคะ โดยเป็น Apache Server บน linux ค่ะ</p>
<p><span id="more-145"></span></p>
<p><strong>MySQL</strong></p>
<p>เริ่มกันก่อนในส่วน MySQL</p>
<p>ปกติ หากเราลง MySQL แบบ default เราจะใช้ my.ini แบบที่กำหนดมาเป็น default แต่หากเราต้องการจะ modify ให้ใช้งานและรองรับข้อมูลจำนวนมาก ให้เราลองสังเกตใน folder MySQL ของเรา จะมีไฟล์ config อีกมากมายเลย เช่น my-huge.ini, my-innodb-heavy-4G.ini, my-large.ini, my-medium.ini, my-small.ini, my-template.ini ซึ่งใน file พิเศษๆ เหล่านี้ จะมีการ set ค่าเหล่านี้ ยกตัวอย่างจาก my-huge.ini</p>
<p>key_buffer = 384M<br />
max_allowed_packet = 1M<br />
table_cache = 512<br />
sort_buffer_size = 2M<br />
read_buffer_size = 2M<br />
read_rnd_buffer_size = 8M<br />
myisam_sort_buffer_size = 64M<br />
thread_cache_size = 8<br />
query_cache_size = 32M</p>
<p>ซึ่งแต่ละ File ก็จะมีการตั้งค่าแตกต่างกันไป วิธีการเอาไปใช้งาน ก็แค่เปลี่ยนชื่อไฟล์ที่เหมาะกับเราเป็นชื่อ my.ini (back up อันเดิมไว้ด้วยก็ดีค่ะ เผื่อมีอะไรผิดพลาด)</p>
<p><strong>xDebug</strong></p>
<p><em>xDebug</em> คือ PHP profiler และช่วยจัด format PHP ให้อ่านง่ายๆ ได้ด้วย</p>
<p><img src="http://www.mikebernat.com/images/xdebug/var_dump_full.jpg" alt="" /></p>
<p>ในส่วนของ profiler จะมีการเก็บ log ของ server เกี่ยวกับเวลาในการรันของแต่ละ class แต่ละ method กันเลยทีเดียว แต่ไฟล์ที่ได้ออกมาจะเป็น text file โง่ๆ ที่อ่านยากมากๆ ต้องลงพวก GUI เป็น WinCacheGrind สำหรับ Windows และ KCacheGrind สำหรับ Linux</p>
<p>ก่อนอื่น ต้องลง xDebug ไว้ที่ server ก่อน</p>
<p>#yum install php-pear<br />
#pecl install xdebug<br />
#vim /etc/php.ini   &lt;&#8211; เพิ่มบรรทัด extension = xdebug.so ลงไป และบรรทัดต่อไปนี้</p>
<p>[xdebug]<br />
xdebug.remote_enable=On<br />
xdebug.remote_autostart=On<br />
xdebug.remote_handler=dbgp<br />
xdebug.remote_host=zero.haadthip.com<br />
xdebug.remote_port=9000<br />
xdebug.remote_mode=req<br />
xdebug.profiler_enable=1<br />
xdebug.profiler_output_dir=&#8221;/tmp/&#8221; &lt;&#8211; log เก็บที่นี่<br />
xdebug.profiler_append=On<br />
xdebug.profiler_enable_trigger=On<br />
xdebug.profiler_output_name=%s</p>
<p>ตรวจสอบให้แน่ใจว่ามี file xdebug.so อยู่ใน /usr/lib/php/modules</p>
<p>และ restart mysql + Apache ด้วยค่ะ ลอง echo phpinfo หากสำเร็จแล้วจะได้ผลดังนี้<br />
<img src="http://tech-blog.box.net/wp-content/uploads/2007/06/xdebug-in-phpinfo.jpg" alt="" /></p>
<p>จากนั้น ก็ลง <a href="http://sourceforge.net/projects/wincachegrind/">WinCacheGrind</a> ซึ่งเอา log file ได้จาก path ที่เสร็จไว้ใน php.ini (xdebug.profiler_output_dir) โหลดไฟล์เข้าไป ก็จะเอาไปแสดงในโปรแกรม ดังรูป<br />
<img src="http://www.pseudocoder.com/wp-content/uploads/2007/04/wincachegrind3.jpg" alt="" /></p>
<p>คราวนี้เราก็วัด performance ก่อน และ หลัง ได้แล้วค่ะ</p>
<p><strong>APC</strong></p>
<p>คือ Alternative PHP cache เอาไว้ cache code โดยจะ cache มันไว้ ณ compile state ทำให้ overhead ลดลง เอาเป็นว่าไม่เกี่ยวข้องกับ database นะคะ</p>
<p>ดูกระบวนการทำงานของ APC กันสักหน่อย<br />
<img src="http://www.ez.no/var/ezno/storage/images/images/community/articles/alternative_php_cache/883778-1-eng-GB/alternative_php_cache.png" alt="" /></p>
<p>ขั้นตอนการ install</p>
<p>#yum install httpd-devel</p>
<p>(php-devel ลงเพราะมันต้องการ apxs หากเราไม่มี apxs ก่อนนจะลง APC มันจะ error ว่า</p>
<p>Sorry, I was not able to successfully run APXS.  Possible reasons:</p>
<p>1.  Perl is not installed;<br />
2.  Apache was not compiled with DSO support (&#8211;enable-module=so);<br />
3.  &#8216;apxs&#8217; is not in your path.  Try to use &#8211;with-apxs=/path/to/apxs<br />
The output of apxs follows<br />
/tmp/tmpe1LwOh/APC-3.0.19/configure: line 3232: apxs: command not found<br />
configure: error: Aborting<br />
ERROR: `/tmp/tmpe1LwOh/APC-3.0.19/configure &#8211;with-apxs&#8217; failed</p>
<p>)<br />
#yum install apc<br />
#pecl install apc<br />
vim /etc/php.ini  เพิ่ม extension=apc.so และเพิ่มบรรทัดต่อไปนี้</p>
<p>[APC]<br />
apc.enabled = 1<br />
apc.shm_segments = 1<br />
apc.shm_size = 64<br />
apc.max_file_size = 10M<br />
apc.stat=1</p>
<p>ทำการ restart Apache และลองดู phpinfo.php</p>
<p><img src="http://www.howtoforge.com/images/apc_php5_lighttpd_debian_etch/3.png" alt="" /></p>
<p>และควรจะ <a href="http://pecl.php.net/apc">download package</a> ของ APC มาด้วย เพราะจะได้ดูทางหน้าเว็บได้ โดยแตกตัว folder เอาไปวางใน root directory นะคะ จะได้หน้าตาเว็บแบบนี้เอาไว้ดู resource เกี่ยวกับ APC ของ server</p>
<p><img src="http://www.rawseo.com/articles/apc_cache/apc_screen.png" alt="" /></p>
<p><strong>Memcache</strong></p>
<p>หลังจากที่มีการ cache หน้า page กันแล้ว ตรงส่วน database ก็มีความสำคัญเช่นกัน เพราะ connection database เป็นอะไรอีกอย่างที่ทำให้เกิดความช้า หากเรา query บ่อย ๆ ประกอบกับมี query ที่ซับซ้อนและมีจำนวนข้อมูลที่เป็นผลลัพธ์มาก ใช้ memcache นี่แหละค่ะ เป็นตัวช่วย</p>
<p>วิธีการติดตั้ง</p>
<p>#wget http://monkey.org/~provos/libevent-1.3e.tar.gz<br />
#tar zxpfv libevent*<br />
#cd libevent*<br />
#./configure<br />
#make install</p>
<p>#wget http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz<br />
#tar zxpfv memcached*<br />
#cd memcached*<br />
#./configure<br />
#make install</p>
<p>#adduser memcached</p>
<p>หากเกิดปัญหาเกี่ยวกับการหา file libevent ไม่เจอ แก้ไขดังนี้</p>
<p>ค่อยมาเขียน</p>
<p>จากนั้น ต้องลง php-memcache ด้วย</p>
<p>#yum install php-pecl-memcache.i386<br />
#vi /etc/php.ini เพิ่มบรรทัดดังต่อไปนี้</p>
<p>[memcache]<br />
memcache.allow_failover=1<br />
memcache.max_failover_attempts=20<br />
memcache.chunk_size=8192<br />
memcache.default_port=11211</p>
<p>ทำการ restart server แล้วตรวจสอบ phpinfo<br />
<img src="http://centoshacker.com/wp-content/uploads/2008/11/memcache_phpinfo.jpg" alt="" /></p>
<p>การใช้งาน memcache ต้อง run ให้มันทำงานอยู่ด้วย เหมือนกับ run server นั่นแหละ โดยใช้คำสั่ง<br />
memcached -vv -u memcached</p>
<p>ถ้าได้ผลแบบนี้แสดงว่า memcache server ได้ run ขึ้นมาแล้ว พร้อมใช้งานค่ะ<br />
<img src="http://4.bp.blogspot.com/_YB14YH_zSmM/SQdKmC5yZmI/AAAAAAAAAEc/3Tu_h54kWn0/s320/memcached-verbose.png" alt="" /></p>
<p>ลองทดสอบว่าสามารถ cache ได้แล้วจริงหรือไม่ โดย copy code ต่อไปนี้ รอไปรันดู</p>
<div>
<div><code><span style="color:#000000;"> <span style="color:#0000bb;">&lt;?php$memcache
<p>&nbsp;</p>
<p></span><span style="color:#007700;">= new </span><span style="color:#0000bb;">Memcache</span><span style="color:#007700;">;<br />
</span><span style="color:#0000bb;">$memcache</span><span style="color:#007700;">-&gt;</span><span style="color:#0000bb;">connect</span><span style="color:#007700;">(</span><span style="color:#dd0000;">'localhost'</span><span style="color:#007700;">, </span><span style="color:#0000bb;">11211</span><span style="color:#007700;">) or die (</span><span style="color:#dd0000;">"Could not connect"</span><span style="color:#007700;">); </span><span style="color:#0000bb;">$version </span><span style="color:#007700;">= </span><span style="color:#0000bb;">$memcache</span><span style="color:#007700;">-&gt;</span><span style="color:#0000bb;">getVersion</span><span style="color:#007700;">();<br />
echo </span><span style="color:#dd0000;">"Server's version: "</span><span style="color:#007700;">.</span><span style="color:#0000bb;">$version</span><span style="color:#007700;">.</span><span style="color:#dd0000;">"&lt;br/&gt;\n"</span><span style="color:#007700;">; </span><span style="color:#0000bb;">$tmp_object </span><span style="color:#007700;">= new </span><span style="color:#0000bb;">stdClass</span><span style="color:#007700;">;<br />
</span><span style="color:#0000bb;">$tmp_object</span><span style="color:#007700;">-&gt;</span><span style="color:#0000bb;">str_attr </span><span style="color:#007700;">= </span><span style="color:#dd0000;">'test'</span><span style="color:#007700;">;<br />
</span><span style="color:#0000bb;">$tmp_object</span><span style="color:#007700;">-&gt;</span><span style="color:#0000bb;">int_attr </span><span style="color:#007700;">= </span><span style="color:#0000bb;">123</span><span style="color:#007700;">; </span><span style="color:#0000bb;">$memcache</span><span style="color:#007700;">-&gt;</span><span style="color:#0000bb;">set</span><span style="color:#007700;">(</span><span style="color:#dd0000;">'key'</span><span style="color:#007700;">, </span><span style="color:#0000bb;">$tmp_object</span><span style="color:#007700;">, </span><span style="color:#0000bb;">false</span><span style="color:#007700;">, </span><span style="color:#0000bb;">10</span><span style="color:#007700;">) or die (</span><span style="color:#dd0000;">"Failed to save data at the server"</span><span style="color:#007700;">);<br />
echo </span><span style="color:#dd0000;">"Store data in the cache (data will expire in 10 seconds)&lt;br/&gt;\n"</span><span style="color:#007700;">; </span><span style="color:#0000bb;">$get_result </span><span style="color:#007700;">= </span><span style="color:#0000bb;">$memcache</span><span style="color:#007700;">-&gt;</span><span style="color:#0000bb;">get</span><span style="color:#007700;">(</span><span style="color:#dd0000;">'key'</span><span style="color:#007700;">);<br />
echo </span><span style="color:#dd0000;">"Data from the cache:&lt;br/&gt;\n"</span><span style="color:#007700;">; </span><span style="color:#0000bb;">var_dump</span><span style="color:#007700;">(</span><span style="color:#0000bb;">$get_result</span><span style="color:#007700;">); </span><span style="color:#0000bb;">?&gt;</span> </span> </code></div>
</div>
<p>นั่นแสดงว่า วิธีการใช้ memcache คือ เราต้อง new memcache ให้กับ query ที่เราต้องการจะ cache หากคุณมี code อยู่แล้ว และต้องการจะ cache มีทางเดียวที่ทำได้ คือ แก้ code ค่ะ ^O^ งานเข้าล่ะสิ</p>
<p>และจริงๆ memcache เอง ก็สามารถดูประสิทธิภาพทางหน้าเว็บได้เหมือน APC เลย ลอง download code จาก ลิงค์นี้ค่ะ http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/</p>
<p><img src="http://livebookmark.net/journal/wp-content/uploads/2008/05/memcache.png" alt="" /></p>
<p>เรื่องการ config แต่ละตัว อาจจะไม่ละเอียดมาก เรียกได้ว่าพอใช้งานได้แล้วกันค่ะ หากใครอยากจะ modify กันมากกว่านี้ ก็ตามไปอ่าน official website กันได้ค่ะ</p>
<p>หากมีข้อสงสัย ติชม เพิ่มเติม ก็ comment เอาไว้ได้ หากเอาไปอ้างอิง อย่าลืม credit ให้ด้วยนะคะ</p>
<p>ลิงค์น่าอ่านเพิ่มเติม</p>
<p>http://www.thaicyberpoint.com/ford/blog/id/170/</p>
<p>http://www.pantz.org/software/php/phptuningtips.html</p>
<p>http://dev.mysql.com/doc/refman/5.1/en/query-cache.html</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:6836px;width:1px;height:1px;">http://www.pantz.org/software/php/phptuningtips.html</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=145&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2009/06/10/php-mysql-performance/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>

		<media:content url="http://www.mikebernat.com/images/xdebug/var_dump_full.jpg" medium="image" />

		<media:content url="http://tech-blog.box.net/wp-content/uploads/2007/06/xdebug-in-phpinfo.jpg" medium="image" />

		<media:content url="http://www.pseudocoder.com/wp-content/uploads/2007/04/wincachegrind3.jpg" medium="image" />

		<media:content url="http://www.ez.no/var/ezno/storage/images/images/community/articles/alternative_php_cache/883778-1-eng-GB/alternative_php_cache.png" medium="image" />

		<media:content url="http://www.howtoforge.com/images/apc_php5_lighttpd_debian_etch/3.png" medium="image" />

		<media:content url="http://www.rawseo.com/articles/apc_cache/apc_screen.png" medium="image" />

		<media:content url="http://centoshacker.com/wp-content/uploads/2008/11/memcache_phpinfo.jpg" medium="image" />

		<media:content url="http://4.bp.blogspot.com/_YB14YH_zSmM/SQdKmC5yZmI/AAAAAAAAAEc/3Tu_h54kWn0/s320/memcached-verbose.png" medium="image" />

		<media:content url="http://livebookmark.net/journal/wp-content/uploads/2008/05/memcache.png" medium="image" />
	</item>
		<item>
		<title>[twitter] facebook-twitter</title>
		<link>http://nattyait.wordpress.com/2009/05/17/twitter-facebook/</link>
		<comments>http://nattyait.wordpress.com/2009/05/17/twitter-facebook/#comments</comments>
		<pubDate>Sun, 17 May 2009 06:34:44 +0000</pubDate>
		<dc:creator>natty</dc:creator>
				<category><![CDATA[configuration]]></category>

		<guid isPermaLink="false">http://nattyait.wordpress.com/?p=140</guid>
		<description><![CDATA[ด้วยความพยายามจะ sync facebook กับ twitter เข้าด้วยกัน เพื่อที่จะอัพเดท status ครั้งเดียวแล้วไปอัพเดททั้ง facebook และ twitter  ซึ่งตอนนี้ก็ทำได้แล้วโดยที่ อัพเดทจาก twitter แล้วจะไปอัพเดท status ใน facebook อัตโนมัติ อัพเดทจาก twitter application ใน facebook แล้วไปอัพเดทใน twitter อัตโนมัติ อัพเดทจาก facebook status แล้วอัพเดทอัตโนมัติใน twitter &#60;&#8211; ยังไม่แน่ใจว่าได้หรือยัง อ่ะ ก่อนอื่น มาทำให้อัพเดทจาก twitter ไป facebok ก่อนละกัน ง่ายๆ เลย แค่ใช้ application:http://apps.new.facebook.com/twitter/ ใส่ user/pass ของ twitter ของคุณ แค่นี้ก็เสร็จแล้ว หากคุณอัพเดท twitter จากหน้า [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=140&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ด้วยความพยายามจะ sync facebook กับ twitter เข้าด้วยกัน เพื่อที่จะอัพเดท status ครั้งเดียวแล้วไปอัพเดททั้ง facebook และ twitter  ซึ่งตอนนี้ก็ทำได้แล้วโดยที่</p>
<ul>
<li>อัพเดทจาก twitter แล้วจะไปอัพเดท status ใน facebook อัตโนมัติ</li>
<li>อัพเดทจาก twitter application ใน facebook แล้วไปอัพเดทใน twitter อัตโนมัติ</li>
<li>อัพเดทจาก facebook status แล้วอัพเดทอัตโนมัติใน twitter &lt;&#8211; ยังไม่แน่ใจว่าได้หรือยัง</li>
</ul>
<p>อ่ะ ก่อนอื่น มาทำให้อัพเดทจาก twitter ไป facebok ก่อนละกัน ง่ายๆ เลย แค่ใช้ application:http://apps.new.facebook.com/twitter/ ใส่ user/pass ของ twitter ของคุณ แค่นี้ก็เสร็จแล้ว หากคุณอัพเดท twitter จากหน้า application ใน twitter ใน facebook นี้ ก็จะไปอัพเดทใน twitter ของคุณ และจากคุณอัพเดทจาก twitter นอก facebook มันก็จะอัพเดทไปถึง facebook status เลย</p>
<p>และวิธีทำให้ อัพเดทจาก facebook status แล้วไปอัพเดท twitter อัตโนมัติ ทำได้ดังนี้ค่ะ</p>
<ol>
<li>เข้า twitter feed:http://twitterfeed.com แล้ว login เข้า twitterfeed (กรณีนี้เก๋ใช้ openid ในการ login ค่ะ)</li>
<li>เลือก go to my twitterfeeds</li>
<li>เลือก create new feed</li>
<li>เอาลิงค์ไปใส่ที่ RSS feed url โดยไปที่หน้า facebook ของตัวเอง เข้าลิงค์ http://www.facebook.com/notifications.php แล้วไปที่ your notification ด้านล่างขวา ให้ copy ลิงค์นั้นมา</li>
<li>ตั้งค่าตามต้องการ</li>
</ol>
<p>หวังว่าคงเป็นประโยชน์กับทุกท่านนะจ้ะ</p>
<p>ส่วนหนึ่ง อ้างอิงจากที่นี่ค่ะ http://blog.kristibarrow.com/2008/11/19/how-to-update-twitter-with-your-facebook-status/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nattyait.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nattyait.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nattyait.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nattyait.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nattyait.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nattyait.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nattyait.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nattyait.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nattyait.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nattyait.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nattyait.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nattyait.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nattyait.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nattyait.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nattyait.wordpress.com&amp;blog=4817581&amp;post=140&amp;subd=nattyait&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nattyait.wordpress.com/2009/05/17/twitter-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">natty</media:title>
		</media:content>
	</item>
	</channel>
</rss>
