<?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/"
	>

<channel>
	<title>NAzT&#039;s Blog &#187; Grails</title>
	<atom:link href="http://www.together.in.th/category/programming-2/groovy/grails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.together.in.th</link>
	<description>technology,misc</description>
	<lastBuildDate>Thu, 09 Sep 2010 05:26:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>ระยะห่างระหว่าง 2 พิกัด (postgis)</title>
		<link>http://www.together.in.th/%e0%b8%a3%e0%b8%b0%e0%b8%a2%e0%b8%b0%e0%b8%ab%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%a3%e0%b8%b0%e0%b8%ab%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%87-2-%e0%b8%9e%e0%b8%b4%e0%b8%81%e0%b8%b1%e0%b8%94-postgis/</link>
		<comments>http://www.together.in.th/%e0%b8%a3%e0%b8%b0%e0%b8%a2%e0%b8%b0%e0%b8%ab%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%a3%e0%b8%b0%e0%b8%ab%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%87-2-%e0%b8%9e%e0%b8%b4%e0%b8%81%e0%b8%b1%e0%b8%94-postgis/#comments</comments>
		<pubDate>Sun, 09 May 2010 17:17:40 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[gis]]></category>
		<category><![CDATA[gist]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[จราจร]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1957</guid>
		<description><![CDATA[ของฝรั่ง (คู่มือ) เขาเขียน Code ประมาณนี้ http://postgis.refractions.net/documentation/manual-svn/ST_Distance.html แต่ของเมืองไทย ผมเขียนแบบนี้ (รุ่นพี่ที่เชี่ยวชาญแนะนำมา (พี่ตั้ม)) ประโยชน์ที่ได้ใช้ก็คือเอาไปหาป้ายจราจรอัจฉริยะที่อยู่ใกล้เรามากที่สุด ซึ่ง Code อยู่ที่ http://github.com/NAzT/GPS2VMS และ gist อยู่ที่ https://gist.github.com/305430/f66f866975cdef96e5e62c9a9972b29f6df6d253 Related posts แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (1) แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (0) เลือกเรียนอะไรดี ComSci &#8211; Thammasat (ตอนที่ 1) (2) เริ่มต้นง่ายๆกับ GitHub (0) เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (0)]]></description>
			<content:encoded><![CDATA[<p>ของฝรั่ง (คู่มือ) เขาเขียน Code ประมาณนี้<span id="more-1957"></span></p>
<blockquote><p><script src="http://gist.github.com/395199.js?file=gistfile1.txt"></script>
</p></blockquote>
<p><a href="http://postgis.refractions.net/documentation/manual-svn/ST_Distance.html">http://postgis.refractions.net/documentation/manual-svn/ST_Distance.html</a></p>
<p>แต่ของเมืองไทย ผมเขียนแบบนี้ (รุ่นพี่ที่เชี่ยวชาญแนะนำมา (พี่ตั้ม))<br />
 <script src="http://gist.github.com/395222.js?file=distance_thai.sql"></script><br />
ประโยชน์ที่ได้ใช้ก็คือเอาไปหาป้ายจราจรอัจฉริยะที่อยู่ใกล้เรามากที่สุด</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/z1eBOHcwyCk&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/z1eBOHcwyCk&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>ซึ่ง Code อยู่ที่</p>
<p><a href="http://github.com/NAzT/GPS2VMS">http://github.com/NAzT/GPS2VMS</a></p>
<p>และ <a href="http://www.together.in.th/tag/gist/" class="st_tag internal_tag" rel="tag" title="Posts tagged with gist">gist</a> อยู่ที่ <a href="https://gist.github.com/305430/f66f866975cdef96e5e62c9a9972b29f6df6d253"> https://gist.github.com/305430/f66f866975cdef96e5e62c9a9972b29f6df6d253</a><br />
<!--adsensestart--></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/restclient-update-status-twitter-expectation-failed/" title="แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (เมษายน 8, 2010)">แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้</a> (1)</li>
	<li><a href="http://www.together.in.th/cyberneko-groovy-java-encoding/" title="แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (เมษายน 29, 2010)">แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)</a> (0)</li>
	<li><a href="http://www.together.in.th/what-i-should-study-in-comsci-thammasat-1/" title="เลือกเรียนอะไรดี ComSci &#8211; Thammasat (ตอนที่  1) (เมษายน 29, 2010)">เลือกเรียนอะไรดี ComSci &#8211; Thammasat (ตอนที่  1)</a> (2)</li>
	<li><a href="http://www.together.in.th/%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86%e0%b8%81%e0%b8%b1%e0%b8%9a-github/" title="เริ่มต้นง่ายๆกับ GitHub (มิถุนายน 1, 2009)">เริ่มต้นง่ายๆกับ GitHub</a> (0)</li>
	<li><a href="http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/" title="เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (พฤษภาคม 4, 2010)">เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/%e0%b8%a3%e0%b8%b0%e0%b8%a2%e0%b8%b0%e0%b8%ab%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%a3%e0%b8%b0%e0%b8%ab%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%87-2-%e0%b8%9e%e0%b8%b4%e0%b8%81%e0%b8%b1%e0%b8%94-postgis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP</title>
		<link>http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/</link>
		<comments>http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/#comments</comments>
		<pubDate>Tue, 04 May 2010 10:10:35 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[GIVES]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[ตัดคำ]]></category>
		<category><![CDATA[ตัดคำภาษาไทย]]></category>
		<category><![CDATA[ตัดคำไทย]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1900</guid>
		<description><![CDATA[วันนี้ผมจะมานำเสนอการทำ Web Service ตัดคำภาษาไทย โดยใช้ grails framework   (ภาค SOAP) สั่ง grails create-app _appname_ เพื่อสร้าง grails application cd _appname_ แล้วสั่ง grails install-plugin xfire เพื่อติดตั้ง plug-in เพื่อทำ webservice ฉบับ soap สั่ง grails create-service TokenizeService เพื่อสร้าง Service ตัดคำ copy LexTo.jar ไว้ใน /lib แล้วเอา lexitron.txt ไว้ใน / เขียน Code นิดหน่อย ดังนี้ /grails-app/conf/BootStrap.groovy  (อยากจะ new Object ครั้งเดียว) code : /grails-app/services/TokenizeService.groovy [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้ผมจะมานำเสนอการทำ Web Service ตัดคำภาษาไทย โดยใช้ grails framework   (ภาค SOAP)</p>
<ul>
<li>สั่ง <strong>grails create-app _appname_ </strong>เพื่อสร้าง grails application</li>
<li>cd _appname_<span id="more-1900"></span></li>
<li>แล้วสั่ง<strong> grails install-plugin xfire </strong>เพื่อติดตั้ง plug-in เพื่อทำ webservice ฉบับ soap</li>
<li>สั่ง <strong>grails create-service TokenizeService</strong><strong> เพื่อสร้าง Service ตัดคำ</strong></li>
<li><strong>copy LexTo.jar ไว้ใน /lib แล้วเอา lexitron.txt ไว้ใน /</strong></li>
<li><strong>เขียน Code นิดหน่อย ดังนี้</strong></li>
</ul>
<blockquote><p>/grails-app/conf/BootStrap.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>  (อยากจะ new Object ครั้งเดียว)</p>
<p>code :</p>
<p><script src="http://gist.github.com/389212.js?file=tokenizer-service-BootStrap.groovy"></script>
</p></blockquote>
<blockquote><p>
/grails-app/services/TokenizeService.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a> ให้เพิ่ม method
</p></blockquote>
<blockquote><p>
code : <script src="http://gist.github.com/389213.js?file=tokenizeService.groovy"></script></p></blockquote>
<ul>
<li>เรียบร้อยแล้ว สั่ง grails run-app ได้เลย !!!</li>
</ul>
<p>เข้า<a href="http://localhost:8080/TokenizerService/services">http://localhost:8080/TokenizerService/services</a> จะเห็นแบบนี้ครับ (มัน generate wsdl มาให้เลย)</p>
<p><a href="http://www.together.in.th/wp-content/uploads/2010/05/Picture-8.png" rel="lightbox[1900]"><img class="alignnone size-full wp-image-1917" title="Picture 8" src="http://www.together.in.th/wp-content/uploads/2010/05/Picture-8.png" alt="" width="597" height="408" /></a></p>
<p>ขอทดสอบ webservice  ด้วย soap ui โดยใส่ url ของ wsdl ไปเลยแบบนี้</p>
<p><a href="http://www.together.in.th/wp-content/uploads/2010/05/Picture-9.png" rel="lightbox[1900]"><img class="alignnone size-full wp-image-1918" title="Picture 9" src="http://www.together.in.th/wp-content/uploads/2010/05/Picture-9.png" alt="" width="596" height="301" /></a></p>
<p>แล้วก็ทดสอบ operation การตัดคำของเรา</p>
<p><a href="http://www.together.in.th/wp-content/uploads/2010/05/Picture-11.png" rel="lightbox[1900]"><img class="alignnone size-full wp-image-1920" title="Picture 11" src="http://www.together.in.th/wp-content/uploads/2010/05/Picture-11.png" alt="" width="604" height="502" /></a></p>
<p>เรียบร้อย !</p>
<p>ปล. ไม่ชอบ soap แต่ว่าใน grails มันง่ายเลยทำก่อน (ขี้เกียจสร้าง controller + render as xml)</p>
<p> <img src='http://www.together.in.th/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> <!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li><a href="http://www.nflonlinefansite.com/pittsburgh-steelers/riddell-pittsburgh-steelers-nfl-full-size-proline-vsr4-helmet/">Riddell Pittsburgh Steelers NFL <b>Full Size</b> Proline VSR4 Helmet <b>&#8230;</b></a></li>
<li><a href="http://www.budbilanich.com/career-success-coach/successful-people-start-fast-and-finish-strong/">Successful People Start Fast and Finish <b>Strong</b> | Bud Bilanich</a></li>
<li><a href="http://www.airsoftgunstore.net/bbs/airsoft-bbs-20-gram-4000-round-bag-src-brand/">Airsoft BBs .20 gram 4000 round bag <b>SRC</b> Brand | Airsoft Gun Store</a></li>
<li><a href="http://sonnd.com/2010/05/02/balkanizing-the-web/">Sonnd › &lt;a <b>href</b>=&quot;http://www.mondaynote.com/2010/05/02/balkanizing <b>&#8230;</b></a></li>
<li><a href="http://nicebookmark.net/news-feed/gizmodo/opera-finds-flash-unappetizing-for-web-video-blockquote.htm">Opera Finds Flash Unappetizing For Web Video [<b>Blockquote</b>] | Gadget <b>&#8230;</b></a></li>
<li><a href="http://createbacklinks.info/gadgets/opera-finds-flash-unappetizing-for-web-video-blockquote">Opera Finds Flash Unappetizing For Web Video [<b>Blockquote</b>]</a></li>
<li><a href="http://carnewsarticles.com/2010/05/09/is-hyundai-really-considering-full-size-pickup-truck/">Is Hyundai really considering <b>full</b>-<b>size</b> pickup truck? » Car News <b>&#8230;</b></a></li>
<li><a href="http://blanche.ivydays.com/2010/05/09/aa9pw-fcc-exam-practice-morse-code-practice/">AA9PW FCC Exam Practice &quot; Morse <b>Code</b> Practice « mbt tunisha grape <b>&#8230;</b></a></li>
<li><a href="http://www.yug.com/why-most-stock-pick-service-fails/">Why Most Stock Pick <b>Service</b> Fails « YUG.com</a></li>
<li><a href="http://www.yalibnan.com/2010/05/08/lebanon-wins-uns-public-service-award/">Lebanon wins UN&#39;s Public <b>Service</b> Award | Ya Libnan | World News <b>&#8230;</b></a></li>
<li><a href="http://www.womansindex.net/diet/weight-watchers-canada-coupon-replaces-promotional-code/">Weight Watchers Canada Coupon Replaces Promotional <b>Code</b> <b>&#8230;</b></a></li>
<li><a href="http://www.teleread.com/2010/04/28/medianet-launched-ebook-catalog-and-distribution-service/">Medianet launches ebook catalog and distribution <b>service</b> <b>&#8230;</b></a></li>
<li><a href="http://www.tech-chic.com/technology/opera-finds-flash-unappetizing-for-web-video-blockquote.html">Opera Finds Flash Unappetizing For Web Video [<b>Blockquote</b> <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/whats-the-code-to-hide-the-comments-but-keep-the-add-comment-link-10-points-to-who-gives-it-to-me/">Whats the <b>code</b> to hide the comments but KEEP the add comment link <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/what-is-the-difference-between-href-and-src-links/">What is the difference between <b>HREF</b> and SRC links? « TagFocus.com</a></li>
<li><a href="http://www.otto-otto.com/2010/04/zooming-in-on-coverings-2010/">Zooming in on Coverings 2010</a></li>
<li><a href="http://www.otto-otto.com/2010/05/ceramic-tiles-of-italy-design-competition-winners/">Ceramic Tiles of Italy Design Competition Winners</a></li>
<li><a href="http://www.newsviewsandnotes.com/?p=361">[caption id=&quot;&quot; align=&quot;<b>alignnone</b>&quot; wid&#8230; « NewsViewsAndNotes.com</a></li>
<li><a href="http://www.mommygoggles.com/mothers-day-shopping-sams-club/">Mother&#39;s Day Shopping at Sam&#39;s Club! | Mommy Goggles</a></li>
<li><a href="http://www.insurancemaking.com/2010/05/is-hyundai-really-considering-full-size-pickup-truck/">Is Hyundai really considering <b>full</b>-<b>size</b> pickup truck? | Insurance <b>&#8230;</b></a></li>
</ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/thai-tokenizer-groovy-not-grails/" title="ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails) (เมษายน 27, 2010)">ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails)</a> (0)</li>
	<li><a href="http://www.together.in.th/cache-grails-project-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b8%94%e0%b8%84%e0%b8%b3%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ja/" title="[cache] Grails Project : การตัดคำภาษาไทย(ด้วย Java) และประมวลผลด้วย Grails (มกราคม 8, 2010)">[cache] Grails Project : การตัดคำภาษาไทย(ด้วย Java) และประมวลผลด้วย Grails</a> (1)</li>
	<li><a href="http://www.together.in.th/restclient-update-status-twitter-expectation-failed/" title="แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (เมษายน 8, 2010)">แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้</a> (1)</li>
	<li><a href="http://www.together.in.th/cyberneko-groovy-java-encoding/" title="แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (เมษายน 29, 2010)">แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)</a> (0)</li>
	<li><a href="http://www.together.in.th/try-parse-json-using-groovy-java-netbeans/" title="[Google Maps Geocoding] ลอง Parse Json ด้วย Groovy + Java (Netbeans) (มกราคม 12, 2010)">[Google Maps Geocoding] ลอง Parse Json ด้วย Groovy + Java (Netbeans)</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การเข้าถึง servletContext (ใน Service)</title>
		<link>http://www.together.in.th/accessing-the-servlet-context/</link>
		<comments>http://www.together.in.th/accessing-the-servlet-context/#comments</comments>
		<pubDate>Tue, 04 May 2010 09:37:39 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Groovy]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1896</guid>
		<description><![CDATA[import org.codehaus.groovy.grails.web.context.ServletContextHolder as SCH def servletContext = SCH.servletContext ที่มา  http://bit.ly/cCXFni Related Blogs Related posts โปรขุดบอร์ดประมูล (79) แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (1) แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (0) เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (0) ลองถอดข้อมูลจาก JSON Format ด้วย Grails (0)]]></description>
			<content:encoded><![CDATA[<blockquote><p>import org.codehaus.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>.grails.web.context.ServletContextHolder as SCH</p>
<p>def servletContext = SCH.servletContext<span id="more-1896"></span></p>
<p>ที่มา  <a href="http://bit.ly/cCXFni">http://bit.ly/cCXFni</a></p></blockquote>
<p><!--adsensestart--><!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback"></ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/pramool-digger/" title="โปรขุดบอร์ดประมูล (มกราคม 8, 2009)">โปรขุดบอร์ดประมูล</a> (79)</li>
	<li><a href="http://www.together.in.th/restclient-update-status-twitter-expectation-failed/" title="แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (เมษายน 8, 2010)">แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้</a> (1)</li>
	<li><a href="http://www.together.in.th/cyberneko-groovy-java-encoding/" title="แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (เมษายน 29, 2010)">แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)</a> (0)</li>
	<li><a href="http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/" title="เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (พฤษภาคม 4, 2010)">เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP</a> (0)</li>
	<li><a href="http://www.together.in.th/json-parse-with-grails/" title="ลองถอดข้อมูลจาก JSON Format ด้วย Grails (มกราคม 11, 2010)">ลองถอดข้อมูลจาก JSON Format ด้วย Grails</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/accessing-the-servlet-context/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grails + Tomcat แล้วเกิด &#8211; java.lang.OutOfMemoryError: PermGen space</title>
		<link>http://www.together.in.th/grails-tomcat-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94-java-lang-outofmemoryerror-permgen-space/</link>
		<comments>http://www.together.in.th/grails-tomcat-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94-java-lang-outofmemoryerror-permgen-space/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 10:52:58 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Configuration]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1778</guid>
		<description><![CDATA[ทำอะไรมีปัญหาทุกที  สาเหตุที่เกิด Error &#8211; java.lang.OutOfMemoryError: PermGen space เพราะว่า เรา Deploy Application ใหม่ แล้ว ค่า Default ของ PermGen Space มัน set ไว้น้อย (ประมาณ 80 &#8211; 84mb) เวลาจะ Deploy app ตัวใหม่มันเลยเจ๊ง สรุปว่าถ้าเจอ &#8211; java.lang.OutOfMemoryError: PermGen space  ตอน Deploy แล้วทนไม่ไหว ให้ไปแก้ที่ catalina.sh แล้วเพิ่ม  JAVA_OPTS หรือ CATALINA_OPTS ลงไปประมาณนี้ (ไม่ต้องเยอะขนาดนี้ก็ได้ครับ set permgen อย่างเดียวก่อนก็ได้ครับ) JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m [...]]]></description>
			<content:encoded><![CDATA[<p>ทำอะไรมีปัญหาทุกที  สาเหตุที่เกิด Error &#8211; java.lang.OutOfMemoryError: PermGen space เพราะว่า เรา Deploy Application ใหม่ แล้ว ค่า Default ของ PermGen Space มัน set ไว้น้อย (ประมาณ 80 &#8211; 84mb) <span id="more-1778"></span>เวลาจะ Deploy app ตัวใหม่มันเลยเจ๊ง</p>
<p>สรุปว่าถ้าเจอ &#8211; java.lang.OutOfMemoryError: PermGen space  ตอน Deploy แล้วทนไม่ไหว ให้ไปแก้ที่ catalina.sh</p>
<p>แล้วเพิ่ม  <span style="text-decoration: underline;">JAVA_OPTS</span> หรือ <span style="text-decoration: underline;">CATALINA_OPTS</span> ลงไปประมาณนี้ (ไม่ต้องเยอะขนาดนี้ก็ได้ครับ set permgen อย่างเดียวก่อนก็ได้ครับ)</p>
<blockquote>
<pre>JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
-XX:MaxPermSize=256m -XX:+DisableExplicitGC"</pre>
</blockquote>
<p>Code และข้อมูลของ <a href="http://www.together.in.th/tag/configuration/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Configuration">Configuration</a> จาก</p>
<pre><a href="http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/">http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/</a></pre>
<p>วุ่นวายมาก  ต้องขอขอบคุณ พี่ทักษิณ พี่ต้น พี่นุ ที่ช่วยดูแล ช่วยแก้ไข ณ ที่นี้ด้วยครับ <img src='http://www.together.in.th/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback"></ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/how-to-remove-delete-quicksilver/" title="วิธีลบ Quicksilver (พฤษภาคม 27, 2009)">วิธีลบ Quicksilver</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/grails-tomcat-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94-java-lang-outofmemoryerror-permgen-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grails &amp; Legacy Database กับการ MAP id เข้ากับ String</title>
		<link>http://www.together.in.th/grails-legacy-database-mapping-id-with-string/</link>
		<comments>http://www.together.in.th/grails-legacy-database-mapping-id-with-string/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 14:35:03 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[ลืม]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1727</guid>
		<description><![CDATA[โจทย์ Grails วันนี้คือ ถ้ามี Database อยู่แล้ว จะสร้าง Grails Application มาครอบ Table ที่มีอยู่แล้ว ยังไง ? โจทย์นี้ยากสำหรับผม เพราะว่า ผมสร้าง Application ใหม่อย่างเดียวเลย Table ก็เกิดใหม่ทุกครั้งเลยไม่เจอปัญหาอะไร ก็เลยหาคำตอบ ด้วยการ Search ไปๆ มาๆ ก็เจอ Mastering Grails: Grails and legacy databases มันคงมีวิธีการ map หลายวิธี แต่ผมอ่านแล้วพอจะเข้าใจอันเดียว คือตรง   ดู code ก็น่าจะเข้าใจเลย เพราะมันก็ตรงไปตรงมาดี แต่ว่าพอทำจริงก็เกิดปัญหาว่า แล้วถ้าไม่มี  id  ที่เป็นตัวเลขล่ะ จะทำยังไง? (แต่มี primary key ที่เป็น string) ครั้นจะไม่มี id [...]]]></description>
			<content:encoded><![CDATA[<p>โจทย์ Grails วันนี้คือ ถ้ามี Database อยู่แล้ว จะสร้าง Grails Application มาครอบ Table ที่มีอยู่แล้ว ยังไง ?</p>
<p>โจทย์นี้ยากสำหรับผม เพราะว่า</p>
<ul>
<li> ผมสร้าง Application ใหม่อย่างเดียวเลย Table ก็เกิดใหม่ทุกครั้งเลยไม่เจอปัญหาอะไร</li>
</ul>
<p><span id="more-1727"></span></p>
<p>ก็เลยหาคำตอบ ด้วยการ Search ไปๆ มาๆ ก็เจอ <a href="http://www.ibm.com/developerworks/java/library/j-grails07158/">Mastering Grails: Grails and legacy databases</a></p>
<p>มันคงมีวิธีการ map หลายวิธี แต่ผมอ่านแล้วพอจะเข้าใจอันเดียว คือตรง  <a name="N101DF"></a></p>
<p><script src="http://gist.github.com/360107.js?file=AirportMapping.groovy"></script> ดู code ก็น่าจะเข้าใจเลย เพราะมันก็ตรงไปตรงมาดี  แต่ว่าพอทำจริงก็เกิดปัญหาว่า</p>
<p><strong><span style="color: #ff0000;">แล้วถ้าไม่มี  id  ที่เป็นตัวเลขล่ะ จะทำยังไง? </span></strong>(แต่มี primary key ที่เป็น string)</p>
<p>ครั้นจะไม่มี id ไว้อ้างถึงเลย แล้วจะลบ จะแก้ไขยังไง ?</p>
<p>ก็เลยหาๆดู เลยพบคำตอบ ว่าต้องทำประมาณนี้</p>
<blockquote><p>
<strong>id column: &#8216;sensor_group_id&#8217;, generator: &#8216;assigned&#8217;, type: &#8216;string&#8217;</strong>
</p></blockquote>
<p>แปลว่า map  column id เข้ากับ sensor_group_id (ในตาราง)</p>
<p>แล้วก็อย่าลืมประกาศ String id ไว้ใน domain class ด้วย  จะได้แบบนี้</p>
<p><script src="http://gist.github.com/360111.js?file=grailsIDmappingwithString.groovy"></script></p>
<h2>แต่ผมก็ยังไม่มีคำตอบสำหรับคำถามดังต่อไปนี้</h2>
<ul>
<li>ถ้าตารางไม่มี Primary key จะ map ยังไงดี</li>
<li>ถ้า primary key มันต้องควบ 2  ฟิลด์จะทำยังไงดี</li>
<li>ใช้ composite แล้วทำไมมัน error -*-</li>
<li>จะ map เรื่อง belongsTo กับ hasMany ยังไงดี  (ถ้า id เรา map เอาไว้กับ string)</li>
</ul>
<h2>จบก่อน !</h2>
<p><!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback"></ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/restclient-update-status-twitter-expectation-failed/" title="แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (เมษายน 8, 2010)">แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้</a> (1)</li>
	<li><a href="http://www.together.in.th/cyberneko-groovy-java-encoding/" title="แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (เมษายน 29, 2010)">แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)</a> (0)</li>
	<li><a href="http://www.together.in.th/%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86%e0%b8%81%e0%b8%b1%e0%b8%9a-github/" title="เริ่มต้นง่ายๆกับ GitHub (มิถุนายน 1, 2009)">เริ่มต้นง่ายๆกับ GitHub</a> (0)</li>
	<li><a href="http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/" title="เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (พฤษภาคม 4, 2010)">เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP</a> (0)</li>
	<li><a href="http://www.together.in.th/thai-tokenizer-groovy-not-grails/" title="ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails) (เมษายน 27, 2010)">ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/grails-legacy-database-mapping-id-with-string/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>grails bash completion</title>
		<link>http://www.together.in.th/grails-bash-completion/</link>
		<comments>http://www.together.in.th/grails-bash-completion/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 14:43:01 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash completion]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1648</guid>
		<description><![CDATA[เคยบ่นว่า shell ของ ubuntu เก่งกว่า mac เพราะว่ามันใช้ command+tab +tab ได้ แต่หารู้ไม่ว่าที่ ubuntu ใช้ command +tab +tab ได้นั้นเค้าเรียกว่า bash-completion  (แต่นี่ยังไม่ใช่ประเด็น) ซึ่งก่อนจะล้างเครื่องมันใช้ grails +tab +tab เพื่อแสดงคำสั่งที่สามารถใช้ได้ออกมา   (แต่ไม่ได้จดไว้) พอลงเครื่องใหม่ปุ๊บก็ต้องมาหาวิธีที่ทำให้มันใช้งานได้ (มันต้องทำได้ เพราะเคยใช้ได้) search ไปเจอ http://www.grails.org/Grails+Bash+Completion+Script มันก็ใช้ได้  แต่ยังไม่แจ่มพอ เพราะว่ามันมีแค่ ยังจำได้ว่าที่เคยทำไว้มันแจ่มกว่านี้ search ไปๆ มาๆ ก็ไปเจอที่ http://naleid.com/blog/2008/03/25/autocomplete-grails-script-names-in-bashzsh/ อันนี้แจ่มจริง เพราะว่ามีเยอะขนาดนี้เลย (แถม code สั้นกว่าด้วย) ก็ง่ายๆแค่ เอา code ข้างล่างนี้ไปไว้ใน ~/.profile  แค่นั้นเอง ( ง่ายไหมล่ะ ) [...]]]></description>
			<content:encoded><![CDATA[<p>เคยบ่นว่า shell ของ ubuntu เก่งกว่า mac เพราะว่ามันใช้ command+tab +tab ได้  แต่หารู้ไม่ว่าที่ ubuntu ใช้  command +tab +tab ได้นั้นเค้าเรียกว่า <a href="http://www.together.in.th/tag/bash/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bash">bash</a>-completion  (แต่นี่ยังไม่ใช่ประเด็น)</p>
<p>ซึ่งก่อนจะล้างเครื่องมันใช้ grails +tab +tab เพื่อแสดงคำสั่งที่สามารถใช้ได้ออกมา   (แต่ไม่ได้จดไว้)</p>
<p>พอลงเครื่องใหม่ปุ๊บก็ต้องมาหาวิธีที่ทำให้มันใช้งานได้ (มันต้องทำได้ เพราะเคยใช้ได้)</p>
<p><span id="more-1648"></span>search ไปเจอ <a href="http://www.grails.org/Grails+Bash+Completion+Script">http://www.grails.org/Grails+Bash+Completion+Script </a> มันก็ใช้ได้  แต่ยังไม่แจ่มพอ</p>
<p>เพราะว่ามันมีแค่</p>
<p><a href="http://www.together.in.th/wp-content/uploads/2010/03/Picture-31.png" rel="lightbox[1648]"><img class="alignnone size-full wp-image-1650" title="Picture 3" src="http://www.together.in.th/wp-content/uploads/2010/03/Picture-31.png" alt="" width="587" height="504" /></a></p>
<p>ยังจำได้ว่าที่เคยทำไว้มันแจ่มกว่านี้</p>
<p>search ไปๆ มาๆ ก็ไปเจอที่ <a href="http://naleid.com/blog/2008/03/25/autocomplete-grails-script-names-in-bashzsh/">http://naleid.com/blog/2008/03/25/autocomplete-grails-script-names-in-bashzsh/</a> อันนี้แจ่มจริง</p>
<p>เพราะว่ามีเยอะขนาดนี้เลย (แถม code สั้นกว่าด้วย)</p>
<p>ก็ง่ายๆแค่ เอา code ข้างล่างนี้ไปไว้ใน ~/.profile  แค่นั้นเอง ( ง่ายไหมล่ะ )</p>
<p><script src="http://gist.github.com/343610.js?file=grails-bash-completion.sh"></script> จะได้แบบนี้  <a href="http://www.together.in.th/wp-content/uploads/2010/03/Picture-41.png" rel="lightbox[1648]"><img title="Picture 4" src="http://www.together.in.th/wp-content/uploads/2010/03/Picture-41.png" alt="" width="586" height="503" /></a> หรือไม่ก็สร้างไฟล์ไว้ซักไฟล์นึงที่มีเนื้อหาแบบข้างบน หรือ/และ แบบข้างล่าง  <script src="http://gist.github.com/343610.js?file=grails-bash-completion.sh"></script></p>
<p>สมมติว่าผมสร้างไว้ที่ ~/bin/grails-<a href="http://www.together.in.th/tag/bash/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bash">bash</a>-completion.sh</p>
<p>แล้วผมก็แค่ไปเพิ่มใน ~/.profile ว่า</p>
<blockquote>
<div id="_mcePaste">[ -r ~/bin/grails-<a href="http://www.together.in.th/tag/bash/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bash">bash</a>-completion.sh ] &amp;&amp; source ~/bin/grails-<a href="http://www.together.in.th/tag/bash/" class="st_tag internal_tag" rel="tag" title="Posts tagged with bash">bash</a>-completion.sh</div>
</blockquote>
<div>เพียงเท่านี้ผมก็สามารถใช้ grails + [tab] + [tab] ได้แล้ว  สบายบรื๋อ</div>
<p><!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li><a href="http://xarikkrishn.msk.su/2010/05/09/lisinopril-tab/">Lisinopril <b>tab</b> | Xarikkrishn.msk.su farm</a></li>
<li><a href="http://www.yosoybravo.com/learning-websites/learning-to-use-css-and-div-tags-for-columns-in-dreamweaver">» Learning to use CSS and <b>DIV</b> Tags for Columns in Dreamweaver</a></li>
<li><a href="http://www.plazamore.com/computers-office/avery-plain-tab-write-on-dividers-5-tab-36-sets-11501/">Avery Plain <b>Tab</b> Write-On Dividers, 5-<b>Tab</b>, 36 Sets (11501) | Center <b>&#8230;</b></a></li>
<li><a href="http://www.buyforcheapus.com/cheap-3m-command-17304-cord-bundlers-shopping/">Cheap 3M <b>Command</b> 17304 Cord Bundlers Shopping</a></li>
<li><a href="http://www.airsoftgunstore.net/bbs/airsoft-bbs-20-gram-4000-round-bag-src-brand/">Airsoft BBs .20 gram 4000 round bag <b>SRC</b> Brand | Airsoft Gun Store</a></li>
<li><a href="http://sonnd.com/2010/05/02/balkanizing-the-web/">Sonnd › &lt;a <b>href</b>=&quot;http://www.mondaynote.com/2010/05/02/balkanizing <b>&#8230;</b></a></li>
<li><a href="http://htmlvideo.net/html-pro-series-tutorial-1-working-with-div-setting-up">HTML Pro Series Tutorial – #1 Working With <b>DIV</b> &amp; Setting Up | HTML <b>&#8230;</b></a></li>
<li><a href="http://geeksonsteroids.us/1000/advance-band-div-coding-video-2/">Advance band <b>div</b> coding video 2 | geeksonsteroids.us</a></li>
<li><a href="http://fernandotakai.wordpress.com/2008/08/05/grails-auto-complete/"><b>Grails</b> Auto <b>Complete</b> « blog.</a></li>
<li><a href="http://blog.jetztgrad.net/2010/01/updated-bash-completion-script-for-osx-and-grails-1-1-1-2/">A Day At The Races » Updated <b>bash completion</b> script for OSX and <b>&#8230;</b></a></li>
<li><a href="http://www.vignaiolicinqueterre.org/seo/seo-services-india.html">Seo Services India | SEO | <b>Search</b> Engine Optimization</a></li>
<li><a href="http://www.together.in.th/grails-bash-completion/"><b>grails bash completion</b> « NAzT&#39;s Blog</a></li>
<li><a href="http://www.technoblogical.com/2010/04/24/dns-start-of-authority-tab/">dns start of authority <b>tab</b> &#8211; Providing training since last Tuesday <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/what-is-the-difference-between-href-and-src-links/">What is the difference between <b>HREF</b> and SRC links? « TagFocus.com</a></li>
<li><a href="http://www.tacticalmilsim.com/2-law-enforcement/domestic-terrorism/Pakistani-President-Says-that-Osama-Bin-Laden-May-be-Dead/">Pakistani President Says that Osama <b>Bin</b> Laden May be Dead <b>&#8230;</b></a></li>
<li><a href="http://www.sooou.org.ru/22949.html">Liver function <b>ALT</b>: 232.2 + AST: 52.2 + GT: 160 is what kind of <b>&#8230;</b></a></li>
<li><a href="http://www.sooou.org.ru/22948.html">My alanine aminotransferase <b>ALT</b> exceeded, and how to come down <b>&#8230;</b></a></li>
<li><a href="http://www.pursenice.com/items/gucci-jockey-medium-tote-tab-snap-closure.html">Gucci Jockey Medium Tote &#8211; <b>Tab</b> Snap Closure / Brown Leather</a></li>
<li><a href="http://www.newsplate.com/world/middle-east/2010/05/09/lebanon-claims-latest-title-in-hummus-war/">Lebanon claims latest <b>title</b> in &#39;Hummus War&#39;</a></li>
<li><a href="http://www.microsoft-bingsearch.com/is-yahoo-losing-faith-in-the-search-argument-pandia/2010/05/09/">Is Yahoo! losing faith in the <b>search</b> argument? &#8211; Pandia <b>&#8230;</b></a></li>
</ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/restclient-update-status-twitter-expectation-failed/" title="แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (เมษายน 8, 2010)">แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้</a> (1)</li>
	<li><a href="http://www.together.in.th/cyberneko-groovy-java-encoding/" title="แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (เมษายน 29, 2010)">แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)</a> (0)</li>
	<li><a href="http://www.together.in.th/what-i-should-study-in-comsci-thammasat-1/" title="เลือกเรียนอะไรดี ComSci &#8211; Thammasat (ตอนที่  1) (เมษายน 29, 2010)">เลือกเรียนอะไรดี ComSci &#8211; Thammasat (ตอนที่  1)</a> (2)</li>
	<li><a href="http://www.together.in.th/%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86%e0%b8%81%e0%b8%b1%e0%b8%9a-github/" title="เริ่มต้นง่ายๆกับ GitHub (มิถุนายน 1, 2009)">เริ่มต้นง่ายๆกับ GitHub</a> (0)</li>
	<li><a href="http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/" title="เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (พฤษภาคม 4, 2010)">เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/grails-bash-completion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grails RunApp: : Error starting Sun&#8217;s native2ascii</title>
		<link>http://www.together.in.th/grails-runapp-error-starting-suns-native2ascii/</link>
		<comments>http://www.together.in.th/grails-runapp-error-starting-suns-native2ascii/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 13:35:59 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Gold]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1483</guid>
		<description><![CDATA[ปัญหา RunApp: : Error starting Sun&#8217;s native2ascii ตอนสั่ง $ grails run-app ปัญหาบน ubuntu natz@student:~/second$ ~/grails-1.2.1/bin/grails run-app Welcome to Grails 1.2.1 &#8211; http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /home/natz/grails-1.2.1 Base Directory: /home/natz/second Resolving dependencies&#8230; Dependencies resolved in 896ms. Running script /home/natz/grails-1.2.1/scripts/RunApp.groovy Environment set to development [copy] Copied 3 empty directories to [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<div id="_mcePaste">ปัญหา RunApp: : Error starting Sun&#8217;s native2ascii ตอนสั่ง $ grails run-app</div>
<div>ปัญหาบน ubuntu<span id="more-1483"></span></div>
<div>natz@student:~/second$<span style="color: #ff0000;"> </span><strong><span style="color: #ff0000;">~/grails-1.2.1/bin/grails run-app</span></strong></div>
<div id="_mcePaste" style="padding-left: 30px;">Welcome to Grails 1.2.1 &#8211; http://grails.org/</div>
<div id="_mcePaste" style="padding-left: 30px;">Licensed under Apache Standard License 2.0</div>
<div id="_mcePaste" style="padding-left: 30px;">Grails home is set to: /home/natz/grails-1.2.1</div>
<div id="_mcePaste" style="padding-left: 30px;">Base Directory: /home/natz/second</div>
<div id="_mcePaste" style="padding-left: 30px;">Resolving dependencies&#8230;</div>
<div id="_mcePaste" style="padding-left: 30px;">Dependencies resolved in 896ms.</div>
<div id="_mcePaste" style="padding-left: 30px;">Running script /home/natz/grails-1.2.1/scripts/RunApp.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a></div>
<div id="_mcePaste" style="padding-left: 30px;">Environment set to development</div>
<div id="_mcePaste" style="padding-left: 30px;">[copy] Copied 3 empty directories to 1 empty directory under /home/natz/.grails/1.2.1/projects/second/resources</div>
<div id="_mcePaste" style="padding-left: 30px;">[mkdir] Created dir: /home/natz/second/target/classes</div>
<div id="_mcePaste" style="padding-left: 30px;">[groovyc] Compiling 2 source files to /home/natz/second/target/classes</div>
<div id="_mcePaste" style="padding-left: 30px;">[groovyc] Compiling 7 source files to /home/natz/second/target/classes</div>
<div id="_mcePaste" style="padding-left: 30px;">[mkdir] Created dir: /home/natz/.grails/1.2.1/projects/second/resources/grails-app/i18n</div>
<div id="_mcePaste" style="padding-left: 30px;">[native2ascii] Converting 13 files from /home/natz/second/grails-app/i18n to /home/natz/.grails/1.2.1/projects/second/resources/grails-app/i18n</div>
<div id="_mcePaste" style="padding-left: 30px;">Error executing script RunApp: : Error starting Sun&#8217;s native2ascii:</div>
<div id="_mcePaste" style="padding-left: 30px;">gant.TargetExecutionException: : Error starting Sun&#8217;s native2ascii:</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant$_dispatch_closure4.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:331)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant$_dispatch_closure6.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:334)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant$_dispatch_closure6.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant.withBuildListeners(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:344)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant.this$2$withBuildListeners(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant.dispatch(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:334)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant.this$2$dispatch(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant.invokeMethod(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant.processTargets(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:495)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant.processTargets(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:480)</div>
<div id="_mcePaste" style="padding-left: 30px;">Caused by: : Error starting Sun&#8217;s native2ascii:</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:67)</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.convert(DefaultNative2Ascii.java:54)</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.apache.tools.ant.taskdefs.optional.Native2Ascii.convert(Native2Ascii.java:268)</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:227)</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.apache.tools.ant.Task.perform(Task.java:348)</div>
<div id="_mcePaste" style="padding-left: 30px;">at _GrailsPackage_groovy$_run_closure2_closure13.doCall(_GrailsPackage_groovy:110)</div>
<div id="_mcePaste" style="padding-left: 30px;">at _GrailsPackage_groovy$_run_closure2_closure13.doCall(_GrailsPackage_groovy)</div>
<div id="_mcePaste" style="padding-left: 30px;">at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:287)</div>
<div id="_mcePaste" style="padding-left: 30px;">at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)</div>
<div id="_mcePaste" style="padding-left: 30px;">at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:109)</div>
<div id="_mcePaste" style="padding-left: 30px;">at RunApp$_run_closure1.doCall(RunApp.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:28)</div>
<div id="_mcePaste" style="padding-left: 30px;">at gant.Gant$_dispatch_closure4.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:324)</div>
<div id="_mcePaste" style="padding-left: 30px;">&#8230; 10 more</div>
<div id="_mcePaste" style="padding-left: 30px;">Caused by: java.lang.ClassNotFoundException: sun.tools.native2ascii.Main</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.codehaus.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>.tools.RootLoader.findClass(RootLoader.java:156)</div>
<div id="_mcePaste" style="padding-left: 30px;">at java.lang.ClassLoader.loadClass(ClassLoader.java:307)</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.codehaus.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>.tools.RootLoader.loadClass(RootLoader.java:128)</div>
<div id="_mcePaste" style="padding-left: 30px;">at java.lang.ClassLoader.loadClass(ClassLoader.java:252)</div>
<div id="_mcePaste" style="padding-left: 30px;">at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)</div>
<div id="_mcePaste" style="padding-left: 30px;">at java.lang.Class.forName0(Native Method)</div>
<div id="_mcePaste" style="padding-left: 30px;">at java.lang.Class.forName(Class.java:169)</div>
<div id="_mcePaste" style="padding-left: 30px;">at org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:51)</div>
<div id="_mcePaste" style="padding-left: 30px;">&#8230; 22 more</div>
<div id="_mcePaste" style="padding-left: 30px;">Error executing script RunApp: : Error starting Sun&#8217;s native2ascii:</div>
<p style="padding-left: 30px;">natz@student:~/second$ ~/grails-1.2.1/bin/grails run-appWelcome to Grails 1.2.1 &#8211; http://grails.org/Licensed under Apache Standard License 2.0Grails home is set to: /home/natz/grails-1.2.1<br />
Base Directory: /home/natz/secondResolving dependencies&#8230;Dependencies resolved in 896ms.Running script /home/natz/grails-1.2.1/scripts/RunApp.groovyEnvironment set to development     [copy] Copied 3 empty directories to 1 empty directory under /home/natz/.grails/1.2.1/projects/second/resources    [mkdir] Created dir: /home/natz/second/target/classes  [groovyc] Compiling 2 source files to /home/natz/second/target/classes  [groovyc] Compiling 7 source files to /home/natz/second/target/classes    [mkdir] Created dir: /home/natz/.grails/1.2.1/projects/second/resources/grails-app/i18n[native2ascii] Converting 13 files from /home/natz/second/grails-app/i18n to /home/natz/.grails/1.2.1/projects/second/resources/grails-app/i18nError executing script RunApp: : Error starting Sun&#8217;s native2ascii: gant.TargetExecutionException: : Error starting Sun&#8217;s native2ascii: 	at gant.Gant$_dispatch_closure4.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:331)	at gant.Gant$_dispatch_closure6.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:334)	at gant.Gant$_dispatch_closure6.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)	at gant.Gant.withBuildListeners(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:344)	at gant.Gant.this$2$withBuildListeners(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)	at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)	at gant.Gant.dispatch(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:334)	at gant.Gant.this$2$dispatch(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)	at gant.Gant.invokeMethod(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>)	at gant.Gant.processTargets(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:495)	at gant.Gant.processTargets(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:480)Caused by: : Error starting Sun&#8217;s native2ascii: 	at org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:67)	at org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.convert(DefaultNative2Ascii.java:54)	at org.apache.tools.ant.taskdefs.optional.Native2Ascii.convert(Native2Ascii.java:268)	at org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:227)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at _GrailsPackage_groovy$_run_closure2_closure13.doCall(_GrailsPackage_groovy:110)	at _GrailsPackage_groovy$_run_closure2_closure13.doCall(_GrailsPackage_groovy)	at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:287)	at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)	at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:109)	at RunApp$_run_closure1.doCall(RunApp.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:28)	at gant.Gant$_dispatch_closure4.doCall(Gant.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>:324)	&#8230; 10 moreCaused by: java.lang.ClassNotFoundException: sun.tools.native2ascii.Main	at org.codehaus.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>.tools.RootLoader.findClass(RootLoader.java:156)	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)	at org.codehaus.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a>.tools.RootLoader.loadClass(RootLoader.java:128)	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)	at java.lang.Class.forName0(Native Method)	at java.lang.Class.forName(Class.java:169)	at org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:51)	&#8230; 22 moreError executing script RunApp: : Error starting Sun&#8217;s native2ascii:</p>
</blockquote>
<p>แก้ไขที่  <strong><span style="color: #ff0000;">grails-app/conf/Config.<a href="http://www.together.in.th/tag/groovy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Groovy">groovy</a></span></strong></p>
<blockquote><p>หาและแก้เป็น</p>
<p>// enabled native2ascii conversion of i18n properties files</p>
<p><span style="color: #0000ff;"><strong>grails.enable.native2ascii = <span style="color: #ff0000;">false</span></strong></span></p></blockquote>
<div>ก็จะรันได้แล้ว (เพราะแก้ที่ server ไม่ได้ก็ต้องแก้ขัดไปก่อน)</div>
<p><!--adsensestart--><!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li><a href="http://www.yosoybravo.com/learning-websites/learning-to-use-css-and-div-tags-for-columns-in-dreamweaver">» Learning to use CSS and <b>DIV</b> Tags for Columns in Dreamweaver</a></li>
<li><a href="http://www.hrbears.com/hrbears-online-computer-repair/155">….Finally <b>Do Call</b> a Computer Repair Person | HRbears Online <b>&#8230;</b></a></li>
<li><a href="http://www.frontiersofip.org/business-practices/4030">Business Practices » Local SEO</a></li>
<li><a href="http://www.fonearena.com/blog/16649/opera-mini-for-java-and-blackberry-gets-silent-update.html">Opera Mini for <b>Java</b> and Blackberry gets silent update</a></li>
<li><a href="http://www.balloon-juice.com/2010/05/04/closure/">Balloon Juice » Blog Archive » <b>Closure</b></a></li>
<li><a href="http://rkennke.wordpress.com/2010/05/09/subtleties-in-java-text-rendering/">Subtleties in <b>Java</b> text rendering « Roman Kennke&#39;s Blog</a></li>
<li><a href="http://onlyhardwareblog.com/?p=2464">Intermedia Joins <b>ASCII</b> Group&#39;s Solution Alliance Network</a></li>
<li><a href="http://htmlvideo.net/html-pro-series-tutorial-1-working-with-div-setting-up">HTML Pro Series Tutorial – #1 Working With <b>DIV</b> &amp; Setting Up | HTML <b>&#8230;</b></a></li>
<li><a href="http://yochicago.com/what-home-buyers-pay-for-union-labor/15102/">What <b>home</b> buyers pay for union labor</a></li>
<li><a href="http://www.watblog.com/2010/04/27/do-call-or-do-not-call-is-the-question/">&#39;<b>Do Call</b>&#39; OR &#39;Do Not Call&#39; – Is The Question? | WATBlog.com &#8211; Web <b>&#8230;</b></a></li>
<li><a href="http://www.shop2daily.com/?p=1161">Jewerly Dichroic art glass jewelry set, &#39;<b>Groovy</b> Ice Cubes&#39; 18.1? L <b>&#8230;</b></a></li>
<li><a href="http://www.pursenice.com/items/gucci-new-jackie-gold-bamboo-push-lock-closure-bag.html">Gucci New Jackie &#8211; Gold / Bamboo Push Lock <b>Closure</b> Light Brown Bag</a></li>
<li><a href="http://www.pursenice.com/items/gucci-jockey-medium-tote-tab-snap-closure.html">Gucci Jockey Medium Tote &#8211; Tab Snap <b>Closure</b> / Brown Leather</a></li>
<li><a href="http://www.news-insurances.com/do-call-it-a-bailout-frontpage-magazine/016799148"><b>Do Call</b> it a Bailout – FrontPage Magazine</a></li>
<li><a href="http://www.mashedarticles.com/data-management/how-do-call-centers-perform-data-processing/">How <b>Do Call</b> Centers Perform Data Processing?</a></li>
<li><a href="http://www.lawyersgunsmoneyblog.com/2010/05/ve-day-moscow-style">VE Day, Moscow <b>Style</b> : Lawyers, Guns &amp; Money</a></li>
<li><a href="http://www.jamesward.com/2010/05/07/flex-and-java-differences-getters-setters/">Flex and <b>Java</b> Differences: Getters &amp; Setters</a></li>
<li><a href="http://www.indiaprline.com/2010/05/09/arteriotomy-closure-devices-market-characterization/">Arteriotomy <b>Closure</b> Devices: Market Characterization | Online <b>&#8230;</b></a></li>
<li><a href="http://www.herfection.com/2010/04/pac-div-rollin/">Pac <b>Div</b> – Rollin&#39; :: h.e.r.</a></li>
<li><a href="http://www.googlepagerankings.com/chrome-wordpress-bug-mcepaste/">Chrome fails with WordPress: a way around the bug</a></li>
</ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/try-parse-json-using-groovy-java-netbeans/" title="[Google Maps Geocoding] ลอง Parse Json ด้วย Groovy + Java (Netbeans) (มกราคม 12, 2010)">[Google Maps Geocoding] ลอง Parse Json ด้วย Groovy + Java (Netbeans)</a> (2)</li>
	<li><a href="http://www.together.in.th/pramool-digger/" title="โปรขุดบอร์ดประมูล (มกราคม 8, 2009)">โปรขุดบอร์ดประมูล</a> (79)</li>
	<li><a href="http://www.together.in.th/restclient-update-status-twitter-expectation-failed/" title="แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (เมษายน 8, 2010)">แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้</a> (1)</li>
	<li><a href="http://www.together.in.th/cyberneko-groovy-java-encoding/" title="แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) (เมษายน 29, 2010)">แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)</a> (0)</li>
	<li><a href="http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/" title="เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (พฤษภาคม 4, 2010)">เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/grails-runapp-error-starting-suns-native2ascii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ลองถอดข้อมูลจาก JSON Format ด้วย Grails</title>
		<link>http://www.together.in.th/json-parse-with-grails/</link>
		<comments>http://www.together.in.th/json-parse-with-grails/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 12:07:13 +0000</pubDate>
		<dc:creator>Nat</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Action]]></category>
		<category><![CDATA[Address]]></category>
		<category><![CDATA[address lookup]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[thammasat]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1206</guid>
		<description><![CDATA[จากตอนที่แล้ว&#160;&#160; Reverse Geocoding (Address Lookup) ผ่าน http เรื่องวันนี้&#160; ! ให้สังเกตว่า &#160;เมื่อเรา Request ไปข้อข้อมูลของ Thammasat Rangsit เราจะได้ ข้อมูลหน้าตาประมาณนี้ { &#34;name&#34;: &#34;Thammasat Rangsit&#34;, &#34;Status&#34;: { &#34;code&#34;: 200, &#34;request&#34;: &#34;geocode&#34; }, &#34;Placemark&#34;: [ { &#34;id&#34;: &#34;p1&#34;, &#34;address&#34;: &#34;Thammasat Rangsit Sport Center, Khlong Nueng, Khlong Luang, Pathum Thani 12110, Thailand&#34;, &#34;AddressDetails&#34;: { &#34;Accuracy&#34; : 9, &#34;AddressLine&#34; : [ &#34;Thammasat [...]]]></description>
			<content:encoded><![CDATA[<p>จากตอนที่แล้ว&nbsp;&nbsp; <a href="http://www.together.in.th/reverse-geocoding-address-lookup-using-http/" rel="bookmark" title="Permanent Link to Reverse Geocoding (Address Lookup) ผ่าน http">Reverse Geocoding (Address Lookup) ผ่าน http</a></p>
<p>
	เรื่องวันนี้&nbsp; ! ให้สังเกตว่า</p>
<p>&nbsp;เมื่อเรา Request ไปข้อข้อมูลของ <a href="http://maps.google.com/maps/geo?q=Thammasat+Rangsit&amp;output=json&amp;sensor=false&amp;gl=th&amp;key=ABQIAAAAnGpifcTyPEhEhb5IwFOjbhQzGK7OP4Q3pl9UTFdBNJif2Gef4RR-EFDBL13et4wmQaxhqsIS4JBSOw">Thammasat Rangsit</a> เราจะได้ ข้อมูลหน้าตาประมาณนี้</p>
<blockquote><pre>{
  &quot;name&quot;: &quot;<a href="http://www.together.in.th/tag/thammasat/" class="st_tag internal_tag" rel="tag" title="Posts tagged with thammasat">Thammasat</a> Rangsit&quot;,
  &quot;Status&quot;: {
    &quot;code&quot;: 200,
    &quot;request&quot;: &quot;geocode&quot;
  },
  &quot;Placemark&quot;: [ {
    &quot;id&quot;: &quot;p1&quot;,
    &quot;<a href="http://www.together.in.th/tag/address/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Address">address</a>&quot;: &quot;<a href="http://www.together.in.th/tag/thammasat/" class="st_tag internal_tag" rel="tag" title="Posts tagged with thammasat">Thammasat</a> Rangsit Sport Center, Khlong Nueng, Khlong Luang, Pathum Thani 12110, Thailand&quot;,
    &quot;AddressDetails&quot;: {
   &quot;Accuracy&quot; : 9,
   &quot;AddressLine&quot; : [ &quot;<a href="http://www.together.in.th/tag/thammasat/" class="st_tag internal_tag" rel="tag" title="Posts tagged with thammasat">Thammasat</a> Rangsit Sport Center&quot; ]
},
    &quot;ExtendedData&quot;: {
      &quot;LatLonBox&quot;: {
        &quot;north&quot;: 14.0785781,
        &quot;south&quot;: 14.0569314,
        &quot;east&quot;: 100.6173654,
        &quot;west&quot;: 100.5853506
      }</pre>
<p><span id="more-1206"></span>
<pre>    },
    &quot;Point&quot;: {
      &quot;coordinates&quot;: [ 100.6013580, 14.0677550, 0 ]
    }
  }, {
    &quot;id&quot;: &quot;p2&quot;,
    &quot;<a href="http://www.together.in.th/tag/address/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Address">address</a>&quot;: &quot;<a href="http://www.together.in.th/tag/thammasat/" class="st_tag internal_tag" rel="tag" title="Posts tagged with thammasat">Thammasat</a> Rangsit Sport Center, Khlong Nueng, Khlong Luang, Pathum Thani 12110, Thailand&quot;,
    &quot;AddressDetails&quot;: {
   &quot;Accuracy&quot; : 9,
   &quot;Country&quot; : {
      &quot;AdministrativeArea&quot; : {
         &quot;AdministrativeAreaName&quot; : &quot;Pathum Thani&quot;,
         &quot;Locality&quot; : {
            &quot;AddressLine&quot; : [ &quot;<a href="http://www.together.in.th/tag/thammasat/" class="st_tag internal_tag" rel="tag" title="Posts tagged with thammasat">Thammasat</a> Rangsit Sport Center&quot; ],
            &quot;LocalityName&quot; : &quot;Khlong Nueng&quot;,
            &quot;PostalCode&quot; : {
               &quot;PostalCodeNumber&quot; : &quot;12110&quot;
            }
         }
      },
      &quot;CountryName&quot; : &quot;Thailand&quot;,
      &quot;CountryNameCode&quot; : &quot;TH&quot;
   }
},
    &quot;ExtendedData&quot;: {
      &quot;LatLonBox&quot;: {
        &quot;north&quot;: 14.0702524,
        &quot;south&quot;: 14.0639572,
        &quot;east&quot;: 100.6053812,
        &quot;west&quot;: 100.5990860
      }
    },
    &quot;Point&quot;: {
      &quot;coordinates&quot;: [ 100.6022336, 14.0671048, 0 ]
    }
  } ]
}
<a href="http://www.together.in.th/wp-content/uploads/2010/01/Picture-3.png" rel="lightbox[1206]">
</a></pre>
</blockquote>
<p>ลองดูดีๆ เราจะเห็นว่า&nbsp; output ที่ google ตอบกลับมามันมีรูปแบบ&nbsp;&nbsp; !</p>
<p>ซึ่งข้อมูลแบบนี้เค้าเรียกว่า JSON</p>
<p>เมื่อลองดูที่ข้อมูล จะเห็นว่า เรามี&nbsp; <strong>&quot;id&quot;: &quot;p2&quot; กับ &quot;id&quot;: &quot;p1&quot;&nbsp; (มี field id เหมือนกัน )</strong></p>
<p>นั่นก็แปลว่าเรามีข้อมูลสอง Record หรือ สอง Tuple (ให้นึกถึง Database มีฟิลด์เหมือนกัน แต่ข้อมูลต่างกัน)</p>
<p>
	&nbsp;</p>
<p>เมื่อพูดถึงการ Request แบบปกติไปแล้ว (เข้าผ่าน Browser)</p>
<p>&nbsp;</p>
<p>คราวนี้ลองเขียน Grails ให้่ไป Request ข้อมูลมาหน่อย&nbsp;&nbsp; ซึ่งก็ทำได้โคตรง่ายดังนี้</p>
<ol>
<li>create controller ขึ้นมาตัวนึง (สั่ง $ grails create-controller Test)</li>
<li>&nbsp;import grails.converters.*;</li>
<li>เขียน Code ใน <a href="http://www.together.in.th/tag/action/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Action">action</a> ได้เลย !</li>
</ol>
<p>ซึ่่งมันจะได้ code แบบนี้</p>
<blockquote>
<p>import grails.converters.*;</p>
<p>class TestController {</p>
<p>		&nbsp;&nbsp;&nbsp; def index = { <br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; def url = new URL(&quot;<a href="http://maps.google.com/maps/geo?q=Thammasat+Rangsit&amp;output=json&amp;sensor=false&amp;gl=th&amp;key=ABQIAAAAnGpifcTyPEhEhb5IwFOjbhQzGK7OP4Q3pl9UTFdBNJif2Gef4RR-EFDBL13et4wmQaxhqsIS4JBSOw">http://maps.google.com/maps/geo?q=Thammasat+Rangsit&amp;output=json&amp;sensor=false&amp;gl=th</a>&quot;)<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; def response = JSON.parse(url.newReader())<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // response is an instance of JSONObject (see Grails API docs)<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; println response.toString(3) // Pretty-printed output&nbsp;&nbsp;&nbsp; <br />
		&nbsp;&nbsp;&nbsp; }<br />
		}<br />
		&nbsp;</p>
</blockquote>
<p>จากนั้นเราลองเรียกไปที่ Test Controller , <a href="http://www.together.in.th/tag/action/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Action">action</a> index ( http://cstis.selfip.com:8080/yourapp/test/index )</p>
<p>ดูที่ shell เราจะได้ output มาประมาณนี้</p>
<pre><a href="http://www.together.in.th/wp-content/uploads/2010/01/Picture-3.png" rel="lightbox[1206]"><img alt="" class="alignleft size-full wp-image-1228" src="http://www.together.in.th/wp-content/uploads/2010/01/Picture-3.png" style="width: 386px; height: 326px;" title="Picture 3" /></a>

โอ้ว Output เหมือนกันเด๊ะ
</pre>
<p>&nbsp;</p>
<p>ปัญหาต่อไปก็คือ เราจะไปดึงค่าในนั้นออกมาใช้ยังไงล่ะ ?</p>
<p>ลองรัน Code นี้ดู</p>
<blockquote>
<p>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; response.each { key, value -&gt;<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; println &quot;key -&gt; &quot;+ key<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /*println &quot;$key := $value &quot;*/<br />
		&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</p>
</blockquote>
<p>จะเห็นว่า เราได้&nbsp; Key มา 3 อัน คือ</p>
<blockquote>
<p>key -&gt; Status<br />
		key -&gt; name<br />
		key -&gt; Placemark<br />
		&nbsp;</p>
</blockquote>
<p>ถ้าอยากรู้ว่ามันเก็บอะไร ก็ลอง print $value ดู</p>
<p>คราวนี้ ใช้งานจริง !</p>
<p>ถ้าเราสนใจพิกัดก็มองไป ตรง</p>
<pre>    &quot;Point&quot;: {
      &quot;coordinates&quot;: [ 100.6022336, 14.0671048, 0 ]
    }
</pre>
<p>จะเห็นว่ามันอยู่ใต้ Placemark เราสามารถเข้าถึงมันได้ โดย code</p>
<blockquote>
<p>render response.Placemark.Point.coordinates</p>
</blockquote>
<p>
	เมื่อลองรันดู จะได้ [[100.601358, 14.067755, 0], [100.6022336, 14.0671048, 0]]&nbsp; ( 2 Records )</p>
<p><a href="http://www.together.in.th/wp-content/uploads/2010/01/Picture-4.png" rel="lightbox[1206]"><img alt="" class="alignleft size-full wp-image-1236" src="http://www.together.in.th/wp-content/uploads/2010/01/Picture-4.png" style="width: 416px; height: 337px;" title="Picture 4" /></a></p>
<p>&nbsp;</p>
<p>code จาก <a href="http://stackoverflow.com/questions/1323758/json-in-groovy-grails">http://stackoverflow.com/questions/1323758/json-in-groovy-grails</a></p>
<p><!--adsensestart--></p>
<p><!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li><a href="http://www.plazamore.com/automotive/aries-202007-black-side-step-bar/">Aries 202007 Black Side Step Bar | <b>Center</b> Bestsellers cheaper from <b>&#8230;</b></a></li>
<li><a href="http://www.kerrinhardy.com/2010/05/09/change-the-search-header-in-zen-cart/">Change the Search Header in Zen Cart | kerrinhardy.com</a></li>
<li><a href="http://www.globalcrisis.org.uk/?p=157">Investment information including spread betting.</a></li>
<li><a href="http://www.22lcdmonitor.info/cheap-22-quot-lcd-monitor/">Cheap 22 <b>Quot</b> Lcd Monitor</a></li>
<li><a href="http://wwmm.ch.cam.ac.uk/blogs/murrayrust/?p=2364">Unilever Centre for Molecular Informatics, Cambridge &#8211; My <b>&#8230;</b></a></li>
<li><a href="http://woodsrecruiting.com/2010/05/09/bay-area-local-scoreboard-for-may-9/">Woods Recruiting › Bay Area local scoreboard for May 9</a></li>
<li><a href="http://sport-and-health-club.blogrica.com/health-and-wellness-industry-hot-hot-hot.html">Health and Wellness Industry &#8211; Hot Hot Hot | <b>sport</b> and health club</a></li>
<li><a href="http://sport-and-health-club.blogrica.com/great-things-to-do-in-fort-lauderdale.html">Great Things To Do In Fort Lauderdale | <b>sport</b> and health club</a></li>
<li><a href="http://sonnd.com/2010/05/02/balkanizing-the-web/">Sonnd › &lt;a <b>href</b>=&quot;http://www.mondaynote.com/2010/05/02/balkanizing <b>&#8230;</b></a></li>
<li><a href="http://nicebookmark.net/news-feed/gizmodo/opera-finds-flash-unappetizing-for-web-video-blockquote.htm">Opera Finds Flash Unappetizing For Web Video [<b>Blockquote</b>] | Gadget <b>&#8230;</b></a></li>
<li><a href="http://createbacklinks.info/gadgets/opera-finds-flash-unappetizing-for-web-video-blockquote">Opera Finds Flash Unappetizing For Web Video [<b>Blockquote</b>]</a></li>
<li><a href="http://blog.traitimyenbai.net/householdactivities/2010/05/03/power-one-size-312-zinc-air-hearing-aid-batteries-60-batteries/">Household Activities » Blog Archive » Power One Size 312 Zinc Air <b>&#8230;</b></a></li>
<li><a href="http://alexanderduell.punter2punter.com/2010/05/08/the-14-october-1973-uprising-dying-for-a-cause/">The 14 October 1973 Uprising – Dying for a Cause « Alexander Duell</a></li>
<li><a href="http://www.thmnews.com/thammasat-university-opens-window-to-australia.html"><b>THAMMASAT</b> UNIVERSITY OPENS WINDOW TO AUSTRALIA</a></li>
<li><a href="http://www.thegreenchildren.org/tgcf/foundationpress/2010/04/social-entrepreneurship-talks-thammasat-mba-pt1/">Social Entrepreneurship Talks &#8211; <b>Thammasat</b> MBA Pt.1</a></li>
<li><a href="http://www.thainy.com/2010/04/thammasat-university-opens-window-to-australia-2/">Thainy – Thailand Blog » <b>THAMMASAT</b> UNIVERSITY OPENS WINDOW TO <b>&#8230;</b></a></li>
<li><a href="http://www.tech-chic.com/technology/opera-finds-flash-unappetizing-for-web-video-blockquote.html">Opera Finds Flash Unappetizing For Web Video [<b>Blockquote</b> <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/what-is-the-difference-between-href-and-src-links/">What is the difference between <b>HREF</b> and SRC links? « TagFocus.com</a></li>
<li><a href="http://www.siamerican.com/moving-to-rangsit-new-job-after-next-month/">Moving to <b>Rangsit</b> for New Job after next month</a></li>
<li><a href="http://www.ritholtz.com/blog/2010/05/the-center-cannot-hold/">The <b>Center</b> Cannot Hold | The Big Picture</a></li>
</ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/reverse-geocoding-address-lookup-using-http/" title="Reverse Geocoding (Address Lookup) ผ่าน http (มกราคม 9, 2010)">Reverse Geocoding (Address Lookup) ผ่าน http</a> (1)</li>
	<li><a href="http://www.together.in.th/geolocation-api-geocoding-location-aware/" title="เทคโนโลยีด้านการระบุตำแหน่งของผู้ส่งข้อมูล (ใช้ Geolocation API ) (มกราคม 9, 2010)">เทคโนโลยีด้านการระบุตำแหน่งของผู้ส่งข้อมูล (ใช้ Geolocation API )</a> (0)</li>
	<li><a href="http://www.together.in.th/hack-disabled-form-html/" title="วิธี Hack ข้อมูลใน​ form (html) ที่ถูก readonly/disable ไว้ (มีนาคม 21, 2010)">วิธี Hack ข้อมูลใน​ form (html) ที่ถูก readonly/disable ไว้</a> (2)</li>
	<li><a href="http://www.together.in.th/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%9a%e0%b9%89%e0%b8%b2%e0%b8%99-selected-topic-in-netcentric-152/" title="การบ้าน Selected Topic In Netcentric (1/52) (มีนาคม 21, 2010)">การบ้าน Selected Topic In Netcentric (1/52)</a> (0)</li>
	<li><a href="http://www.together.in.th/try-parse-json-using-groovy-java-netbeans/" title="[Google Maps Geocoding] ลอง Parse Json ด้วย Groovy + Java (Netbeans) (มกราคม 12, 2010)">[Google Maps Geocoding] ลอง Parse Json ด้วย Groovy + Java (Netbeans)</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/json-parse-with-grails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sort List ใน views ที่มาจาก Relation แบบ hasMany ใน grails</title>
		<link>http://www.together.in.th/sort-list-%e0%b9%83%e0%b8%99-views-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%a1%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-relation-%e0%b9%81%e0%b8%9a%e0%b8%9a-hasmany-%e0%b9%83%e0%b8%99-grails/</link>
		<comments>http://www.together.in.th/sort-list-%e0%b9%83%e0%b8%99-views-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%a1%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-relation-%e0%b9%81%e0%b8%9a%e0%b8%9a-hasmany-%e0%b9%83%e0%b8%99-grails/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 05:08:54 +0000</pubDate>
		<dc:creator>NAzT</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Advance]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[handleError]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1138</guid>
		<description><![CDATA[&#62; ไม่ Blog ยาว ขอสั้นๆ มี Domain แบบนี้ package com.nazt &#160; class Experiment { static hasMany = [data:DataKeeper] &#160; String name = &#39;[Experiment #]&#39; Integer total Date dateCreated Date lastUpdated static constraints = { name(unique:true) } String toString() { name } } code เดิมๆ ใน views มันเป็นแบบนี้ &#60;g:each in=&#8221;${experimentInstance.data}&#8221; var=&#8221;d&#8221;&#62; ก็แก้ให้มันเป็นแบบนี้ &#60;g:each in=&#8221;${experimentInstance.data.sort { it.id [...]]]></description>
			<content:encoded><![CDATA[<p>&gt;</p>
<p>ไม่ Blog ยาว ขอสั้นๆ</p>
<p>มี Domain แบบนี้</p>
<div class="wp_syntax">
<div class="code">
<pre class="groovy" style="font-family: monospace;"><span style="color: rgb(0, 0, 0); font-weight: bold;">package</span> <span style="color: rgb(161, 161, 0);">com.nazt</span>
&nbsp;
<span style="color: rgb(0, 0, 0); font-weight: bold;">class</span> Experiment <span style="color: rgb(102, 204, 102);">{</span>
	<span style="color: rgb(0, 0, 0); font-weight: bold;">static</span> hasMany <span style="color: rgb(102, 204, 102);">=</span> <span style="color: rgb(102, 204, 102);">[</span>data:DataKeeper<span style="color: rgb(102, 204, 102);">]</span>
&nbsp;
	<span style="color: rgb(170, 170, 221); font-weight: bold;">String</span> name <span style="color: rgb(102, 204, 102);">=</span> <span style="color: rgb(255, 0, 0);">&#39;[Experiment #]&#39;</span>
	<span style="color: rgb(170, 170, 221); font-weight: bold;">Integer</span> total
	<span style="color: rgb(170, 170, 221); font-weight: bold;">Date</span> dateCreated
	<span style="color: rgb(170, 170, 221); font-weight: bold;">Date</span> lastUpdated
    <span style="color: rgb(0, 0, 0); font-weight: bold;">static</span> constraints <span style="color: rgb(102, 204, 102);">=</span> <span style="color: rgb(102, 204, 102);">{</span>
		name<span style="color: rgb(102, 204, 102);">(</span>unique:<span style="color: rgb(0, 0, 0); font-weight: bold;">true</span><span style="color: rgb(102, 204, 102);">)</span>
    <span style="color: rgb(102, 204, 102);">}</span>
	<span style="color: rgb(170, 170, 221); font-weight: bold;">String</span> toString<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span>
	<span style="color: rgb(102, 204, 102);">{</span>
		name
	<span style="color: rgb(102, 204, 102);">}</span>
<span style="color: rgb(102, 204, 102);">}</span></pre>
</div>
</div>
<p>code เดิมๆ ใน views มันเป็นแบบนี้</p>
<blockquote>
<p>&lt;g:each in=&rdquo;${experimentInstance.data}&rdquo; var=&rdquo;d&rdquo;&gt;</p>
</blockquote>
<p>ก็แก้ให้มันเป็นแบบนี้<span id="more-1138"></span></p>
<blockquote>
<p>&lt;g:each in=&rdquo;${experimentInstance.data.<a class="st_tag internal_tag" href="http://www.together.in.th/tag/sort/" rel="tag" title="Posts tagged with sort">sort</a> { it.id } }&rdquo; var=&rdquo;d&rdquo;&gt;</p>
</blockquote>
<p>ก็เลยได้แบบนี้</p>
<p>	<img alt="Picture 2" class="aligncenter size-full wp-image-1324" height="773" src="http://www.together.in.th/wp-content/uploads/2009/12/Picture-2.png" title="Picture 2" width="359" /></p>
<div style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-8351886965317352";
google_alternate_color = "FFFFFF";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "";
google_color_link = "";
google_color_bg = "";
google_color_text = "";
google_color_url = "";
//--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script><script src="http://pagead2.googlesyndication.com/pagead/expansion_embed.js"></script><script src="http://googleads.g.doubleclick.net/pagead/test_domain.js"></script><script>google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);</script><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 250px; position: relative; visibility: visible; width: 250px;"><iframe allowtransparency="true" frameborder="0" height="250" hspace="0" id="google_ads_frame1" marginheight="0" marginwidth="0" name="google_ads_frame" scrolling="no" src="http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8351886965317352&amp;format=250x250_as&amp;output=html&amp;h=250&amp;w=250&amp;lmt=1262878586&amp;ad_type=text_image&amp;alt_color=FFFFFF&amp;flash=10.0.22&amp;url=http%3A%2F%2F74.125.95.132%2Fsearch%3Fq%3Dcache%3ASlbhOxQnEkwJ%3Awww.together.in.th%2Fsort-data-in-views-from-hasmany-relation-grails%2F%2Bgrails%2Bsite%3Atogether.in.th%26cd%3D4%26hl%3Dth%26ct%3Dclnk%26gl%3Dth%26client%3Dfirefox-a&amp;dt=1262878586999&amp;correlator=1262878587013&amp;frm=0&amp;ga_vid=1926033552.1262878587&amp;ga_sid=1262878587&amp;ga_hid=1999009915&amp;ga_fc=0&amp;u_tz=420&amp;u_his=1&amp;u_java=1&amp;u_h=1080&amp;u_w=1920&amp;u_ah=1076&amp;u_aw=1920&amp;u_cd=24&amp;u_nplug=11&amp;u_nmime=118&amp;biw=1620&amp;bih=822&amp;ref=http%3A%2F%2Fwww.google.co.th%2Fsearch%3Fhl%3Dth%26safe%3Doff%26client%3Dfirefox-a%26rls%3Dorg.mozilla%253Aen-US%253Aofficial%26hs%3DMGa%26num%3D50%26q%3Dgrails%2B%2B%2Bsite%253Atogether.in.th%26btnG%3D%25E0%25B8%2584%25E0%25B9%2589%25E0%25B8%2599%25E0%25B8%25AB%25E0%25B8%25B2%26meta%3D%26aq%3Df%26oq%3D&amp;fu=0&amp;ifi=1&amp;dtd=276&amp;xpc=2RrlI0Rjtg&amp;p=http%3A//74.125.95.132" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" width="250"></iframe></ins></div>
<p>&nbsp;</p>
<p>Tags: <a href="http://www.together.in.th/tag/grails/" rel="tag">grails</a>, <a href="http://www.together.in.th/tag/hasmany/" rel="tag">hasmany</a>, <a href="http://www.together.in.th/tag/sort/" rel="tag">sort</a></p>
<p><!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li><a href="http://www.yosoybravo.com/learning-websites/learning-to-use-css-and-div-tags-for-columns-in-dreamweaver">» Learning to use CSS and <b>DIV</b> Tags for Columns in Dreamweaver</a></li>
<li><a href="http://www.resourceshelf.com/2010/05/09/privacy-a-setback-for-google/">Privacy — A Setback for <b>Google</b>? « ResourceShelf</a></li>
<li><a href="http://thoughcowardsflinch.com/2010/05/09/sheer-class-1-how-the-labour-party-won-the-election/">Sheer <b>class</b> (1): how the Labour party won the election « Though <b>&#8230;</b></a></li>
<li><a href="http://htmlvideo.net/html-pro-series-tutorial-1-working-with-div-setting-up">HTML Pro Series Tutorial – #1 Working With <b>DIV</b> &amp; Setting Up | HTML <b>&#8230;</b></a></li>
<li><a href="http://geeksonsteroids.us/1000/advance-band-div-coding-video-2/">Advance band <b>div</b> coding video 2 | geeksonsteroids.us</a></li>
<li><a href="http://blog.xkcd.com/2010/05/03/color-survey-results/"><b>Color</b> Survey Results « xkcd</a></li>
<li><a href="http://www.yourseniormagazine.com/senior-magazine-advancements-glaucoma-treatments-courtesy-rgb-eye-associates/">SENIOR Magazine, <b>RGB</b> Eye Associates, Glaucoma Treatments | Senior <b>&#8230;</b></a></li>
<li><a href="http://www.xforce.ws/2010/05/elizabeth-warren-death-of-the-middle-class/">Elizabeth Warren: Death of the Middle <b>Class</b> » Tarp, Bear, Brothers <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/tag-ladies-watch-class-on-every-occasion-now-affordable-for-you-introducing-a-chic-diamond-f1/"><b>Tag</b> Ladies Watch – Class On Every Occasion Now Affordable For You <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/on-page-optimization-step-2-meta-tag-optimization/">On-Page Optimization: Step 2 ? Meta <b>Tag</b> Optimization « TagFocus.com</a></li>
<li><a href="http://www.tagfocus.com/tag-formula-1-watches-discover-how-you-can-afford-to-own-a-piece-of-history-style-and-quality/"><b>Tag</b> Formula 1 Watches – Discover How You Can Afford To Own A Piece <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/buy-luxury-tag-heuer-watches-and-be-a-rich-man-without-paying-more/">Buy Luxury <b>Tag</b> Heuer Watches and Be a Rich Man without Paying More <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/can-i-cancel-a-zune-tag/">Can i cancel a zune <b>tag</b>? « TagFocus.com</a></li>
<li><a href="http://www.tagfocus.com/the-convenience-of-a-single-dog-tag/">The Convenience of A Single Dog <b>Tag</b> « TagFocus.com</a></li>
<li><a href="http://www.screenwritingbasics.com/2010/05/i-am-thinking-about-writing-a-movie-script-tell-me-what-you-think-of-these-plot-premises/">I am thinking about writing a movie <b>script</b>. Tell me what you think <b>&#8230;</b></a></li>
<li><a href="http://www.sciencemagnews.com/drug-that-extends-life-span-prevents-alzheimers-deficits.html">Drug That Extends Life <b>Span</b> Prevents Alzheimer&#39;s Deficits | www <b>&#8230;</b></a></li>
<li><a href="http://www.rgbpicture.com/what-is-wrong-on-the-photo">What Is Wrong On The Photo &#8211; <b>RGB</b> Picture</a></li>
<li><a href="http://www.newsrealblog.com/2010/05/08/left-creates-new-class-of-victims-illegal-aliens-while-real-victims-are-smeared-as-racists/">Left Creates New <b>Class</b> of Victims, Illegal Aliens, While Real <b>&#8230;</b></a></li>
<li><a href="http://www.mentalfloss.com/blogs/archives/55101">mental_floss Blog » Amazing <b>Color</b> Photos from WWI</a></li>
<li><a href="http://www.lawyersgunsmoneyblog.com/2010/05/ve-day-moscow-style">VE Day, Moscow <b>Style</b> : Lawyers, Guns &amp; Money</a></li>
</ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/cache-grails-project-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b8%94%e0%b8%84%e0%b8%b3%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ja/" title="[cache] Grails Project : การตัดคำภาษาไทย(ด้วย Java) และประมวลผลด้วย Grails (มกราคม 8, 2010)">[cache] Grails Project : การตัดคำภาษาไทย(ด้วย Java) และประมวลผลด้วย Grails</a> (1)</li>
	<li><a href="http://www.together.in.th/cache-grails-meeting-day-1-opendream/" title="[cache] Grails meeting day 1 @ opendream (มกราคม 8, 2010)">[cache] Grails meeting day 1 @ opendream</a> (0)</li>
	<li><a href="http://www.together.in.th/cache-mini-review-movie-%e2%80%93-up-2009-%e0%b8%ad%e0%b8%b1%e0%b8%9e-%e0%b8%9b%e0%b8%b9%e0%b9%88%e0%b8%8b%e0%b9%88%e0%b8%b2%e0%b8%9a%e0%b9%89%e0%b8%b2%e0%b8%9e%e0%b8%a5%e0%b8%b1%e0%b8%87/" title="(cache) [mini Review] Movie – Up 2009 ( อัพ ปู่ซ่าบ้าพลัง ) (มกราคม 8, 2010)">(cache) [mini Review] Movie – Up 2009 ( อัพ ปู่ซ่าบ้าพลัง )</a> (0)</li>
	<li><a href="http://www.together.in.th/pramool-digger/" title="โปรขุดบอร์ดประมูล (มกราคม 8, 2009)">โปรขุดบอร์ดประมูล</a> (79)</li>
	<li><a href="http://www.together.in.th/restclient-update-status-twitter-expectation-failed/" title="แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้ (เมษายน 8, 2010)">แก้ปัญหา RESTClient ยิงไป update.xml ไม่ได้</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/sort-list-%e0%b9%83%e0%b8%99-views-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%a1%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-relation-%e0%b9%81%e0%b8%9a%e0%b8%9a-hasmany-%e0%b9%83%e0%b8%99-grails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cache] Grails Project : การตัดคำภาษาไทย(ด้วย Java) และประมวลผลด้วย Grails</title>
		<link>http://www.together.in.th/cache-grails-project-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b8%94%e0%b8%84%e0%b8%b3%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ja/</link>
		<comments>http://www.together.in.th/cache-grails-project-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b8%94%e0%b8%84%e0%b8%b3%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ja/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 04:58:28 +0000</pubDate>
		<dc:creator>NAzT</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Advance]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[handleError]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[ตัดคำ]]></category>
		<category><![CDATA[ตัดคำภาษาไทย]]></category>
		<category><![CDATA[ตัดคำไทย]]></category>

		<guid isPermaLink="false">http://www.together.in.th/?p=1143</guid>
		<description><![CDATA[&#160; ครึกครื้นอยากเขียน &#8230; พอดีได้โจทย์ซึ่งเป็น Senior Project ของเพื่อน แต่ว่าอยากทำเลยเอามาลองเสียหน่อย (ฝึกเขียน grails ด้วยการทำ โจทย์) &#160; ได้ความรู้ + ประสบการณ์ มากเลยทีเดียว เพราะว่า เพิ่งเริ่มจับ grails แล้วทำงานแบบเป็นชิ้นเป็นอัน ครั้งนี้ก็ครั้งแรก&#160; &#160; แต่ก่อนหน้านี้มีใช้ grails + xfire ในการทำ project วิชา SOAp ก็เรียบร้อยไป (แต่ &#160;client ใช้ nusoap + codeigniter) เล่นกันทีเดียวคุ้ม google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad); อ่ะ เข้าเรื่อง จะเขียนเรื่อง ตัดคำโดยใช้ Java &#160;ก่อน&#160; &#160; การตัดคำไทยด้วยโค๊ดภาษา Java นั้นผมใช้ LexTo&#160; (แปลเป็นไทยว่า : [...]]]></description>
			<content:encoded><![CDATA[<h1>&nbsp;</h1>
<div style="font-family: Arial,Verdana,sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255);">
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">ครึกครื้นอยากเขียน &hellip;<br />
		</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">พอดีได้โจทย์ซึ่งเป็น Senior <a href="http://www.together.in.th/tag/project/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Project">Project</a> ของเพื่อน แต่ว่าอยากทำเลยเอามาลองเสียหน่อย </span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">(ฝึกเขียน <a class="st_tag internal_tag" href="http://www.together.in.th/tag/grails/" rel="tag" title="Posts tagged with grails">grails</a> ด้วยการทำ โจทย์)</span></p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">ได้ความรู้ + ประสบการณ์ มากเลยทีเดียว เพราะว่า </span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">เพิ่งเริ่มจับ <a class="st_tag internal_tag" href="http://www.together.in.th/tag/grails/" rel="tag" title="Posts tagged with grails">grails</a> แล้วทำงานแบบเป็นชิ้นเป็นอัน ครั้งนี้ก็ครั้งแรก&nbsp;</span></p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">แต่ก่อนหน้านี้มีใช้ <a class="st_tag internal_tag" href="http://www.together.in.th/tag/grails/" rel="tag" title="Posts tagged with grails">grails</a> + xfire ในการทำ <a href="http://www.together.in.th/tag/project/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Project">project</a> วิชา SOAp ก็เรียบร้อยไป </span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">(แต่ &nbsp;client ใช้ nusoap + codeigniter) เล่นกันทีเดียวคุ้ม<span id="more-1143"></span></span></p>
<div style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-8351886965317352";
google_alternate_color = "FFFFFF";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "";
google_color_link = "";
google_color_bg = "";
google_color_text = "";
google_color_url = "";
//--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script><script src="http://pagead2.googlesyndication.com/pagead/expansion_embed.js"></script><script src="http://googleads.g.doubleclick.net/pagead/test_domain.js"></script><script>google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);</script><ins style="border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 250px; position: relative; visibility: visible; width: 250px;"><iframe allowtransparency="true" frameborder="0" height="250" hspace="0" id="google_ads_frame1" marginheight="0" marginwidth="0" name="google_ads_frame" scrolling="no" src="http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-8351886965317352&amp;format=250x250_as&amp;output=html&amp;h=250&amp;w=250&amp;lmt=1262878655&amp;ad_type=text_image&amp;alt_color=FFFFFF&amp;flash=10.0.22&amp;url=http%3A%2F%2F74.125.95.132%2Fsearch%3Fq%3Dcache%3AYvbHGFfq3KYJ%3Awww.together.in.th%2Fgrails-project-%25E0%25B8%2581%25E0%25B8%25B2%25E0%25B8%25A3%25E0%25B8%2595%25E0%25B8%25B1%25E0%25B8%2594%25E0%25B8%2584%25E0%25B8%25B3%25E0%25B8%25A0%25E0%25B8%25B2%25E0%25B8%25A9%25E0%25B8%25B2%25E0%25B9%2584%25E0%25B8%2597%25E0%25B8%25A2%25E0%25B8%2594%25E0%25B9%2589%25E0%25B8%25A7%25E0%25B8%25A2-java%2F%2Bgrails%2B%25E0%25B8%2595%25E0%25B8%25B1%25E0%25B8%2594%25E0%25B8%2584%25E0%25B8%25B3%2Bsite%3Atogether.in.th%26cd%3D1%26hl%3Dth%26ct%3Dclnk%26gl%3Dth%26client%3Dfirefox-a&amp;dt=1262878655858&amp;correlator=1262878655878&amp;frm=0&amp;ga_vid=1926033552.1262878587&amp;ga_sid=1262878587&amp;ga_hid=2047184094&amp;ga_fc=1&amp;u_tz=420&amp;u_his=1&amp;u_java=1&amp;u_h=1080&amp;u_w=1920&amp;u_ah=1076&amp;u_aw=1920&amp;u_cd=24&amp;u_nplug=11&amp;u_nmime=118&amp;biw=1620&amp;bih=822&amp;ref=http%3A%2F%2Fwww.google.co.th%2Fsearch%3Fhl%3Dth%26safe%3Doff%26client%3Dfirefox-a%26rls%3Dorg.mozilla%253Aen-US%253Aofficial%26hs%3DWbF%26num%3D50%26q%3Dgrails%2B%25E0%25B8%2595%25E0%25B8%25B1%25E0%25B8%2594%25E0%25B8%2584%25E0%25B8%25B3%2Bsite%253Atogether.in.th%26btnG%3D%25E0%25B8%2584%25E0%25B9%2589%25E0%25B8%2599%25E0%25B8%25AB%25E0%25B8%25B2%26meta%3D%26aq%3Df%26oq%3D&amp;fu=0&amp;ifi=1&amp;dtd=190&amp;xpc=6fDxJD0dtr&amp;p=http%3A//74.125.95.132" style="left: 0pt; position: absolute; top: 0pt;" vspace="0" width="250"></iframe></ins></div>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;"><br />
		</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">อ่ะ เข้าเรื่อง จะเขียนเรื่อง ตัดคำโดยใช้ <a class="st_tag internal_tag" href="http://www.together.in.th/tag/java/" rel="tag" title="Posts tagged with java">Java</a> &nbsp;ก่อน&nbsp;</span></p>
<p>&nbsp;</p>
<p><!--more--><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;"><br />
		</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">การตัดคำไทยด้วยโค๊ดภาษา <a class="st_tag internal_tag" href="http://www.together.in.th/tag/java/" rel="tag" title="Posts tagged with java">Java</a> นั้นผมใช้ <a class="st_tag internal_tag" href="http://www.together.in.th/tag/lexto/" rel="tag" title="Posts tagged with lexto">LexTo</a>&nbsp; (แปลเป็นไทยว่า : เรื่องการตัดคำผมใช้ <a class="st_tag internal_tag" href="http://www.together.in.th/tag/java/" rel="tag" title="Posts tagged with java">Java</a> ทำครับ)<br />
		</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">(src code ได้มาจากเพื่อนที่ทำ <a href="http://www.together.in.th/tag/project/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Project">Project</a> นี้โดยตรง ซึ่งน่าจะไปเอามาจาก ดร.ชูชาติ หฤไชยะศักดิ์ อีกที)</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">ซึ่งผมก็ดัดแปลงแก้ไขมันนิดหน่อยเพื่อเอาไปใช้ใน <a class="st_tag internal_tag" href="http://www.together.in.th/tag/grails/" rel="tag" title="Posts tagged with grails">grails</a> &nbsp;(แค่ overload method บางอันเท่านั้นเอง)</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">ซึ่งก็อัพไปไว้ที่&nbsp;<a href="http://github.com/NAzT/LT/">http://github.com/NAzT/LT/</a></span></p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">การทำงานของ <a class="st_tag internal_tag" href="http://www.together.in.th/tag/lexto/" rel="tag" title="Posts tagged with lexto">LexTo</a> ก็มีแค่ add คำศัพท์ลงไปใน object ของ <a class="st_tag internal_tag" href="http://www.together.in.th/tag/lexto/" rel="tag" title="Posts tagged with lexto">lexto</a> ผมเพิ่ม overload method addDict(string) เข้าไป&nbsp;</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">เพราะต้องการให้ new object <a class="st_tag internal_tag" href="http://www.together.in.th/tag/lexto/" rel="tag" title="Posts tagged with lexto">LexTo</a> ขึ้นมาครั้งเดียว </span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">แล้วเพิ่ม data เข้าไปเรื่อยๆ จะได้ไม่ต้อง &nbsp;new ใหม่บ่อยๆ &nbsp;</span></p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">จึงต้องใช้ ServletContext &nbsp;( servletContext.lextoObj=new LongLexTo(&quot;FreeForAll&quot;) &nbsp;เพิ่มใน bootstrap)</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">โปรเจคนี้มีสองส่วนคือ</span></p>
<ol>
<li>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">ส่วนที่ทำหน้าที่ตัดคำ (ใช้จาวาตัดคำ)</span></p>
</li>
<li>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">ส่วนที่ทำหน้าที่ประเมินผลการตัดคำ </span></p>
</li>
</ol>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">ซึ่งได้ประมาณนี้ <br />
		</span></p>
<p>&nbsp;</p>
<p><a href="http://www.flickr.com/photos/nazt/4224727521/" title="Picture%2014 by NAzT, on Flickr"><img alt="Picture%2014" height="316" src="http://farm5.static.flickr.com/4007/4224727521_42db04152a.jpg" width="500" /></a></p>
<p>หน้าจอแสดง ข้อความที่ถูกตัดคำแล้ว และข้อความที่ยังไม่ถูกตัดคำ</p>
<p>&nbsp;</p>
<p><a href="http://www.flickr.com/photos/nazt/4225484982/" title="Picture 11 by NAzT, on Flickr"><img alt="Picture 11" height="304" src="http://farm5.static.flickr.com/4038/4225484982_7768a7e4dc.jpg" width="500" /></a></p>
<p>หน้าจอแสดงการ เพิ่มเฉลยลงไปว่า จะต้องตัดได้คำว่าอะไรบ้าง</p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;"><a href="http://www.flickr.com/photos/nazt/4225486720/" title="Picture 12 by NAzT, on Flickr"><img alt="Picture 12" height="316" src="http://farm5.static.flickr.com/4067/4225486720_cdbe89664f.jpg" width="500" /></a></span></p>
<p>หน้าจอแสดงผลการตรวจโดยเทียบจากเฉลยเมื่อสักครู่</p>
<p><a href="http://www.flickr.com/photos/nazt/4224759393/" title="Picture%2015 by NAzT, on Flickr"><img alt="Picture%2015" height="404" src="http://farm3.static.flickr.com/2726/4224759393_62641e1dc1_b.jpg" width="1024" /></a></p>
<p>หน้าจอแสดงรายงานการตัดคำทั้งหมด</p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;"><a href="http://www.flickr.com/photos/nazt/4225483872/" title="Picture 6 by NAzT, on Flickr"><img alt="Picture 6" height="268" src="http://farm3.static.flickr.com/2727/4225483872_b6cd35b5aa_o.png" width="818" /></a></span></p>
<p>ไฟล์ข้อมูล พวก dictionary จะอยู่ที่</p>
<p>http://203.185.97.45/~intern/nazt/</p>
<p>src <a href="http://www.together.in.th/tag/project/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Project">project</a> นี้อยู่ที่&nbsp; http://github.com/NAzT/GeoTraffy ครับ</p>
<p>การตัดคำ<br />
		<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Times; font-size: medium;">เพิ่มเติมที่ <a href="http://www.sansarn.com">www.sansarn.com</a></span></p>
<p>มี vdo ให้ดูด้วย อยู่ที่&nbsp;</p>
<p>1. อันใหม่มี bug แต่ขี้เกียจอัดใหม่ เครื่องมันช้า บั๊กเรื่อง space มันเลยตัดผิดบ้างถูกบ้าง</p>
<p><!-- Smart Youtube --><span class="youtube"><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/tB2J_2FfsKg&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed allowfullscreen="true" height="355" src="http://www.youtube.com/v/tB2J_2FfsKg&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" width="425" wmode="transparent"><param name="wmode" value="transparent" /></embed></object></span></p>
<p>2. อันเก่า</p>
<p><!-- Smart Youtube --><span class="youtube"><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/nlrXQa2nS9c&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed allowfullscreen="true" height="355" src="http://www.youtube.com/v/nlrXQa2nS9c&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" width="425" wmode="transparent"></embed></object></span></p>
</div>
<p>&nbsp;</p>
<p>Tags: <a href="http://www.together.in.th/tag/grails/" rel="tag">grails</a>, <a href="http://www.together.in.th/tag/java/" rel="tag">java</a>, <a href="http://www.together.in.th/tag/lexto/" rel="tag">lexto</a>, <a href="http://www.together.in.th/tag/%e0%b8%95%e0%b8%b1%e0%b8%94%e0%b8%84%e0%b8%b3/" rel="tag">ตัดคำ</a>, <a href="http://www.together.in.th/tag/%e0%b8%95%e0%b8%b1%e0%b8%94%e0%b8%84%e0%b8%b3%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2/" rel="tag">ตัดคำภาษาไทย</a></p>
<p><!-- pingbacker_start --><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li><a href="http://www.globalcrisis.org.uk/?p=157">Investment information including spread betting.</a></li>
<li><a href="http://www.atheistadam.com/34268/psychic-medium-miracles-the-enchanting-healing-power-of-angel-therapy/">Psychic <b>Medium</b> Miracles – The Enchanting Healing Power of Angel <b>&#8230;</b></a></li>
<li><a href="http://woodsrecruiting.com/2010/05/09/bay-area-local-scoreboard-for-may-9/">Woods Recruiting › Bay Area local scoreboard for May 9</a></li>
<li><a href="http://thoughcowardsflinch.com/2010/05/09/sheer-class-1-how-the-labour-party-won-the-election/">Sheer <b>class</b> (1): how the Labour party won the election « Though <b>&#8230;</b></a></li>
<li><a href="http://blog.xkcd.com/2010/05/03/color-survey-results/"><b>Color</b> Survey Results « xkcd</a></li>
<li><a href="http://blog.traitimyenbai.net/householdactivities/2010/05/03/power-one-size-312-zinc-air-hearing-aid-batteries-60-batteries/">Household Activities » Blog Archive » Power One Size 312 Zinc Air <b>&#8230;</b></a></li>
<li><a href="http://www.yourseniormagazine.com/senior-magazine-advancements-glaucoma-treatments-courtesy-rgb-eye-associates/">SENIOR Magazine, <b>RGB</b> Eye Associates, Glaucoma Treatments | Senior <b>&#8230;</b></a></li>
<li><a href="http://www.xforce.ws/2010/05/elizabeth-warren-death-of-the-middle-class/">Elizabeth Warren: Death of the Middle <b>Class</b> » Tarp, Bear, Brothers <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/tag-ladies-watch-class-on-every-occasion-now-affordable-for-you-introducing-a-chic-diamond-f1/"><b>Tag</b> Ladies Watch – Class On Every Occasion Now Affordable For You <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/on-page-optimization-step-2-meta-tag-optimization/">On-Page Optimization: Step 2 ? Meta <b>Tag</b> Optimization « TagFocus.com</a></li>
<li><a href="http://www.tagfocus.com/tag-formula-1-watches-discover-how-you-can-afford-to-own-a-piece-of-history-style-and-quality/"><b>Tag</b> Formula 1 Watches – Discover How You Can Afford To Own A Piece <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/buy-luxury-tag-heuer-watches-and-be-a-rich-man-without-paying-more/">Buy Luxury <b>Tag</b> Heuer Watches and Be a Rich Man without Paying More <b>&#8230;</b></a></li>
<li><a href="http://www.tagfocus.com/can-i-cancel-a-zune-tag/">Can i cancel a zune <b>tag</b>? « TagFocus.com</a></li>
<li><a href="http://www.tagfocus.com/the-convenience-of-a-single-dog-tag/">The Convenience of A Single Dog <b>Tag</b> « TagFocus.com</a></li>
<li><a href="http://www.sparkminute.com/2010/05/08/up-against-zynga-small-and-medium-developers-surviving-the-social-gaming-landscape/">Up Against Zynga: Small and <b>medium</b> developers surviving the social <b>&#8230;</b></a></li>
<li><a href="http://www.sneakerobsession.com/26956/nike-air-max-ltd-white-medium-grey-challenge-red/">Nike Air Max LTD &#8211; White/<b>Medium</b> Grey-Challenge Red | Sneaker Obsession</a></li>
<li><a href="http://www.sciencemagnews.com/drug-that-extends-life-span-prevents-alzheimers-deficits.html">Drug That Extends Life <b>Span</b> Prevents Alzheimer&#39;s Deficits | www <b>&#8230;</b></a></li>
<li><a href="http://www.rgbpicture.com/what-is-wrong-on-the-photo">What Is Wrong On The Photo &#8211; <b>RGB</b> Picture</a></li>
<li><a href="http://www.pursenice.com/items/gucci-sunset-medium-tote-snap-closure-straw.html">Gucci Sunset <b>Medium</b> Tote &#8211; Snap Closure / Straw</a></li>
<li><a href="http://www.pursenice.com/items/gucci-jockey-medium-tote-gg-washed-cotton-taupe-leather.html">Gucci Jockey <b>Medium</b> Tote &#8211; White Beige GG Washed Cotton / Taupe <b>&#8230;</b></a></li>
</ul>
<p><!-- pingbacker_end --></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.together.in.th/create-grails-web-service-thai-tokenizer-soap/" title="เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP (พฤษภาคม 4, 2010)">เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAP</a> (0)</li>
	<li><a href="http://www.together.in.th/thai-tokenizer-groovy-not-grails/" title="ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails) (เมษายน 27, 2010)">ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails)</a> (0)</li>
	<li><a href="http://www.together.in.th/sort-list-%e0%b9%83%e0%b8%99-views-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b8%a1%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-relation-%e0%b9%81%e0%b8%9a%e0%b8%9a-hasmany-%e0%b9%83%e0%b8%99-grails/" title="sort List ใน views ที่มาจาก Relation แบบ hasMany ใน grails (มกราคม 8, 2010)">sort List ใน views ที่มาจาก Relation แบบ hasMany ใน grails</a> (0)</li>
	<li><a href="http://www.together.in.th/using-opengl-and-glut-on-os-x-with-eclipse/" title="วิธีการใช้ GLUT บน  MAC ด้วย Eclipse (ตุลาคม 19, 2008)">วิธีการใช้ GLUT บน  MAC ด้วย Eclipse</a> (0)</li>
	<li><a href="http://www.together.in.th/java-image-watermarking/" title="การทำลายน้ำบนภาพด้วย Java (Java Image Watermarking) (เมษายน 4, 2010)">การทำลายน้ำบนภาพด้วย Java (Java Image Watermarking)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.together.in.th/cache-grails-project-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b8%94%e0%b8%84%e0%b8%b3%e0%b8%a0%e0%b8%b2%e0%b8%a9%e0%b8%b2%e0%b9%84%e0%b8%97%e0%b8%a2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-ja/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
