<?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; Groovy</title> <atom:link href="http://www.together.in.th/category/programming-2/groovy/feed/" rel="self" type="application/rss+xml" /><link>http://www.together.in.th</link> <description>technology, misc</description> <lastBuildDate>Sat, 17 Dec 2011 14:00:31 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>สร้าง Rails Application เทียบกับ Grails Application</title><link>http://www.together.in.th/create-app-rails-and-grails-application/</link> <comments>http://www.together.in.th/create-app-rails-and-grails-application/#comments</comments> <pubDate>Sat, 13 Nov 2010 16:54:26 +0000</pubDate> <dc:creator>Nat Weerawan</dc:creator> <category><![CDATA[Grails]]></category> <category><![CDATA[Rails]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[#railscampthailand]]></category> <category><![CDATA[comparision]]></category> <category><![CDATA[grails]]></category> <category><![CDATA[rails]]></category> <category><![CDATA[rails vs grails]]></category> <category><![CDATA[railscamp]]></category> <category><![CDATA[ruby on rails]]></category> <category><![CDATA[thairor]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=2839</guid> <description><![CDATA[วันนี้ผมไป #railscampthailand มา ผมเคยเขียน grails มาบ้าง เคยจับ rails แต่ล้มเลิกไป (เน่า) ตอนนี้เพิ่งรู้ว่า ที่ไม่เข้าใจเพราะมัน Convention จ๋าเลย เมื่อสามปีที่แล้ว ผมไม่ชินและเข้าใจ ของเทบแบบนี้ T_T วันนี้ได้ลองทำ rails project ตามใน #railscamp เลยลองพยายาม map เข้ากับ grails (ที่เคยเขียนมาบ้าง) อันดับแรกที่เราจะต้องทำคือ สร้าง App ขึ้นมาง่ายๆ แล้วทำ Create Read Update Delete กับข้อมูล แต่จะทำยังไงดีบน grails และบน rails (ใช้สิ่งที่ framework มีให้ไม่ลง plugin เพิ่ม) สร้างโปรเจค สำหรับ rails ให้สั่ง $ rails new demo สำหรับ grails﻿ [...]]]></description> <wfw:commentRss>http://www.together.in.th/create-app-rails-and-grails-application/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <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[gis]]></category> <category><![CDATA[Grails]]></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 เรื่องที่เกี่ยวข้องมกราคม 5, 2011 -- เริ่มต้นใช้ git (version control) อย่างง่ายๆ ด้วย git-guiมกราคม 5, 2011 -- คำแนะนำ และเครื่องมือแนะนำ สำหรับการทำ โปรเจ็คจบ/Senior project/Special Topic กรกฎาคม 25, 2010 -- Version Control มันดียังไงๆๆๆ (ผมใช้ git นะ)พฤษภาคม 4, 2010 -- เนรมิต Web Service [...]]]></description> <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[LexTo]]></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> <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 เรื่องที่เกี่ยวข้องมกราคม 7, 2011 -- มาทำโปรแกรมแปลภาษาอังกฤษ ->ภาษาไทย กันดีกว่า (Google Translation API)พฤษภาคม 4, 2010 -- เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAPเมษายน 29, 2010 -- แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)เมษายน 27, 2010 -- ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails)เมษายน 27, 2010 -- classpath [...]]]></description> <wfw:commentRss>http://www.together.in.th/accessing-the-servlet-context/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)</title><link>http://www.together.in.th/cyberneko-groovy-java-encoding/</link> <comments>http://www.together.in.th/cyberneko-groovy-java-encoding/#comments</comments> <pubDate>Wed, 28 Apr 2010 23:35:29 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Groovy]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[cyberneko]]></category> <category><![CDATA[git]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1771</guid> <description><![CDATA[แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java) จาก code ข้างบน จะเป็นการแกะ link ออกมาเฉพาะลิ้งค์ที่มีคำว่า id groovy -cp nekohtml.jar:xml-apis.jar:xercesImpl.jar nekoReg.groovy Related Blogs เรื่องที่เกี่ยวข้องเมษายน 20, 2010 -- Set Encoding ให้ Cyberneko แล้วก็ Grep Image Sourceพฤษภาคม 4, 2010 -- เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAPเมษายน 27, 2010 -- ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails)เมษายน 8, 2010 -- Grails [...]]]></description> <wfw:commentRss>http://www.together.in.th/cyberneko-groovy-java-encoding/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails)</title><link>http://www.together.in.th/thai-tokenizer-groovy-not-grails/</link> <comments>http://www.together.in.th/thai-tokenizer-groovy-not-grails/#comments</comments> <pubDate>Tue, 27 Apr 2010 16:14:33 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Groovy]]></category> <category><![CDATA[git]]></category> <category><![CDATA[ตัดคำ]]></category> <category><![CDATA[ตัดคำภาษาไทย]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1818</guid> <description><![CDATA[เหล้าเก่าเอามาเล่าใหม่ขวดใหม่ ผมโมดิฟาย LexTo ของ Sansarn overload method addDict  โดยเพิ่ม addDict (string ) เพราะว่าก่อนหน้านี้มีแต่ addDict (File ) มันมีปัญหาเรื่อง Encoding ของ Dictionary กับ Input String ไม่ตรงกัน  ตัดไม่ได้อีก เลยต้องโมดิฟายนิดหน่อย โหลดได้ที่ http://github.com/NAzT/LT (เป็น Netbeans Project ) หลังจากนั้นทำเป็น .jar (กด Build ได้เลย) def Tokenizer = new LongLexTo(&#8220;Self&#8221;)  // ใช้ constructor เป็น LongLexTo(String ) เพื่อไม่ให้มันไปโหลด Dict def input = &#8220;สวัสดีครับผม&#8221;  // [...]]]></description> <wfw:commentRss>http://www.together.in.th/thai-tokenizer-groovy-not-grails/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>classpath กับ groovyConsole</title><link>http://www.together.in.th/classpath-groovyconsole/</link> <comments>http://www.together.in.th/classpath-groovyconsole/#comments</comments> <pubDate>Tue, 27 Apr 2010 14:43:16 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Groovy]]></category> <category><![CDATA[groovyConsole]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1813</guid> <description><![CDATA[Blog  ด้วยภาพ ถ้าเข้า groovyConsole แบบธรรมดา  จะเกิด unable to resolve class &#8230;&#8230; ถ้าจะให้ใช้ได้ก็ใส่ option -cp  เข้าไป เช่น groovyConsole -cp LT/dist/LexTo.jar ก็จะได้แล้วล่ะ  เย้ Related Blogs เรื่องที่เกี่ยวข้องมกราคม 7, 2011 -- มาทำโปรแกรมแปลภาษาอังกฤษ ->ภาษาไทย กันดีกว่า (Google Translation API)พฤษภาคม 4, 2010 -- เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAPพฤษภาคม 4, 2010 -- การเข้าถึง servletContext (ใน Service)เมษายน 29, 2010 [...]]]></description> <wfw:commentRss>http://www.together.in.th/classpath-groovyconsole/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> <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>Set Encoding ให้ Cyberneko แล้วก็ Grep Image Source</title><link>http://www.together.in.th/set-encoding-%e0%b9%83%e0%b8%ab%e0%b9%89-cyberneko-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b8%81%e0%b9%87-grep-image-source/</link> <comments>http://www.together.in.th/set-encoding-%e0%b9%83%e0%b8%ab%e0%b9%89-cyberneko-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b8%81%e0%b9%87-grep-image-source/#comments</comments> <pubDate>Tue, 20 Apr 2010 06:06:40 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Groovy]]></category> <category><![CDATA[cyberneko]]></category> <category><![CDATA[git]]></category> <category><![CDATA[Grep]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1766</guid> <description><![CDATA[Set Encoding ให้ Cyberneko html parser (บาง Site ไม่ยอมกำหนดว่าเป็น Encoding แบบใด) แล้วก็ Grep Image Source Code ตามข้างล่างนี้ Related Blogs เรื่องที่เกี่ยวข้องเมษายน 29, 2010 -- แกะ Link ทั้งหมดด้วย cyberneko (Groovy Java)พฤษภาคม 4, 2010 -- เนรมิต Web Service ตัดคำ (ใช้ grails + xfire) ภาค SOAPเมษายน 27, 2010 -- ตัดคำภาษาไทยด้วย Groovy (ไม่ใช้ grails)เมษายน 8, 2010 -- Grails &#038; Legacy [...]]]></description> <wfw:commentRss>http://www.together.in.th/set-encoding-%e0%b9%83%e0%b8%ab%e0%b9%89-cyberneko-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b8%81%e0%b9%87-grep-image-source/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> <wfw:commentRss>http://www.together.in.th/grails-legacy-database-mapping-id-with-string/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
