<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>S i X h E a D { ? }</title>
	
	<link>http://sixhead.com</link>
	<description>เมื่อความรู้มีไว้แบ่งปัน</description>
	<lastBuildDate>Wed, 01 Jul 2009 14:53:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SIXHEAD" type="application/rss+xml" /><item>
		<title>จำกัดจำนวนตัวอักษรใน textarea</title>
		<link>http://sixhead.com/2009/06/30/limit-textarea-maxlength/</link>
		<comments>http://sixhead.com/2009/06/30/limit-textarea-maxlength/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:01:01 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[length]]></category>
		<category><![CDATA[textarea]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=455</guid>
		<description><![CDATA[บางครั้งเราต้องการจำกัดจำนวนตัวอักษรใน textarea ปรากฏว่ามันไม่ง่ายเหมือน text box ที่เราสามารถใส่ attribute maxlength เข้าไปจำกัดตัวอักษรได้ตรงๆ จึงต้องใช้ jquery เข้ามาช่วยดังตัวอย่าง

&#160;
&#60;script src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js&#34;&#62;&#60;/script&#62;
&#60;script&#62;
$(document).ready(function(){
	$('#Wish').keyup(function(){
		var max = parseInt($(this).attr('maxlength'));
		if($(this).val().length &#62; max){
			$(this).val($(this).val().substr(0, $(this).attr('maxlength')));
		}
		$('#WishMax').html('เหลืออีก ' + (max - $(this).val().length) + ' ตัวอักษร');
	});
});
&#60;/script&#62;
&#160;
&#60;textarea name=&#34;Wish&#34; id=&#34;Wish&#34; maxlength=&#34;10&#34;&#62;&#60;/textarea&#62;
&#60;div id=&#34;WishMax&#34;&#62;&#60;/div&#62;
&#160;



]]></description>
			<content:encoded><![CDATA[<p>บางครั้งเราต้องการจำกัดจำนวนตัวอักษรใน textarea ปรากฏว่ามันไม่ง่ายเหมือน text box ที่เราสามารถใส่ attribute maxlength เข้าไปจำกัดตัวอักษรได้ตรงๆ จึงต้องใช้ jquery เข้ามาช่วยดังตัวอย่าง<br />
<span id="more-455"></span></p>
<pre class="html4strict">&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script&gt;</span></a></span>
$(document).ready(function(){
	$('#Wish').keyup(function(){
		var max = parseInt($(this).attr('maxlength'));
		if($(this).val().length &gt; max){
			$(this).val($(this).val().substr(0, $(this).attr('maxlength')));
		}
		$('#WishMax').html('เหลืออีก ' + (max - $(this).val().length) + ' ตัวอักษร');
	});
});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/textarea.html"><span style="color: #000000; font-weight: bold;">&lt;textarea</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Wish&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;Wish&quot;</span> <span style="color: #000066;">maxlength</span>=<span style="color: #ff0000;">&quot;10&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/textarea&gt;</span></span>
<span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;WishMax&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
&nbsp;</pre>
<p><map name='google_ad_map_455_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/455?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_455_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=455&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F06%2F30%2Flimit-textarea-maxlength%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/06/30/limit-textarea-maxlength/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ใช้ mysql_fetch_assoc แทน mysql_fetch_array กันดีกว่า</title>
		<link>http://sixhead.com/2009/06/19/mysql_fetch_assoc-vs-mysql_fetch_array/</link>
		<comments>http://sixhead.com/2009/06/19/mysql_fetch_assoc-vs-mysql_fetch_array/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 04:30:09 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=444</guid>
		<description><![CDATA[ถ้าเวปคุณเล็กๆ คนเข้าน้อยคงไม่ต้องสนใจรายละเอียดอะไรมากนัก แต่วันนึงเวปเริ่มโต คนเริ่มเยอะ
การเปลี่ยนแปลงนิดเดียวอาจได้ผลที่น่าแปลกใจ

ปกติส่วนมากเราจะ query แบบนี้
&#60;?php
$sql = &#34;SELECT * FROM table&#34;;
$result = mysql_query&#40;$sql&#41;;
if &#40;!$result&#41; &#123; echo &#34;$sql&#34;; die&#40;&#34;\n Invalid query: &#34; . mysql_error&#40;&#41;&#41;; &#125;
while&#40;$row = mysql_fetch_array&#40;$result&#41;&#41; &#123;
	$ConcertId=	$row&#91;&#34;ConcertId&#34;&#93;;
	$ConcertName=	$row&#91;&#34;ConcertName&#34;&#93;;
&#125;
mysql_free_result&#40;$result&#41;;
?&#62;
ถ้าใช้ mysql_fetch_array จะได้ array ($row) ดังนี้
Array
(
    [0] =&#62; 40
    [ConcertId] =&#62; 40
    [1] =&#62; test1
    [ConcertName] =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>ถ้าเวปคุณเล็กๆ คนเข้าน้อยคงไม่ต้องสนใจรายละเอียดอะไรมากนัก แต่วันนึงเวปเริ่มโต คนเริ่มเยอะ<br />
การเปลี่ยนแปลงนิดเดียวอาจได้ผลที่น่าแปลกใจ<br />
<span id="more-444"></span></p>
<p>ปกติส่วนมากเราจะ query แบบนี้</p>
<pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #0000ff;">$sql</span> = <span style="color: #ff0000;">&quot;SELECT * FROM table&quot;</span>;
<span style="color: #0000ff;">$result</span> = <a href="http://www.php.net/mysql_query"><span style="color: #000066;">mysql_query</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$sql</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #0000ff;">$result</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;$sql&quot;</span>; <a href="http://www.php.net/die"><span style="color: #000066;">die</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> Invalid query: &quot;</span> . <a href="http://www.php.net/mysql_error"><span style="color: #000066;">mysql_error</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span>
<span style="color: #b1b100;">while</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$row</span> = <a href="http://www.php.net/mysql_fetch_array"><span style="color: #000066;">mysql_fetch_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$result</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$ConcertId</span>=	<span style="color: #0000ff;">$row</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;ConcertId&quot;</span><span style="color: #66cc66;">&#93;</span>;
	<span style="color: #0000ff;">$ConcertName</span>=	<span style="color: #0000ff;">$row</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;ConcertName&quot;</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #66cc66;">&#125;</span>
<a href="http://www.php.net/mysql_free_result"><span style="color: #000066;">mysql_free_result</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$result</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
<pre>ถ้าใช้ mysql_fetch_array จะได้ array ($row) ดังนี้
Array
(
    [0] =&gt; 40
    [ConcertId] =&gt; 40
    [1] =&gt; test1
    [ConcertName] =&gt; test1
)
&nbsp;
ส่วน mysql_fetch_assoc จะได้ array ($row) ดังนี้
Array
(
    [ConcertId] =&gt; 40
    [ConcertName] =&gt; test1
)</pre>
<p>จะทำให้คุณใช้ memory น้อยลงไปอีก เพราะส่วนมากเราใช้ $row["ColumnName"] กันอยู่แล้ว<br />
อีกอย่าง เลิก SELECT * กันเถอะ ให้ SELECT ระบุ Column ที่ต้องการดีกว่า ประหยัด memory ไปได้อีกเยอะเลย</p>
<p><map name='google_ad_map_444_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/444?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_444_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=444&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F06%2F19%2Fmysql_fetch_assoc-vs-mysql_fetch_array%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/06/19/mysql_fetch_assoc-vs-mysql_fetch_array/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IIRF – mod_rewrite สำหรับ IIS</title>
		<link>http://sixhead.com/2009/05/19/iirf-isapi-rewrite-filter-for-iis/</link>
		<comments>http://sixhead.com/2009/05/19/iirf-isapi-rewrite-filter-for-iis/#comments</comments>
		<pubDate>Tue, 19 May 2009 16:34:45 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[isapi]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=440</guid>
		<description><![CDATA[ชื่อเต็มของ IIRF คือ Ionics Isapi Rewrite Filter
ทำหน้าที่เหมือน mod_rewrite แต่ทำงานบน IIS
ที่สำคัญ free! พร้อมด้วยคุณสมบัติที่ดีเยี่ยม เร็วและมีประสิทธิภาพ (เวปเขาโม้ไว้ว่าแบบนี้)
ทำงานได้บน IIS 5.0, 5.1, 6.0, และ 7.0.
วิธีการติดตั้งก็ไม่ยาก โดยเมื่อดาวน์โหลดเสร็จแล้วให้  unzip
จะมีไฟล์ที่จำเป็นอยู่ 1 ไฟล์ ใน folder lib/IsapiRewrite4.dll
ขั้นตอน
1. ให้สร้าง directory C:\Windows\System32\inetsrv\IIRF แล้วนำ IsapiRewrite4.dll ไปวางไว้
2. สร้างไฟล์ชื่อ IsapiRewrite4.ini ไว้ที่ Desktop ก่อน ตัวอย่างนี้สำหรับป้องกัน hotlink (แอบมาใช้รูปของเราโดยเอา url รูปไปดื้อๆ มันเปลือง bandwidth)
ตัวอย่างไฟล์ IsapiRewrite4.ini
RewriteLog  C:\temp\iirf
&#160;
RewriteCond %&#123;HTTP_REFERER&#125; 		^&#40;?!HTTP_REFERER&#41;
RewriteCond %&#123;HTTP_REFERER&#125; 		^&#40;?!http?://&#40;?:www\.&#41;mysite.com/&#41;   &#91;I&#93;
RewriteCond [...]]]></description>
			<content:encoded><![CDATA[<p>ชื่อเต็มของ <a href="http://iirf.codeplex.com/">IIRF</a> คือ Ionics Isapi Rewrite Filter<br />
ทำหน้าที่เหมือน mod_rewrite แต่ทำงานบน IIS</p>
<p><strong>ที่สำคัญ </strong><strong>free!</strong> พร้อมด้วยคุณสมบัติที่ดีเยี่ยม เร็วและมีประสิทธิภาพ (เวปเขาโม้ไว้ว่าแบบนี้)<br />
<strong>ทำงานได้บน IIS 5.0, 5.1, 6.0, และ 7.0.</strong></p>
<p>วิธีการติดตั้งก็ไม่ยาก โดยเมื่อดาวน์โหลดเสร็จแล้วให้  unzip<br />
<span id="more-440"></span>จะมีไฟล์ที่จำเป็นอยู่ 1 ไฟล์ ใน folder lib/IsapiRewrite4.dll</p>
<p>ขั้นตอน<br />
1. ให้สร้าง directory C:\Windows\System32\inetsrv\IIRF แล้วนำ IsapiRewrite4.dll ไปวางไว้<br />
2. สร้างไฟล์ชื่อ IsapiRewrite4.ini ไว้ที่ Desktop ก่อน ตัวอย่างนี้สำหรับป้องกัน hotlink (แอบมาใช้รูปของเราโดยเอา url รูปไปดื้อๆ มันเปลือง bandwidth)<br />
ตัวอย่างไฟล์ IsapiRewrite4.ini</p>
<pre class="perl">RewriteLog  C:\temp\iirf
&nbsp;
RewriteCond %<span style="color: #66cc66;">&#123;</span>HTTP_REFERER<span style="color: #66cc66;">&#125;</span> 		^<span style="color: #66cc66;">&#40;</span>?!HTTP_REFERER<span style="color: #66cc66;">&#41;</span>
RewriteCond %<span style="color: #66cc66;">&#123;</span>HTTP_REFERER<span style="color: #66cc66;">&#125;</span> 		^<span style="color: #66cc66;">&#40;</span>?!http?://<span style="color: #66cc66;">&#40;</span>?:www\.<span style="color: #66cc66;">&#41;</span>mysite.com/<span style="color: #66cc66;">&#41;</span>   <span style="color: #66cc66;">&#91;</span>I<span style="color: #66cc66;">&#93;</span>
RewriteCond %<span style="color: #66cc66;">&#123;</span>HTTP_REFERER<span style="color: #66cc66;">&#125;</span> 		^<span style="color: #66cc66;">&#40;</span>?!http?://<span style="color: #66cc66;">&#40;</span>?:images\.|www\.<span style="color: #66cc66;">&#41;</span>?<span style="color: #66cc66;">&#40;</span>cache|google|googlebot|yahoo|msn|ask|picsearch|alexa<span style="color: #66cc66;">&#41;</span>\..*<span style="color: #66cc66;">&#41;</span>   <span style="color: #66cc66;">&#91;</span>I<span style="color: #66cc66;">&#93;</span>
RewriteCond %<span style="color: #66cc66;">&#123;</span>HTTP_USER_AGENT<span style="color: #66cc66;">&#125;</span>		^<span style="color: #66cc66;">&#40;</span>?!.*google|yahoo|msn|ask|picsearch|alexa|clush|botw.*<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#91;</span>I<span style="color: #66cc66;">&#93;</span>
RewriteRule .*<span style="color: #66cc66;">&#40;</span>?!logo<span style="color: #66cc66;">&#41;</span>.*\.<span style="color: #66cc66;">&#40;</span>?:gif|jpg|jpeg|png<span style="color: #66cc66;">&#41;</span>$ 	/hotlink.gif   <span style="color: #66cc66;">&#91;</span>I,L<span style="color: #66cc66;">&#93;</span></pre>
<p>3. นำไฟล์ IsapiRewrite4.ini ที่ Desktop ไปไว้ใน C:\Windows\System32\inetsrv\IIRF<br />
4. กำหนด permission user ของ IIS (ขึ้นต้นด้วย IUSR_***) ให้ read ได้ทั้ง 2 ไฟล์คือ<br />
C:\Windows\System32\inetsrv\IIRF\IsapiRewrite4.dll<br />
C:\Windows\System32\inetsrv\IIRF\IsapiRewrite4.ini</p>
<p>5. เปิด Internet Service Manager (MMC) ขึ้นมา<br />
6. ไปที่ Web Sites ที่ต้องการใช้ rewrite แล้วคลิกขวาเลือก properties<br />
7. ไปที่ ISAPI filter กด add ตั้งชื่อว่า Ionic Rewriter แล้ว browse ไปที่ C:\Windows\System32\inetsrv\IIRF\IsapiRewrite4.dll<br />
8. restart IIS เสร็จพิธี</p>
<p>ถ้าอยากได้ตัวอย่าง rewrite อื่นๆ <a href="iirf.codeplex.com/Thread/List.aspx?ViewAll=true">ไปที่นี่</a> เลยครับ</p>
<p><map name='google_ad_map_440_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/440?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_440_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=440&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F05%2F19%2Fiirf-isapi-rewrite-filter-for-iis%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/05/19/iirf-isapi-rewrite-filter-for-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SiXhEaD Template Dreamweaver extension</title>
		<link>http://sixhead.com/2009/05/12/sixhead-template-dreamweaver-extension/</link>
		<comments>http://sixhead.com/2009/05/12/sixhead-template-dreamweaver-extension/#comments</comments>
		<pubDate>Mon, 11 May 2009 17:42:58 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[DreamWeaver]]></category>
		<category><![CDATA[extension]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=429</guid>
		<description><![CDATA[ใครใช้ SiXhEaD Template มารับไปเลยครับ Dreamweaver extension
support ตั้งแต่ Dreamweaver 2004 ขึ้นไป
Credit เต็มๆ ให้ ผู้พัฒนาครับ
Mr.Khwanchai Kaewyos (LookHin)
http://www.LookHin.com
http://www.unzeen.com
ใช้ดี ใช้ง่ายครับ ได้ทั้งแบบ Design mode และ Code mode
highlight เลือกสร้าง block จาก table, div ได้เลยทันทีสุดยอด
แบบที่ 1 กดสร้าง block (loop) แล้วตั้งชื่อ

แบบที่ 2 highlight เลือกส่วนที่ต้องการ กดสร้าง block (loop) แล้วตั้งชื่อก็ยังได้

download ได้ที่นี่



]]></description>
			<content:encoded><![CDATA[<p>ใครใช้ SiXhEaD Template มารับไปเลยครับ Dreamweaver extension<br />
support ตั้งแต่ Dreamweaver 2004 ขึ้นไป</p>
<p><span id="more-429"></span>Credit เต็มๆ ให้ ผู้พัฒนาครับ<br />
<strong>Mr.Khwanchai Kaewyos (LookHin)</strong><br />
<a href="http://www.LookHin.com">http://www.LookHin.com</a><br />
<a href="http://www.unzeen.com">http://www.unzeen.com</a></p>
<p>ใช้ดี ใช้ง่ายครับ ได้ทั้งแบบ Design mode และ Code mode<br />
<strong>highlight เลือกสร้าง block จาก table, div ได้เลยทันทีสุดยอด</strong></p>
<p>แบบที่ 1 กดสร้าง block (loop) แล้วตั้งชื่อ</p>
<p><img class="size-full wp-image-430 alignnone" title="sixhead template dreamweaver extension" src="http://sixhead.com/wp-content/uploads/2009/05/sixheadtemplatedreamweaverextension.png" alt="sixheadtemplatedreamweaverextension" width="555" height="434" /></p>
<p>แบบที่ 2 highlight เลือกส่วนที่ต้องการ กดสร้าง block (loop) แล้วตั้งชื่อก็ยังได้</p>
<p><img class="size-full wp-image-433 alignnone" title="sixhead template dreamweaver extension2" src="http://sixhead.com/wp-content/uploads/2009/05/sixheadtemplatedreamweaverextension2.png" alt="sixheadtemplatedreamweaverextension2" width="564" height="345" /></p>
<p><a href="http://sixhead.com/wp-content/uploads/file/software/SiXhEaDTemplate.mxp">download ได้ที่นี่</a></p>
<p><map name='google_ad_map_429_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/429?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_429_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=429&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F05%2F12%2Fsixhead-template-dreamweaver-extension%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/05/12/sixhead-template-dreamweaver-extension/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>เซ็งพวกโลกแคบ ปิดกั้นความรู้</title>
		<link>http://sixhead.com/2009/05/08/anti-idiot/</link>
		<comments>http://sixhead.com/2009/05/08/anti-idiot/#comments</comments>
		<pubDate>Fri, 08 May 2009 11:23:31 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Life Style]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=416</guid>
		<description><![CDATA[ไม่มีไรครับบ่นเฉยๆ
เรื่องของเรื่อง SiXhEaD Template คิดว่ามันมีประโยชน์ เลยไปตั้งกระทู้แนะนำอยู่ 3 เวป
มีเวปนึงลบกระทู้ไปเฉยไม่แจ้งเหตุผลใดทั้งสิ้น อยากจะบอกคุณเจ้าของเวปนั้นว่า
มันไม่ใช่โฆษณานะครับ มันเป็นความรู้ ควรที่จะเผยแพร่
หรือกลัวคนจะเก่งเยอะ แล้วหาเงินไม่ได้?
ไม่บอกว่าเวปไหน แต่ใครหาเจอก็หาเอาเอง อันนี้ข้อความของบอร์ดเขา ผมเลยอยากไป "แบ่งปัน"
สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ น่ะค่ะ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ



]]></description>
			<content:encoded><![CDATA[<p>ไม่มีไรครับบ่นเฉยๆ<br />
เรื่องของเรื่อง SiXhEaD Template คิดว่ามันมีประโยชน์ เลยไปตั้งกระทู้แนะนำอยู่ 3 เวป<br />
มีเวปนึงลบกระทู้ไปเฉยไม่แจ้งเหตุผลใดทั้งสิ้น อยากจะบอกคุณเจ้าของเวปนั้นว่า<br />
<strong>มันไม่ใช่โฆษณานะครับ มันเป็นความรู้ ควรที่จะเผยแพร่</strong></p>
<p>หรือกลัวคนจะเก่งเยอะ แล้วหาเงินไม่ได้?</p>
<p><span id="more-416"></span>ไม่บอกว่าเวปไหน แต่ใครหาเจอก็หาเอาเอง อันนี้ข้อความของบอร์ดเขา ผมเลยอยากไป <strong>"แบ่งปัน"</strong></p>
<pre lang="pl">สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ น่ะค่ะ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ</pre >
<p><map name='google_ad_map_416_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/416?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_416_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=416&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F05%2F08%2Fanti-idiot%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/05/08/anti-idiot/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Install zint-2.1.2 on FreeBSD 6.2</title>
		<link>http://sixhead.com/2009/05/06/install-zint-212-on-freebsd-62/</link>
		<comments>http://sixhead.com/2009/05/06/install-zint-212-on-freebsd-62/#comments</comments>
		<pubDate>Wed, 06 May 2009 11:26:32 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=395</guid>
		<description><![CDATA[zint เป็นโปรแกรม Open source แบบ command line สำหรับสร้าง barcode ครับ support ถึง 50 รูปแบบเลย ซึ่งสุดยอดมากๆ ไม่มีเจ้าใดเทียบได้อีกแล้ว
เขียนด้วยภาษา C จำเป็นต้อง compile ที่เครื่องก่อน ได้เฉพาะฝั่ง Linux นะครับ All POSIX (Linux/BSD/UNIX-like OSes)
วิธีใช้หนะไม่ยากเพราะสั่งแค่บรรทัดเดียวก็สร้าง barcode ได้แล้ว แต่ตอนลงพอดีมันติด compile อยู่มั่วไปมั่วมาจนสำเร็จ
เลยมาบันทึกไว้เผื่อใครติดปัญหาเหมือนกัน
I try to install zint 2.1.2 on my FreeBSD but it have some problem when compile.
This is my way to fix it.
{smartads}
If you need [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.zint.org.uk/zintSite/">zint</a> เป็นโปรแกรม Open source แบบ command line สำหรับสร้าง barcode ครับ support ถึง 50 รูปแบบเลย ซึ่งสุดยอดมากๆ ไม่มีเจ้าใดเทียบได้อีกแล้ว<br />
เขียนด้วยภาษา C จำเป็นต้อง compile ที่เครื่องก่อน ได้เฉพาะฝั่ง Linux นะครับ All POSIX (Linux/BSD/UNIX-like OSes)<br />
วิธีใช้หนะไม่ยากเพราะสั่งแค่บรรทัดเดียวก็สร้าง barcode ได้แล้ว แต่ตอนลงพอดีมันติด compile อยู่มั่วไปมั่วมาจนสำเร็จ<br />
เลยมาบันทึกไว้เผื่อใครติดปัญหาเหมือนกัน</p>
<p>I try to install zint 2.1.2 on my FreeBSD but it have some problem when compile.<br />
This is my way to fix it.</p>
<p><span id="more-395"></span>{smartads}<br />
If you need QR Code please install libqrencode-3.0.3 first</p>
<pre>edit
backend/qr.c line 27
from:
#include 
&nbsp;
to:
#include &quot;qrencode.h&quot;</pre>
<p>Copy header file<br />
cp /usr/local/include/qrencode.h /YOUR.SOURCE.PATH/backend/<br />
cp /usr/local/include/png.h /YOUR.SOURCE.PATH/backend/<br />
cp /usr/local/include/pngconf.h /YOUR.SOURCE.PATH/backend/</p>
<pre>edit
backend/Makefile line 53
from:
install -D -p --mode=0644 zint.h $(DESTDIR)$(includedir)/zint.h
&nbsp;
to:
install -p -m 0644 zint.h $(DESTDIR)$(includedir)/zint.h
&nbsp;
edit
frontend/Makefile line 28
from:
install -D -p  zint $(DESTDIR)$(bindir)/zint
&nbsp;
to:
install -p  zint $(DESTDIR)$(bindir)/zint
&nbsp;
cd /YOUR.SOURCE.PATH/
make
make install
&nbsp;
or
gmake
gmake install</pre>
<p><map name='google_ad_map_395_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/395?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_395_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=395&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F05%2F06%2Finstall-zint-212-on-freebsd-62%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/05/06/install-zint-212-on-freebsd-62/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>แก้ bug CSS ใน input button ของ FireFox3</title>
		<link>http://sixhead.com/2009/04/24/firefox3-bug-css-input-button/</link>
		<comments>http://sixhead.com/2009/04/24/firefox3-bug-css-input-button/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 14:43:33 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Web Developer]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=389</guid>
		<description><![CDATA[ปกติไม่ค่อยได้ใช้ CSS กับ form เท่าไร่ พอใช้ปุ๊บงงเลยกะ FireFox3 ดังรูป

ค้นไปค้นมาเจอ 2 วิธี
ง่ายสุด 1 ใส่ css เพิ่ม
input&#91;type=file&#93; /* FF input file */
&#123;
	color: #333333;
	background-color:#FF0000;
&#125;
background-color: -> อันนี้ไม่มีผลนะครับใส่ไว้ให้พวกอยากลองจะได้ไม่ต้องไปเสียเวลาพิมพ์
อีกวิธีแบบเทพไปเลยถ้าต้องการ
http://www.quirksmode.org/dom/inputfile.html
รู้สึกจะเป็นมานานแล้วก็ยังไม่ได้รับการแก้ไขเสียด้วย
อ่านรายละเอียดการแจ้ง bug https://bugzilla.mozilla.org/show_bug.cgi?id=52500



]]></description>
			<content:encoded><![CDATA[<p>ปกติไม่ค่อยได้ใช้ CSS กับ form เท่าไร่ พอใช้ปุ๊บงงเลยกะ FireFox3 ดังรูป</p>
<p><img class="size-full wp-image-390" style="margin: 4px;" title="firefox input type file bug" src="http://sixhead.com/wp-content/uploads/2009/04/firefoxinputtypefilebug.png" alt="firefox input type file bug" width="244" height="101" /></p>
<p>ค้นไปค้นมาเจอ 2 วิธี<br />
ง่ายสุด 1 ใส่ css เพิ่ม</p>
<pre class="css">input<span style="color: #66cc66;">&#91;</span>type=file<span style="color: #66cc66;">&#93;</span> <span style="color: #808080; font-style: italic;">/* FF input file */</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span>;
	<span style="color: #000000; font-weight: bold;">background-color</span>:<span style="color: #cc00cc;">#FF0000</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>background-color: -> อันนี้ไม่มีผลนะครับใส่ไว้ให้พวกอยากลองจะได้ไม่ต้องไปเสียเวลาพิมพ์</p>
<p>อีกวิธีแบบเทพไปเลยถ้าต้องการ<br />
<a href="http://www.quirksmode.org/dom/inputfile.html">http://www.quirksmode.org/dom/inputfile.html</a></p>
<p>รู้สึกจะเป็นมานานแล้วก็ยังไม่ได้รับการแก้ไขเสียด้วย<br />
อ่านรายละเอียดการแจ้ง bug <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=52500">https://bugzilla.mozilla.org/show_bug.cgi?id=52500</a></p>
<p><map name='google_ad_map_389_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/389?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_389_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=389&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F04%2F24%2Ffirefox3-bug-css-input-button%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/04/24/firefox3-bug-css-input-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View Source Chart : ดู source code จาก FireFox แบบวิจิตรเทพ</title>
		<link>http://sixhead.com/2009/02/19/view-source-chart-the-most-accessible-dom-inspector/</link>
		<comments>http://sixhead.com/2009/02/19/view-source-chart-the-most-accessible-dom-inspector/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 14:13:01 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=337</guid>
		<description><![CDATA[
Add-ons  FireFox ตัวโปรดอีกตัวนึงของผมเลยครับ หลังจากไม่ได้ใช้มานาน เพราะ upgrade FireFox เป็น v3 แล้วตัว add-ons มันไม่ support วันนี้นึกขึ้นได้ลองไป search ดูอีกครั้งปรากฏว่ามี experimental version ที่ใช้งานกับ FireFox 3 ได้แล้ว เลยรีบโหลดทันที ความสามารถของมันคือเอาไว้ view source code หน้า html ครับแต่ข้อดีสุดๆ ของมันก็คือ
มันจะอ่าน html ออกมาในลักษณะ ของ DOM แสดงออกมาเป็น block แยกสีอย่างชัดเจนดูได้ง่าย และที่สุดยอดสุดๆ คืออะไรรู้ไหมครับ ถ้าคุณทำงานที่เกี่ยวข้องกับ ajax บ่อยหรือพวกสั่ง javascript write content เนี่ยะมันจะ view ออกมาให้เห็นพวก html ที่เราสั่ง write ออกมาให้ด้วยเลย (ใน Web [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-338 alignnone" style="margin-top: 2px; margin-bottom: 2px;" title="view-source-chart" src="http://sixhead.com/wp-content/uploads/2009/02/view-source-chart.png" alt="view-source-chart" width="304" height="239" /></p>
<p>Add-ons  FireFox ตัวโปรดอีกตัวนึงของผมเลยครับ หลังจากไม่ได้ใช้มานาน เพราะ upgrade FireFox เป็น v3 แล้วตัว add-ons มันไม่ support วันนี้นึกขึ้นได้ลองไป search ดูอีกครั้งปรากฏว่ามี experimental version ที่ใช้งานกับ FireFox 3 ได้แล้ว เลยรีบโหลดทันที ความสามารถของมันคือเอาไว้ view source code หน้า html ครับแต่ข้อดีสุดๆ ของมันก็คือ</p>
<p><span id="more-337"></span>มันจะอ่าน html ออกมาในลักษณะ ของ DOM แสดงออกมาเป็น block แยกสีอย่างชัดเจนดูได้ง่าย และที่สุดยอดสุดๆ คืออะไรรู้ไหมครับ ถ้าคุณทำงานที่เกี่ยวข้องกับ ajax บ่อยหรือพวกสั่ง javascript write content เนี่ยะมันจะ view ออกมาให้เห็นพวก html ที่เราสั่ง write ออกมาให้ด้วยเลย (ใน Web Developer extension ก็ทำได้แต่ก็ไม่สวยเท่าตัวนี้) เทียบกับสมัยเขียนโปรแกรมยุคแรกๆ คุณคิดดูใช้ IE + Notepad หรือ ขนาดใช้ EditPlus ก็เหอะ debug งานแต่ละทีเสียเวลามาก ยุคนี้มี tool ช่วยเยอะทำให้งานหลายอย่างเสร็จได้เร็ว อย่าเสียเวลาไปลงซะเดี๋ยวนี้เลย <a href="https://addons.mozilla.org/en-US/firefox/addons/versions/655">download ได้ที่นี่</a></p>
<p><map name='google_ad_map_337_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/337?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_337_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=337&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F02%2F19%2Fview-source-chart-the-most-accessible-dom-inspector%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/02/19/view-source-chart-the-most-accessible-dom-inspector/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HOWTO: Restore GRUB (if your MBR is messed up)</title>
		<link>http://sixhead.com/2009/02/13/howto-restore-grub-if-your-mbr-is-messed-up/</link>
		<comments>http://sixhead.com/2009/02/13/howto-restore-grub-if-your-mbr-is-messed-up/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 06:25:37 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[mbr]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=334</guid>
		<description><![CDATA[1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.
2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary.
3. Type "grub" which makes a GRUB prompt appear.
4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out [...]]]></description>
			<content:encoded><![CDATA[<p>1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.</p>
<p>2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary.</p>
<p>3. Type "grub" which makes a GRUB prompt appear.</p>
<p>4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.</p>
<p>5. Type "root (hd0,3)".</p>
<p>6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".</p>
<p>7. Type "quit".</p>
<p>8. Restart the system. Remove the bootable CD.</p>
<p><strong>credit</strong><br />
<a href="http://ubuntuforums.org/archive/index.php/t-24113.html">http://ubuntuforums.org/archive/index.php/t-24113.html</a></p>
<p><map name='google_ad_map_334_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/334?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_334_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=334&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F02%2F13%2Fhowto-restore-grub-if-your-mbr-is-messed-up%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/02/13/howto-restore-grub-if-your-mbr-is-messed-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เล่นเกมส์เหมือน WII บน PC ด้วย WebCam</title>
		<link>http://sixhead.com/2009/01/04/play-your-favorite-pc-games-with-webcam/</link>
		<comments>http://sixhead.com/2009/01/04/play-your-favorite-pc-games-with-webcam/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 03:43:00 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[motion detect]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=311</guid>
		<description><![CDATA[แค่ชื่อก็งงแล้วหล่ะซิ ฮ่าๆ เจ้าโปรแกรมนี้มีชื่อว่า CamSpace
"CamSpace is a new fun way to play your favorite PC games"
CamSpace เป็นโปรแกรมที่ทำให้เราสามารถควบคุมเกมส์ หรือโปรแกรมด้วย webcam ทุกชนิด โดยที่เราใช้ร่างกายแทน
mouse, keyboard หรือกระทั่ง joystick นั่นเอง
เมื่อ download โปรแกรมมาแล้วจะมีเกมส์ของ CamSpace มาให้ลองเล่นและทดสอบด้วย โดยถ้าจะเพิ่มเกมส์ซักอันต้องสร้าง Controllers ขึ้นมาสำหรับเกมส์นั้นๆ ซึ่งเราสามารถทำได้เอง หรือไปลองหาโหลดจากเวปเลย
สรุปต้องมีอุปกรณ์ 3 ชนิด
1. computer
2. webcam
3. วัตถุสำหรับควบคุมการเคลื่อนไหว โดยอาจเป็นกระดาษหรือสิ่งของที่จับได้ถนัด (ควรมีสีที่ชัดเจนและห้องมีแสงสว่างพอ)
ไปดูการเล่น Need For Speed ProStreet ด้วยพวงมาลัยกระดาษกัน

download CamSpace ไปมันกันได้ ที่นี่เลย



]]></description>
			<content:encoded><![CDATA[<p>แค่ชื่อก็งงแล้วหล่ะซิ ฮ่าๆ เจ้าโปรแกรมนี้มีชื่อว่า CamSpace<br />
"CamSpace is a new fun way to play your favorite PC games"</p>
<p>CamSpace เป็นโปรแกรมที่ทำให้เราสามารถควบคุมเกมส์ หรือโปรแกรมด้วย webcam ทุกชนิด โดยที่เราใช้ร่างกายแทน<br />
mouse, keyboard หรือกระทั่ง joystick นั่นเอง<br />
<span id="more-311"></span>เมื่อ download โปรแกรมมาแล้วจะมีเกมส์ของ CamSpace มาให้ลองเล่นและทดสอบด้วย โดยถ้าจะเพิ่มเกมส์ซักอันต้องสร้าง Controllers ขึ้นมาสำหรับเกมส์นั้นๆ ซึ่งเราสามารถทำได้เอง หรือไปลองหาโหลดจากเวปเลย</p>
<p>สรุปต้องมีอุปกรณ์ 3 ชนิด<br />
1. computer<br />
2. webcam<br />
3. วัตถุสำหรับควบคุมการเคลื่อนไหว โดยอาจเป็นกระดาษหรือสิ่งของที่จับได้ถนัด (ควรมีสีที่ชัดเจนและห้องมีแสงสว่างพอ)</p>
<p>ไปดูการเล่น Need For Speed ProStreet ด้วยพวงมาลัยกระดาษกัน<a title="CamSpace - Need For Speed ProStreet" href="http://69a95397.linkbucks.com"><br />
<img class="alignnone size-full wp-image-316" title="camspace-need-for-speed-prostreet" src="http://sixhead.com/wp-content/uploads/2009/01/camspace-need-for-speed-prostreet.jpg" border="0" alt="camspace-need-for-speed-prostreet" width="450" height="360" /></a></p>
<p>download CamSpace ไปมันกันได้ <a href="http://c8211373.linkbucks.com">ที่นี่เลย</a></p>
<p><map name='google_ad_map_311_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/311?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_311_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=311&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F01%2F04%2Fplay-your-favorite-pc-games-with-webcam%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/01/04/play-your-favorite-pc-games-with-webcam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Step by step install Engine X (nginx) and php-fpm in FreeBSD</title>
		<link>http://sixhead.com/2008/12/20/step-by-step-install-engine-x-nginx-and-php-fpm-in-freebsd/</link>
		<comments>http://sixhead.com/2008/12/20/step-by-step-install-engine-x-nginx-and-php-fpm-in-freebsd/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 04:09:56 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web Developer]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=300</guid>
		<description><![CDATA[1. Install nginx
# cd /usr/ports/www/nginx
# make install
choose :
HTTP_MODULE
HTTP_REWRITE_MODULE
HTTP_SSL_MODULE
HTTP_STATUS_MODULE
.....
2. Install php
# cd /usr/ports/lang/php5
# make install
choose :
CLI
CGI
SUHOSIN
IPV6
FASTCGI
PATHINFO
.....
3. Install php-fpm freebsd ports
# wget http://php-fpm.anight.org/downloads/freebsd-port/php-5.2.6-fpm-0.5.9.tar.gz
Extract and copy
# tar xvzf php-5.2.6-fpm-0.5.9.tar.gz
# cp -R ./php-5.2.6-fpm-0.5.9 /usr/ports/lang/php5-fpm
# cd /usr/ports/lang/php5-fpm
# make install
choose :
CLI
SUHOSIN
PATHINFO
.....
4. Configuring
update /etc/rc.conf
Add these lines :
nginx_enable="YES"
php_fpm_enable="YES"
save.
edit /usr/local/etc/nginx/nginx.conf
Find this lines in nginx.conf and adjust :
root /usr/local/www/nginx;

location / {
index index.php index.html index.htm;
}

location ~ [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1. Install nginx</strong></p>
<pre># cd /usr/ports/www/nginx
# make install</pre>
<p>choose :</p>
<pre>HTTP_MODULE
HTTP_REWRITE_MODULE
HTTP_SSL_MODULE
HTTP_STATUS_MODULE
.....</pre>
<p><span id="more-300"></span><strong>2. Install php</strong></p>
<pre># cd /usr/ports/lang/php5
# make install</pre>
<p>choose :</p>
<pre>CLI
CGI
SUHOSIN
IPV6
FASTCGI
PATHINFO
.....</pre>
<p><strong>3. Install php-fpm</strong> <a rel="nofollow" href="http://php-fpm.anight.org/downloads/freebsd-port/">freebsd ports</a></p>
<p># wget http://php-fpm.anight.org/downloads/freebsd-port/php-5.2.6-fpm-0.5.9.tar.gz</p>
<p><strong>Extract and copy</strong></p>
<pre># tar xvzf php-5.2.6-fpm-0.5.9.tar.gz
# cp -R ./php-5.2.6-fpm-0.5.9 /usr/ports/lang/php5-fpm</pre>
<pre># cd /usr/ports/lang/php5-fpm
# make install</pre>
<p>choose :</p>
<pre>CLI
SUHOSIN
PATHINFO
.....</pre>
<p><strong>4. Configuring</strong></p>
<p>update /etc/rc.conf</p>
<p>Add these lines :</p>
<pre>nginx_enable="YES"
php_fpm_enable="YES"</pre>
<p>save.</p>
<p>edit /usr/local/etc/nginx/nginx.conf</p>
<p>Find this lines in nginx.conf and adjust :</p>
<pre>root /usr/local/www/nginx;

location / {
index index.php index.html index.htm;
}

location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/www/nginx$fastcgi_script_name;
include fastcgi_params;
}</pre>
<p>Edit /usr/local/etc/php-fpm.conf<br />
Find these lines :</p>
<pre>&lt;!– &lt;value name=”user”&gt;<strong>nobody</strong>&lt;/value&gt; –&gt;
&lt;!– &lt;value name=”group”&gt;<strong>nobody</strong>&lt;/value&gt; –&gt;</pre>
<p>change nobody into www (or your www user)</p>
<pre>&lt;value name=”user”&gt;<strong>www</strong>&lt;/value&gt;
&lt;value name=”group”&gt;<strong>www</strong>&lt;/value&gt;</pre>
<p>Run the services</p>
<pre># /usr/local/etc/rc.d/php-fpm start
# /usr/local/etc/rc.d/nginx start</pre>
<p><strong>5. Testing</strong></p>
<p># cd /usr/local/www/nginx<br />
# nano info.php</p>
<pre>&lt;?php
phpinfo();
?&gt;</pre>
<p>save.</p>
<p>done.</p>
<p>Compatible with Apache's log file format</p>
<pre>
log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                        '$status $body_bytes_sent "$http_referer" '
                        '"$http_user_agent" "$http_x_forwarded_for"';
</pre>
<p><map name='google_ad_map_300_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/300?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_300_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=300&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F12%2F20%2Fstep-by-step-install-engine-x-nginx-and-php-fpm-in-freebsd%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/12/20/step-by-step-install-engine-x-nginx-and-php-fpm-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SiXhEaD Template – PHP5 Template Engine for Programmer &amp; Designer</title>
		<link>http://sixhead.com/2008/12/02/sixhead-template-php5-template-engine-for-programmer-and-designer/</link>
		<comments>http://sixhead.com/2008/12/02/sixhead-template-php5-template-engine-for-programmer-and-designer/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 09:13:35 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=269</guid>
		<description><![CDATA[SiXhEaD Template - PHP5 Template Engine for Programmer &#38; Designer (WYSIWYG)
ได้ฤกษ์แจก source แล้ว (BSD License)
ง่ายๆ สั้นๆ คือใช้ได้ฟรีทุกกรณี แต่ต้องติด copyright ด้านบน script ไว้
เป็น Class Template Engine สำหรับ PHP ออกแบบมาเพื่อให้ Designer และ Programmer
ทำงานร่วมกันได้อย่างสะดวกและรวดเร็วต่อการแก้ไข สามารถทำงานพร้อมๆ กันไปได้
โดยไม่มีปัญหา ยกตัวอย่าง
- Designer ใช้ Css, Dreamweaver หรือ Frontpage ก็จะมองเห็นแบบนั้นเลย
- Programmer เขียน .php แยกออกมาต่างหากแทบไม่ต้องยุ่งกับไฟล์ .html แค่นำตัวแปรไปวางไว้ในตำแหน่งที่ต้องการ
ใน version แรกๆ พัฒนาต่อมาจาก function Template ง่ายๆ ที่ทำงานกับ Perl [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SiXhEaD Template - PHP5 Template Engine for Programmer &amp; Designer (<a href="http://en.wikipedia.org/wiki/WYSIWYG">WYSIWYG</a>)</strong></p>
<p>ได้ฤกษ์แจก source แล้ว (BSD License)<br />
ง่ายๆ สั้นๆ คือใช้ได้ฟรีทุกกรณี แต่ต้องติด copyright ด้านบน script ไว้</p>
<p>เป็น Class Template Engine สำหรับ PHP ออกแบบมาเพื่อให้ Designer และ Programmer<br />
ทำงานร่วมกันได้อย่างสะดวกและรวดเร็วต่อการแก้ไข สามารถทำงานพร้อมๆ กันไปได้<br />
โดยไม่มีปัญหา ยกตัวอย่าง<br />
- Designer ใช้ Css, Dreamweaver หรือ Frontpage ก็จะมองเห็นแบบนั้นเลย<br />
- Programmer เขียน .php แยกออกมาต่างหากแทบไม่ต้องยุ่งกับไฟล์ .html แค่นำตัวแปรไปวางไว้ในตำแหน่งที่ต้องการ</p>
<p>ใน version แรกๆ พัฒนาต่อมาจาก function Template ง่ายๆ ที่ทำงานกับ Perl + Html<br />
ซึ่งถ้าใครเคย download Perl Script ที่ผมเคยแจกอาจจะพอจำได้ ต่อมาเพื่อการทำงาน<br />
ที่ดีขึ้นเลยเริ่มพัฒนาเป็น Class สำหรับ PHP เป็นต้นมา<br />
<span id="more-269"></span></p>
<pre>update v5.7
	   - check class with error_reporting(E_ALL);
	   - rename function, var for standard
</pre>
<table border="0" cellspacing="1" cellpadding="2">
<tbody>
<tr bgcolor="#e6e6e6">
<th>See in action</th>
<th>PHP</th>
<th>Html,XML Template</th>
</tr>
<tr bgcolor="#f8f8f8">
<td>SiXhEaD Template Class</td>
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/SiXhEaD.Template.phps">.php</a></td>
<td></td>
</tr>
<tr bgcolor="#f8f8f8">
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.simple.php">Simple</a></td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.simple.phps">.php</a></div>
</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/_tp_demo.simple.html">.html</a></div>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.simple.custom.key.php">Simple &amp; custom key </a></td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.simple.custom.key.phps">.php</a></div>
</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/_tp_demo.simple.custom.key.html">.html</a></div>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.simple.with.cache.kit.php">Simple &amp; cache-kit</a></td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.simple.with.cache.kit.phps">.php</a></div>
</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/_tp_demo.simple.html">.html</a></div>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.array.php">Array</a></td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.array.phps">.php</a></div>
</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/_tp_demo.array.html">.html</a></div>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.php">All function</a> use Global $var</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.phps">.php</a></div>
</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/_tp_demo.html">.html</a></div>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.global.false.php">All function</a> only Assign $var</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.global.false.phps">.php</a></div>
</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/_tp_demo.html">.html</a></div>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.feeds.php">Feed, XML</a></td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/demo.feeds.phps">.php</a></div>
</td>
<td>
<div><a href="http://sixhead.com/my.project/SiXhEaD.Template/_tp_demo.feeds.xml">.xml</a></div>
</td>
</tr>
</tbody>
</table>
<p>More info about Cache-Kit <a href="http://www.scriptdd.com/webtip/php-cache-kit.html">Thai (by 9AuM) </a>l <a href="http://acme-web-design.info/php-cache-kit.htm">English  (Official)</a></p>
<p><strong>Download</strong><br />
<a href="http://iads.sixhead.com/click.php?AdsId=5&amp;Go=http://sixhead.com/my.project/SiXhEaD.Template.v5.7.zip">SiXhEaD.Template.v5.7.zip</a> l <a href="http://iads.sixhead.com/click.php?AdsId=6&amp;Go=http://sixhead.com/my.project/SiXhEaD.Template.v5.7.tar.gz">SiXhEaD.Template.v5.7.tar.gz</a></p>
<p><map name='google_ad_map_269_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/269?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_269_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=269&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F12%2F02%2Fsixhead-template-php5-template-engine-for-programmer-and-designer%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/12/02/sixhead-template-php5-template-engine-for-programmer-and-designer/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>reconfig xserver</title>
		<link>http://sixhead.com/2008/11/06/reconfig-xserver/</link>
		<comments>http://sixhead.com/2008/11/06/reconfig-xserver/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 09:37:25 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=255</guid>
		<description><![CDATA[$ sudo dpkg-reconfigure -phigh xserver-xorg



]]></description>
			<content:encoded><![CDATA[<pre class="perl">$ sudo dpkg-reconfigure -phigh xserver-xorg</pre>
<p><map name='google_ad_map_255_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/255?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_255_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=255&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F11%2F06%2Freconfig-xserver%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/11/06/reconfig-xserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Virtualbox (2.x, 1.6.x) with USB support in Ubuntu 8.04, 8.10</title>
		<link>http://sixhead.com/2008/10/29/install-virtualbox-2x-16x-with-usb-support-in-ubuntu-804-810/</link>
		<comments>http://sixhead.com/2008/10/29/install-virtualbox-2x-16x-with-usb-support-in-ubuntu-804-810/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 18:39:05 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=250</guid>
		<description><![CDATA[

 Download the correct VirtualBox .deb package  for your CPU from: http://www.virtualbox.org/wiki/Downloads


sudo dpkg -i virtualbox-2.0_2.0.2-36488_Ubuntu_hardy_xxxx.deb # Install the package (change the version to suit your needs)


 sudo groupadd vboxusers # Add the "vboxusers" group (seems to be already created by the current (&#62;1.6.2) virtualbox install process)


sudo usermod -G vboxusers -a $USER # Add users [...]]]></description>
			<content:encoded><![CDATA[<div id="post_message_5184568" class="vbclean_msgtext">
<ul>
<li> Download the correct VirtualBox .deb package  for your CPU from: <a href="http://www.virtualbox.org/wiki/Downloads" target="_blank">http://www.virtualbox.org/wiki/Downloads</a></li>
</ul>
<ul>
<li><strong>sudo dpkg -i virtualbox-2.0_2.0.2-36488_Ubuntu_hardy_xxxx.deb</strong> # Install the package (change the version to suit your needs)</li>
</ul>
<ul>
<li> sudo groupadd vboxusers # Add the "vboxusers" group (seems to be already created by the current (&gt;1.6.2) virtualbox install process)</li>
</ul>
<ul>
<li><strong>sudo usermod -G vboxusers -a $USER</strong> # Add users who will be using the program to the "vboxusers" group. Add more users after $USER</li>
</ul>
<ul>
<li>To get <strong>USB support</strong>, you just need to execute the following code:
<pre class="perl">echo <span style="color: #ff0000;">&quot;none /proc/bus/usb usbfs devgid=$(grep plugdev /etc/group | sed 's/plugdev:x:<span style="color: #000099; font-weight: bold;">\(</span>.*<span style="color: #000099; font-weight: bold;">\)</span>:.*/<span style="color: #000099; font-weight: bold;">\1</span>/'),devmode=664 0 0&quot;</span> | sudo tee -a /etc/fstab</pre>
</li>
</ul>
<ul>
<li><strong>sudo /etc/init.d/vboxdrv setup</strong> # Run the Virtualbox kernel setup routine</li>
</ul>
<ul>
<li><strong>Logout and Login again</strong> # for the changes to take effect.</li>
</ul>
</div>
<p>Credit: <a href="http://ubuntuforums.org/showthread.php?t=828927">ubuntuforums.org</a></p>
<p><map name='google_ad_map_250_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/250?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_250_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=250&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F10%2F29%2Finstall-virtualbox-2x-16x-with-usb-support-in-ubuntu-804-810%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/10/29/install-virtualbox-2x-16x-with-usb-support-in-ubuntu-804-810/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share folder between Ubuntu, XP, Vista with Samba</title>
		<link>http://sixhead.com/2008/10/16/share-folder-between-ubuntu-xp-vista-with-samba/</link>
		<comments>http://sixhead.com/2008/10/16/share-folder-between-ubuntu-xp-vista-with-samba/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 15:41:16 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=241</guid>
		<description><![CDATA[Share folder from Ubuntu
Install Samba
{smartads}
$ sudo apt-get install samba
Edit config
$ sudo nano /etc/samba/smb.conf
Replace with this simple config. Don't forget to create your share directory.
[global]
workgroup = YOUR_WORK_GROUP
netbios name = YOUR_COMPUTER_NAME
security = SHARE
auth methods = guest
domain master = No
wins support = Yes

[Sharing]
comment=My Ubuntu
path = /home/your_home_directory/Sharing
read only = No
guest ok = Yes
save, exit nano and restart Samba
$ smbd [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Share folder from Ubuntu</strong><br />
Install Samba<br />
{smartads}</p>
<pre>$ sudo apt-get install samba</pre>
<p>Edit config</p>
<pre>$ sudo nano /etc/samba/smb.conf</pre>
<p><span id="more-241"></span>Replace with this simple config. Don't forget to create your share directory.</p>
<pre>[global]
workgroup = YOUR_WORK_GROUP
netbios name = YOUR_COMPUTER_NAME
security = SHARE
auth methods = guest
domain master = No
wins support = Yes

[Sharing]
comment=My Ubuntu
path = /home/your_home_directory/Sharing
read only = No
guest ok = Yes</pre>
<p>save, exit nano and restart Samba</p>
<pre>$ smbd restart</pre>
<p>done</p>
<p><strong>Mount folder from XP, Vista (share folder from XP, Vista)</strong><br />
Install smbfs, smbclient</p>
<pre>$ sudo apt-get install smbfs smbclient</pre>
<p>Edit auto mount</p>
<pre>$ sudo gedit /etc/fstab</pre>
<p>Add your target share folder like this. Don't forget to create your mount directory.</p>
<pre>//192.168.1.1/Sharing /home/your_home_directory/Vista-Sharing smbfs rw, 0 0</pre>
<p>//192.168.1.1/Sharing = Your XP, Vista share folder (test by type \\192.168.1.1\Sharing in Windows location bar)<br />
/home/your_home_directory/Vista-Sharing = Directory in your Ubuntu</p>
<p>Re mounting device</p>
<pre>$ sudo mount -a</pre>
<p>done</p>
<p><map name='google_ad_map_241_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/241?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_241_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=241&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F10%2F16%2Fshare-folder-between-ubuntu-xp-vista-with-samba%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/10/16/share-folder-between-ubuntu-xp-vista-with-samba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>มาหาเงินจากการ แจก link ดาวน์โหลดกันดีกว่า</title>
		<link>http://sixhead.com/2008/10/16/make-money-with-linkbucks/</link>
		<comments>http://sixhead.com/2008/10/16/make-money-with-linkbucks/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 03:59:19 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[money]]></category>
		<category><![CDATA[paypal]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=235</guid>
		<description><![CDATA[ปกติทำเวปหรือเขียน blog ที่ต้องส่ง link ให้คนอื่นมาดาวน์โหลดนั้น
ถือเป็นเรื่องปกติอยู่แล้ว แทนที่จะปล่อยไว้เฉยๆ มาทำเงินจาก link พวกนี้ดีกว่า
ผมได้เงินมาแล้ว 5 ครั้งจ่ายด้วย PayPal ครับ
ถ้าคนไม่รู้จัก PayPal ก็คือเวปที่ทำหน้าที่รับ-จ่ายเงินแบบ online ที่ได้รับความนิยมอันดับต้นๆ
ของโลกเลยทีเดียว เราสามารถกดเบิกเงินเป็น cheque หรือเข้าธนาคารในไทยได้เลย
(แต่ค่าทำเนียมเยอะเหมือนกัน เนื้อหาด้านล่างจะบอกวิธีเสียค่าธรรมเนียมที่ถูกและได้เงินเร็วขึ้น)
หลักฐานการได้รับเงิน (update 9 ธันวาคม 2551)

หลักการทำงานของ linkbucks.com คือ
1. แสดงหน้าโฆษณาก่อนจะไปหน้าของเรา (ประมาณ 12 วินาที)
Intermission 3500 view = $1
Top banner 5500 view = $1
2. และถ้าเราแนะนำเพื่อนให้สมัครต่อจากเราก็จะได้ % ตามลำดับขึ้นแบบนี้
ในรูปเป็นลำดับชั้นที่ผมได้แนะนำไป

ถ้าสนใจ สมัครได้ที่ link นี้เลย
เพิ่มเติม
ขาย PayPal เป็นเงินบาทได้ภายในไม่ถึงชม. โดยมีค่าใช้จ่ายเล็กน้อยได้ที่นี่
((( ซื้อ-ขาย-แลกเปลี่ยน AlertPay, PayPal, MB, EG, LR, [...]]]></description>
			<content:encoded><![CDATA[<p>ปกติทำเวปหรือเขียน blog ที่ต้องส่ง link ให้คนอื่นมาดาวน์โหลดนั้น<br />
ถือเป็นเรื่องปกติอยู่แล้ว แทนที่จะปล่อยไว้เฉยๆ มาทำเงินจาก link พวกนี้ดีกว่า</p>
<p>ผมได้เงินมาแล้ว 5 ครั้งจ่ายด้วย <a href="http://www.paypal.com">PayPal</a> ครับ</p>
<p><span id="more-235"></span>ถ้าคนไม่รู้จัก PayPal ก็คือเวปที่ทำหน้าที่รับ-จ่ายเงินแบบ online ที่ได้รับความนิยมอันดับต้นๆ<br />
ของโลกเลยทีเดียว เราสามารถกดเบิกเงินเป็น cheque หรือเข้าธนาคารในไทยได้เลย<br />
(แต่ค่าทำเนียมเยอะเหมือนกัน เนื้อหาด้านล่างจะบอกวิธีเสียค่าธรรมเนียมที่ถูกและได้เงินเร็วขึ้น)</p>
<p><strong>หลักฐานการได้รับเงิน (update 9 ธันวาคม 2551)<br />
</strong><a href="http://sixhead.com/wp-content/uploads/2008/12/linkbucks-paypal.jpg"><img class="alignnone size-medium wp-image-289" title="linkbucks-paypal" src="http://sixhead.com/wp-content/uploads/2008/12/linkbucks-paypal-300x69.jpg" alt="" width="300" height="69" /></a></p>
<p><strong>หลักการทำงานของ linkbucks.com คือ</strong><br />
1. แสดงหน้าโฆษณาก่อนจะไปหน้าของเรา (ประมาณ 12 วินาที)<br />
Intermission 3500 view = $1<br />
Top banner 5500 view = $1</p>
<p>2. และถ้าเราแนะนำเพื่อนให้สมัครต่อจากเราก็จะได้ % ตามลำดับขึ้นแบบนี้<br />
ในรูปเป็นลำดับชั้นที่ผมได้แนะนำไป</p>
<p><a href="http://sixhead.com/wp-content/uploads/2008/10/linkbucks2.png"><img class="alignnone size-full wp-image-237" title="linkbucks2" src="http://sixhead.com/wp-content/uploads/2008/10/linkbucks2.png" alt="" width="312" height="218" /></a></p>
<p>ถ้าสนใจ <a href="http://www.linkbucks.com/referral/25703">สมัครได้ที่ link นี้เลย</a></p>
<p><strong>เพิ่มเติม</strong><br />
ขาย PayPal เป็นเงินบาทได้ภายในไม่ถึงชม. โดยมีค่าใช้จ่ายเล็กน้อยได้ที่นี่<br />
<a href="http://ptc.icphysics.com/webboard/SFM/index.php?topic=16157.0">((( ซื้อ-ขาย-แลกเปลี่ยน AlertPay, PayPal, MB, EG, LR, AG ปลอดภัย 100% )))</a></p>
<p><map name='google_ad_map_235_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/235?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_235_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=235&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F10%2F16%2Fmake-money-with-linkbucks%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/10/16/make-money-with-linkbucks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>change desktop folder in gnome</title>
		<link>http://sixhead.com/2008/10/15/change-desktop-folder-in-gnome/</link>
		<comments>http://sixhead.com/2008/10/15/change-desktop-folder-in-gnome/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 15:49:34 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=231</guid>
		<description><![CDATA[$ sudo gedit ~/.config/user-dirs.dirs



]]></description>
			<content:encoded><![CDATA[<pre>$ sudo gedit ~/.config/user-dirs.dirs</pre>
<p><map name='google_ad_map_231_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/231?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_231_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=231&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F10%2F15%2Fchange-desktop-folder-in-gnome%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/10/15/change-desktop-folder-in-gnome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove partition from places menu</title>
		<link>http://sixhead.com/2008/10/15/remove-partition-from-places-menu/</link>
		<comments>http://sixhead.com/2008/10/15/remove-partition-from-places-menu/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 15:28:28 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=229</guid>
		<description><![CDATA[$ sudo gedit ~/.gtk-bookmarks



]]></description>
			<content:encoded><![CDATA[<pre>$ sudo gedit ~/.gtk-bookmarks</pre>
<p><map name='google_ad_map_229_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/229?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_229_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=229&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F10%2F15%2Fremove-partition-from-places-menu%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/10/15/remove-partition-from-places-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to determine CPU Frequency</title>
		<link>http://sixhead.com/2008/10/15/unable-to-determine-cpu-frequency/</link>
		<comments>http://sixhead.com/2008/10/15/unable-to-determine-cpu-frequency/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 12:58:04 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=227</guid>
		<description><![CDATA[1. Edit file /etc/fstab
linprocfs /compat/linux/proc linprocfs rw 0 0
2. as root run:
kldload linprocfs
3.after this run:
mount /compat/linux/proc



]]></description>
			<content:encoded><![CDATA[<p>1. Edit file /etc/fstab<br />
linprocfs /compat/linux/proc linprocfs rw 0 0</p>
<p>2. as root run:<br />
kldload linprocfs</p>
<p>3.after this run:<br />
mount /compat/linux/proc</p>
<p><map name='google_ad_map_227_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/227?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_227_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=227&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F10%2F15%2Funable-to-determine-cpu-frequency%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/10/15/unable-to-determine-cpu-frequency/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WinMerge เปรียบเทียบความแตกต่างของ file และ folder</title>
		<link>http://sixhead.com/2008/10/13/winmerge/</link>
		<comments>http://sixhead.com/2008/10/13/winmerge/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 12:21:16 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[folder]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=205</guid>
		<description><![CDATA[มี code PHP ที่เขียนใหม่ กับ code ที่ backup เอาไว้ นึกไม่ออกว่าแก้ไขบรรทัดไหนหรืออะไรไปบ้าง หรืออยากจะเทียบ text ไฟล์เก่ากับไฟล์ใหม่ที่ได้จากลูกค้าว่าแก้บรรทัดไหนไปบ้าง รวมถึงมี folder อยู่ 2 folder แต่ไม่รู้ว่าอันไหนใหม่กว่ากันก็ใช้ WinMerge นี่แหล่ะช่วยได้ ไม่ต้องมานั่งไล่ด้วยตาเปล่า ซึ่งสามารถพลาดได้ง่ายๆอีกด้วย
ลองเล่นกันเลย
หลังจากลงเสร็จแล้วลองเทียบไฟล์เก่า+ไฟล์ใหม่กันเลย โดย click เลือกทั้ง 2 ไฟล์แล้ว click ขวาเลือก WinMerge หรือจะเลือกไฟล์แรกก่อน แล้วเลือก WinMerge ไป browse หาไฟล์ที่ 2 ก็ยังได้

เมื่อเปิดมาแล้วโปรแกรมจะ highlight ให้เลยว่ามีบรรทัดไหนเพิ่มมา หรือหายไป

อันนี้เป็นตัวอย่างการเทียบ folder 2 folder WinMerge จะแสดงออกมาให้เลยว่าไฟล์ไหนขนาดไฟล์ไม่เท่ากัน และไฟล์ไหนใหม่กว่ากัน (มีการแก้ไขนั่นเอง)

มีประโยชน์หลายอย่างมากครับ เอาไปประยุกต์กันดู
download ที่นี่



]]></description>
			<content:encoded><![CDATA[<p>มี code PHP ที่เขียนใหม่ กับ code ที่ backup เอาไว้ นึกไม่ออกว่าแก้ไขบรรทัดไหนหรืออะไรไปบ้าง หรืออยากจะเทียบ text ไฟล์เก่ากับไฟล์ใหม่ที่ได้จากลูกค้าว่าแก้บรรทัดไหนไปบ้าง รวมถึงมี folder อยู่ 2 folder แต่ไม่รู้ว่าอันไหนใหม่กว่ากันก็ใช้ WinMerge นี่แหล่ะช่วยได้ ไม่ต้องมานั่งไล่ด้วยตาเปล่า ซึ่งสามารถพลาดได้ง่ายๆอีกด้วย</p>
<p><span id="more-205"></span><strong>ลองเล่นกันเลย</strong><br />
หลังจากลงเสร็จแล้วลองเทียบไฟล์เก่า+ไฟล์ใหม่กันเลย โดย click เลือกทั้ง 2 ไฟล์แล้ว click ขวาเลือก WinMerge หรือจะเลือกไฟล์แรกก่อน แล้วเลือก WinMerge ไป browse หาไฟล์ที่ 2 ก็ยังได้</p>
<p><a href="http://sixhead.com/wp-content/uploads/2008/10/winmerge1.png"><img class="alignnone size-full wp-image-206" title="winmerge1" src="http://sixhead.com/wp-content/uploads/2008/10/winmerge1.png" alt="" width="251" height="394" /></a></p>
<p>เมื่อเปิดมาแล้วโปรแกรมจะ highlight ให้เลยว่ามีบรรทัดไหนเพิ่มมา หรือหายไป</p>
<p><a href="http://sixhead.com/wp-content/uploads/2008/10/winmerge2.png"><img class="alignnone size-medium wp-image-207" title="winmerge2" src="http://sixhead.com/wp-content/uploads/2008/10/winmerge2-300x153.png" alt="" width="300" height="153" /></a><br />
อันนี้เป็นตัวอย่างการเทียบ folder 2 folder WinMerge จะแสดงออกมาให้เลยว่าไฟล์ไหนขนาดไฟล์ไม่เท่ากัน และไฟล์ไหนใหม่กว่ากัน (มีการแก้ไขนั่นเอง)</p>
<p><a href="http://sixhead.com/wp-content/uploads/2008/10/winmerge3.png"><img class="alignnone size-medium wp-image-208" title="winmerge3" src="http://sixhead.com/wp-content/uploads/2008/10/winmerge3-300x193.png" alt="" width="300" height="193" /></a></p>
<p>มีประโยชน์หลายอย่างมากครับ เอาไปประยุกต์กันดู<br />
<a href="http://www.winmerge.org/">download ที่นี่</a></p>
<p><map name='google_ad_map_205_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/205?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_205_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=205&amp;url= http%3A%2F%2Fsixhead.com%2F2008%2F10%2F13%2Fwinmerge%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2008/10/13/winmerge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
