<?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; Java</title> <atom:link href="http://www.together.in.th/category/programming-2/java/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>แกะ 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>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>การทำลายน้ำบนภาพด้วย Java (Java Image Watermarking)</title><link>http://www.together.in.th/java-image-watermarking/</link> <comments>http://www.together.in.th/java-image-watermarking/#comments</comments> <pubDate>Sun, 04 Apr 2010 15:33:07 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[Cuts]]></category> <category><![CDATA[git]]></category> <category><![CDATA[ports]]></category> <category><![CDATA[Project]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1693</guid> <description><![CDATA[อันดับแรกต้องไป  ดาวน์โหลด library  watermarker-0.0.4.jar มาก่อน แล้วก็ตามด้วย dozer-4.2.1.jar หลังจากนั้นก็ add JAR file ลงไปใน Project ของเรา ประมาณนี้ หลังจากนั้นก็ไปศึกษาคู่มือการใช้งาน ส่วนในที่นี้จะลองทำในส่วนของ 1. Text watermarking over image ถ้าต้องการย้ายตำแหน่ง watermark ก็ทำได้ (SetX, SetY) Related Blogs SNYRangersBlog.com – Buzz: Kings Looking To Add OffenseUK: Post-Election 2010 (Including Library Document on Hung &#8230;Reports from “Save My Library” Rally in Trenton, New Jersey &#8230;New York [...]]]></description> <wfw:commentRss>http://www.together.in.th/java-image-watermarking/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ลง Tomcat ง่ายนิดเดียว (mac osx)</title><link>http://www.together.in.th/%e0%b8%a5%e0%b8%87-tomcat-%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b8%99%e0%b8%b4%e0%b8%94%e0%b9%80%e0%b8%94%e0%b8%b5%e0%b8%a2%e0%b8%a7-mac-osx/</link> <comments>http://www.together.in.th/%e0%b8%a5%e0%b8%87-tomcat-%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b8%99%e0%b8%b4%e0%b8%94%e0%b9%80%e0%b8%94%e0%b8%b5%e0%b8%a2%e0%b8%a7-mac-osx/#comments</comments> <pubDate>Fri, 12 Mar 2010 13:37:42 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[conf]]></category> <category><![CDATA[git]]></category> <category><![CDATA[xvzf]]></category> <category><![CDATA[วิธีติดตั้ง]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1454</guid> <description><![CDATA[ลง Tomcat ง่ายนิดเดียว (mac osx) ไม่พูดพร่ำทำเพลง เปิด Terminal ขึ้นมาแล้วป่าวประกาศตัวแปรดังต่อไปนี้ export JAVA_HOME=/Library/Java/Home export CATALINA_HOME=/Library/Tomcat/Home แล้วสั่ง mkdir -p $CATALINA_HOME แล้ว download tomcat  ผมจะสั่ง wget  http://mirror.kapook.com/apache/tomcat/tomcat-6/v6.0.26/bin/apache-tomcat-6.0.26.tar.gz tar xvzf apache-tomcat-6.0.26.tar.gz ln -sfhv apache-tomcat-6.0.26 $CATALINA_HOME เสร็จแล้วก็ปรับแต่ง แก้ไขพวก username / password  ที่อยู่ใน $CATALINA_HOME/conf/tomcat-users.conf  ซึ่งของผมเพิ่มเข้าไปเป็นแบบนี้ สั่ง Start Server ด้วยคำสั่ง $CATALINA_HOME/bin/startup.sh จะได้ประมาณ เสร็จแล้่วลองเข้า http://localhost:8080 จะได้ กด Tomcat Manager แล้วก็ Deploy ตามอัธยาศัยเลยจ้า อ้างอิงจาก http://www.malisphoto.com/tips/tomcatonosx.html Related [...]]]></description> <wfw:commentRss>http://www.together.in.th/%e0%b8%a5%e0%b8%87-tomcat-%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b8%99%e0%b8%b4%e0%b8%94%e0%b9%80%e0%b8%94%e0%b8%b5%e0%b8%a2%e0%b8%a7-mac-osx/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>วิธีติดตั้ง GlassFish</title><link>http://www.together.in.th/installation-instruction-glassfish/</link> <comments>http://www.together.in.th/installation-instruction-glassfish/#comments</comments> <pubDate>Tue, 09 Mar 2010 16:25:38 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[conf]]></category> <category><![CDATA[git]]></category> <category><![CDATA[glassfish]]></category> <category><![CDATA[วิธีติดตั้ง]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1312</guid> <description><![CDATA[วิธีติดตั้ง GlassFish ติดตั้ง JDK ให้เรียบร้อย Set ค่าตัวแปร JAVA_HOME ให้ชี้ไปยัง JDK ของเรา ดาวน์โหลด GlassFish จาก https://glassfish.dev.java.net/downloads/v2.1.1-final.html Binary builds glassfish-installer-v2.1.1-sunos.jar, size 63MB glassfish-installer-v2.1.1-sunos-ml.jar, size 78MB glassfish-installer-v2.1.1-sunos_x86.jar size 63MB glassfish-installer-v2.1.1-sunos_x86-ml.jar size 78MB glassfish-installer-v2.1.1-windows.jar size 63MB glassfish-installer-v2.1.1-windows-ml.jar size 78MB glassfish-installer-v2.1.1-linux.jar size 64MB glassfish-installer-v2.1.1-linux-ml.jar size 78MB glassfish-installer-v2.1.1-darwin.jar size 75M glassfish-installer-v2.1.1-darwin-ml.jar size 89M glassfish-installer-v2.1.1-aix.jar size 78M glassfish-installer-v2.1.1-aix-ml.jar size 92M ติดตั้งด้วยคำสั่ง $java -Xmx256m [...]]]></description> <wfw:commentRss>http://www.together.in.th/installation-instruction-glassfish/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[Google Maps Geocoding] ลอง Parse Json ด้วย Groovy + Java (Netbeans)</title><link>http://www.together.in.th/try-parse-json-using-groovy-java-netbeans/</link> <comments>http://www.together.in.th/try-parse-json-using-groovy-java-netbeans/#comments</comments> <pubDate>Tue, 12 Jan 2010 09:51:09 +0000</pubDate> <dc:creator>Nat</dc:creator> <category><![CDATA[Geolocation]]></category> <category><![CDATA[Groovy]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[JSON]]></category> <category><![CDATA[array]]></category> <category><![CDATA[geocoding]]></category> <category><![CDATA[git]]></category> <category><![CDATA[php]]></category> <category><![CDATA[Project]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=1244</guid> <description><![CDATA[โปรเจ็คตลกๆมาอีกแล้ว &#160;เพราะโปรเจ็คนี้ผมใช้ &#160;Json Lib&#160;+ Groovy + Java แต่ผมใช้ Groovy ดึง json (URL.text) แล้วใช้ Java เป็นตัวแกะ jsonObject เป็น jsonArray หลังจากนั้นเอาข้อมูลโยนกลับไปให้ Groovy ถอดเอาเฉพาะส่วนที่ต้องการออกมา (ในที่นี้คือ coordinates &#8212; latitude ,longitude นั่นแหละ) ดูวุ่นวายมาก ทั้งๆที่ เขียน Groovy อย่างเดียวก็ได้ เพราะ Json Lib ก็ลองรับ groovy&#160;&#160;หรือจะเขียน Java เพียวๆ เลยก็ได้&#160; &#160; เรื่องของเรื่องคืออยากเขียน Java ร่วมกับ Groovy อีกครั้ง เพราะไม่ค่อยถูกกับ Java จริงๆ มันดูเวื่นเว้อ &#160;มันเขียนเวิ่นเว้อด้วย ยาวๆ งงๆ (อาจเป็นเพราะไม่ได้ศึกษาอย่างลึกซึ้ง) groovy [...]]]></description> <wfw:commentRss>http://www.together.in.th/try-parse-json-using-groovy-java-netbeans/feed/</wfw:commentRss> <slash:comments>2</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) เล่นกันทีเดียวคุ้ม อ่ะ เข้าเรื่อง จะเขียนเรื่อง ตัดคำโดยใช้ Java &#160;ก่อน&#160; &#160; การตัดคำไทยด้วยโค๊ดภาษา Java นั้นผมใช้ LexTo&#160; (แปลเป็นไทยว่า : เรื่องการตัดคำผมใช้ Java ทำครับ) [...]]]></description> <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>
