<?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>Dexdev &#187; Challenge</title>
	<atom:link href="http://www.dexdev.com/category/challenge/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dexdev.com</link>
	<description>เป็นโปรแกรมเมอร์มันไม่ง่าย แต่ก็ทำเป็นอยู่อย่างเดียวนี่แหละ</description>
	<lastBuildDate>Fri, 27 Aug 2010 11:44:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>เขียน game ด้วย prototype</title>
		<link>http://www.dexdev.com/prototype/guess-game/</link>
		<comments>http://www.dexdev.com/prototype/guess-game/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 16:34:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Challenge]]></category>
		<category><![CDATA[Prototype]]></category>

		<guid isPermaLink="false">http://www.dexdev.com/?p=107</guid>
		<description><![CDATA[เกมส์เดารหัสผ่านนะครับลองเล่นๆกันดู ที่จริงผมตั้งใจจะนำ Utility Methods ของ prototype มาใช้ให้มากที่สุดครับ เอาเป็นว่าเล่นเกมส์แก้เครียดกันไปก่อนเดี๋ยวกลับมาเขียนบทความ .row { clear: both; padding: 5px; } label { display: block; width: 150px; float: left; padding: 3px; } #result { margin: 5px 0px; border: 1px solid #ccc; background: #eee; padding: 10px; font-size: 20px; font-weight: bold; font-family: Helvetica; width: 300px; } เกมส์เดารหัสผ่าน เลือก ชุดกุญแจ และพิมพ์รหัสผ่าน แล้วกดคำนวนท่านจะได้ผลลัพธ์ รหัสผ่านที่ถูกต้องเมื่อนำคำนวนจะได้ผลลัพธเท่ากับ 666 [...]]]></description>
			<content:encoded><![CDATA[<p>เกมส์เดารหัสผ่านนะครับลองเล่นๆกันดู ที่จริงผมตั้งใจจะนำ Utility Methods ของ prototype มาใช้ให้มากที่สุดครับ เอาเป็นว่าเล่นเกมส์แก้เครียดกันไปก่อนเดี๋ยวกลับมาเขียนบทความ<span id="more-107"></span><br />
<script type="text/javascript" src="/wp-includes/js/prototype.js"></script></p>
<style type="text/css">
.row { 	clear: both; 	padding: 5px; } label { 	display: block; 	width: 150px; 	float: left; 	padding: 3px; } #result { 	margin: 5px 0px; 	border: 1px solid #ccc; 	background: #eee; 	padding: 10px; 	font-size: 20px; 	font-weight: bold; 	font-family: Helvetica; 	width: 300px; }</style>
<h3>เกมส์เดารหัสผ่าน</h3>
<ul>
<li>เลือก ชุดกุญแจ และพิมพ์รหัสผ่าน แล้วกดคำนวนท่านจะได้ผลลัพธ์</li>
<li>รหัสผ่านที่ถูกต้องเมื่อนำคำนวนจะได้ผลลัพธเท่ากับ 666</li>
<li>ใบ้เพิ่มรหัสผ่านเป็นตัวอักษร a-z</li>
<li>* แก้ตาม comment คุณ alle ตัวอักษรห้ามซ้ำ</li>
</ul>
<form id="form-game" method="post">
<div class="row"><label for="pass">รหัสผ่าน </label></p>
<input id="pass" name="pass" type="text" maxlength="20" /></div>
<div class="row"><label for="key">ชุดกุญแจ</label></p>
<select id="key" name="key">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
</div>
<div class="row">
<input type="submit" value="คำนวน" /></div>
<div class="row">ผลการคำนวน
<div id="result"></div>
</div>
</form>
<p><script type="text/javascript">
		 Event.observe('form-game', 'submit', function(e) {
			var AZ	= $A($R('a', 'z'));
			var pass	= $A($F('pass')).uniq();
			var key	= $F('key');
			var ret	= 0;
			pass.each(function (c){
				ret += key*(AZ.indexOf(c)+1);
			})
			$('result').update(ret);
			e.stop();
		 });
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dexdev.com/prototype/guess-game/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Protected: random(n)</title>
		<link>http://www.dexdev.com/challenge/random-function/</link>
		<comments>http://www.dexdev.com/challenge/random-function/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 04:59:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Challenge]]></category>

		<guid isPermaLink="false">http://www.dexdev.com/?p=74</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://www.dexdev.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-74">Password:<br />
<input name="post_password" id="pwbox-74" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.dexdev.com/challenge/random-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: 125th room</title>
		<link>http://www.dexdev.com/challenge/125th/</link>
		<comments>http://www.dexdev.com/challenge/125th/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 05:27:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Challenge]]></category>

		<guid isPermaLink="false">http://www.dexdev.com/?p=56</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://www.dexdev.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-56">Password:<br />
<input name="post_password" id="pwbox-56" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.dexdev.com/challenge/125th/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
