<?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>Blog ของอ้ายยนัท!</title>
	<atom:link href="http://iamnut.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://iamnut.com/blog</link>
	<description>แม่งเป็นบล๊อคที่มั่วและจับฉ่ายที่สุดใน 3 โลก</description>
	<lastBuildDate>Wed, 16 May 2012 14:49:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>[PHP] ว่าด้วยการเช็ค mime type ของไฟล์ที่อัพโหลด</title>
		<link>http://iamnut.com/blog/archives/271</link>
		<comments>http://iamnut.com/blog/archives/271#comments</comments>
		<pubDate>Wed, 16 May 2012 14:49:36 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=271</guid>
		<description><![CDATA[ในกรณีปกติถ้าอัพผ่าน form ปกติ ก็จะเช็ค แบบในลักษณะ $_FILES['file']['type'] ได้ไม่มีปัญหา ก็จะได้ข้อมูลมีค่าเป็น image/jpge แต่!!.. ถ้าใช้ผ่าน flash upload หรือใช้ curl อัพโหลดข้าม server หรือส่งต่ออีกทอดหนึ่ง mime type จากการเช็คในรูปแบบ $_FILES['file']['type'] ก็จะได้ค่าที่ผิดเพี้ยน เป็น application/octet-stream แต่ถ้าจะเช็คให้ได้ถูกต้อง ต้องเปลี่ยนวิธีเช็คนิดหน่อยโดยการใช้ฟังก์ชั่น mime_content_type โดยการเอาที่อยู่ไฟล์นั้นๆ มาเช็ค ตัวอย่างการใช้:: mime_content_type($_FILES['file']['tmp_name']); ก็จะได้ค่าเป็น image/jpge ซึ่งเป็นค่าที่ถูกต้อง.. ปล. ในตัวอย่างนี้สมมุติว่าอัพโหลดไฟล์รูป]]></description>
			<content:encoded><![CDATA[<p>ในกรณีปกติถ้าอัพผ่าน form ปกติ ก็จะเช็ค แบบในลักษณะ $_FILES['file']['type'] ได้ไม่มีปัญหา ก็จะได้ข้อมูลมีค่าเป็น image/jpge</p>
<p>แต่!!.. ถ้าใช้ผ่าน flash upload หรือใช้ curl อัพโหลดข้าม server หรือส่งต่ออีกทอดหนึ่ง mime type จากการเช็คในรูปแบบ $_FILES['file']['type'] ก็จะได้ค่าที่ผิดเพี้ยน เป็น application/octet-stream แต่ถ้าจะเช็คให้ได้ถูกต้อง ต้องเปลี่ยนวิธีเช็คนิดหน่อยโดยการใช้ฟังก์ชั่น mime_content_type โดยการเอาที่อยู่ไฟล์นั้นๆ มาเช็ค ตัวอย่างการใช้:: mime_content_type($_FILES['file']['tmp_name']);</p>
<p>ก็จะได้ค่าเป็น image/jpge ซึ่งเป็นค่าที่ถูกต้อง..</p>
<p>ปล. ในตัวอย่างนี้สมมุติว่าอัพโหลดไฟล์รูป</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/271/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ลบโลโก้ยูทูปออกจากตัวเล่นวีดีโอ</title>
		<link>http://iamnut.com/blog/archives/268</link>
		<comments>http://iamnut.com/blog/archives/268#comments</comments>
		<pubDate>Tue, 15 May 2012 14:27:29 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=268</guid>
		<description><![CDATA[ตามลิ้งค์นี้เลย ในหัวข้อ &#8220;Logoless player&#8221; > http://youtube-global.blogspot.com/2011/06/next-step-in-embedded-videos-hd-preview.html]]></description>
			<content:encoded><![CDATA[<p>ตามลิ้งค์นี้เลย ในหัวข้อ &#8220;Logoless player&#8221; > http://youtube-global.blogspot.com/2011/06/next-step-in-embedded-videos-hd-preview.html</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/268/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>โปรแกรมอ่านออกเสียงภาษาไทย (รุ่น 0.1)</title>
		<link>http://iamnut.com/blog/archives/262</link>
		<comments>http://iamnut.com/blog/archives/262#comments</comments>
		<pubDate>Wed, 25 Apr 2012 13:05:23 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[C-Sharp]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=262</guid>
		<description><![CDATA[เอาไว้ให้มันอ่านข่าวหรือบทความประโยคยาวๆ ในเวลาที่เราขี้เกลียดอ่าน 55 อ้อ.. ในการใช้งานต้องต่อเน็ตด้วยนะ โหลดไปลองเล่นได้เลย: http://iamnut.com/downloads/SpeakThai-V0.1.rar ปล. เล่นระวังเจอ Bug เกรียนๆนะฮับ55]]></description>
			<content:encoded><![CDATA[<p>เอาไว้ให้มันอ่านข่าวหรือบทความประโยคยาวๆ ในเวลาที่เราขี้เกลียดอ่าน 55<br />
อ้อ.. ในการใช้งานต้องต่อเน็ตด้วยนะ</p>
<p><a href="http://iamnut.com/blog/wp-content/uploads/2012/04/432145_3478066360653_1541097291_3037752_1203053781_n.jpg"><img class="size-medium wp-image-263 aligncenter" title="432145_3478066360653_1541097291_3037752_1203053781_n" src="http://iamnut.com/blog/wp-content/uploads/2012/04/432145_3478066360653_1541097291_3037752_1203053781_n-300x165.jpg" alt="" width="300" height="165" /></a></p>
<p>โหลดไปลองเล่นได้เลย: http://iamnut.com/downloads/SpeakThai-V0.1.rar</p>
<p>ปล. เล่นระวังเจอ Bug เกรียนๆนะฮับ55</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/262/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[C#] การอ่านข้อมูลในไฟล์ที่ต้องการ</title>
		<link>http://iamnut.com/blog/archives/254</link>
		<comments>http://iamnut.com/blog/archives/254#comments</comments>
		<pubDate>Thu, 15 Mar 2012 15:17:11 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[C-Sharp]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=254</guid>
		<description><![CDATA[อ่านข้อมูลมาทั้งก้อนทีเดียวจากไฟล์ &#8220;myfile.txt&#8221; มาไว้ในตัวแปร test ซึ่งมีชนิดเป็น string ปล. เขียน Blog มักง่ายไปป่ะเนี่ย 555]]></description>
			<content:encoded><![CDATA[<pre class="brush: csharp; title: ; notranslate">
using System.IO;

StreamReader streamReader = new StreamReader(@&quot;C:\myfile.txt&quot;);
string text = streamReader.ReadToEnd();
streamReader.Close();
</pre>
<p>อ่านข้อมูลมาทั้งก้อนทีเดียวจากไฟล์ &#8220;myfile.txt&#8221; มาไว้ในตัวแปร test ซึ่งมีชนิดเป็น string</p>
<p>ปล. เขียน Blog มักง่ายไปป่ะเนี่ย 555</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TurboC On Windows 7 x64</title>
		<link>http://iamnut.com/blog/archives/243</link>
		<comments>http://iamnut.com/blog/archives/243#comments</comments>
		<pubDate>Thu, 16 Feb 2012 07:54:35 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=243</guid>
		<description><![CDATA[ถ้าใครใช้ TurboC บน Windows 7 64bit จะเกิดปัญหาการรันโปรแกรมไม่ขึ้นเพราะ Windows 7 64bit ไม่รองรับการทำงานของโปรแกรมที่ทำงานบน Mode 16bit อีกต่อไปแล้ว ฮาๆ แต่แล้วจะทำยังไงล่ะ ? ในเมื่อเราใช้ Windows 7 อยู่และไม่อยากย้อนกลับไปลง Windows XP หรือรุ่นที่เก่ากว่านั้น งานนี้พระเอกของเราคือ DosBox ที่จะทำหน้าที่จำลองการทำงานระบบคอมพิวเตอร์เสมือนขึ้นมาซ้อนไว้บน Windows 7 ของเราอาห์.. อย่างนี้เราก็สามารถใช้โปรแกรมไดโนเสาร์ อย่าง TurboC บน Windows 7 ที่ทันสมัยได้แล้ว!! อ่านก่อนสักนิด ถ้ามีการใส่ไฟล์ใดๆ ใหม่ลงไปใน &#8230;<p class="read-more"><a href="http://iamnut.com/blog/archives/243">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>ถ้าใครใช้ TurboC บน Windows 7 64bit จะเกิดปัญหาการรันโปรแกรมไม่ขึ้นเพราะ Windows 7 64bit ไม่รองรับการทำงานของโปรแกรมที่ทำงานบน Mode 16bit อีกต่อไปแล้ว ฮาๆ<br />
แต่แล้วจะทำยังไงล่ะ ? ในเมื่อเราใช้ Windows 7 อยู่และไม่อยากย้อนกลับไปลง Windows XP หรือรุ่นที่เก่ากว่านั้น งานนี้พระเอกของเราคือ DosBox ที่จะทำหน้าที่จำลองการทำงานระบบคอมพิวเตอร์เสมือนขึ้นมาซ้อนไว้บน Windows 7 ของเราอาห์.. อย่างนี้เราก็สามารถใช้โปรแกรมไดโนเสาร์ อย่าง TurboC บน Windows 7 ที่ทันสมัยได้แล้ว!!</p>
<p><center><br />
<a href="http://iamnut.com/blog/wp-content/uploads/2012/02/00.jpg"><img class="alignnone size-medium wp-image-244" title="TurboC on Windows 7 x64" src="http://iamnut.com/blog/wp-content/uploads/2012/02/00-300x180.jpg" alt="" width="300" height="180" /></a></center>
<pre class="brush: cpp; title: ; notranslate">
#include &lt;graphics.h&gt;
#include &lt;conio.h&gt;

void main()
{
    int gd=DETECT, gm;
    int poly[12]={350,450, 350,410, 430,400, 350,350, 300,430, 350,450 };
    initgraph(&amp;gd,&amp;gm,&quot;C:\\tc\\bgi&quot;);
    circle(100,100,50);
    outtextxy(75,170, &quot;Circle&quot;);
    rectangle(200,50,350,150);
    outtextxy(240, 170, &quot;Rectangle&quot;);
    ellipse(500, 100,0,360, 100,50);
    outtextxy(480, 170, &quot;Ellipse&quot;);
    line(100,250,540,250);
    outtextxy(300,260,&quot;Line&quot;);
    sector(150, 400, 30, 300, 100,50);
    outtextxy(120, 460, &quot;Sector&quot;);
    drawpoly(6, poly);
    outtextxy(340, 460, &quot;Polygon&quot;);
    getch();
    closegraph();
}
</pre>
<p><span style="color: #ff0000;"><strong>อ่านก่อนสักนิด</strong></span></p>
<ul>
<li>ถ้ามีการใส่ไฟล์ใดๆ ใหม่ลงไปใน &#8220;DriveD in TurboC&#8221; โปรแกรมจะไม่เห็นไฟล์นั้นๆ ให้ปิดแล้วเปิดใหม่</li>
<li>ตำแหน่งของโปรแกรม TurboC จะอยู่ที่ c:\tc ถ้าการเขียนโปรแกรมต้องมีการอ้างถึง <span style="color: #ff0000;">อย่าไปอ้างถึงผิดที่แล้วบอกว่าใช้ไม่ได้ล่ะ</span></li>
</ul>
<p><span style="color: #ff0000;">ดาวน์โหลด</span>ตัวติดตั้งได้ <a href="http://iamnut.com/downloads/TurboC%20For%20Windows%207%20x86%20&amp;%20x64.exe">ที่นี่</a> เลย!</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/243/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP] Script Update DDNS and Reboot Router SMC7904WBRA2</title>
		<link>http://iamnut.com/blog/archives/239</link>
		<comments>http://iamnut.com/blog/archives/239#comments</comments>
		<pubDate>Mon, 06 Feb 2012 16:44:48 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=239</guid>
		<description><![CDATA[Class ตัวนี้ ทำไว้ใช้ที่ Office นานแล้ว หลักการไม่มีอะไรมากแค่ใช้ Curl ไปเปิดลิ้งค์สั่งการ Router เท่านั้น ที่จริงใช้ Curl เพียวๆ เลยก็ได้นะ ก๊ากกกก! ทำทำอะไรให้ยุ่งยากจริงๆ&#8230;]]></description>
			<content:encoded><![CDATA[<p>Class ตัวนี้ ทำไว้ใช้ที่ Office นานแล้ว หลักการไม่มีอะไรมากแค่ใช้ Curl ไปเปิดลิ้งค์สั่งการ Router เท่านั้น<br />
ที่จริงใช้ Curl เพียวๆ เลยก็ได้นะ ก๊ากกกก! ทำทำอะไรให้ยุ่งยากจริงๆ&#8230;</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/**
  * Developer: Titiwut Muktikanantakun (Nut)
  * Version: 0.01
  **/
class RouterReboot
{
	private $host;

	private $url_login;
	private $url_logout;
	private $password;
	private $url_reboot;
	private $url_ddns;
	private $ddns_enable;
	private $ddns_provider;
	private $ddns_domainame;
	private $ddns_account;

	private function setval()
	{
		$this-&gt;host				= &quot;http://&quot;.&quot;192.168.2.1&quot;;

		$this-&gt;url_login		= $this-&gt;host. &quot;/cgi-bin/login.exe&quot;;
		$this-&gt;url_logout		= $this-&gt;host. &quot;/cgi-bin/logout.exe&quot;;
		$this-&gt;password			= &quot;pws=smcadmin&quot;;

		$this-&gt;url_reboot		= $this-&gt;host. &quot;/cgi-bin/restart.exe&quot;;

		$this-&gt;url_ddns			= $this-&gt;host. &quot;/cgi-bin/setup_ddns.exe&quot;;
		$this-&gt;ddns_enable		= 0;				# 0 = Disable # 1 = Enable
		$this-&gt;ddns_provider	= 0;				# 0 - DynDNS.org # 1 - TZO.com # 2 - NO-IP.com
		$this-&gt;ddns_domainame 	= &quot;xxxx.xxx&quot;; 		# test.com
		$this-&gt;ddns_account		= &quot;xxx@xxxx.xxx&quot;;	# Account / E-mail
		$this-&gt;ddns_password	= &quot;xxxxxxx&quot;;		# password
	}

	public function Run()
	{
		$this-&gt;setval();

		switch ($_GET['cmd'])
		{
			case reboot:
				$this-&gt;Login();
				$this-&gt;Reboot();
				break;
			case ddns:
				$this-&gt;Login();
				$this-&gt;UpdateDdns();
				break;
			default:
				echo &quot;..........&quot;;
				exit(0);
				break;
		}

		$this-&gt;Logout();
	}

	private function Login()
	{
		$ch = curl_init($this-&gt;url_login);

		curl_setopt($ch, CURLOPT_POST, true);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_POSTFIELDS, $this-&gt;password);
		ob_start();
		$exec = curl_exec($ch);
		ob_end_clean();

		if (!strstr($exec, 'index.stm'))
		{
			echo &quot;time: &quot; .date(&quot;Y-m-d H:i:s&quot;).&quot; | Incorrect Password\n&quot;;
			curl_close($ch);
			exit(0);
		}
		else
		{
			echo &quot;time: &quot; .date(&quot;Y-m-d H:i:s&quot;).&quot; | Login Success\n&quot;;
		}

		curl_close($ch);
	}

	private function Logout()
	{
		$ch = curl_init($this-&gt;url_logout);
		ob_start();
		curl_exec($ch);
		ob_end_clean();
		echo &quot;time: &quot; .date(&quot;Y-m-d H:i:s&quot;).&quot; | Logout Success\n&quot;;
		curl_close($ch);
	}

	private function UpdateDdns()
	{
		$ch = curl_init($this-&gt;url_ddns);
		curl_setopt($ch, CURLOPT_POST, true);

		if ($this-&gt;ddns_enable == 1)
		{
			$SendPost = &quot;ddns_enable=&quot; .$this-&gt;ddns_enable
						.&quot;&amp;ddns_provider=&quot; .$this-&gt;ddns_provider
						.&quot;&amp;ddns_domainame=&quot; .$this-&gt;ddns_domainame
						.&quot;&amp;ddns_account=&quot; .$this-&gt;ddns_account
						.&quot;&amp;ddns_password=&quot; .$this-&gt;ddns_password;
		}
		else
		{
			$SendPost = &quot;ddns_enable=&quot; .$this-&gt;ddns_enable;
		}

		curl_setopt($ch, CURLOPT_POSTFIELDS, $SendPost);
		ob_start();
		$exec = curl_exec($ch);
		ob_end_clean();
		echo &quot;time: &quot; .date(&quot;Y-m-d H:i:s&quot;).&quot; | Update Dynamic DNS Success\n&quot;;
		curl_close($ch);
	}

	private function Reboot()
	{
		$ch = curl_init($this-&gt;url_reboot);
		ob_start();
		curl_exec($ch);
		ob_end_clean();
		echo &quot;time: &quot; .date(&quot;Y-m-d H:i:s&quot;).&quot; | Reboot Now\n&quot;;
		curl_close($ch);
	}
}

$RT = new RouterReboot();
$RT-&gt;Run();

?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/239/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เช็ค Session ที่เปิดอยู่ผ่าน Command Line</title>
		<link>http://iamnut.com/blog/archives/232</link>
		<comments>http://iamnut.com/blog/archives/232#comments</comments>
		<pubDate>Sun, 13 Nov 2011 14:12:48 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=232</guid>
		<description><![CDATA[query session query session จะแสดงรายชื่อ Session ที่เปิดทำงานอยู่ละบอกสถานะว่า Disconnected หรือ Active และยังบอก Client Name &#8230; reset session #ID Session# ถ้าต้องการปิด Session ใดๆ ทิ้งก็ใช้คำสั่ง reset session ตามด้วยไอดีของ Session นั้นๆ ปล. ที่จริงใช้ Windows Task Manager ตรงที่ tab users ก็ได้นะเออ ง่ายดี 55+]]></description>
			<content:encoded><![CDATA[<blockquote><p>query session</p></blockquote>
<p>query session จะแสดงรายชื่อ Session ที่เปิดทำงานอยู่ละบอกสถานะว่า Disconnected หรือ Active และยังบอก Client Name &#8230;</p>
<blockquote><p>reset session #ID Session#</p></blockquote>
<p>ถ้าต้องการปิด Session ใดๆ ทิ้งก็ใช้คำสั่ง reset session ตามด้วยไอดีของ Session นั้นๆ</p>
<p>ปล. ที่จริงใช้ Windows Task Manager ตรงที่ tab users ก็ได้นะเออ ง่ายดี 55+</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/232/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[C#] สร้างเสียง Beep</title>
		<link>http://iamnut.com/blog/archives/228</link>
		<comments>http://iamnut.com/blog/archives/228#comments</comments>
		<pubDate>Sun, 30 Oct 2011 15:11:50 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=228</guid>
		<description><![CDATA[เรียกใช้ library kernel32.dll เพื่อจะเรียกใช้ฟังก์ชั่น Beep เพื่อสร้างเสียง Beep โดยฟังก์ชั่น Beep( ความถี่เสียง, ความยาวเสียง); แล้วเราก็จะใช้ Sleep ในการหยุดการทำงานไว้หน่วยเป็นมิลลิวินาที]]></description>
			<content:encoded><![CDATA[<p>เรียกใช้ library kernel32.dll เพื่อจะเรียกใช้ฟังก์ชั่น Beep เพื่อสร้างเสียง Beep โดยฟังก์ชั่น Beep( ความถี่เสียง, ความยาวเสียง);<br />
แล้วเราก็จะใช้ Sleep ในการหยุดการทำงานไว้หน่วยเป็นมิลลิวินาที</p>
<pre class="brush: csharp; title: ; notranslate">
using System;
using System.Runtime.InteropServices;

namespace ConsoleApplication1
{
    class Program
    {
        [DllImport(&quot;Kernel32.dll&quot;)]
        public static extern bool Beep(UInt32 frequency, UInt32 duration);

        static void Main(string[] args)
        {
            Beep(1000, 300);
            System.Threading.Thread.Sleep(300);
            Beep(2000, 400);
            System.Threading.Thread.Sleep(300);
            Beep(5000, 200);
            System.Threading.Thread.Sleep(300);
            Beep(5000, 800);
            System.Threading.Thread.Sleep(300);
        }
    }

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/228/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>รู้จักน้ำท่วมให้มากขึ้น</title>
		<link>http://iamnut.com/blog/archives/223</link>
		<comments>http://iamnut.com/blog/archives/223#comments</comments>
		<pubDate>Thu, 27 Oct 2011 13:12:11 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=223</guid>
		<description><![CDATA[วีดีโอดีๆ (โดย: กลุ่มอาสาสมัครทำสื่อวิดีโอสร้างสรรค์) แนะนำช่วงน้ำท่วม ตอนนี้มีออกมาแค่ 2 ตอน.. ตอนที่ 1: รู้จักน้ำท่วมให้มากขึ้น ตอนที่ 2: 3 คำถามยอดฮิต ตอนที่ 3: เตรียมตัวก่อนน้ำมาถึง ตอนที่ &#8230;: ติดตามได้ที่ http://www.youtube.com/user/roosuflood]]></description>
			<content:encoded><![CDATA[<p>วีดีโอดีๆ (โดย: กลุ่มอาสาสมัครทำสื่อวิดีโอสร้างสรรค์) แนะนำช่วงน้ำท่วม ตอนนี้มีออกมาแค่ 2 ตอน..</p>
<p>ตอนที่ 1: รู้จักน้ำท่วมให้มากขึ้น<br />
<iframe src="http://www.youtube.com/embed/b8zAAEDGQPM?rel=0" frameborder="0" width="560" height="315"></iframe></p>
<p>ตอนที่ 2: 3 คำถามยอดฮิต<br />
<iframe src="http://www.youtube.com/embed/LY7a88olbek?rel=0" frameborder="0" width="560" height="315"></iframe></p>
<p>ตอนที่ 3: เตรียมตัวก่อนน้ำมาถึง<br />
<iframe src="http://www.youtube.com/embed/cAKhNcAeYp0?rel=0" frameborder="0" width="560" height="315"></iframe></p>
<p>ตอนที่ &#8230;: ติดตามได้ที่ http://www.youtube.com/user/roosuflood</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/223/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เปลี่ยนสีเวลาคลุมดำให้หน้าเพจ (selection)</title>
		<link>http://iamnut.com/blog/archives/213</link>
		<comments>http://iamnut.com/blog/archives/213#comments</comments>
		<pubDate>Sun, 09 Oct 2011 15:14:54 +0000</pubDate>
		<dc:creator>iamnut</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://iamnut.com/blog/?p=213</guid>
		<description><![CDATA[งานนี้ไปเจอโดยบังเอิญแท้ๆ พอดีเข้าไปเว็บของมหาลัยศรีประทุมแล้วเผลอเอาเมาส์ไปลากคลุมข้อความแล้ว&#8230; เอ๊ะๆ ทำไมสีมันแปลกๆ (โครตสวยเลยสาด) เลยลองแกะโค้ดดู&#8230; อ้ออออ เพราะโค้ด css ตัวนี้นี่เองแต่น่าเสียดายมันใช้ได้แค่กับ IE 9+ &#124; FF &#124; ตระกูล webkit (Safari, Chrome) &#124; Opera 9.5+ ปล. ::-moz-selection จะใช้กับ FireFox เท่านั้น &#8211; ทำไมไม่ไปใช้ ::selection ให้เหมือนชาวบ้านว้าาา..]]></description>
			<content:encoded><![CDATA[<p>งานนี้ไปเจอโดยบังเอิญแท้ๆ พอดีเข้าไปเว็บของมหาลัยศรีประทุมแล้วเผลอเอาเมาส์ไปลากคลุมข้อความแล้ว&#8230; เอ๊ะๆ ทำไมสีมันแปลกๆ (โครตสวยเลยสาด) เลยลองแกะโค้ดดู&#8230; อ้ออออ</p>
<pre class="brush: css; title: ; notranslate">::-moz-selection { background: #FF5E99; color:#fff; text-shadow: none; }
::selection { background:#FF5E99; color:#fff; text-shadow: none; }</pre>
<p><img class="alignnone size-full wp-image-216" style="border: 0pt none;" title="aasda" src="http://iamnut.com/blog/wp-content/uploads/2011/10/aasda.png" alt="" width="292" height="149" /></p>
<p>เพราะโค้ด css ตัวนี้นี่เองแต่น่าเสียดายมันใช้ได้แค่กับ IE 9+ | FF | ตระกูล webkit (Safari, Chrome) | Opera 9.5+</p>
<p>ปล. ::-moz-selection จะใช้กับ FireFox เท่านั้น &#8211; ทำไมไม่ไปใช้ ::selection ให้เหมือนชาวบ้านว้าาา..</p>
]]></content:encoded>
			<wfw:commentRss>http://iamnut.com/blog/archives/213/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

