<?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>S i X h E a D { ? }</title>
	<atom:link href="http://sixhead.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixhead.com</link>
	<description>เมื่อความรู้มีไว้แบ่งปัน</description>
	<lastBuildDate>Tue, 31 Aug 2010 05:48:47 +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>MySQL เรียงข้อมูลภาษาไทยกับ UTF8</title>
		<link>http://sixhead.com/2010/08/09/thai-sort-with-utf8/</link>
		<comments>http://sixhead.com/2010/08/09/thai-sort-with-utf8/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 07:13:20 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=594</guid>
		<description><![CDATA[ดูข้อมูล charset SELECT CHARSET(my_column1) FROM `test` เรียงข้อมูลโดยการแปลงไปเป็น tis620 SELECT * FROM `test` ORDER BY CONVERT( my_column1 USING tis620 ) ASC อ่านเพิ่มเติม]]></description>
			<content:encoded><![CDATA[<p>ดูข้อมูล charset<br />
SELECT CHARSET(my_column1) FROM `test`<br />
<span id="more-594"></span><br />
เรียงข้อมูลโดยการแปลงไปเป็น tis620<br />
SELECT * FROM `test` ORDER BY CONVERT( my_column1 USING tis620 ) ASC</p>
<p><a href="http://dev.mysql.com/doc/refman/5.0/en/charset-convert.html">อ่านเพิ่มเติม</a></p>
<p><map name='google_ad_map_594_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/594?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_594_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=594&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F08%2F09%2Fthai-sort-with-utf8%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/08/09/thai-sort-with-utf8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ForceType application/octet-stream, attachment</title>
		<link>http://sixhead.com/2010/07/12/forcetype-applicationoctet-stream-attachment/</link>
		<comments>http://sixhead.com/2010/07/12/forcetype-applicationoctet-stream-attachment/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 11:08:00 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=584</guid>
		<description><![CDATA[ใช้ .htaccess ใน apache บังคับ header ให้ไฟล์ใน folder นั้นๆ ต้อง download สถานเดียว ForceType application/octet-stream Header set Content-Disposition attachment &#160;]]></description>
			<content:encoded><![CDATA[<p>ใช้ .htaccess ใน apache บังคับ header ให้ไฟล์ใน folder นั้นๆ ต้อง download สถานเดียว<br />
<span id="more-584"></span></p>
<pre>ForceType application/octet-stream
Header set Content-Disposition attachment
&nbsp;</pre>
<p><map name='google_ad_map_584_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/584?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_584_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=584&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F07%2F12%2Fforcetype-applicationoctet-stream-attachment%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/07/12/forcetype-applicationoctet-stream-attachment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ค้นหาและแทนที่ ด้วย function ใน Excel</title>
		<link>http://sixhead.com/2010/06/22/find-and-replace-with-excel-function/</link>
		<comments>http://sixhead.com/2010/06/22/find-and-replace-with-excel-function/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 10:49:55 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[ค้นหา]]></category>
		<category><![CDATA[แทนที่]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=579</guid>
		<description><![CDATA[พอดีมีผู้ที่นับถือขอความช่วยเหลือมาครับ มีข้อมูลนักเรียนเป็นหมื่นรายการจะแก้ไขเอาคำว่า นาย นาง นางสาวออกจากชื่อได้อย่างไร จริงๆ คำว่านางนั้นก็เขียนใส่ไว้ให้ครบเงื่อนไขครับ ^^ ถ้าใช้ PHP ละก็เสร็จภายใน 5 นาทีแน่แต่ไหนๆ แล้วลองเล่นกับ excel ดูหน่อยจะเป็นไร รับ excel ไปลองกันเลย find.and.replace]]></description>
			<content:encoded><![CDATA[<p>พอดีมีผู้ที่นับถือขอความช่วยเหลือมาครับ มีข้อมูลนักเรียนเป็นหมื่นรายการจะแก้ไขเอาคำว่า<br />
นาย นาง นางสาวออกจากชื่อได้อย่างไร จริงๆ คำว่านางนั้นก็เขียนใส่ไว้ให้ครบเงื่อนไขครับ ^^<br />
ถ้าใช้ PHP ละก็เสร็จภายใน 5 นาทีแน่แต่ไหนๆ แล้วลองเล่นกับ excel ดูหน่อยจะเป็นไร<br />
<span id="more-579"></span><br />
<a href="http://sixhead.com/wp-content/uploads/2010/06/find.and_.replace.xls.jpg"><img class="alignnone size-full wp-image-581" title="find.and.replace.xls" src="http://sixhead.com/wp-content/uploads/2010/06/find.and_.replace.xls.jpg" alt="" width="358" height="143" /></a></p>
<p>รับ excel ไปลองกันเลย<br />
<a href="http://sixhead.com/wp-content/uploads/2010/06/find.and_.replace.xls">find.and.replace</a></p>
<p><map name='google_ad_map_579_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/579?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_579_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=579&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F06%2F22%2Ffind-and-replace-with-excel-function%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/06/22/find-and-replace-with-excel-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>สร้าง htpasswd ด้วย perl,ruby</title>
		<link>http://sixhead.com/2010/06/21/to-generate-a-htpasswd-password-without-installing-apache-by-perl-ruby/</link>
		<comments>http://sixhead.com/2010/06/21/to-generate-a-htpasswd-password-without-installing-apache-by-perl-ruby/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 16:45:51 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=577</guid>
		<description><![CDATA[The crypt() method uses 56-bit DES encryption, which is used in /etc/passwd and htpasswd. Perl perl -le 'print crypt("password", "salt")' Ruby (run in irb) "password".crypt("salt")]]></description>
			<content:encoded><![CDATA[<p>The crypt() method uses 56-bit DES encryption, which is used in /etc/passwd and htpasswd.<br />
<span id="more-577"></span></p>
<pre lang=perl>
Perl
   perl -le 'print crypt("password", "salt")'

Ruby (run in irb)
   "password".crypt("salt")
</pre>
<p><map name='google_ad_map_577_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/577?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_577_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=577&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F06%2F21%2Fto-generate-a-htpasswd-password-without-installing-apache-by-perl-ruby%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/06/21/to-generate-a-htpasswd-password-without-installing-apache-by-perl-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PsychoStats and PHP 5.3</title>
		<link>http://sixhead.com/2010/06/16/psychostats-and-php-5-3-2/</link>
		<comments>http://sixhead.com/2010/06/16/psychostats-and-php-5-3-2/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 03:28:47 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PsychoStats]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=570</guid>
		<description><![CDATA[Open includes/common.php change line 45 from error_reporting&#40;E_ALL ^ E_NOTICE&#41;; &#160; to error_reporting&#40;E_ERROR&#41;; &#160; Open includes/class_table.php change line 163 from $ret = call_user_func_array&#40;$callback, $params ? array&#40;$html, $params&#41; : $html&#41;; &#160; to $ret = call_user_func_array&#40;$callback, $params ? array&#40;$html, $params&#41; : array&#40;$html&#41;&#41;; &#160;]]></description>
			<content:encoded><![CDATA[<p>Open includes/common.php change line 45<br />
from</p>
<pre class="php"><a href="http://www.php.net/error_reporting"><span style="color: #000066;">error_reporting</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">E_ALL</span> ^ <span style="color: #000000; font-weight: bold;">E_NOTICE</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>to</p>
<pre class="php"><a href="http://www.php.net/error_reporting"><span style="color: #000066;">error_reporting</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">E_ERROR</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p><span id="more-570"></span><br />
Open includes/class_table.php change line 163<br />
from</p>
<pre class="php"><span style="color: #0000ff;">$ret</span> = <a href="http://www.php.net/call_user_func_array"><span style="color: #000066;">call_user_func_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$callback</span>, <span style="color: #0000ff;">$params</span> ? <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$html</span>, <span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0000ff;">$html</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>to</p>
<pre class="php"><span style="color: #0000ff;">$ret</span> = <a href="http://www.php.net/call_user_func_array"><span style="color: #000066;">call_user_func_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$callback</span>, <span style="color: #0000ff;">$params</span> ? <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$html</span>, <span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span> : <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$html</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p><map name='google_ad_map_570_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/570?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_570_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=570&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F06%2F16%2Fpsychostats-and-php-5-3-2%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/06/16/psychostats-and-php-5-3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merge Image in VB.net, ASPX</title>
		<link>http://sixhead.com/2010/05/12/merge-image-in-vb-net-aspx/</link>
		<comments>http://sixhead.com/2010/05/12/merge-image-in-vb-net-aspx/#comments</comments>
		<pubDate>Wed, 12 May 2010 12:22:13 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[VB.Net & Aspx]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=551</guid>
		<description><![CDATA[วิธีการรวมร่างระหว่างรูป 2 รูป ASPX &#160; Protected Sub Page_Load&#40;ByVal sender As Object, ByVal e As System.EventArgs&#41; Handles Me.Load MergeImages&#40;Server.MapPath&#40;&#34;bg.jpg&#34;&#41;, Server.MapPath&#40;&#34;frame.gif&#34;&#41;&#41; End Sub &#160; Private Sub MergeImages&#40;ByVal imgBG As String, ByVal imgFG As String&#41; Try Dim MemStream As New System.IO.MemoryStream&#40;&#41; &#160; Dim myGraphic As System.Drawing.Graphics = Nothing Dim imgB As System.Drawing.Image imgB = System.Drawing.Image.FromFile&#40;imgBG&#41; Dim imgF As [...]]]></description>
			<content:encoded><![CDATA[<p>วิธีการรวมร่างระหว่างรูป 2 รูป<br />
<span id="more-551"></span><br />
<strong>ASPX</strong></p>
<pre class="vbnet">&nbsp;
Protected <span style="color: #0600FF;">Sub</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> <span style="color: #FF8000;">Me</span>.<span style="color: #0000FF;">Load</span>
	MergeImages<span style="color: #000000;">&#40;</span>Server.<span style="color: #0000FF;">MapPath</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;bg.jpg&quot;</span><span style="color: #000000;">&#41;</span>, Server.<span style="color: #0000FF;">MapPath</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;frame.gif&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;
<span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> MergeImages<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> imgBG <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> imgFG <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">Try</span>
            <span style="color: #0600FF;">Dim</span> MemStream <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> System.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">MemoryStream</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
            <span style="color: #0600FF;">Dim</span> myGraphic <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Graphics</span> = <span style="color: #FF8000;">Nothing</span>
            <span style="color: #0600FF;">Dim</span> imgB <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Image</span>
            imgB = System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Image</span>.<span style="color: #0000FF;">FromFile</span><span style="color: #000000;">&#40;</span>imgBG<span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">Dim</span> imgF <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Image</span>
            imgF = System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Image</span>.<span style="color: #0000FF;">FromFile</span><span style="color: #000000;">&#40;</span>imgFG<span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">Dim</span> m <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Image</span>
            m = System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Image</span>.<span style="color: #0000FF;">FromFile</span><span style="color: #000000;">&#40;</span>imgBG<span style="color: #000000;">&#41;</span>
            myGraphic = System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Graphics</span>.<span style="color: #0000FF;">FromImage</span><span style="color: #000000;">&#40;</span>m<span style="color: #000000;">&#41;</span>
            myGraphic.<span style="color: #0000FF;">DrawImageUnscaled</span><span style="color: #000000;">&#40;</span>imgB, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
            myGraphic.<span style="color: #0000FF;">DrawImageUnscaled</span><span style="color: #000000;">&#40;</span>imgF, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
            myGraphic.<span style="color: #0000FF;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
            Response.<span style="color: #0000FF;">ContentType</span> = <span style="color: #808080;">&quot;image/png&quot;</span>
            <span style="color: #008080; font-style: italic;">'m.Save(Server.MapPath(&quot;save.png&quot;), System.Drawing.Imaging.ImageFormat.Png)</span>
            m.<span style="color: #0000FF;">Save</span><span style="color: #000000;">&#40;</span>MemStream, System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Imaging</span>.<span style="color: #0000FF;">ImageFormat</span>.<span style="color: #0000FF;">Png</span><span style="color: #000000;">&#41;</span>
            MemStream.<span style="color: #0000FF;">WriteTo</span><span style="color: #000000;">&#40;</span>Response.<span style="color: #0000FF;">OutputStream</span><span style="color: #000000;">&#41;</span>
&nbsp;
        <span style="color: #0600FF;">Catch</span> ex <span style="color: #FF8000;">As</span> Exception
            Response.<span style="color: #0600FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;error: &quot;</span> &amp;amp; ex.<span style="color: #0000FF;">Message</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Try</span>
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;</pre>
<p><strong>VB.NET</strong></p>
<pre class="vbnet">&nbsp;
<span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> Button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> System.<span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> Button1.<span style="color: #0000FF;">Click</span>
	MergeImages<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;bg.jpg&quot;</span>, <span style="color: #808080;">&quot;frame.gif&quot;</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;
<span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> MergeImages<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> imgBG <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> imgFG <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">Try</span>
    <span style="color: #0600FF;">Dim</span> myGraphic <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Graphics</span> = <span style="color: #FF8000;">Nothing</span>
&nbsp;
    <span style="color: #0600FF;">Dim</span> imgB <span style="color: #FF8000;">As</span> Image
    imgB = Image.<span style="color: #0000FF;">FromFile</span><span style="color: #000000;">&#40;</span>imgBG<span style="color: #000000;">&#41;</span>
    <span style="color: #0600FF;">Dim</span> imgF <span style="color: #FF8000;">As</span> Image
    imgF = Image.<span style="color: #0000FF;">FromFile</span><span style="color: #000000;">&#40;</span>imgFG<span style="color: #000000;">&#41;</span>
    <span style="color: #0600FF;">Dim</span> m <span style="color: #FF8000;">As</span> Image
    m = Image.<span style="color: #0000FF;">FromFile</span><span style="color: #000000;">&#40;</span>imgBG<span style="color: #000000;">&#41;</span>
    myGraphic = System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Graphics</span>.<span style="color: #0000FF;">FromImage</span><span style="color: #000000;">&#40;</span>m<span style="color: #000000;">&#41;</span>
    myGraphic.<span style="color: #0000FF;">DrawImageUnscaled</span><span style="color: #000000;">&#40;</span>imgB, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
    myGraphic.<span style="color: #0000FF;">DrawImageUnscaled</span><span style="color: #000000;">&#40;</span>imgF, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
    myGraphic.<span style="color: #0000FF;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
    m.<span style="color: #0000FF;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;save.png&quot;</span>, System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Imaging</span>.<span style="color: #0000FF;">ImageFormat</span>.<span style="color: #0000FF;">Png</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">Catch</span> ex <span style="color: #FF8000;">As</span> Exception
    MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span>ex.<span style="color: #0000FF;">Message</span><span style="color: #000000;">&#41;</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Try</span>
&nbsp;
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;</pre>
<p><map name='google_ad_map_551_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/551?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_551_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=551&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F05%2F12%2Fmerge-image-in-vb-net-aspx%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/05/12/merge-image-in-vb-net-aspx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>make install FORCE_PKG_REGISTER=yes</title>
		<link>http://sixhead.com/2010/03/22/make-install-force_pkg_registeryes/</link>
		<comments>http://sixhead.com/2010/03/22/make-install-force_pkg_registeryes/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 00:56:53 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=549</guid>
		<description><![CDATA[make install FORCE_PKG_REGISTER=yes]]></description>
			<content:encoded><![CDATA[<p>make install  FORCE_PKG_REGISTER=yes</p>
<p><map name='google_ad_map_549_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/549?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_549_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=549&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F03%2F22%2Fmake-install-force_pkg_registeryes%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/03/22/make-install-force_pkg_registeryes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS7 (64bit) Microsoft.Jet.OleDb.4.0 provider is not registered on the local machine</title>
		<link>http://sixhead.com/2010/03/18/iis7-64bit-microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine/</link>
		<comments>http://sixhead.com/2010/03/18/iis7-64bit-microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 17:54:36 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[VB.Net & Aspx]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=546</guid>
		<description><![CDATA[goto IIS Manager Application Pools -&#62;DefaultAppPool right click  Advance Settings Generals-&#62;Enable 32-bit Applications set it to true]]></description>
			<content:encoded><![CDATA[<p>goto IIS Manager</p>
<p>Application Pools -&gt;DefaultAppPool</p>
<p>right click  Advance Settings</p>
<p>Generals-&gt;Enable 32-bit Applications set it to true</p>
<p><map name='google_ad_map_546_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/546?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_546_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=546&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F03%2F18%2Fiis7-64bit-microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/03/18/iis7-64bit-microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>แก้ปัญหา windows 7 กับการแสดงภาษาไทยแปลกๆ</title>
		<link>http://sixhead.com/2010/02/23/windows-7-non-unicode/</link>
		<comments>http://sixhead.com/2010/02/23/windows-7-non-unicode/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 14:36:26 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[thai]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=543</guid>
		<description><![CDATA[ในบางโปรแกรมนั้นจะแสดงผลภาษาไทยไม่ถูกต้องหรือ cursor เลื่อนแปลกๆ แก้ง่ายๆ เลยครับโดยการปรับตามรูป]]></description>
			<content:encoded><![CDATA[<p>ในบางโปรแกรมนั้นจะแสดงผลภาษาไทยไม่ถูกต้องหรือ cursor เลื่อนแปลกๆ แก้ง่ายๆ เลยครับโดยการปรับตามรูป<span id="more-543"></span></p>
<p><a href="http://sixhead.com/wp-content/uploads/2010/02/windows.7.non_.unicode.png"><img class="alignleft size-full wp-image-544" title="windows.7.non.unicode" src="http://sixhead.com/wp-content/uploads/2010/02/windows.7.non_.unicode.png" alt="" width="477" height="550" /></a></p>
<p><map name='google_ad_map_543_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/543?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_543_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=543&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F02%2F23%2Fwindows-7-non-unicode%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/02/23/windows-7-non-unicode/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>เปิด windows explorer ให้ไปยัง drive, folder ที่ต้องการ</title>
		<link>http://sixhead.com/2010/02/09/windows-explorer-open-custom-driver-or-folder/</link>
		<comments>http://sixhead.com/2010/02/09/windows-explorer-open-custom-driver-or-folder/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 06:14:48 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Modification]]></category>
		<category><![CDATA[drive]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[windows explorer]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=540</guid>
		<description><![CDATA[ปกติเปิด windows explorer จะ default ไปที่ my documents พอมาเป็น windows 7 แล้ว folder ใน ใน my documents มันช่างเยอะเหลือเกิน อีกอย่างผมก็ไม่นิยมเก็บไว้ในนั้นเสียด้วย เลยต้องหาทางแก้ไข ซึ่งวิธีนั้นก็ไม่ยุ่งยากอะไรครับ ไปที่ All Programs แล้วเข้า Accessories หลังจากนั้น click ขวาที่ Windows Explorer เลือก Send to (create shortcut) หลังจากนั้นก็ click ขวาเลือก properties แล้วใส่ parameter ต่อท้ายดังตัวอย่าง %windir%\explorer.exe /n, /e, /select, E:\ จะระบุแค่ drive หรือ folder ก็ย่อมได้ตามต้องการ หลังจากนั้นก็ลากมา Pint [...]]]></description>
			<content:encoded><![CDATA[<p>ปกติเปิด windows explorer จะ default ไปที่ my documents พอมาเป็น windows 7 แล้ว folder ใน ใน my documents มันช่างเยอะเหลือเกิน อีกอย่างผมก็ไม่นิยมเก็บไว้ในนั้นเสียด้วย เลยต้องหาทางแก้ไข</p>
<p><span id="more-540"></span><br />
ซึ่งวิธีนั้นก็ไม่ยุ่งยากอะไรครับ ไปที่ All Programs แล้วเข้า Accessories หลังจากนั้น click ขวาที่ Windows Explorer เลือก Send to (create shortcut) หลังจากนั้นก็ click ขวาเลือก properties แล้วใส่ parameter ต่อท้ายดังตัวอย่าง</p>
<pre>%windir%\explorer.exe /n, /e, /select, E:\</pre>
<p>จะระบุแค่ drive หรือ folder ก็ย่อมได้ตามต้องการ หลังจากนั้นก็ลากมา Pint  to taskbar จบ</p>
<p><span style="color: #888888;">* บน XP, Vista น่าจะเป็น %SystemRoot% แทนที่ %windir% ฉนั้นใส่แต่ parameter ก็พอ<br />
</span></p>
<p><map name='google_ad_map_540_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/540?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_540_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=540&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F02%2F09%2Fwindows-explorer-open-custom-driver-or-folder%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/02/09/windows-explorer-open-custom-driver-or-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css background อยู่กลางจอเสมอ</title>
		<link>http://sixhead.com/2010/01/15/css-background-center-top/</link>
		<comments>http://sixhead.com/2010/01/15/css-background-center-top/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 07:14:24 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=538</guid>
		<description><![CDATA[&#160; &#60;style&#62; body &#123; background:#000000 url&#40;images/bg_home.jpg&#41; no-repeat center top; &#125; &#60;/style&#62; &#160;]]></description>
			<content:encoded><![CDATA[<pre class="css">&nbsp;
&lt;style&gt;
body <span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span>:<span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span> <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">images/bg_home<span style="color: #6666ff;">.jpg</span></span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">top</span>;
<span style="color: #66cc66;">&#125;</span>
&lt;/style&gt;
&nbsp;</pre>
<p><map name='google_ad_map_538_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/538?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_538_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=538&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F01%2F15%2Fcss-background-center-top%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/01/15/css-background-center-top/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ทุ่งทานตะวันในเมืองกรุง</title>
		<link>http://sixhead.com/2010/01/13/sun-flower-in-bangkok-city/</link>
		<comments>http://sixhead.com/2010/01/13/sun-flower-in-bangkok-city/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 07:02:18 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Travel]]></category>
		<category><![CDATA[ทานตะวัน]]></category>
		<category><![CDATA[เกษตร-นวมินทร์]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=535</guid>
		<description><![CDATA[ตรงหน้า โรงเรียนสตรีวิทยา ๒ เส้น เกษตร-นวมินทร์ นี่เองครับ พื้นที่กว้างมากเลย และมีทุ่งดาวเรืองติดกันด้วย (ถ้าดูไม่ผิดนะ) ที่ตั้งของโรงเรียน ใครว่างแวะไปดูนะครับกำลังสวยเลย พอดีอยู่บนรถใช้มือถือถ่ายนะครับ]]></description>
			<content:encoded><![CDATA[<p>ตรงหน้า โรงเรียนสตรีวิทยา ๒ เส้น เกษตร-นวมินทร์ นี่เองครับ พื้นที่กว้างมากเลย และมีทุ่งดาวเรืองติดกันด้วย (ถ้าดูไม่ผิดนะ) <a href="http://maps.google.com/maps/ms?f=q&amp;hl=en&amp;geocode=&amp;ie=UTF8&amp;msa=0&amp;msid=102859986864474752337.0004403a23bf3b265213c&amp;ll=13.826193,100.616902&amp;spn=0.004636,0.006866&amp;z=17">ที่ตั้งของโรงเรียน</a> ใครว่างแวะไปดูนะครับกำลังสวยเลย</p>
<p>พอดีอยู่บนรถใช้มือถือถ่ายนะครับ<br />
<a href="http://sixhead.com/wp-content/uploads/2010/01/Sun.Flower.Field_.jpg"><img class="alignleft size-full wp-image-536" title="Sun.Flower.Field" src="http://sixhead.com/wp-content/uploads/2010/01/Sun.Flower.Field_.jpg" alt="" width="600" height="147" /></a></p>
<p><map name='google_ad_map_535_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/535?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_535_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=535&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F01%2F13%2Fsun-flower-in-bangkok-city%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/01/13/sun-flower-in-bangkok-city/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iphone 2G (classic) + roqy Bluetooth = perfect GPS (guide)</title>
		<link>http://sixhead.com/2010/01/06/iphone-2g-classic-roqy-bluetooth-perfect-gps/</link>
		<comments>http://sixhead.com/2010/01/06/iphone-2g-classic-roqy-bluetooth-perfect-gps/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 17:18:51 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[igo]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[roqy]]></category>
		<category><![CDATA[sygic]]></category>
		<category><![CDATA[tomtom]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=513</guid>
		<description><![CDATA[บทความนี้รวมถึง iPod Touch 2G/3G with OS 3.x and iPhone 2G/3G/3GS with OS 2.x/3.x ด้วย ฝันที่เป็นจริงสำหรับเจ้าของ iPhone Classic, iPod Touch และมี GPS receiver อยู่แล้ว หรือแม้กระทั่งเจ้าของ iPhone 3G แต่อยากได้การรับสัญญาณ GPS ที่ต่อเนื่อง roqyGPS คือ iphone software ที่ทำหน้าที่รับ-ส่งข้อมูลกับ GPS receiver ผ่าน bluetooth นั่นเอง ดูรายชื่อ hardware ที่ support ที่นี่ ถึงไม่มีอยู่ใน list แต่ถ้าเป็น hardware ที่สร้างตามมาตรฐานแล้ว คิดว่าน่าจะทำงานได้เช่นกัน สิ่งที่คุณต้องมี 1. iphone หรือ ipod [...]]]></description>
			<content:encoded><![CDATA[<p>บทความนี้รวมถึง iPod Touch 2G/3G with OS 3.x and iPhone 2G/3G/3GS with OS 2.x/3.x ด้วย</p>
<p>ฝันที่เป็นจริงสำหรับเจ้าของ iPhone Classic, iPod Touch และมี GPS receiver อยู่แล้ว หรือแม้กระทั่งเจ้าของ iPhone 3G แต่อยากได้การรับสัญญาณ GPS ที่ต่อเนื่อง</p>
<p><a href="http://www.roqy-bluetooth.net/roqyGPS.html">roqyGPS</a> คือ iphone software ที่ทำหน้าที่รับ-ส่งข้อมูลกับ GPS receiver ผ่าน bluetooth นั่นเอง <a href="http://www.roqy-bluetooth.net/hardware.html">ดูรายชื่อ hardware ที่ support ที่นี่</a> ถึงไม่มีอยู่ใน list แต่ถ้าเป็น hardware ที่สร้างตามมาตรฐานแล้ว คิดว่าน่าจะทำงานได้เช่นกัน</p>
<p><span id="more-513"></span><strong>สิ่งที่คุณต้องมี</strong><br />
1. iphone หรือ ipod touch ต้อง jailbreak มี cydia และ OpenSSH พร้อม<br />
2. GPS receiver<br />
3. wifi</p>
<p><strong>ขั้นตอน</strong><br />
ใครถนัด iphone file manager ตัวใดก็ใช้ตามสะดวกครับ จากตัวอย่างผมใช้ <a href="http://www.linkbucks.com/link/38d6ea4b">Tunnelier</a> ถ้าไม่มี wifi คงต้องไปใช้ผ่าน USB (ไม่ขอลงรายละเอียด)</p>
<p>1. ใช้ iphone file manager upload ไฟล์ <a href="http://www.multiupload.com/7O1WKHO9KP">roqyBT_0.9.4.2.deb</a> เข้าไปยัง /tmp/roqyBT_0.9.4.2.deb<br />
<img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.01.png" alt="" /></p>
<p><img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.02.png" alt="" /></p>
<p><img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.03.png" alt="" /></p>
<p><img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.04.png" alt="" width="591" height="391" /></p>
<p>2. ใช้ ssh พิมพ์ dpkg -i /tmp/roqyBT_0.9.4.2.deb แล้ว enter</p>
<p><img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.05.png" alt="" /></p>
<p><img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.06.png" alt="" /></p>
<p>3. restart iphone 1 รอบ</p>
<p>4. เปิด roqyBT ใน iphone ครั้งแรกตรง license จะเป็นสีแดงให้ tab เข้าไป เลื่อนไปช่องล่างสุด<br />
ตรง serial number ให้ใส่ 12345678 แล้ว จะขึ้น invalid license ไม่ต้องสนใจ back กลับมา<br />
จะกลาย license will be valid พร้อมใช้งาน <span style="color: #ff0000;">อย่าเพิ่งเปิด ต่อกับ GPS receiver นะครับ</span> บางรุ่นใช้ได้<br />
เลยบางรุ่นยังไม่ได้ (เดี๋ยวจะงงกันใหญ่) ให้ update roqy เป็น version ล่าสุดก่อนในข้อถัดไป</p>
<p>5. ทีนี้ปัญหาต่อไปเรื่องการ upgrade version ใหม่ๆ เพราะคงมีการ update ของ roqy อยู่ตลอดอยู่แล้ว<br />
ให้คุณใช้ file manager เข้าไป<br />
<img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.07.png" alt="" width="729" height="227" /></p>
<p>6. มองหา folder roqyBT.app แล้วเข้าไปลากไฟล์  Licence.nib, LicenceP.nib มาเก็บไว้ในเครื่องเรา (ลากขวา ไป ซ้าย)</p>
<p>7. เข้า cydia เลือก uninstall roqyBT แล้ว restart iphone</p>
<p>8. search หา roqyBT ใน cydia อีกทีจะมี roqyBT ที่มาจาก ModMyi อยู่แล้วให้ install ทีนี้คุณจะได้ roqyBT version ล่าสุด (0.9.5-1)<br />
พร้อม update ได้ในอนาคต</p>
<p>9. เข้าไปยัง roqyBT.app อีกรอบหนึ่งก่อน แต่ครั้งนี้ให้เราลากไฟล์ Licence.nib, LicenceP.nib ที่เราเก็บไว้จากข้อ 6 ไปทับใน iphone (ลากซ้าย ไป ขวา)<br />
<img class="alignnone" src="/wp-content/uploads/image/roqy/Tunnelier.07.png" alt="" width="729" height="227" /></p>
<p>10. restart iphone อีกครั้ง roqyBT พร้อมใช้งานแล้ว <span style="color: #339966;">ให้คุณเปิด GPS receiver รอได้เลย</span></p>
<p>11. เปิด roqyBT แล้วจะเป็นดังรูป<span style="color: #ff0000;"> (ห้ามเปิด bluetooth ของ iphone)</span> เริ่ม scan หา GPS receiver<br />
<img class="alignnone" src="/wp-content/uploads/image/roqy/roqy.01.png" alt="" width="320" height="480" /></p>
<p>ว้าว!!! เจอ GPS receiver แล้ว</p>
<p><img class="alignnone" src="/wp-content/uploads/image/roqy/roqy.02.png" alt="" /></p>
<p>รูปการรับ-ส่งข้อมูลที่พร้อมใช้งาน</p>
<p><img class="alignnone" src="/wp-content/uploads/image/roqy/roqy.03.png" alt="" /></p>
<p><strong>ปัญหาหลังจากลง</strong> roqy<br />
1. เปิดแล้วกดให้ open ซักพักขึ้น error on startup, please try again. หรือเปิดแล้วเด้งออกทันที<br />
เท่าที่ลอง version 0.9.4-2 จะไม่พบปัญหาดังกล่าว (แต่ 0.8.x จะเป็น)</p>
<p>2. เปิด roqy แล้วค้าง<br />
ต้องปิด bluetooth ของ iphone</p>
<p><strong>จบภาคการเชื่อมต่อเท่านี้ครับ</strong><br />
ส่วน GPS Software นั้นไปหามาลงเองนะครับใช้ได้ดีหมดทุกตัว</p>
<ul>
<li>iGo (ผมชอบเป็นการส่วนตัว)</li>
<li>Sygic</li>
<li>TomTom</li>
</ul>
<p><strong>*มีข้อแนะนำนิดนึง</strong><br />
พวก GPS Software เหล่านี้จะใช้ RAM พอสมควร บางทีเราลงโน่นลงนี้เยอะๆ RAM ของ iPhone อาจลดลงจนไม่พอรัน GPS Software ให้เราลง MemTool จาก cydia จะทำให้สามารถปิด program ที่รันค้างอยู่ และคืน RAM ให้ได้ด้วย</p>
<p><map name='google_ad_map_513_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/513?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_513_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=513&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F01%2F06%2Fiphone-2g-classic-roqy-bluetooth-perfect-gps%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/01/06/iphone-2g-classic-roqy-bluetooth-perfect-gps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เปลี่ยน Skin ของ FireFox ในแบบตัวคุณ</title>
		<link>http://sixhead.com/2009/12/01/change-firefox-skin-with-personas/</link>
		<comments>http://sixhead.com/2009/12/01/change-firefox-skin-with-personas/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 03:03:24 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FireFox]]></category>
		<category><![CDATA[anycolor]]></category>
		<category><![CDATA[personas]]></category>
		<category><![CDATA[skin]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=507</guid>
		<description><![CDATA[เป็นอะไรที่ง่ายมากๆ เข้าไปในเวปเลยครับ Get Personas เลือก skin ที่คุณชอบแล้วกด wear this ได้เลยทันที (ถ้าคุณยังไม่ได้ ลง Add-ons ตัวนี้มันจะขึ้นหน้า download ให้คุณเองอัตโนมัติ) ถ้าอยากเปลี่ยน สีของ font, dialog ต่างๆ เชิญ plugins ตัวนี้ครับ AnyColor]]></description>
			<content:encoded><![CDATA[<p>เป็นอะไรที่ง่ายมากๆ เข้าไปในเวปเลยครับ</p>
<p><a href="http://www.getpersonas.com/en-US/">Get Personas</a> เลือก skin ที่คุณชอบแล้วกด wear this ได้เลยทันที (ถ้าคุณยังไม่ได้ ลง Add-ons ตัวนี้มันจะขึ้นหน้า download ให้คุณเองอัตโนมัติ)</p>
<p><span id="more-507"></span>ถ้าอยากเปลี่ยน สีของ font, dialog ต่างๆ เชิญ plugins ตัวนี้ครับ<br />
<a href="https://addons.mozilla.org/en-US/firefox/addon/6991">AnyColor</a></p>
<p><map name='google_ad_map_507_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/507?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_507_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=507&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F12%2F01%2Fchange-firefox-skin-with-personas%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/12/01/change-firefox-skin-with-personas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ติดตั้ง vsftpd + ssl</title>
		<link>http://sixhead.com/2009/09/04/install-vsftp-and-ssl/</link>
		<comments>http://sixhead.com/2009/09/04/install-vsftp-and-ssl/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 03:15:39 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[FileZilla]]></category>
		<category><![CDATA[ftpd]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=496</guid>
		<description><![CDATA[vsftpd ก็คือ FTP (Daemon) Server อีกตัวหนึ่งนั่นเองมี feature ดีๆ หลายอย่างไปอ่านกันเองครับ ที่นี่ การติดตั้งบน FreeBSD นั้นง่ายมากๆ # cd /usr/ports/ftp/vsftpd # make config (เลือกให้ support SSL ด้วย) สร้าง ssl key ก่อน # openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/vsftpd.pem -out /etc/vsftpd.pem สร้างไฟล์ /usr/local/etc/vsftpd.chroot_list ขึ้นมาโดยใส่ชื่อ root เข้าไป (เป็นการบังคับว่า user root เท่านั้นที่สามารถออกมานอก home ได้) เมื่อลงเสร็จก็ เอา config นี้ไปใส่ใน [...]]]></description>
			<content:encoded><![CDATA[<p>vsftpd ก็คือ FTP (Daemon) Server อีกตัวหนึ่งนั่นเองมี feature ดีๆ หลายอย่างไปอ่านกันเองครับ <a href="http://vsftpd.beasts.org"><span style="color: #888888;">ที่นี่</span></a><br />
การติดตั้งบน FreeBSD นั้นง่ายมากๆ<br />
<span id="more-496"></span></p>
<pre># cd /usr/ports/ftp/vsftpd
# make config (เลือกให้ support SSL ด้วย)</pre>
<p>สร้าง ssl key ก่อน</p>
<pre># openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/vsftpd.pem -out /etc/vsftpd.pem</pre>
<p>สร้างไฟล์ /usr/local/etc/vsftpd.chroot_list ขึ้นมาโดยใส่ชื่อ root เข้าไป (เป็นการบังคับว่า user root เท่านั้นที่สามารถออกมานอก home ได้)</p>
<p>เมื่อลงเสร็จก็ เอา config นี้ไปใส่ใน /etc/vsftpd.conf ได้เลย (config นี้ไม่อนุญาติ anonymous)</p>
<pre class="perl">xferlog_file=/var/<a href="http://perldoc.perl.org/functions/log.html"><span style="color: #000066;">log</span></a>/vsftpd.<a href="http://perldoc.perl.org/functions/log.html"><span style="color: #000066;">log</span></a>
&nbsp;
<a href="http://perldoc.perl.org/functions/listen.html"><span style="color: #000066;">listen</span></a>=YES
max_clients=<span style="color: #cc66cc;">200</span>
max_per_ip=<span style="color: #cc66cc;">5</span>
file_open_mode=<span style="color: #cc66cc;">0777</span>
local_umask=<span style="color: #cc66cc;">0022</span>
&nbsp;
local_enable=YES
write_enable=YES
&nbsp;
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/usr/<a href="http://perldoc.perl.org/functions/local.html"><span style="color: #000066;">local</span></a>/etc/vsftpd.chroot_list
&nbsp;
connect_from_port_20=YES
hide_ids=YES
pasv_min_port=<span style="color: #cc66cc;">50000</span>
pasv_max_port=<span style="color: #cc66cc;">60000</span>
&nbsp;
xferlog_enable=YES
ls_recurse_enable=NO
ascii_download_enable=NO
async_abor_enable=YES
&nbsp;
one_process_model=NO
idle_session_timeout=<span style="color: #cc66cc;">120</span>
data_connection_timeout=<span style="color: #cc66cc;">300</span>
accept_timeout=<span style="color: #cc66cc;">60</span>
connect_timeout=<span style="color: #cc66cc;">60</span>
anon_max_rate=<span style="color: #cc66cc;">50000</span>
&nbsp;
anonymous_enable=NO
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
anon_world_readable_only=NO
&nbsp;
ssl_enable=YES
force_local_logins_ssl=YES
force_local_data_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
rsa_cert_file=/etc/vsftpd.pem
rsa_private_key_file=/etc/vsftpd.pem</pre>
<p>start service</p>
<pre>/usr/local/libexec/vsftpd /etc/vsftpd.conf &</pre>
<p>ทุกครั้งที่จะ restart service ก็ให้ kill process ทิ้งก่อน (เพราะเรารันแบบ stand alone)<br />
ลองใช้ ftp client connect ดูถ้าเราใช้ ssl ด้วยก็ให้เลือก FTPES - FTP over explicit TLS/SSL<br />
แนะนำ <a href="http://filezilla-project.org/download.php">Filezilla</a> ถ้ายังไม่สำเร็จให้ลอง</p>
<pre>ssl_enable=NO</pre>
<p>ไปก่อนแล้ว connect ที่ port 21 ตามปกติ</p>
<p><map name='google_ad_map_496_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/496?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_496_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=496&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F09%2F04%2Finstall-vsftp-and-ssl%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/09/04/install-vsftp-and-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount UFS (FreeBSD) Partition</title>
		<link>http://sixhead.com/2009/08/20/mount-ufs-freebsd-partition/</link>
		<comments>http://sixhead.com/2009/08/20/mount-ufs-freebsd-partition/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 03:48:49 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[ufs]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=491</guid>
		<description><![CDATA[sudo mount -r -t ufs -o ufstype=ufs2 /dev/sda1/ /mnt]]></description>
			<content:encoded><![CDATA[<p>sudo mount -r -t ufs -o ufstype=ufs2 /dev/sda1/ /mnt</p>
<p><map name='google_ad_map_491_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/491?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_491_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=491&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F08%2F20%2Fmount-ufs-freebsd-partition%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/08/20/mount-ufs-freebsd-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ติดต่อ webservice ด้วย proxy</title>
		<link>http://sixhead.com/2009/08/06/request-webservice-via-proxy/</link>
		<comments>http://sixhead.com/2009/08/06/request-webservice-via-proxy/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 05:40:06 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[VB.Net & Aspx]]></category>
		<category><![CDATA[oil]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ptt]]></category>
		<category><![CDATA[webservice]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=483</guid>
		<description><![CDATA[ตัวอย่างการดึงราคาน้ำมันจาก http://www.pttplc.com/pttinfo.asmx?wsdl ขั้นแรก add Web References ก่อน &#160; Try Dim strReturn As String Dim WsPTT As New PTTInfo.PTTInfo&#40;&#41; &#160; Dim cr As New System.Net.NetworkCredential&#40;&#34;user&#34;, &#34;pass&#34;, &#34;mydomain&#34;&#41; Dim pr As New System.Net.WebProxy&#40;&#34;203.x.x.x&#34;, 8080&#41; &#160; pr.Credentials = cr WsPTT.Proxy = pr &#160; strReturn = WsPTT.GetOilPrice&#40;&#34;English&#34;, 6, 8, 2009&#41; MessageBox.Show&#40;strReturn&#41; &#160; Catch Ex As System.Exception MessageBox.Show&#40;&#34;Time Out&#34;&#41; End [...]]]></description>
			<content:encoded><![CDATA[<p>ตัวอย่างการดึงราคาน้ำมันจาก http://www.pttplc.com/pttinfo.asmx?wsdl<br />
ขั้นแรก add Web References ก่อน</p>
<pre class="vbnet">&nbsp;
        <span style="color: #0600FF;">Try</span>
            <span style="color: #0600FF;">Dim</span> strReturn <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
            <span style="color: #0600FF;">Dim</span> WsPTT <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> PTTInfo.<span style="color: #0000FF;">PTTInfo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
            <span style="color: #0600FF;">Dim</span> <span style="color: #0600FF;">cr</span> <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> System.<span style="color: #0000FF;">Net</span>.<span style="color: #0000FF;">NetworkCredential</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;user&quot;</span>, <span style="color: #808080;">&quot;pass&quot;</span>, <span style="color: #808080;">&quot;mydomain&quot;</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">Dim</span> pr <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> System.<span style="color: #0000FF;">Net</span>.<span style="color: #0000FF;">WebProxy</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;203.x.x.x&quot;</span>, <span style="color: #FF0000;">8080</span><span style="color: #000000;">&#41;</span>
&nbsp;
            pr.<span style="color: #0000FF;">Credentials</span> = <span style="color: #0600FF;">cr</span>
            WsPTT.<span style="color: #0000FF;">Proxy</span> = pr
&nbsp;
            strReturn = WsPTT.<span style="color: #0000FF;">GetOilPrice</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;English&quot;</span>, <span style="color: #FF0000;">6</span>, <span style="color: #FF0000;">8</span>, <span style="color: #FF0000;">2009</span><span style="color: #000000;">&#41;</span>
            MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span>strReturn<span style="color: #000000;">&#41;</span>
&nbsp;
        <span style="color: #0600FF;">Catch</span> Ex <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Exception</span>
            MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Time Out&quot;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Try</span>
&nbsp;</pre>
<p><map name='google_ad_map_483_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/483?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_483_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=483&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F08%2F06%2Frequest-webservice-via-proxy%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/08/06/request-webservice-via-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ทำงานกับ Flash ง่ายขึ้นไปอีกเมื่อ trace แล้วเห็นบน FireFox</title>
		<link>http://sixhead.com/2009/08/04/easy-debug-flash-with-flashtracer/</link>
		<comments>http://sixhead.com/2009/08/04/easy-debug-flash-with-flashtracer/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 10:58:46 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[trace]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=470</guid>
		<description><![CDATA[การเขียนโปรแกรมบน Flash (action script) สิ่งที่ควบคู่กันเลยก็คือคำสั่ง trace แต่พอมารันบน browser เพื่อต่อกับ application ปัญหาเกิดทันที เพราะคำสั่ง trace มันไม่ขึ้นมาด้วย เมื่อก่อนเคยคิดใช้ให้มันเรียก function ผ่าน javascript ก็แก้ขัดได้บ้างแต่ไม่สะดวกเลยถ้าทำหลายคน หลายงาน จนวันนี้ได้มาพบกับ add-on ที่ดีเยี่ยมอีกตัวนึง ทำให้ผมฉลาดขึ้นอีกนิดได้รู้ว่าตัว flash player plug-in ที่ลงกับ browser นั้นจริงๆ แล้วมันมี version สำหรับ debug งานด้วย อยู่ในหน้า download อันเดียวกันเลย ที่หน้านี้ เลื่อนหน้าจอลงไปเรื่อยๆ จนเจอกับ Download the Windows Flash Player 10 Plugin content debugger (for Netscape-compatible browsers) (EXE, 2.09 [...]]]></description>
			<content:encoded><![CDATA[<p>การเขียนโปรแกรมบน Flash (action script) สิ่งที่ควบคู่กันเลยก็คือคำสั่ง trace แต่พอมารันบน browser เพื่อต่อกับ application ปัญหาเกิดทันที เพราะคำสั่ง trace มันไม่ขึ้นมาด้วย เมื่อก่อนเคยคิดใช้ให้มันเรียก function ผ่าน javascript ก็แก้ขัดได้บ้างแต่ไม่สะดวกเลยถ้าทำหลายคน หลายงาน<br />
<span id="more-470"></span><br />
จนวันนี้ได้มาพบกับ add-on ที่ดีเยี่ยมอีกตัวนึง ทำให้ผมฉลาดขึ้นอีกนิดได้รู้ว่าตัว flash player plug-in ที่ลงกับ browser นั้นจริงๆ แล้วมันมี version สำหรับ debug งานด้วย อยู่ในหน้า download อันเดียวกันเลย <a href="http://www.adobe.com/support/flashplayer/downloads.html">ที่หน้านี้</a><br />
เลื่อนหน้าจอลงไปเรื่อยๆ จนเจอกับ
<pre>Download the Windows Flash Player 10 Plugin content debugger (for Netscape-compatible browsers) (EXE, 2.09 MB)</pre>
<p>หลังจากลงแล้ว restart FireFox 1 รอบครับ ทุกครั้งที่เราเล่น flash มันจะไปเก็บ logfile ไว้ที่ path นี้ </p>
<p>อย่าลืมสั่ง show hidden files and folders ก่อนด้วย ถ้าไม่มีก็สร้างไฟล์เปล่าไว้ได้เลยครับ<br />
Windows XP</p>
<pre>C:\Documents and Settings\{user}\Application Data\Macromedia\Flash Player\Logs\flashlog.txt</pre>
<p>Windows Vista</p>
<pre>C:\Users\{user}\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt</pre>
<p>support linux, osx ด้วยครับ ดู path ได้จากตอน setting flashtracer ได้เลย</p>
<p>ทีนี้ก็ลง add-on ตัวนี้ครับ <a href="http://www.sephiroth.it/firefox/flashtracer/">FlashTracer</a> มันจะทำหน้าที่ไปอ่านไฟล์ flashlog.txt ด้านบนแบบ real time หน้าที่เราแค่ set path ไปเรียก flashlog.txt ให้ถูกต้องเท่านั้นเอง</p>
<p>ต่อไปการ debug งาน flash ขอบอกว่า สะดวกสุดๆเลยหล่ะครับ</p>
<p><map name='google_ad_map_470_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/470?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_470_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=470&amp;url= http%3A%2F%2Fsixhead.com%2F2009%2F08%2F04%2Feasy-debug-flash-with-flashtracer%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2009/08/04/easy-debug-flash-with-flashtracer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>1</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 [...]]]></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>3</slash:comments>
		</item>
	</channel>
</rss>
