<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>WhenURnotAround: Just want to share...</title>
	<atom:link href="http://whenurnotaround.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://whenurnotaround.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 07 Jun 2011 10:16:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='whenurnotaround.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/680024be8add85769ff0f109cf9bec77?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>WhenURnotAround: Just want to share...</title>
		<link>http://whenurnotaround.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://whenurnotaround.wordpress.com/osd.xml" title="WhenURnotAround: Just want to share..." />
	<atom:link rel='hub' href='http://whenurnotaround.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Magic-Crystal แอปตัวแรกของ XinniXSoft (จุตติ)</title>
		<link>http://whenurnotaround.wordpress.com/2010/10/10/magic-crystal-%e0%b9%81%e0%b8%ad%e0%b8%9b%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%82%e0%b8%ad%e0%b8%87-xinnixsoft-%e0%b8%88%e0%b8%b8%e0%b8%95%e0%b8%95%e0%b8%b4/</link>
		<comments>http://whenurnotaround.wordpress.com/2010/10/10/magic-crystal-%e0%b9%81%e0%b8%ad%e0%b8%9b%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%82%e0%b8%ad%e0%b8%87-xinnixsoft-%e0%b8%88%e0%b8%b8%e0%b8%95%e0%b8%95%e0%b8%b4/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 16:07:12 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Cocoa App]]></category>
		<category><![CDATA[iPhone and iPad]]></category>
		<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[iPad game]]></category>
		<category><![CDATA[iPhone game]]></category>
		<category><![CDATA[Magic-Crystal]]></category>
		<category><![CDATA[xinnixsoft]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/?p=421</guid>
		<description><![CDATA[ห่างหายจากการเขียนบล๊อกไปหลายเดือนเพราะว่างานเยอะมากรวมกับยังไม่รู้จะเขียนอะไรดี และในที่สุดวันนี้ก็มีเรื่องมาให้เขียนบล๊อกแล้วครับ ตอนนี้ XinniXSoft (บริษัทในอนาคตที่ผมกับเพื่อนๆวางแผนจะเปิดมันในอนาคต) ก็ได้คลอดผลงานชิ้นแรกออกมาแล้วครับ Name: Magic-Crytal OS: iOS (iPhone, iPad) Type: Game Kind: เป็นเกมส์แนว มายากลครับ Release Date: 10/10/10 Price: 0.99 usd Website: http://www.xinnixsoft.com เนื้อหาของเกมส์: Magic-Crystal เป็นเกมส์แนวมายากลที่ไว้ใช้เล่นกับเพื่อนนะครับ โดยที่ตัวเกมส์สามารถทายไพ่ที่เพื่อนเลือกได้โดย ใช้การถามคำถามที่ไม่เกี่ยวข้องอะไรเลยกับไพ่ที่เพื่อนเลือก ความสนุก: - เพื่อนๆสามารถที่จะเล่นกลได้โดยที่ไม่ต้องเป็นนักมายากล (ไม่ต้องเสียเวลาฝึก) - ได้เห็นสีหน้าของเพื่อนว่าเกมส์มันทายไพ่ถูกได้ยังไง :p เกมส์ตัวนี้เลือกเอา Cocos2d for iPhone มาเป็นตัวพัฒนาครับ ซื่งเจ้าตัว cocos2d เนี้ยมันทำมาเพื่อสำหรับพัฒนาเกมส์ที่เป็น 2D โดยเฉพาะครับ Filed under: Announcement, Cocoa App, iPhone and iPad [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=421&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ห่างหายจากการเขียนบล๊อกไปหลายเดือนเพราะว่างานเยอะมากรวมกับยังไม่รู้จะเขียนอะไรดี และในที่สุดวันนี้ก็มีเรื่องมาให้เขียนบล๊อกแล้วครับ ตอนนี้ XinniXSoft (บริษัทในอนาคตที่ผมกับเพื่อนๆวางแผนจะเปิดมันในอนาคต) ก็ได้คลอดผลงานชิ้นแรกออกมาแล้วครับ</p>
<p style="text-align:center;"><a href="http://whenurnotaround.files.wordpress.com/2010/10/magic-crystal-icon2-300x300.png"><img class="size-full wp-image-422 aligncenter" title="Magic-Crystal-icon2-300x300" src="http://whenurnotaround.files.wordpress.com/2010/10/magic-crystal-icon2-300x300.png?w=300&#038;h=300" alt="" width="300" height="300" /></a></p>
<p>Name: Magic-Crytal</p>
<p>OS: iOS (iPhone, iPad)</p>
<p>Type: Game</p>
<p>Kind: เป็นเกมส์แนว มายากลครับ</p>
<p>Release Date: 10/10/10</p>
<p>Price: 0.99 usd</p>
<p>Website: <a href="http://www.xinnixsoft.com">http://www.xinnixsoft.com</a></p>
<p>เนื้อหาของเกมส์: Magic-Crystal เป็นเกมส์แนวมายากลที่ไว้ใช้เล่นกับเพื่อนนะครับ โดยที่ตัวเกมส์สามารถทายไพ่ที่เพื่อนเลือกได้โดย ใช้การถามคำถามที่ไม่เกี่ยวข้องอะไรเลยกับไพ่ที่เพื่อนเลือก</p>
<p>ความสนุก:</p>
<p>- เพื่อนๆสามารถที่จะเล่นกลได้โดยที่ไม่ต้องเป็นนักมายากล (ไม่ต้องเสียเวลาฝึก)</p>
<p>- ได้เห็นสีหน้าของเพื่อนว่าเกมส์มันทายไพ่ถูกได้ยังไง :p</p>
<p>เกมส์ตัวนี้เลือกเอา <a href="http://www.cocos2d-iphone.org/">Cocos2d for iPhone</a> มาเป็นตัวพัฒนาครับ ซื่งเจ้าตัว cocos2d เนี้ยมันทำมาเพื่อสำหรับพัฒนาเกมส์ที่เป็น 2D โดยเฉพาะครับ</p>
<p><a href="//itunes.apple.com/us/app/magic-crystal/id395263457?mt=8"><img class="alignnone size-thumbnail wp-image-423" title="App_Store_Badge21-1-300x100" src="http://whenurnotaround.files.wordpress.com/2010/10/app_store_badge21-1-300x100.png?w=150&#038;h=50" alt="" width="150" height="50" /></a></p>
<br />Filed under: <a href='http://whenurnotaround.wordpress.com/category/announcement/'>Announcement</a>, <a href='http://whenurnotaround.wordpress.com/category/cocoa-app/'>Cocoa App</a>, <a href='http://whenurnotaround.wordpress.com/category/iphone-and-ipad/'>iPhone and iPad</a> Tagged: <a href='http://whenurnotaround.wordpress.com/tag/cocos2d/'>cocos2d</a>, <a href='http://whenurnotaround.wordpress.com/tag/game/'>game</a>, <a href='http://whenurnotaround.wordpress.com/tag/ipad-game/'>iPad game</a>, <a href='http://whenurnotaround.wordpress.com/tag/iphone-game/'>iPhone game</a>, <a href='http://whenurnotaround.wordpress.com/tag/magic-crystal/'>Magic-Crystal</a>, <a href='http://whenurnotaround.wordpress.com/tag/xinnixsoft/'>xinnixsoft</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/421/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=421&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2010/10/10/magic-crystal-%e0%b9%81%e0%b8%ad%e0%b8%9b%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%82%e0%b8%ad%e0%b8%87-xinnixsoft-%e0%b8%88%e0%b8%b8%e0%b8%95%e0%b8%95%e0%b8%b4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2010/10/magic-crystal-icon2-300x300.png" medium="image">
			<media:title type="html">Magic-Crystal-icon2-300x300</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2010/10/app_store_badge21-1-300x100.png?w=150" medium="image">
			<media:title type="html">App_Store_Badge21-1-300x100</media:title>
		</media:content>
	</item>
		<item>
		<title>การเตรียมความพร้อมก่อนสร้าง Cocoa Application</title>
		<link>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%95%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%a1%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%9e%e0%b8%a3%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%81%e0%b9%88%e0%b8%ad%e0%b8%99/</link>
		<comments>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%95%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%a1%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%9e%e0%b8%a3%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%81%e0%b9%88%e0%b8%ad%e0%b8%99/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 11:32:46 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Cocoa App]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[whenurnotaround]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%95%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%a1%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%9e%e0%b8%a3%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%81%e0%b9%88%e0%b8%ad%e0%b8%99/</guid>
		<description><![CDATA[หลังจากคราวที่แล้วที่เกรินนำเรื่อง มารู้จัก Cocoa คืออะไรแล้ว สิ่งต่อมาที่เราควรจะรู้ในการสร้าง Cocoa Application นั้นก็คือ 3 สิ่งนี้ครับ 1. Tools 2. Language 3. Frameworks หลังจากที่เราเรียนรู้สามสิ่งนี้แล้ว เราก็จะได้ไอเดียภาพรวมว่าจะเขียน Cocoa App ขึ้นมาสักอันนึงเนี้ยจะต้องเริ่มยังไง TOOLS: สำหรับเครื่องมือที่ใช้ในการ Develop Cocoa App นั่น จะมาพร้อมกับ Mac OS X Developer Tools ซึ่งจะอยู่ในแผ่น Install ของ OS X ครับ หลังจากที่ Install ไปแล้วมันก็จะลงโปรแกรมให้เราเยอะแยะเลยครับ แต่ว่าที่เราจะใช้หลักๆ เลยในการ Develop นั้นก็คือ Xcode: ก็คือ IDE นั่นเอง เหมือนพวก eclise, netBeans ทั่วไปครับ แต่มี [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=379&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>หลังจากคราวที่แล้วที่เกรินนำเรื่อง <a href="http://whenurnotaround.wordpress.com/2009/12/07/%E0%B8%A1%E0%B8%B2%E0%B8%A3%E0%B8%B9%E0%B9%89%E0%B8%88%E0%B8%B1%E0%B8%81-cocoa-%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3/">มารู้จัก Cocoa คืออะไรแล้ว</a> สิ่งต่อมาที่เราควรจะรู้ในการสร้าง Cocoa Application นั้นก็คือ 3 สิ่งนี้ครับ</p>
<p><strong>1. Tools</strong></p>
<p><strong>2. Language</strong></p>
<p><strong>3. Frameworks</strong></p>
<p>หลังจากที่เราเรียนรู้สามสิ่งนี้แล้ว เราก็จะได้ไอเดียภาพรวมว่าจะเขียน Cocoa App ขึ้นมาสักอันนึงเนี้ยจะต้องเริ่มยังไง</p>
<p><strong>TOOLS:</strong></p>
<p>สำหรับเครื่องมือที่ใช้ในการ Develop Cocoa App นั่น จะมาพร้อมกับ Mac OS X Developer Tools ซึ่งจะอยู่ในแผ่น Install ของ OS X ครับ หลังจากที่ Install ไปแล้วมันก็จะลงโปรแกรมให้เราเยอะแยะเลยครับ แต่ว่าที่เราจะใช้หลักๆ เลยในการ Develop นั้นก็คือ</p>
<p>Xcode: ก็คือ IDE นั่นเอง เหมือนพวก eclise, netBeans ทั่วไปครับ แต่มี environment ที่เหมาะในการสร้าง Cocoa app ครับ</p>
<p>Interface Builder: ไว้ใช้ในการสร้าง GUI ครับ เช่นพวก Windows, Buttons etc&#8230;</p>
<p>* ทั้งสองตัว จะทำงาน Link กันอยู่ตลอดเวลาเรา develop ครับ</p>
<p>ส่วนด้านหลังนั้น ก็จะมี GNU C compiler และ GNU Debugger ค่อย compile และ debug ครับ</p>
<p><strong>LANGUAGES:</strong></p>
<p>สำหรับภาษานั่น ในการ Develop Cocoa Application เราไม่ได้จำกัดอยู่แค่ภาษาได้ภาษาหนึ่งครับ เราสามารถพัฒนาด้วยภาษา Ruby หรือ Python ก็ได้ แต่โดยส่วนมากแล้วจะใช้ Objective-C ครับ</p>
<p>อย่าเพิ่งตกใจว่า Objective-C คืออะไร อย่าเพิ่งไปกังวลครับ ไอ้เจ้าภาษาเนี้ยไม่ได้เป็นภาษาใหม่อะไรเพียงแต่ว่ามัน extend มาจาก C เท่านั้นเอง แล้วทำเพิ่มในเรื่องของ Object Oriented ลงไปให้ C เพราะเหตุนี้มันก็เลยชื่อว่า Objective-C นั่นเอง ดังนั้นใครที่มีพื้นฐาน C, C++, Java ก็สบายโลดเลยครับ</p>
<p><strong>FRAMEWORKS:</strong></p>
<p>สุดท้ายแล้วที่ขาดไม่ได้ก็คือ Framework ที่จะใช้พัฒนาครับ สำหรับคนที่ไม่เข้าใจว่า framework คืออะไร ผมจะอธิบายให้สั้นๆ นะครับ</p>
<p>เจ้า Framework เปรียบเทียบง่ายๆ ก็เหมือนที่ขายฟอร์นิเจอร์ Built-in นั่นเอง เช่นเราอยากได้ห้องนอน เราทำยังไงครับ เราก็ไปที่ Index living mall (ไม่ได้โฆษณานะ ยกตัวอย่างเฉยๆ) แล้วเราก็เลือกเลยครับว่าจะเอาเตียง โคมไฟอะไรแบบเนี้ย ซึงเราไม่ต้องไปนั้งบอกช่างให้ทำเอง กว่าจะทำเสร็จอ่ะมันนาน</p>
<p>สรุปเป็นภาษาทาง software ก็คือ framework นั่นคือ Class หลายๆคลาสมารวมกันเพื่อที่จะทำงานให้ตรงกับวัตถุประสงค์ โว้ววๆๆๆ</p>
<p>แม่งยากเน๊อะ ขออีกทีสรุปแบบของผมดีกว่า framework ก้อคือ Index Living Mall นั่นเอง เวลาอยากจะสร้างบ้านสักหลังนึงก็ไปซื้อฟอร์นิเจอร์มาใส่ได้เลย :p</p>
<p>การที่เราจะพัฒนา Cocoa Application ได้นั้น มี Frameworks ที่เราต้องใช้อยู่ 3 Frameworks ด้วยกัน</p>
<p>1. Foundation: ก็คือ Framework พื้นฐานที่เราใช้กันอยู่ทุกวันครับ เช่น String, Array, Number. &#8230;</p>
<p>2. AppKit: เป็น Framework ที่ใช้ในการสร้าง UI ครับ เช่น Windows, Buttons, &#8230;.</p>
<p>3. Core Data: ตัวนี้เป็น Framework ที่ใช้จัดการกับ layer ด้านล่างของ Cocoa Application ครับ เช่น Save, Load Memory, &#8230;.</p>
<p>อันที่จริงแล้ว ยังมี framework อีกมากมายให้เราได้เลือกใช้การ ก็เหมือนชีวิตจริงแหละ ห้องนอนอาจจะมาจาก Index Living Mall หรือน้ำอาจจะมาจาก SB ห้องนั้งเล่นมาจาก บุญถาร แต่ว่าหลักแล้วก็คือ 3 ตัวที่ได้กล่าวถึงมานั้นเอง</p>
<p>ที่มา  <a href="http://www.amazon.com/Cocoa-Programming-Mac-OS-3rd/dp/0321503619/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1260170752&amp;sr=1-1">Cocoa programming for Mac</a></p>
<p>คราวหน้าเราจะมาลองเปิดซิง Cocoa Application แรกของเราด้วย Hello World กัน <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<a name="pd_a_2351367"></a><div class="PDS_Poll" id="PDI_container2351367" style="display:inline-block;float:;"></div><div id="PD_superContainer"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/2351367.js"></script>
		<noscript>
		<a href="http://polldaddy.com/poll/2351367/">View This Poll</a><br/><span style="font-size:10px;"><a href="http://polldaddy.com/features-surveys/">customer surveys</a></span>
		</noscript>
<br />Posted in Cocoa App Tagged: Cocoa, Cocoa App, Objective-C, whenurnotaround <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=379&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%95%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%a1%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%9e%e0%b8%a3%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%81%e0%b9%88%e0%b8%ad%e0%b8%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>
	</item>
		<item>
		<title>ประโยชน์ชอง Enumerator ใน Rails</title>
		<link>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%82%e0%b8%a2%e0%b8%8a%e0%b8%99%e0%b9%8c%e0%b8%8a%e0%b8%ad%e0%b8%87-enumerator-%e0%b9%83%e0%b8%99-rails/</link>
		<comments>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%82%e0%b8%a2%e0%b8%8a%e0%b8%99%e0%b9%8c%e0%b8%8a%e0%b8%ad%e0%b8%87-enumerator-%e0%b9%83%e0%b8%99-rails/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 08:54:56 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Enum]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%82%e0%b8%a2%e0%b8%8a%e0%b8%99%e0%b9%8c%e0%b8%8a%e0%b8%ad%e0%b8%87-enumerator-%e0%b9%83%e0%b8%99-rails/</guid>
		<description><![CDATA[อันนี้เป็นเกล็ดเล็กน้อยๆ ที่ผมเคยใช้ใน Model นะครับ ยกตัวอย่างเช่นถ้าเรามี Column &#8220;Flag&#8221; อยู่ใน Modle Message เรากำหนดให้ ถ้า Flag Status เป็น 0 = not delete 1 = deleted 2 = &#8230;.. ประมาณนี้นะครับ เพราะฉะนั้นเวลาเราเขียนโค้ดก็จะทำให้โค้ดของเราอ่านยาก ซึ่งเวลาที่คนอื่นมาอ่านโค้ดเรา ก็จะไม่เข้าใจว่า 1 คืออะไร ในการใช้ Enum เข้ามาช่วยนั้น เราจะใส่ Enum ไว้ในส่วนของ Model ครับ หลังจากนั้นเวลาเราเรียกใช้ใน controller เราก็จะสามารถเรียกได้แบบนี้ครับ ที่นี้เวลาใครมาอ่านโค้ดเรา ก็จะสามารถที่จะเข้าใจได้เลยว่า set flag ให้เป็น deleted นั่นเอง Posted in Ruby On Rails Tagged: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=374&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>อันนี้เป็นเกล็ดเล็กน้อยๆ ที่ผมเคยใช้ใน Model นะครับ</p>
<p>ยกตัวอย่างเช่นถ้าเรามี Column &#8220;Flag&#8221; อยู่ใน Modle Message</p>
<p>เรากำหนดให้</p>
<p>ถ้า Flag Status เป็น</p>
<p>0 = not delete</p>
<p>1 = deleted</p>
<p>2 = &#8230;..</p>
<p>ประมาณนี้นะครับ เพราะฉะนั้นเวลาเราเขียนโค้ดก็จะทำให้โค้ดของเราอ่านยาก</p>
<pre class="brush: ruby;">
Message.update_atrribute(:flag, 1)
</pre>
<p>ซึ่งเวลาที่คนอื่นมาอ่านโค้ดเรา ก็จะไม่เข้าใจว่า 1 คืออะไร</p>
<p>ในการใช้ Enum เข้ามาช่วยนั้น เราจะใส่ Enum ไว้ในส่วนของ Model ครับ</p>
<pre class="brush: ruby;">
class Message &amp;lt; ActiveRecord::Base
# Set Enum for flag column
NOT_DELETE = 0
DELETED = 1
.....
end
</pre>
<p>หลังจากนั้นเวลาเราเรียกใช้ใน controller เราก็จะสามารถเรียกได้แบบนี้ครับ</p>
<pre class="brush: ruby;">
Message.update_atrribute(:flag, Message::DELETED)&lt;br /&gt;
</pre>
<p>ที่นี้เวลาใครมาอ่านโค้ดเรา ก็จะสามารถที่จะเข้าใจได้เลยว่า set flag ให้เป็น deleted นั่นเอง</p>
<br />Posted in Ruby On Rails Tagged: Enum, Rails, Ruby On Rails <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=374&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%82%e0%b8%a2%e0%b8%8a%e0%b8%99%e0%b9%8c%e0%b8%8a%e0%b8%ad%e0%b8%87-enumerator-%e0%b9%83%e0%b8%99-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>
	</item>
		<item>
		<title>มารู้จัก Cocoa คืออะไร</title>
		<link>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%a1%e0%b8%b2%e0%b8%a3%e0%b8%b9%e0%b9%89%e0%b8%88%e0%b8%b1%e0%b8%81-cocoa-%e0%b8%84%e0%b8%b7%e0%b8%ad%e0%b8%ad%e0%b8%b0%e0%b9%84%e0%b8%a3/</link>
		<comments>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%a1%e0%b8%b2%e0%b8%a3%e0%b8%b9%e0%b9%89%e0%b8%88%e0%b8%b1%e0%b8%81-cocoa-%e0%b8%84%e0%b8%b7%e0%b8%ad%e0%b8%ad%e0%b8%b0%e0%b9%84%e0%b8%a3/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 08:26:24 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Cocoa App]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%a1%e0%b8%b2%e0%b8%a3%e0%b8%b9%e0%b9%89%e0%b8%88%e0%b8%b1%e0%b8%81-cocoa-%e0%b8%84%e0%b8%b7%e0%b8%ad%e0%b8%ad%e0%b8%b0%e0%b9%84%e0%b8%a3/</guid>
		<description><![CDATA[ต้องเกรินไว้ก่อนเลยนะครับว่าข้อมูลที่ผมได้มาทั้งหมดเนี้ย ได้มาจากการอ่านหนังสือเล่นนี้ครับ Cocoa programming for Mac ประวัติศาสตร์ ย้อนไปเมื่อสมัยก่อนครั้งที่นาย Steve Jobs หรือที่เรารู้จักกานในในนามของผู้ก่อตั้ง Apple Computer มีปัญหากับ นาย John Sculley ซึ่งเป็นคนที่ Jobs จ้างมาเพื่อเป็น CEO ของ Apple ในสมัยนั้น ทำให้นาย John นั่นได้ใช้อำนาจย้าย Jobs ให้ไปดูแลในแผนกที่เขาไม่มีอำนาจในการควบคุมทิศทางของบริษัท เรื่องราวครั้งนั้นเป็นเหตุให้ Jobs ต้องหนีออกจากบริษัทที่ตัวเองสร้างมากับมือ แล้วไปตั้งบริษัทใหม่ในนามว่า NeXT Computer NeXT ได้เริ่มจ้างทีมวิศวะกรเล็กที่มีประสิทธิภาพเข้ามาทำงาน และทีมเล็กๆนี้เองก็ได้สร้างสรรค์สิ่งต่างๆขึ้นมามากมายภายใต้ NeXT เช่น Operating System, Printer, Development tool etc. แต่ละชิ้นที่ NeXT ทำการสร้างขึ้นนั้น เรื่องของเทคโนโลยีนั้นไม่ต้องพูดถึง เรียกได้ว่าในสมัยนั้นล้ำหน้ากว่าเทคโนโลยีอื่นๆไปมาก แต่ว่า NeXT Computer ก้อไม่ประสบผลสำเร็จในยอดขาย [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=371&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ต้องเกรินไว้ก่อนเลยนะครับว่าข้อมูลที่ผมได้มาทั้งหมดเนี้ย ได้มาจากการอ่านหนังสือเล่นนี้ครับ <a href="http://www.amazon.com/Cocoa-Programming-Mac-OS-3rd/dp/0321503619/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1260170752&amp;sr=1-1">Cocoa programming for Mac</a></p>
<p><strong>ประวัติศาสตร์</strong></p>
<p>ย้อนไปเมื่อสมัยก่อนครั้งที่นาย Steve Jobs หรือที่เรารู้จักกานในในนามของผู้ก่อตั้ง Apple Computer มีปัญหากับ นาย John Sculley</p>
<p>ซึ่งเป็นคนที่ Jobs จ้างมาเพื่อเป็น CEO ของ Apple ในสมัยนั้น ทำให้นาย John นั่นได้ใช้อำนาจย้าย Jobs ให้ไปดูแลในแผนกที่เขาไม่มีอำนาจในการควบคุมทิศทางของบริษัท เรื่องราวครั้งนั้นเป็นเหตุให้ Jobs ต้องหนีออกจากบริษัทที่ตัวเองสร้างมากับมือ แล้วไปตั้งบริษัทใหม่ในนามว่า NeXT Computer</p>
<p>NeXT ได้เริ่มจ้างทีมวิศวะกรเล็กที่มีประสิทธิภาพเข้ามาทำงาน และทีมเล็กๆนี้เองก็ได้สร้างสรรค์สิ่งต่างๆขึ้นมามากมายภายใต้ NeXT เช่น</p>
<p>Operating System, Printer, Development tool etc. แต่ละชิ้นที่ NeXT ทำการสร้างขึ้นนั้น เรื่องของเทคโนโลยีนั้นไม่ต้องพูดถึง เรียกได้ว่าในสมัยนั้นล้ำหน้ากว่าเทคโนโลยีอื่นๆไปมาก แต่ว่า NeXT Computer ก้อไม่ประสบผลสำเร็จในยอดขาย ทำให้ในปี 1993 บริษัทต้องปิดตัวลงไป แล้วเปลี่ยนชื่อจาก NeXT Computer ไปเป็น NeXT Software แทน</p>
<p>ต่อมาเมื่อเปลี่ยนชื่อบริษัทมาเป็น NeXT Software แล้วนั้น (ในความคิดส่วนตัวของผมเอง ผมคิดว่า Jobs คงมุ่งเป้ามาที่ การพัฒนา Software อย่างเดียวแทน ) ก้อได้มุ่งมาพัฒนา Operting System และ Development tools และจำหนายภายใน brand ที่ชื่อว่า NeXTSTEP นั่นเอง ** ผมขอนอกเรื่องนิดนึง เพื่อเป็นเกล็ดความรู้ สำหรับคนที่เคยผ่านตา Objective-c มาบ้าง อาจจะส่งสัยว่า ทำไม class ใน Objective-c นั้นจะต้องนำหน้าด้วย NS อย่างเช่น NSString, NSArry, .. ไอ้เจ้า NS นั้นก็ย่อมากจาก NeXTSTEP นั่นเองครับ ** มาว่ากันต่อ แต่ว่าในสมัยนั่นคนธรรมดาทั่วไปก็จะไม่ค่อยรู้จัก OS หรือ IDE ของ NeXTSTEP สักเท่าไหร่ จะเป็นที่นิยมแพร่หลายให้หมู่ของพวกนักวิทยาศาสตร์มากกว่า เป็นเพราะว่า OS และ IDE ของ NeXTSTEP ในสมัยนั่นสามารถที่จะ Implement idea ในการ Develop application ได้เร็วกว่าเทคโนโลยีอื่นๆ ที่มีในสมัยนั้น</p>
<p>เจ้าตัว OS ที่ NeXT ทำในตอนนั้น NeXT ได้ตัดสินใจที่จะใช้ Unix เป็น core ด้วยเหตุผลที่ว่า Unix นั้นเป็นระบบที่เสถียรมากกว่า Microsoft Window และ Mac OS ในสมัยนั่น และยังมีประสิทธิภาพในด้วยของ Networking อีกด้วย ต่อมา NeXT ได้ทำการเขียน Window server ขึ้นมาเพื่อให้ OS ของตัวเองนั่นสามารถที่จะเป็นตัวส่ง events ต่างๆที่ถูกส่งมาจาก user ไปให้กับ application ใช้ในการประมวณผล และในทางกลับกัน application ก็จะทำการส่งผลลัพธ์ที่ได้กลับไปให้ window server แสดงผลให้กับ user นั่นเอง</p>
<p>หลังจากนั้นไม่นาน NeXTSTEP ก็ได้ทำการสร้าง Set of libraries และ Tools ขึ้นมาเพื่อที่จะให้โปรแกรมเมอร์สามารถที่จะสร้างและจัดการกับ window manager ได้อย่างง่าย ไอ้เจ้า Libraries ตัวนั้นเองได้ถูกตั้งชื่อว่า Frameworks ในปี 1993 และต่อมาได้เรียกรวมระหว่าง Libraries กับ Tools ว่า OpenStep หรือที่รู้จักกันที่ในนามของ Cocoa ในปัจจุบัน</p>
<p>**ส่วนตัวของผมยังใหม่กับ OS X อยู่มาก เพราะเพิ่งมาเริ่มใช้ตอนเป็น 10.5 แล้ว แต่หลังจากอยู่กับมันมา 1 ปีเต็มทำให้ผมรักมันเข้าแล้ว</p>
<p>ขอบคุณ<a href="http://blog.geekura.com/">พี่มาย Rails dev.</a> แห่ง <a href="http://www.safecoms.com">safecoms</a> ทีเป็นแรงบรรดาลใจให้ผมหั่นมา develop on Mac</p>
<p>ในตอนต่อไปเราจะมาพูดถึงการเตรียมความพร้อมก่อนที่จะเริ่มสร้าง Cocoa application กัน <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Have fun with WhenURnotAround</p>
<br />Posted in Cocoa App Tagged: Cocoa, Cocoa App, MacBook, Ruby On Rails <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/371/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=371&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2009/12/07/%e0%b8%a1%e0%b8%b2%e0%b8%a3%e0%b8%b9%e0%b9%89%e0%b8%88%e0%b8%b1%e0%b8%81-cocoa-%e0%b8%84%e0%b8%b7%e0%b8%ad%e0%b8%ad%e0%b8%b0%e0%b9%84%e0%b8%a3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>
	</item>
		<item>
		<title>iPhone on Rails</title>
		<link>http://whenurnotaround.wordpress.com/2009/02/18/iphone-on-rails/</link>
		<comments>http://whenurnotaround.wordpress.com/2009/02/18/iphone-on-rails/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 10:53:04 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Cocoa App]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2009/02/18/iphone-on-rails/</guid>
		<description><![CDATA[ช่วงนี้นั้งลงศึกษา iPhone อย่างจริงจังเพราะทนกระแสความแรงไว้ไม่อยู่ ก่อนอื่นก็ต้องไปนั้งศึกษา Objective-C กานสักพักนึง ( เด๋วไว้วางๆจะมากเขียน Objective-C tutorial) วันนั้นนั้งฟัง podcast ที่ rails envy podcast #66 เห้็นว่ามีคนทำ library ของ iPhone ออกมาเพื่อที่จะใช้ต่อกับ Rails application เจ้าตัวนี้มันมีชื่อว่า ObjectiveResource ครับ (เข้าไปดาวโหลดกันได้ที่นี้ครับ iPhone on Rails ) เจ้าตัวนี้มันทำงานยังไง? - ก่อนอื่นเลยเราจะต้องมี (Restful) web service ที่ provided ข้อมูลที่เราต้องการไว้ ไม่ว่าจะเป็นใรูปของ XML หรือ JSON - จากนั้นตัว lib ที่เราโหลดไปใส่ไว้ในโปรเจคของไอโฟน จะทำหน้าที่สร้าง connection และทำการ อ่านข้อมูลจาก XML หรือ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=275&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ช่วงนี้นั้งลงศึกษา iPhone อย่างจริงจังเพราะทนกระแสความแรงไว้ไม่อยู่</p>
<p>ก่อนอื่นก็ต้องไปนั้งศึกษา Objective-C กานสักพักนึง ( เด๋วไว้วางๆจะมากเขียน Objective-C tutorial)</p>
<p>วันนั้นนั้งฟัง podcast ที่ <a href="http://www.railsenvy.com/2009/2/11/rails-envy-podcast-episode-066-02-12-2009" title="rails envy podcast #66">rails envy podcast #66</a> เห้็นว่ามีคนทำ library ของ iPhone ออกมาเพื่อที่จะใช้ต่อกับ Rails application</p>
<p>เจ้าตัวนี้มันมีชื่อว่า ObjectiveResource ครับ (เข้าไปดาวโหลดกันได้ที่นี้ครับ <a href="http://iphoneonrails.com/download" title="iPhone on Rails">iPhone on Rails</a> )</p>
<p></p>
<div style="text-align:center;">
  
</div>
<p>เจ้าตัวนี้มันทำงานยังไง?</p>
<p>- ก่อนอื่นเลยเราจะต้องมี (Restful) web service ที่ provided ข้อมูลที่เราต้องการไว้ ไม่ว่าจะเป็นใรูปของ XML หรือ JSON</p>
<p>- จากนั้นตัว lib ที่เราโหลดไปใส่ไว้ในโปรเจคของไอโฟน จะทำหน้าที่สร้าง connection และทำการ อ่านข้อมูลจาก XML หรือ JSON</p>
<p>หลังจากที่ลองใช้ดูแล้ว ผมว่าเจ้า library ตัวนี้ใช้ได้ดีทีเด๋วเลยแต่่ว่ามันสร้างมาเฉพาะกับ app ที่ทำการ route แบบ rest เท่านั้น</p>
<p>ถ้า app ของเราทำการ route แบบ default แล้วละก็ เราก็คงจะต้อง modify ตัว library เอาเองครับ ( ไม่มีอะไรซับซอนมากครับ ผมลองโมดูแล้ว )</p>
<br />Posted in Cocoa App, Ruby On Rails Tagged: Cocoa App, Rails <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/275/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=275&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2009/02/18/iphone-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>
	</item>
		<item>
		<title>One Sweet Day @ Taco</title>
		<link>http://whenurnotaround.wordpress.com/2009/02/16/one-sweet-day-taco/</link>
		<comments>http://whenurnotaround.wordpress.com/2009/02/16/one-sweet-day-taco/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 15:01:21 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Life Style]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2009/02/16/one-sweet-day-taco/</guid>
		<description><![CDATA[&#160;&#160; &#160;&#160;&#160;&#160; 1. เหนื่อยๆ ขอพักหน่อย 2. ขอเป็นนางแบบสักวัน &#160;&#160; 3. ได้เวลาวางมือ 4. ยังมันส์อยู่ &#160;&#160;&#160; 5. อีกคนเพิ่งกลับมาเมืองไทย 6. อีกหนึ่งกำลังจะจากเมืองไทย ช่วงเวลาดีของคนสองคน เราก็ควรที่จะเก็บมันเอาไว้ในความทรงจำตลอดไป Posted in Life Style<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=272&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;<img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-169.jpg?w=184&#038;h=123" width="184" height="123" alt="WakeBoard_169" /> <img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-183.jpg?w=183&#038;h=122" width="183" height="122" alt="WakeBoard_183" />&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>1. เหนื่อยๆ ขอพักหน่อย</p>
<p>2. ขอเป็นนางแบบสักวัน</p>
<p><img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-2851.jpg?w=182&#038;h=121" width="182" height="121" alt="WakeBoard_285" />&nbsp;&nbsp; <img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-39.jpg?w=179&#038;h=120" width="179" height="120" alt="WakeBoard_39" /></p>
<p>3. ได้เวลาวางมือ</p>
<p>4. ยังมันส์อยู่</p>
<p><img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-302.jpg?w=184&#038;h=274" width="184" height="274" alt="WakeBoard_302" /><img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-229.jpg?w=183&#038;h=273" width="183" height="273" alt="WakeBoard_229" />&nbsp;&nbsp;&nbsp;</p>
<p>5. อีกคนเพิ่งกลับมาเมืองไทย</p>
<p>6. อีกหนึ่งกำลังจะจากเมืองไทย</p>
<p><img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-297.jpg?w=184&#038;h=275" width="184" height="275" alt="WakeBoard_297" /><img src="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-6.jpg?w=185&#038;h=275" width="185" height="275" alt="WakeBoard_6" /></p>
<p>ช่วงเวลาดีของคนสองคน เราก็ควรที่จะเก็บมันเอาไว้ในความทรงจำตลอดไป</p>
<br />Posted in Life Style  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=272&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2009/02/16/one-sweet-day-taco/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-169.jpg" medium="image">
			<media:title type="html">WakeBoard_169</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-183.jpg" medium="image">
			<media:title type="html">WakeBoard_183</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-2851.jpg" medium="image">
			<media:title type="html">WakeBoard_285</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-39.jpg" medium="image">
			<media:title type="html">WakeBoard_39</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-302.jpg" medium="image">
			<media:title type="html">WakeBoard_302</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-229.jpg" medium="image">
			<media:title type="html">WakeBoard_229</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-297.jpg" medium="image">
			<media:title type="html">WakeBoard_297</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/wakeboard-6.jpg" medium="image">
			<media:title type="html">WakeBoard_6</media:title>
		</media:content>
	</item>
		<item>
		<title>How to start writting iPhone apps?</title>
		<link>http://whenurnotaround.wordpress.com/2009/02/06/how-to-start-writting-iphone-apps/</link>
		<comments>http://whenurnotaround.wordpress.com/2009/02/06/how-to-start-writting-iphone-apps/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 10:24:41 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Cocoa App]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2009/02/06/how-to-start-writting-iphone-apps/</guid>
		<description><![CDATA[1. Go to =&#62; iPhone dev center 2. get your account 3. Download an iPhone SDK (about 1.7 gb) 4. Install iPhone SDK. 5. Open Xcode. In this step your startup page of your Xcode will change it to something like this Now you&#8217;ll be ready to go&#8230;. Next I will tutorial you a little [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=259&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Go to =&gt; <a href="http://developer.apple.com/iphone/" title="iPhone dev center">iPhone dev center</a></p>
<p>2. get your account</p>
<p>3. Download an iPhone SDK (about 1.7 gb)</p>
<p>4. Install iPhone SDK.</p>
<p>5. Open Xcode.</p>
<ul>
<li>In this step your startup page of your Xcode will change it to something like this</li>
</ul>
<p><img src="http://whenurnotaround.files.wordpress.com/2009/02/users-macintosh-desktop-xcode-startup.jpg?w=480&#038;h=327" width="480" height="327" alt="_Users_macintosh_Desktop_xcode-startup.jpg" /></p>
<p>Now you&#8217;ll be ready to go&#8230;.</p>
<p>Next I will tutorial you a little app in iPhone. you can also see a lot of example from <a href="http://developer.apple.com/iphone/" title="iPhone dev center">iPhone dev center</a></p>
<br />Posted in Cocoa App Tagged: Cocoa App <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/259/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/259/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/259/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=259&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2009/02/06/how-to-start-writting-iphone-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/02/users-macintosh-desktop-xcode-startup.jpg" medium="image">
			<media:title type="html">_Users_macintosh_Desktop_xcode-startup.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>WALL E + EVE hard drive icons</title>
		<link>http://whenurnotaround.wordpress.com/2009/01/16/wall-e-eve-hard-drive-icons/</link>
		<comments>http://whenurnotaround.wordpress.com/2009/01/16/wall-e-eve-hard-drive-icons/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 10:19:05 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[MacBook]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2009/01/16/wall-e-eve-hard-drive-icons/</guid>
		<description><![CDATA[หลังจากเอาหนังมาล่อตาล่อใจกานไปนาน ตอนนี้เค้าปล่อยไอคอนสวยๆมาให้ download กันแล้วนะครับ ที่นี้เลย WALL E + EVE ที่มา: http://www.macmerc.com Posted in Ruby On Rails Tagged: MacBook<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=247&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>หลังจากเอาหนังมาล่อตาล่อใจกานไปนาน ตอนนี้เค้าปล่อยไอคอนสวยๆมาให้ download กันแล้วนะครับ</p>
<p>ที่นี้เลย <a href="http://iconfactory.com/freeware/preview/walle">WALL E + EVE</a></p>
<p>
<img src="http://whenurnotaround.files.wordpress.com/2009/01/preview.png?w=402&#038;h=413" width="402" height="413" alt="preview.png" /></p>
<p>ที่มา: http://www.macmerc.com</p>
<div class="center">
  
</div>
<br />Posted in Ruby On Rails Tagged: MacBook <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/247/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=247&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2009/01/16/wall-e-eve-hard-drive-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2009/01/preview.png" medium="image">
			<media:title type="html">preview.png</media:title>
		</media:content>
	</item>
		<item>
		<title>My new room</title>
		<link>http://whenurnotaround.wordpress.com/2008/12/18/my-new-room/</link>
		<comments>http://whenurnotaround.wordpress.com/2008/12/18/my-new-room/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 04:02:58 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/2008/12/18/my-new-room/</guid>
		<description><![CDATA[Posted in Ruby On Rails<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=237&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://whenurnotaround.files.wordpress.com/2008/12/image252.jpg?w=480&#038;h=360" width="480" height="360" alt="Image252.jpg" /></p>
<br />Posted in Ruby On Rails  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=237&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2008/12/18/my-new-room/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2008/12/image252.jpg" medium="image">
			<media:title type="html">Image252.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>เปลี่ยนจาก rake routes เดิมๆ มาใช้ vasco กานเถอะ</title>
		<link>http://whenurnotaround.wordpress.com/2008/10/30/%e0%b9%80%e0%b8%a5%e0%b8%b4%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-rake-routes-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%8a%e0%b9%89-vasco-%e0%b8%81%e0%b8%b2%e0%b8%99%e0%b9%80/</link>
		<comments>http://whenurnotaround.wordpress.com/2008/10/30/%e0%b9%80%e0%b8%a5%e0%b8%b4%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-rake-routes-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%8a%e0%b9%89-vasco-%e0%b8%81%e0%b8%b2%e0%b8%99%e0%b9%80/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 07:49:27 +0000</pubDate>
		<dc:creator>whenurnotaround</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[vasco]]></category>

		<guid isPermaLink="false">http://whenurnotaround.wordpress.com/?p=227</guid>
		<description><![CDATA[ระหว่างนั้งรอโรบิน (our designer) แก้ css ให้อยู่นั้น ก็แอบไปได้ยิน Gregg &#38; Jason (RailsEnvy) พูดใน podcast episode 53 เกี่ยวกับ plugin ที่ชื่อว่า Vasco สมุมตินะครับว่าถ้าเราต้องการอยากรู้ว่าใน app ของเรานี้นมี routes อะไรอยู่บ้าน เราจะทำอย่างไรครับ แน่นอนเราก็ $ rake routes ใช่ไหมครับ ผลลัพธ์ที่ออกมาก็ประมาณนี้ครับ ดูยากใช่ไหมครับ แล้วลองคิดดูว่าเรามีสัก 10-20 controlllers ไอ้เจ้า list นีจะยาวและดูยากสักแค่ไหน ที่นี้เรามาดูตัวช่วยกาน plugin ตัวนี้มีชื่อว่า Vasco ถามว่าทำไม่ต้องชื่อนี้ &#8230;.. เห็นเค้าบอกว่าเอามาจาก VASCO DA GAMA ซึ้งเป็นคนที่ค้บพบเส้นทาง (route) อ้อมแหลมแอฟรีกาไปยังอินเดียครับ How to Install? $ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=227&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ระหว่างนั้งรอโรบิน (our designer) แก้ css ให้อยู่นั้น ก็แอบไปได้ยิน Gregg &amp; Jason (<a href="http://www.railsenvy.com">RailsEnvy</a>) พูดใน <a href="http://rails-envy-podcast.s3.amazonaws.com/podcast%2053.mp3">podcast episode 53</a> เกี่ยวกับ plugin ที่ชื่อว่า Vasco</p>
<p>สมุมตินะครับว่าถ้าเราต้องการอยากรู้ว่าใน app ของเรานี้นมี routes อะไรอยู่บ้าน เราจะทำอย่างไรครับ</p>
<p>แน่นอนเราก็<code> $ rake routes </code> ใช่ไหมครับ<br />
ผลลัพธ์ที่ออกมาก็ประมาณนี้ครับ<br />
<a href="http://whenurnotaround.files.wordpress.com/2008/10/picture-14.png"><img class="alignnone size-full wp-image-228" title="picture-14" src="http://whenurnotaround.files.wordpress.com/2008/10/picture-14.png?w=550&#038;h=343" alt="" width="550" height="343" /></a></p>
<p>ดูยากใช่ไหมครับ แล้วลองคิดดูว่าเรามีสัก 10-20 controlllers ไอ้เจ้า list นีจะยาวและดูยากสักแค่ไหน</p>
<p>ที่นี้เรามาดูตัวช่วยกาน plugin ตัวนี้มีชื่อว่า Vasco ถามว่าทำไม่ต้องชื่อนี้ &#8230;..</p>
<p>เห็นเค้าบอกว่าเอามาจาก <em>VASCO</em> DA GAMA ซึ้งเป็นคนที่ค้บพบเส้นทาง (route) อ้อมแหลมแอฟรีกาไปยังอินเดียครับ</p>
<p><b>How to Install?</b><br />
<code><br />
$ script/plugin install git://github.com/relevance/vasco.git<br />
</code><br />
ปล. ต้องลง git ก่อนนะครับ ใครยังไม่มีไปดูได้ <a href="http://dysinger.net/2007/12/30/installing-git-on-mac-os-x-105-leopard/">ที่นี้</a></p>
<p><b>How to use?</b></p>
<p><code><br />
$ rake vasco:explore<br />
</code></p>
<p>หลังจาก start server แล้วเข้าไปที่ url ของโปรเจคเราแล้วตามด้วย /vasco<br />
ตัวอย่างของผมนะครับ<br />
<code>http://localhost:3000/vasco</p>
<p><a href="http://whenurnotaround.files.wordpress.com/2008/10/picture-24.png"><img src="http://whenurnotaround.files.wordpress.com/2008/10/picture-24.png?w=550&#038;h=343" alt="" title="picture-24" width="550" height="343" class="alignnone size-full wp-image-229" /></a></p>
<p>สวยงามครับ ที่นี้เราก็สามารถดูได้แล้วว่าเรามี route อะไรบ้างแล้วยังสามารถเทสส่งค่าไปมาได้อีกด้วยครับ</p>
<br />Posted in Ruby On Rails Tagged: Ruby On Rails, vasco <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whenurnotaround.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whenurnotaround.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whenurnotaround.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whenurnotaround.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whenurnotaround.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whenurnotaround.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whenurnotaround.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whenurnotaround.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whenurnotaround.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whenurnotaround.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whenurnotaround.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whenurnotaround.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whenurnotaround.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whenurnotaround.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whenurnotaround.wordpress.com&amp;blog=3603673&amp;post=227&amp;subd=whenurnotaround&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whenurnotaround.wordpress.com/2008/10/30/%e0%b9%80%e0%b8%a5%e0%b8%b4%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-rake-routes-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b8%a1%e0%b8%b2%e0%b9%83%e0%b8%8a%e0%b9%89-vasco-%e0%b8%81%e0%b8%b2%e0%b8%99%e0%b9%80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://rails-envy-podcast.s3.amazonaws.com/podcast%2053.mp3" length="15104904" type="audio/mpeg" />
	
		<media:content url="http://0.gravatar.com/avatar/677e1fadc3c6f9157b673146935db95b?s=96&#38;d=monsterid" medium="image">
			<media:title type="html">whenurnotaround</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2008/10/picture-14.png" medium="image">
			<media:title type="html">picture-14</media:title>
		</media:content>

		<media:content url="http://whenurnotaround.files.wordpress.com/2008/10/picture-24.png" medium="image">
			<media:title type="html">picture-24</media:title>
		</media:content>
	</item>
	</channel>
</rss>
