<?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</title> <atom:link href="http://www.together.in.th/feed/" rel="self" type="application/rss+xml" /><link>http://www.together.in.th/blog</link> <description>technology, misc</description> <lastBuildDate>Fri, 18 May 2012 09:11:12 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>[grails] การ mock แบบใช้ .metaClass มากกว่า 1 ครั้ง</title><link>http://www.together.in.th/blog/grails-mock-using-metaclass-more-than-1-time/</link> <comments>http://www.together.in.th/blog/grails-mock-using-metaclass-more-than-1-time/#comments</comments> <pubDate>Wed, 16 May 2012 18:51:25 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Grails]]></category> <category><![CDATA[grails]]></category> <category><![CDATA[metaClass]]></category> <category><![CDATA[mock]]></category> <category><![CDATA[removeMetaClass]]></category> <guid
isPermaLink="false">http://www.together.in.th/blog/?p=3964</guid> <description><![CDATA[เหตุเกิดจากความขี้เกียจ&#8230; เรื่องของเรื่องคือว่า&#8230; … ปกติแล้วการใช้ metaClass จะใช้ได้ครั้งเดียว เลยไปไล่หาคำตอบว่าทำไม.. จนได้ไปเจอ source code นี้เข้า เลยได้เอะใจขึ้นมาว่ามันน่าจะมีกระบวนการ registerMetaClass แน่ๆเลย เลยไปไล่หาวิธี remove ดู แล้วก็เจอ GroovySystem.getMetaClassRegistry().removeMetaClass เข้า.. เลยลองใช้ดู แต่มันมี side-effect คือมันจะถอด metaClass ทิ้งทั้งหมดเลยต้องใช้อย่างระมัดระวัง ตอนนี้กำลังหาวิธีถอดทิ้งแบบ method เดียวอยู่ น่าจะพอมีทางนะ ลิ้งก์น่าสนใจ ExpandoMetaClassCreationHandleTest.groovy เรื่องที่เกี่ยวข้องพฤษภาคม 8, 2011 -- ตัดคำภาษาไทยด้วย javascript [ตัดคำทาง service]มกราคม &#8230; <a
href="http://www.together.in.th/blog/grails-mock-using-metaclass-more-than-1-time/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/grails-mock-using-metaclass-more-than-1-time/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Compile C++ With Google C++ Testing Framework</title><link>http://www.together.in.th/blog/compile-c-with-google-c-testing-framework/</link> <comments>http://www.together.in.th/blog/compile-c-with-google-c-testing-framework/#comments</comments> <pubDate>Mon, 20 Feb 2012 15:49:08 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[C/C++]]></category> <category><![CDATA[Testing]]></category> <category><![CDATA[compile]]></category> <category><![CDATA[g++]]></category> <category><![CDATA[googletest]]></category> <guid
isPermaLink="false">http://www.together.in.th/blog/?p=3948</guid> <description><![CDATA[Random Postsมิถุนายน 1, 2010 -- ร้านขายข้าวมกราคม 29, 2010 -- Community-generated Traffic Information Systemเมษายน 7, 2011 -- [youtube-dl] ดาวน์โหลด youtube vdo แบบ geek (นิดๆ) &#8211;pythonมิถุนายน 26, 2010 -- ทำไม &#8220;คนรวย&#8221; ถึงส่งลูก ไปเป็นลูกจ้าง ​?ธันวาคม 30, 2008 -- Basic Socket ตอนที่ 1.1 : &#8230; <a
href="http://www.together.in.th/blog/compile-c-with-google-c-testing-framework/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/compile-c-with-google-c-testing-framework/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>การสร้างโลกใบใหม่ใน JavaScript</title><link>http://www.together.in.th/blog/javascript-call-function-immediately-create-new-scope/</link> <comments>http://www.together.in.th/blog/javascript-call-function-immediately-create-new-scope/#comments</comments> <pubDate>Sat, 17 Dec 2011 02:25:54 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Javascript]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[scope]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3937</guid> <description><![CDATA[วันนี้มาพูดถึง Scope ใน JavaScript แบบเบาๆกันหน่อย เรื่องScope ใน JavaScript มีรายละเอียดให้เราได้เคลิบเคลิ้มกันอีกนาน ซึ่งการสร้าง Scope ใน JavaScript สามารถทำได้ด้วยโค้ดแบบนี้ครับ ถ้าเราไม่สร้าง scope ใหม่แล้วประกาศตัวแปรตรงๆเลย มันจะเป็น global (windows) โอกาสที่ตัวแปรจะไปชนกันกับของคนอื่นก็จะมีเยอะกว่า เพราะใน JavaScript ถึงจะประกาศตัวแปรด้านล่างก็เห็นทั้งไฟล์อยู่ดี แต่ถ้าเราสร้างโลกของเราแล้วก็จะมั่นใจมากขึ้นว่าตัวแปรของเราจะไม่ตีกับใคร เราอาจจะได้เจอโค้ดลักษณะนี้ จากตัวอย่างคือสร้างโลกและส่งตัวแปร jQuery เข้าไปให้สิงอยู่ในตัวแปร $ ซึ่งเป็น local variable แล้วในโลกนั้นก็เรียก $ แทน jQuery ได้อย่างสบายใจไม่ต้องกลัวไปตีกับคนอื่น่ เรื่องที่เกี่ยวข้องพฤษภาคม 10, &#8230; <a
href="http://www.together.in.th/blog/javascript-call-function-immediately-create-new-scope/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/javascript-call-function-immediately-create-new-scope/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[drupal] วิธีการทำ views summary ให้เป็นแบบ Jump Menu (drop down)</title><link>http://www.together.in.th/blog/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-views-summary-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%9a%e0%b8%9a-jump-menu-dr/</link> <comments>http://www.together.in.th/blog/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-views-summary-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%9a%e0%b8%9a-jump-menu-dr/#comments</comments> <pubDate>Thu, 22 Sep 2011 12:35:34 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[ctool]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[drupal6]]></category> <category><![CDATA[hook_views_plugins]]></category> <category><![CDATA[views]]></category> <category><![CDATA[views_summary]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3922</guid> <description><![CDATA[วิธีการทำ views summary [argument] แบบเป็น drop down ใน drupal 6 แบบนี้ views ปกติจะมีแค่ Unformatted กับ List แต่ไม่มี jump menu แบบภาพข้างล่าง ตอนแรกจะเขียน hook_views_plugins แต่ไปเจอ code ใน core ของ views ว่ามันมี jump menu มาให้แล้ว แต่ต้องลง module ctools ด้วยจ้า (บรรทัดที่ 261) ตามภาพข้างล่าง จะได้แบบนี้แหละจ้า &#8230; <a
href="http://www.together.in.th/blog/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-views-summary-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%9a%e0%b8%9a-jump-menu-dr/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3-views-summary-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%9a%e0%b8%9a-jump-menu-dr/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>[drupal 6] ปัญหา views image cache ไม่ส่ง alt, title</title><link>http://www.together.in.th/blog/drupal-6-%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-views-image-cache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%aa%e0%b9%88%e0%b8%87-alt-title/</link> <comments>http://www.together.in.th/blog/drupal-6-%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-views-image-cache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%aa%e0%b9%88%e0%b8%87-alt-title/#comments</comments> <pubDate>Thu, 22 Sep 2011 10:35:16 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[drupal]]></category> <category><![CDATA[imagecache]]></category> <category><![CDATA[views]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3919</guid> <description><![CDATA[override field เถิด function phptemplate_imagecache ก็ไม่ทัน จัดไปเลย เยี่ยงนี้ (ต้องดูใน web จ้า) เรื่องที่เกี่ยวข้องกันยายน 22, 2011 -- [drupal] วิธีการทำ views summary ให้เป็นแบบ Jump Menu (drop down)มิถุนายน 26, 2010 -- [drupal6] ใช้ Views ดึงภาพจาก Forum Topic ออกมากุมภาพันธ์ 18, 2011 -- Traffy API Wrapper &#8230; <a
href="http://www.together.in.th/blog/drupal-6-%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-views-image-cache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%aa%e0%b9%88%e0%b8%87-alt-title/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/drupal-6-%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-views-image-cache-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%aa%e0%b9%88%e0%b8%87-alt-title/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>เทคนิค Memoization ที่ช่วยให้โปรแกรมเราเร็วขึ้นได้ ด้วย  Javascript และ  CoffeeScript [ตอนที่ 1]</title><link>http://www.together.in.th/blog/coffeescript-memoization/</link> <comments>http://www.together.in.th/blog/coffeescript-memoization/#comments</comments> <pubDate>Tue, 20 Sep 2011 12:14:14 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Coffee Script]]></category> <category><![CDATA[Javascript]]></category> <category><![CDATA[coffeescript]]></category> <category><![CDATA[fibonacci]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[memoization]]></category> <category><![CDATA[memoizer]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3916</guid> <description><![CDATA[เทคนิค memoization เป็นเทคนิคที่ทำให้โปรแกรมที่มีการเรียกใช้ฟังก์ชั่นเดิมๆเยอะๆทำงานได้เร็วขึ้น ใช้ได้ผลดีกับพวกฟังก์ชั่นแบบเวียนบังเกิดทั้งหลาย (Recursive Function) จะทำให้โปรแกรมเร็วเร็วขึ้นมากกก ลดการทำงานของ CPU ลงไปเยอะ แต่ว่าจะต้องใช้ memory มากขึ้นเพื่อ&#8220;จำ&#8221;ผลลัพธ์ของการคำนวณครั้งก่อนหน้าเอาไว้ (ลักษณะ cache ที่เราคุ้นเคย)  สามารถอ่านเรื่องราวของ Memoization ได้ที่ wikipedia คงจะไม่ได้พูดถึงรายละเอียด ​Memoizatio มากนัก เพราะประเด็นหลักจะอยู่ที่ความฟู่ฟ่าของภาษา coffee script ซะมากกว่า อธิบายกันในในลักษณะของ codeถ้าฟังก์ชั่นการหา fibonacci แบบเป็น recursive function ธรรมดาๆ ถ้าเราเขียน code ว่า for (i = &#8230; <a
href="http://www.together.in.th/blog/coffeescript-memoization/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/coffeescript-memoization/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ตัวแปร this ใน javascript ทำงานยังไง (เกี่ยวกับ Function Invocation Pattern)</title><link>http://www.together.in.th/blog/this-in-javascript-how-it-work-function-invocation-pattern/</link> <comments>http://www.together.in.th/blog/this-in-javascript-how-it-work-function-invocation-pattern/#comments</comments> <pubDate>Tue, 13 Sep 2011 12:21:06 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Javascript]]></category> <category><![CDATA[Apply Invocation Pattern]]></category> <category><![CDATA[Constructor Invocation Pattern]]></category> <category><![CDATA[Function Invocation Pattern]]></category> <category><![CDATA[invocation pattern]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[Method Invocation Pattern]]></category> <category><![CDATA[this]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3875</guid> <description><![CDATA[ถ้าพูดถึงตัวแปร this ในโลกของการเขียนโปรแกรมแบบ Object Oriented ผมจะตีความตัวแปร this ว่ามันจะต้องหมายถึงตัว object นั้นๆ ที่กำลังทำงานอยู่ เป็นแน่แท้&#8230;.. แต่มันไม่ใช่แบบนั้นใน javascript น่ะสิ!! …. อ้าวอ้าว ยังไง ตอบมาให้เคลียร์เลย คือหยั่งงี้ครับ&#8230; เพราะว่าตัวแปร this ใน javascript มันจะหมายถึง Object อะไรนั้นมันขึ้นอยู่กับวิธีการเรียกใช้ฟังก์ชั่น (invocation pattern) ซึ่งมีด้วยกัน 4 แบบ ดังนี้ Method Invocation Pattern Function Invocation Pattern Constructor &#8230; <a
href="http://www.together.in.th/blog/this-in-javascript-how-it-work-function-invocation-pattern/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/this-in-javascript-how-it-work-function-invocation-pattern/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ปัญหา git push แล้วเกิด [user/repo2 denied to user/repo1]</title><link>http://www.together.in.th/blog/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-git-push-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94-userrepo2-denied-to-userrepo1/</link> <comments>http://www.together.in.th/blog/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-git-push-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94-userrepo2-denied-to-userrepo1/#comments</comments> <pubDate>Sun, 28 Aug 2011 09:07:15 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Git/GitHub]]></category> <category><![CDATA[denied to]]></category> <category><![CDATA[git push]]></category> <category><![CDATA[git remote]]></category> <category><![CDATA[github]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3874</guid> <description><![CDATA[error แบบนี้ หาในเครื่องตั้งนาน ว่ามันไปอ่าน config มาจากไหน ที่ไหนทางฝั่ง github น่าจะเกิดตอน ติดตั้ง github for mac วิธีแก้มีใน github อยู่แล้ว เป็น ssh-issue ที่หน้า http://help.github.com/ssh-issues/ Permission to user/repo2 denied to user/repo1 This error occurs when you attach your key as a deploy key on repo1. &#8230; <a
href="http://www.together.in.th/blog/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-git-push-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94-userrepo2-denied-to-userrepo1/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-git-push-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94-userrepo2-denied-to-userrepo1/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>JSONP request ใน jQuery และ ExtJS</title><link>http://www.together.in.th/blog/jsonp-request-%e0%b9%83%e0%b8%99-jquery-%e0%b9%81%e0%b8%a5%e0%b8%b0-extjs/</link> <comments>http://www.together.in.th/blog/jsonp-request-%e0%b9%83%e0%b8%99-jquery-%e0%b9%81%e0%b8%a5%e0%b8%b0-extjs/#comments</comments> <pubDate>Sun, 21 Aug 2011 08:48:17 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Javascript]]></category> <category><![CDATA[extjs]]></category> <category><![CDATA[foreach]]></category> <category><![CDATA[iterate]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[jsonp]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3866</guid> <description><![CDATA[jsonp request ใน jQuery jsonp request ใน ExtJS forEach: jquery ใช้ jQuery.each ส่วน extjs ใช้ Ext.iterate เรื่องที่เกี่ยวข้องกรกฎาคม 1, 2011 -- jQuery Tip: การ break; ออกจาก jQuery.each [ forEach ]กุมภาพันธ์ 24, 2011 -- ดูกล้อง CCTV ทั่วกรุงเทพ ด้วย Traffy API [Wrapper/Proxy] + &#8230; <a
href="http://www.together.in.th/blog/jsonp-request-%e0%b9%83%e0%b8%99-jquery-%e0%b9%81%e0%b8%a5%e0%b8%b0-extjs/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/jsonp-request-%e0%b9%83%e0%b8%99-jquery-%e0%b9%81%e0%b8%a5%e0%b8%b0-extjs/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Javascript สั้นๆ ตอน Array ปลอมๆ [แล้วจะรู้ได้ยังไงว่าเป็น Array หรือ Object]</title><link>http://www.together.in.th/blog/javascript-how-to-distinguish-array-and-object-phony-array/</link> <comments>http://www.together.in.th/blog/javascript-how-to-distinguish-array-and-object-phony-array/#comments</comments> <pubDate>Sat, 23 Jul 2011 11:02:33 +0000</pubDate> <dc:creator>NAzT</dc:creator> <category><![CDATA[Javascript]]></category> <category><![CDATA[array]]></category> <category><![CDATA[awful]]></category> <category><![CDATA[awful part]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[object]]></category> <category><![CDATA[object as array]]></category> <category><![CDATA[phony array]]></category> <guid
isPermaLink="false">http://www.together.in.th/?p=3852</guid> <description><![CDATA[ใน JavaScript ไม่มีข้อมูลที่เป็น Array จริงๆ Array ที่มีอยู่มัน array แบบหลอกๆ จริงแล้วมันเป็น object ที่มี key เป็นตัวเลข, มี method เกี่ยวกับ array, และมี property length ถ้าเราพึ่งคำสั่ง typeof อย่างเดียวเราก็จะเจ็บอีกตามเคย กล่าวคือถ้าเราสั่ง typeof [] และ typeof {} มันจะบอกว่า เป็น object ทั้งคู่! แบบนี้ แล้วเราจะรู้ได้ยังไงว่ามันเป็น array รึเปล่า ตรวจสอบได้หลายวิธีนะครับ เช็ค &#8230; <a
href="http://www.together.in.th/blog/javascript-how-to-distinguish-array-and-object-phony-array/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <wfw:commentRss>http://www.together.in.th/blog/javascript-how-to-distinguish-array-and-object-phony-array/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
