<?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>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>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>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> <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> <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> <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> <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> <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> </channel> </rss>
