<?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>Sun, 25 Dec 2011 04:15:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>การ add tab สำหรับ facebook fanpage ล่าสุด</title>
		<link>http://sixhead.com/2011/12/16/add-tab-to-facebook-fanpage/</link>
		<comments>http://sixhead.com/2011/12/16/add-tab-to-facebook-fanpage/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 03:19:20 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=693</guid>
		<description><![CDATA[ตาม roadmap ของ facebook 1 ก.พ. 2555 หน้า profile ของ application จะถูกเอาออกจากระบบไป และ app รวมถึง tab ที่สร้างใหม่จะไม่มีหน้า profile ให้กด Add to my page อีกแล้ว วิธี add tab เข้าไปที่ fanpage ก็ให้ใช้ link ตามนี้เลย โดย app_id ก็ ใส่ app_id ของ app (tab) นั้นๆ ที่คุณสร้างขึ้นมานั่นเอง https://www.facebook.com/dialog/pagetab?app_id=xxxxxxxxxxxxxxx&#038;next=https://www.facebook.com &#160;]]></description>
			<content:encoded><![CDATA[<p>ตาม roadmap ของ facebook 1 ก.พ. 2555 หน้า profile ของ application จะถูกเอาออกจากระบบไป</p>
<p>และ app รวมถึง tab ที่สร้างใหม่จะไม่มีหน้า profile ให้กด Add to my page อีกแล้ว วิธี add tab เข้าไปที่ fanpage ก็ให้ใช้ link ตามนี้เลย<br />
<span id="more-693"></span><br />
โดย app_id ก็ ใส่ app_id ของ app (tab) นั้นๆ ที่คุณสร้างขึ้นมานั่นเอง</p>
<p>https://www.facebook.com/dialog/pagetab?app_id=xxxxxxxxxxxxxxx&next=https://www.facebook.com</p>
<p>&nbsp;</p>
<p><map name='google_ad_map_693_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/693?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_693_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=693&amp;url= http%3A%2F%2Fsixhead.com%2F2011%2F12%2F16%2Fadd-tab-to-facebook-fanpage%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2011/12/16/add-tab-to-facebook-fanpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure sendmail to start logging Subject in maillog</title>
		<link>http://sixhead.com/2011/11/24/configure-sendmail-to-start-logging-subject-in-maillog/</link>
		<comments>http://sixhead.com/2011/11/24/configure-sendmail-to-start-logging-subject-in-maillog/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 15:13:01 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=689</guid>
		<description><![CDATA[First of all take backup of your "sendmail.mc" and "sendmail.cf" files. Default location for those files is /etc/mail. Now open "sendmail.mc" in your favourite editor and add following lines in it and save it. I usually prefere to add it at boottom of file so you can easily identify your modifications. LOCAL_CONFIG Klog syslog HSubject: [...]]]></description>
			<content:encoded><![CDATA[<p>First of all take backup of your "sendmail.mc" and "sendmail.cf" files. Default location for those files is /etc/mail.<br />
Now open "sendmail.mc" in your favourite editor and add following lines in it and save it. I usually prefere to add it at boottom of file so you can easily identify your modifications.</p>
<p><code>LOCAL_CONFIG<br />
Klog syslog<br />
HSubject: $&gt;+CheckSubject</code></p>
<p>LOCAL_RULESETS<br />
SCheckSubject<br />
R$* Press TAB Key $: $(log Subject: $1 $) $1</p>
<p>This last line is very crusial. after R$* press tab key as suggested. Then after $: press space key.<br />
After log there is a space key, after Subject: there is a space key after $1 there is a space key. After closing bracket there is a space key before $1.</p>
<p>Now you need to regenerate sendmail.cf file. use m4 macro to do so.</p>
<p>#m4 sendmail.mc &gt; sendmail.cf</p>
<p>Now restart sendmail and you verify your maillog file. You will see Subject line for each mail which is being sent from or relayed from your email server</p>
<p>นำมาจาก http://www.linux4beginners.info/node/Log-Subject-sendmail-maillog</p>
<p><map name='google_ad_map_689_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/689?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_689_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=689&amp;url= http%3A%2F%2Fsixhead.com%2F2011%2F11%2F24%2Fconfigure-sendmail-to-start-logging-subject-in-maillog%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2011/11/24/configure-sendmail-to-start-logging-subject-in-maillog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter + SiXhEaD.Template</title>
		<link>http://sixhead.com/2011/09/08/codeigniter-sixhead-template/</link>
		<comments>http://sixhead.com/2011/09/08/codeigniter-sixhead-template/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 09:22:12 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Template]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=667</guid>
		<description><![CDATA[มาแล้วตามคำเรียกร้อง ตัวอย่างการใช้งานกับ CodeIgniter บทความนี้ประกอบไปด้วย - CodeIgniter v2.0.3 - SiXhEaD.Template v5.9 อธิบายขั้นตอนกันหน่อย /application/libraries/ เอา class SiXhEaD.Template.php ไปใส่ใน directory นี้ โดยจะมี class my_template.php อีกตัวมาทำหน้าที่ extends class จาก SiXhEaD Template เพื่อใช้งานกับ CodeIgniter - my_template.php - SiXhEaD.Template.php ไฟล์ my_template.php &#160; &#60;?php if &#40;!defined&#40;'BASEPATH'&#41;&#41; exit&#40;'No direct script access allowed'&#41;; &#160; require_once&#40; APPPATH.'libraries/SiXhEaD.Template.php' &#41;; &#160; class MY_Template extends Template &#123; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>มาแล้วตามคำเรียกร้อง ตัวอย่างการใช้งานกับ CodeIgniter<br />
บทความนี้ประกอบไปด้วย<br />
- CodeIgniter v2.0.3<br />
- SiXhEaD.Template v5.9<br />
<span id="more-667"></span><br />
<strong>อธิบายขั้นตอนกันหน่อย</strong></p>
<p><strong>/application/libraries/</strong><br />
เอา class SiXhEaD.Template.php ไปใส่ใน directory นี้ โดยจะมี class my_template.php อีกตัวมาทำหน้าที่ extends class จาก SiXhEaD Template เพื่อใช้งานกับ CodeIgniter<br />
- my_template.php<br />
- SiXhEaD.Template.php</p>
<p><strong>ไฟล์ my_template.php</strong></p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>  <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<a href="http://www.php.net/defined"><span style="color: #000066;">defined</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'BASEPATH'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'No direct script access allowed'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #b1b100;">require_once</span><span style="color: #66cc66;">&#40;</span> APPPATH.<span style="color: #ff0000;">'libraries/SiXhEaD.Template.php'</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> MY_Template <span style="color: #000000; font-weight: bold;">extends</span> Template <span style="color: #66cc66;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0000ff;">$template_file</span>	=	<span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'template_file'</span><span style="color: #66cc66;">&#93;</span>;
		parent::__construct<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$template_file</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">set_global</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">FALSE</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><strong>/application/views/</strong><br />
วางไฟล์ template ต่างๆ (.html, .xml) โดย template นี้เอามาจาก demo ที่มากับชุด SiXhEaD.Template v5.9<br />
- _tp_demo.index.html<br />
- _tp_demo.simple.html<br />
- _tp_demo.feeds.xml</p>
<p><strong>/application/controllers/</strong><br />
- sixhead.php</p>
<p><strong>ไฟล์ sixhead.php</strong></p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> ! <a href="http://www.php.net/defined"><span style="color: #000066;">defined</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'BASEPATH'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <a href="http://www.php.net/exit"><span style="color: #000066;">exit</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'No direct script access allowed'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Sixhead <span style="color: #000000; font-weight: bold;">extends</span> CI_Controller <span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> index<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</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: #ff0000;">'template_file'</span> =&gt; APPPATH . <span style="color: #ff0000;">'views/_tp_demo.index.html'</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">load</span>-&gt;<span style="color: #006600;">library</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'my_template'</span>,<span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">block</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;data&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$i</span>=<span style="color: #cc66cc;">1</span>;<span style="color: #0000ff;">$i</span>&lt;=<span style="color: #cc66cc;">5</span>;<span style="color: #0000ff;">$i</span>++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;i&quot;</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">apply</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">display</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> simple<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</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: #ff0000;">'template_file'</span> =&gt; APPPATH . <span style="color: #ff0000;">'views/_tp_demo.simple.html'</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">load</span>-&gt;<span style="color: #006600;">library</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'my_template'</span>,<span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">block</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;table1&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$i</span>=<span style="color: #cc66cc;">1</span>;<span style="color: #0000ff;">$i</span>&lt;=<span style="color: #cc66cc;">5</span>;<span style="color: #0000ff;">$i</span>++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;column1&quot;</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;column2&quot;</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;column3&quot;</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;column4&quot;</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;column5&quot;</span>, <span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">apply</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0000ff;">$DateTime</span> = <a href="http://www.php.net/date"><span style="color: #000066;">date</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Y-m-d H:i:s&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;DateTime&quot;</span>, <span style="color: #0000ff;">$DateTime</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">display</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> feeds<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</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: #ff0000;">'template_file'</span> =&gt; APPPATH . <span style="color: #ff0000;">'views/_tp_demo.feeds.xml'</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">load</span>-&gt;<span style="color: #006600;">library</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'my_template'</span>,<span style="color: #0000ff;">$params</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">block</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;items&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$i</span>=<span style="color: #cc66cc;">1</span>;<span style="color: #0000ff;">$i</span>&lt;=<span style="color: #cc66cc;">5</span>;<span style="color: #0000ff;">$i</span>++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #0000ff;">$title</span>		=	<span style="color: #ff0000;">&quot;Title $i&quot;</span>;
			<span style="color: #0000ff;">$description</span>=	<span style="color: #ff0000;">&quot;Description $i&quot;</span>;
			<span style="color: #0000ff;">$url</span>		=	<span style="color: #ff0000;">&quot;http://domain.com/php.php?Id=$i&quot;</span>;
&nbsp;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;title&quot;</span>, <span style="color: #0000ff;">$title</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;description&quot;</span>, <span style="color: #0000ff;">$description</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;url&quot;</span>, <span style="color: #0000ff;">$url</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">apply</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<a href="http://www.php.net/header"><span style="color: #000066;">header</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Content-Type: text/xml; charset=UTF-8&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">my_template</span>-&gt;<span style="color: #006600;">display</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p><a href="http://sixhead.com/my.project/CodeIgniter/sixhead/">ตัวอย่าง 1</a><br />
<a href="http://sixhead.com/my.project/CodeIgniter/sixhead/simple">ตัวอย่าง 2</a><br />
<a href="http://sixhead.com/my.project/CodeIgniter/sixhead/feeds">ตัวอย่าง 3</a></p>
<p>Download ทั้งชุด <a href="http://sixhead.com/my.project/CodeIgniter_2.0.3.with.SiXhEaD.Template.zip">ได้ที่นี่</a></p>
<p><map name='google_ad_map_667_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/667?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_667_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=667&amp;url= http%3A%2F%2Fsixhead.com%2F2011%2F09%2F08%2Fcodeigniter-sixhead-template%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2011/09/08/codeigniter-sixhead-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ad Block ปิดโฆษณากวนใจ Windows, Linux, Mac, iPad, iPhone ด้วยมือคุณ</title>
		<link>http://sixhead.com/2011/08/03/ad-block-on-windows-linux-mac-ipad-iphone/</link>
		<comments>http://sixhead.com/2011/08/03/ad-block-on-windows-linux-mac-ipad-iphone/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 10:48:17 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Modification]]></category>
		<category><![CDATA[Blocker]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=649</guid>
		<description><![CDATA[วิธีการง่ายๆ ที่จะ block โฆษณาในทุก OS ด้วยมือคุณเอง วิธีการที่ว่าคือการเล่นกับไฟล์ hosts ซึ่งมีอยู่ในทุก OS อยู่แล้ว อธิบายคร่าวๆ ไฟล์ hosts มีหน้าที่ช่วยให้เครื่องรู้ว่า host นั้นๆ (ในที่นี้มองว่าเป็นเวปแล้วกัน) มี ip อะไรจะได้ไปเรียกได้เร็วขึ้นโดยไม่ต้องผ่าน DNS ซึ่งไฟล์ hosts เองมีประโยชน์หลายอย่าง เช่นเรียกทดสอบ hosting ที่ใหม่โดย domain ไม่ต้องย้าย DNS หรือ ในวงแลนหากันเจอช้า ฯลฯ ที่นี้ประโยชน์ทางอ้อมคือใส่เป็น 127.0.0.1 ทำให้เครื่องไปเรียกเวปในตัวเครื่องก็จะไม่เจอเวปจริงๆ ที่เป็นโฆษณานั่นเอง ก่อนอื่นก็โหลด list พวก ad/tracking servers มาก่อน http://hosts-file.net/ad_servers.asp http://winhelp2002.mvps.org/hosts.txt (แนะนำว่าแค่อันนี้ก็พอ) http://hosts-file.net/?s=Download (อันนี้เผื่ออยากเลือกแบบอื่นๆ) นำข้อมูลที่ได้มาใส่ในไฟล์ hosts ใน OS ของคุณ Windows [...]]]></description>
			<content:encoded><![CDATA[<p>วิธีการง่ายๆ ที่จะ block โฆษณาในทุก OS ด้วยมือคุณเอง<br />
<span id="more-649"></span><br />
วิธีการที่ว่าคือการเล่นกับไฟล์ hosts ซึ่งมีอยู่ในทุก OS อยู่แล้ว<br />
อธิบายคร่าวๆ ไฟล์ hosts มีหน้าที่ช่วยให้เครื่องรู้ว่า host นั้นๆ (ในที่นี้มองว่าเป็นเวปแล้วกัน)<br />
มี ip อะไรจะได้ไปเรียกได้เร็วขึ้นโดยไม่ต้องผ่าน DNS ซึ่งไฟล์ hosts เองมีประโยชน์หลายอย่าง เช่นเรียกทดสอบ hosting ที่ใหม่โดย domain ไม่ต้องย้าย DNS หรือ ในวงแลนหากันเจอช้า ฯลฯ</p>
<p>ที่นี้ประโยชน์ทางอ้อมคือใส่เป็น 127.0.0.1 ทำให้เครื่องไปเรียกเวปในตัวเครื่องก็จะไม่เจอเวปจริงๆ ที่เป็นโฆษณานั่นเอง</p>
<p>ก่อนอื่นก็โหลด list พวก ad/tracking servers มาก่อน</p>
<pre class="text">http://hosts-file.net/ad_servers.asp
http://winhelp2002.mvps.org/hosts.txt (แนะนำว่าแค่อันนี้ก็พอ)
http://hosts-file.net/?s=Download (อันนี้เผื่ออยากเลือกแบบอื่นๆ)</pre>
<p>นำข้อมูลที่ได้มาใส่ในไฟล์ hosts ใน OS ของคุณ</p>
<p>Windows อยู่ที่</p>
<pre class="text">C:\WINDOWS\system32\drivers\etc\hosts</pre>
<p>Linux, Mac, iPad, iPhone  อยู่ที่</p>
<pre class="text">/etc/hosts</pre>
<p>*iPad, iPhone ต้องเป็นเครื่องที่ Jailbreak แล้วเท่านั้น<br />
*ใส่หมดเลยใช่ว่าจะดีเพราะบางรูปบางเวปอาจจะหาไม่เจอไปด้วย ต้องลองปรับดู<br />
*FireFox มี Add-on ชื่อว่า AdBlock Plus อยู่ ลงตัว Element Hiding Helper ด้วยอีกยิ่งดี</p>
<p><map name='google_ad_map_649_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/649?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_649_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=649&amp;url= http%3A%2F%2Fsixhead.com%2F2011%2F08%2F03%2Fad-block-on-windows-linux-mac-ipad-iphone%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2011/08/03/ad-block-on-windows-linux-mac-ipad-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SiXhEaD.Template update v5.9 (24/02/2011)</title>
		<link>http://sixhead.com/2011/02/24/sixhead-template-update/</link>
		<comments>http://sixhead.com/2011/02/24/sixhead-template-update/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 14:09:00 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[1. Project]]></category>
		<category><![CDATA[Developer]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=635</guid>
		<description><![CDATA[Class Template Engine อันแสนจะภูมิใจ (อยู่คนเดียวหรือเปล่า) ได้ทำการ update ให้สามารถ ignore ไม่สนใจตัวแปร $F, $foo ได้ตามต้องการ ทำเพื่อให้ใช้กับ JavaScript Library เช่น Prototype, jQuery ที่มีบาง function หรือ การทำงานบางอย่างจำเป็นต้องใช้ $var ใน JavaScript update v5.9 (24/02/2011) - re-check error_reporting(E_ALL); - add ignore($foo) for set ignore $foo in template - add _encode_ignore(), _decode_ignore() download ที่นี่]]></description>
			<content:encoded><![CDATA[<p>Class Template Engine อันแสนจะภูมิใจ (อยู่คนเดียวหรือเปล่า)<br />
ได้ทำการ update ให้สามารถ ignore ไม่สนใจตัวแปร $F, $foo ได้ตามต้องการ<br />
ทำเพื่อให้ใช้กับ JavaScript Library เช่น Prototype, jQuery ที่มีบาง function หรือ<br />
การทำงานบางอย่างจำเป็นต้องใช้ $var ใน JavaScript<br />
<span id="more-635"></span></p>
<p><strong>update v5.9 (24/02/2011)</strong><br />
- re-check error_reporting(E_ALL);<br />
- add ignore($foo) for set ignore $foo in template<br />
- add _encode_ignore(), _decode_ignore()</p>
<p><a href="http://sixhead.com/2008/12/02/sixhead-template-php5-template-engine-for-programmer-and-designer/">download ที่นี่</a></p>
<p><map name='google_ad_map_635_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/635?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_635_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=635&amp;url= http%3A%2F%2Fsixhead.com%2F2011%2F02%2F24%2Fsixhead-template-update%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2011/02/24/sixhead-template-update/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>fix Facebook IFrame and AJAX problems in IE</title>
		<link>http://sixhead.com/2011/01/21/fix-facebook-iframe-and-ajax-problems-in-ie/</link>
		<comments>http://sixhead.com/2011/01/21/fix-facebook-iframe-and-ajax-problems-in-ie/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 18:29:50 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=632</guid>
		<description><![CDATA[เพิ่มไว้ใน header ของไฟล์หลัก header('P3P: CP="CAO PSA OUR"'); fix for AJAX, method="POST"]]></description>
			<content:encoded><![CDATA[<p>เพิ่มไว้ใน header ของไฟล์หลัก</p>
<p>header('P3P: CP="CAO PSA OUR"');</p>
<p>fix for AJAX, method="POST"</p>
<p><map name='google_ad_map_632_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/632?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_632_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=632&amp;url= http%3A%2F%2Fsixhead.com%2F2011%2F01%2F21%2Ffix-facebook-iframe-and-ajax-problems-in-ie%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2011/01/21/fix-facebook-iframe-and-ajax-problems-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync without password</title>
		<link>http://sixhead.com/2011/01/20/rsync-without-password/</link>
		<comments>http://sixhead.com/2011/01/20/rsync-without-password/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 09:40:32 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[FreeBSD & Linux]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=629</guid>
		<description><![CDATA[[ mirror ] สร้าง public key (ไม่ต้องใส่ passphrase) # ssh-keygen -t dsa [ source ] # su เป็น username ที่ config ให้ rsync connect จาก mirror มาได้ Copy id_dsa.pub ไปยัง [ source ] # mkdir ~/.ssh # chmod 700 ~/.ssh # mv id_dsa.pub ~/.ssh # cd ~/.ssh # cat id_dsa.pub &#62;&#62; authorized_keys [ mirror ] [...]]]></description>
			<content:encoded><![CDATA[<p><strong>[ mirror ] </strong><br />
สร้าง public key (ไม่ต้องใส่ passphrase)<br />
# ssh-keygen -t dsa</p>
<p><strong>[ source ]</strong><br />
# su เป็น username ที่ config ให้ rsync connect จาก mirror มาได้<br />
Copy id_dsa.pub ไปยัง [ source ]<br />
# mkdir ~/.ssh<br />
# chmod 700 ~/.ssh<br />
# mv id_dsa.pub ~/.ssh<br />
# cd ~/.ssh<br />
# cat id_dsa.pub &gt;&gt; authorized_keys</p>
<p><strong>[ mirror ]</strong><br />
ลบ known_hosts<br />
# rm ~/.ssh/known_hosts</p>
<p><strong>[ mirror ]<br />
</strong>ทดสอบ<br />
/usr/local/bin/rsync -avzm --delete --force -e "ssh -i /your_current_user/.ssh/id_dsa" user@source.server.com:/path/to/source/ /path/to/backup/</p>
<p><map name='google_ad_map_629_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/629?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_629_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=629&amp;url= http%3A%2F%2Fsixhead.com%2F2011%2F01%2F20%2Frsync-without-password%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2011/01/20/rsync-without-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>foreach range</title>
		<link>http://sixhead.com/2010/10/19/foreach-range/</link>
		<comments>http://sixhead.com/2010/10/19/foreach-range/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 15:17:36 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[foreach]]></category>
		<category><![CDATA[range]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=624</guid>
		<description><![CDATA[range foreach&#40;range&#40;'a','z'&#41; as $letter&#41; &#123; echo &#34;$letter\n&#34;; &#125; output a b c ... x y z]]></description>
			<content:encoded><![CDATA[<p><strong>range</strong></p>
<pre class="php"><span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/range"><span style="color: #000066;">range</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'a'</span>,<span style="color: #ff0000;">'z'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$letter</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;$letter<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p><strong>output</strong></p>
<pre class="php">a
b
c
...
x
y
z</pre>
<p><map name='google_ad_map_624_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/624?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_624_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=624&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F10%2F19%2Fforeach-range%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/10/19/foreach-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android App: Thai Lottery (ดูหวย)</title>
		<link>http://sixhead.com/2010/09/24/android-app-thai-lottery/</link>
		<comments>http://sixhead.com/2010/09/24/android-app-thai-lottery/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 01:30:08 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[ดูหวย]]></category>
		<category><![CDATA[ลอตเตอรี่]]></category>
		<category><![CDATA[หวย]]></category>
		<category><![CDATA[เรียงเบอร์]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=612</guid>
		<description><![CDATA[มาแล้ว Android Apps หมายเลข 2 ไว้ดูหวย, ตรวจลอตเตอรี่, เรียงเบอร์ Download ได้โดยเข้า Market แล้ว search หา หวย หรือ Sixhead]]></description>
			<content:encoded><![CDATA[<p>มาแล้ว Android Apps หมายเลข 2 ไว้ดูหวย, ตรวจลอตเตอรี่, เรียงเบอร์</p>
<table>
<tbody>
<tr>
<td><img src="http://sixhead.com/data/lottery/images/screenshot1.png" alt="Screen 1" width="300" /></td>
<td><img src="http://sixhead.com/data/lottery/images/screenshot2.png" alt="Screen 2" width="300" /></td>
</tr>
</tbody>
</table>
<p><span id="more-612"></span><br />
Download ได้โดยเข้า <strong>Market</strong> แล้ว search หา <strong>หวย</strong> หรือ <strong>Sixhead</strong></p>
<p><map name='google_ad_map_612_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/612?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_612_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=612&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F09%2F24%2Fandroid-app-thai-lottery%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/09/24/android-app-thai-lottery/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Android App: Oil Price (ราคาน้ำมัน)</title>
		<link>http://sixhead.com/2010/09/07/android-app-oil-price-%e0%b8%a3%e0%b8%b2%e0%b8%84%e0%b8%b2%e0%b8%99%e0%b9%89%e0%b8%b3%e0%b8%a1%e0%b8%b1%e0%b8%99/</link>
		<comments>http://sixhead.com/2010/09/07/android-app-oil-price-%e0%b8%a3%e0%b8%b2%e0%b8%84%e0%b8%b2%e0%b8%99%e0%b9%89%e0%b8%b3%e0%b8%a1%e0%b8%b1%e0%b8%99/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 17:25:49 +0000</pubDate>
		<dc:creator>Pipo</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[oil]]></category>

		<guid isPermaLink="false">http://sixhead.com/?p=603</guid>
		<description><![CDATA[Android App แรกของผม เป็นโปรแกรมแสดงราคาขายปลีกน้ำมัน ระบบดึงจาก PTT มาอีกทีเพื่อปรับปรุงการแสดงผลด้วยครับ Download ได้โดยเข้า Market แล้ว search หา Oil Price หรือ Sixhead Android App แรกในชีวิต เขียนเพื่อใช้เองและเพื่อทำความรู้จักกับ Android API ส่วนใครใช้แล้วได้ผลอย่างไรมาแนะนำด้วยนะครับ]]></description>
			<content:encoded><![CDATA[<p>Android App แรกของผม เป็นโปรแกรมแสดงราคาขายปลีกน้ำมัน ระบบดึงจาก PTT มาอีกทีเพื่อปรับปรุงการแสดงผลด้วยครับ</p>
<table>
<tbody>
<tr>
<td><img src="http://sixhead.com/data/oilprice/images/screenshot.png" alt="Screen 1" width="300" /></td>
<td><img src="http://sixhead.com/data/oilprice/images/screenshot_2.png" alt="Screen 2" width="300" /></td>
</tr>
</tbody>
</table>
<p><span id="more-603"></span></p>
<p>Download ได้โดยเข้า <strong>Market</strong> แล้ว search หา <strong>Oil Price</strong> หรือ <strong>Sixhead</strong></p>
<p>Android App แรกในชีวิต เขียนเพื่อใช้เองและเพื่อทำความรู้จักกับ Android API<br />
ส่วนใครใช้แล้วได้ผลอย่างไรมาแนะนำด้วยนะครับ</p>
<p><map name='google_ad_map_603_f21c57aff87a446f'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/603?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_603_f21c57aff87a446f' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=603&amp;url= http%3A%2F%2Fsixhead.com%2F2010%2F09%2F07%2Fandroid-app-oil-price-%25e0%25b8%25a3%25e0%25b8%25b2%25e0%25b8%2584%25e0%25b8%25b2%25e0%25b8%2599%25e0%25b9%2589%25e0%25b8%25b3%25e0%25b8%25a1%25e0%25b8%25b1%25e0%25b8%2599%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/09/07/android-app-oil-price-%e0%b8%a3%e0%b8%b2%e0%b8%84%e0%b8%b2%e0%b8%99%e0%b9%89%e0%b8%b3%e0%b8%a1%e0%b8%b1%e0%b8%99/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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[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>1</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 ด้วย php,perl,ruby</title>
		<link>http://sixhead.com/2010/06/21/to-generate-a-htpasswd-password-without-installing-apache-by-php-perl-ruby/</link>
		<comments>http://sixhead.com/2010/06/21/to-generate-a-htpasswd-password-without-installing-apache-by-php-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. PHP echo crypt("password", "salt"); 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>
PHP
   echo crypt("password", "salt");

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-php-perl-ruby%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://sixhead.com/2010/06/21/to-generate-a-htpasswd-password-without-installing-apache-by-php-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>1</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>
	</channel>
</rss>

