<?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>No Meaning Developer</title>
	<atom:link href="http://kentreez.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://kentreez.com/blog</link>
	<description>kentreez&#039;s blog</description>
	<lastBuildDate>Thu, 01 Jul 2010 07:13:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Google Apps ไม่สามารถกด Activate E-mail Service ได้</title>
		<link>http://kentreez.com/blog/google-apps/google-apps-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%aa%e0%b8%b2%e0%b8%a1%e0%b8%b2%e0%b8%a3%e0%b8%96%e0%b8%81%e0%b8%94-activate-e-mail-service-%e0%b9%84%e0%b8%94%e0%b9%89/</link>
		<comments>http://kentreez.com/blog/google-apps/google-apps-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%aa%e0%b8%b2%e0%b8%a1%e0%b8%b2%e0%b8%a3%e0%b8%96%e0%b8%81%e0%b8%94-activate-e-mail-service-%e0%b9%84%e0%b8%94%e0%b9%89/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 07:13:27 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Google Apps]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=251</guid>
		<description><![CDATA[อาการคือมันกด แล้วมันก็อยู่ที่หน้าเดิม&#8230;. -*- วิธีแก้&#8230; จากหน้า Dashboard ให้คลิกเข้าที่ Email เข้าที่ Instructions on how to activate Email เข้าที่ Change MX records]]></description>
			<content:encoded><![CDATA[<p>อาการคือมันกด แล้วมันก็อยู่ที่หน้าเดิม&#8230;. -*-</p>
<p>วิธีแก้&#8230;</p>
<p>จากหน้า Dashboard ให้คลิกเข้าที่ <strong>Email</strong></p>
<p>เข้าที่ <strong>Instructions on how to activate Email</strong></p>
<p>เข้าที่ <strong>Change MX records</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/google-apps/google-apps-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%aa%e0%b8%b2%e0%b8%a1%e0%b8%b2%e0%b8%a3%e0%b8%96%e0%b8%81%e0%b8%94-activate-e-mail-service-%e0%b9%84%e0%b8%94%e0%b9%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Apps &#8220;Your domain is not yet ready&#8221;, &#8220;โดเมนของคุณยังไม่พร้อม&#8221;</title>
		<link>http://kentreez.com/blog/google-apps/your-domain-is-not-yet-ready/</link>
		<comments>http://kentreez.com/blog/google-apps/your-domain-is-not-yet-ready/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 06:31:28 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Google Apps]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=246</guid>
		<description><![CDATA[ตอนสมัคร Google Apps แล้วไม่ได้ Verify ความเป็นเจ้าโดเมนเนม หรืออะไรสักอย่างที่ผิดพลาด จะทำให้อยู่ในสถานะ ที่ Google จะให้เราทดลองใช้งาน แทนที่จะเป็นการใช้งานจริง อาการคือ จะมีข้อความนี้แสดงอยู่ในหน้า cpanel ของ Google Apps โดเมนของคุณยังไม่พร้อม &#8211; เรายังคงประมวลผลการชำระเงินสำหรับการลงทะเบียนโดเมนของคุณ ในระหว่างนี้ คุณสามารถดำเนินการต่อและใช้คุณลักษณะบางประการของ Google Apps เช่น การสร้างผู้ใช้หรือ เรียนรู้วิธีเริ่มต้นใช้งาน เมื่อเราได้รับการชำระเงินแล้ว Google Apps ของคุณทั้งหมดจะเปิดใช้งานโดยอัตโนมัติ ขอขอบคุณที่กรุณาอดทนรอ Your domain is not yet ready &#8211; We are still processing payment for your domain registration. Meanwhile, you can go ahead and use [...]]]></description>
			<content:encoded><![CDATA[<p>ตอนสมัคร Google Apps แล้วไม่ได้ Verify ความเป็นเจ้าโดเมนเนม หรืออะไรสักอย่างที่ผิดพลาด จะทำให้อยู่ในสถานะ ที่ Google จะให้เราทดลองใช้งาน แทนที่จะเป็นการใช้งานจริง</p>
<p>อาการคือ จะมีข้อความนี้แสดงอยู่ในหน้า cpanel ของ Google Apps</p>
<p><strong>โดเมนของคุณยังไม่พร้อม</strong> &#8211; เรายังคงประมวลผลการชำระเงินสำหรับการลงทะเบียนโดเมนของคุณ ในระหว่างนี้ คุณสามารถดำเนินการต่อและใช้คุณลักษณะบางประการของ Google Apps เช่น การสร้างผู้ใช้หรือ <a href="http://www.google.com/support/a/bin/answer.py?hl=th&amp;answer=55955" target="_blank">เรียนรู้วิธีเริ่มต้นใช้งาน</a> เมื่อเราได้รับการชำระเงินแล้ว Google Apps ของคุณทั้งหมดจะเปิดใช้งานโดยอัตโนมัติ ขอขอบคุณที่กรุณาอดทนรอ</p>
<p><strong>Your domain is not yet ready</strong> &#8211; We are still processing payment for your domain registration. Meanwhile, you can go ahead and use some of the features of Google Apps, such as creating users or <a href="http://www.google.com/support/a/bin/answer.py?hl=en&amp;answer=55955" target="_blank">learn how to get started</a>. Once we receive your payment, all your Google Apps will be activated automatically. Thanks for your patience.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>วิธีแก้ไข คือ ให้ไป Verify Domain Ownership ที่หน้านี้</p>
<p>http://www.google.com/a/{add your domain here}/VerifyOwnership</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/google-apps/your-domain-is-not-yet-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla! &#8211; JAuthentication Could not load authentication libraries</title>
		<link>http://kentreez.com/blog/joomla/joomla-jauthentication-could-not-load-authentication-libraries/</link>
		<comments>http://kentreez.com/blog/joomla/joomla-jauthentication-could-not-load-authentication-libraries/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 17:30:10 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Joomla!]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=243</guid>
		<description><![CDATA[Error ขึ้นที่หน้า Administrator Login ว่า JAuthentication::__construc: Could not load authentication libraries. วิธีแก้ เข้าไปแก้ใน phpmyadmin โดยไปแก้ที่ตาราง jos_plugins แก้ค่า published ของ Authentication &#8211; Joomla ให้เป็น 1]]></description>
			<content:encoded><![CDATA[<p>Error ขึ้นที่หน้า Administrator Login ว่า<br />
<strong>JAuthentication::__construc: Could not load authentication libraries.</strong></p>
<p>วิธีแก้</p>
<p>เข้าไปแก้ใน phpmyadmin โดยไปแก้ที่ตาราง jos_plugins</p>
<p>แก้ค่า <strong>published</strong> ของ <strong>Authentication &#8211; Joomla</strong> ให้เป็น 1</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/joomla/joomla-jauthentication-could-not-load-authentication-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla ไม่แสดงผลใน IE (http:///)</title>
		<link>http://kentreez.com/blog/joomla/joomla-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b8%9c%e0%b8%a5%e0%b9%83%e0%b8%99-ie-http/</link>
		<comments>http://kentreez.com/blog/joomla/joomla-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b8%9c%e0%b8%a5%e0%b9%83%e0%b8%99-ie-http/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 12:36:00 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Joomla!]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=231</guid>
		<description><![CDATA[Template บางตัวของ Joomla เวลาเปิดด้วย browser อื่นๆ เข้าได้ แต่ถ้าเป็น IE เวลาเปิดมันจะ Redirect ไปที่ http:/// มันเกิดจาก code HTML นี้ (ยังไม่ได้เช็คในรายละเอียด) &#60;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&#62; function iFrameHeight() { var h = 0; if ( !document.all ) { h = document.getElementById(&#8216;blockrandom&#8217;).contentDocument.height; document.getElementById(&#8216;blockrandom&#8217;).style.height = h + 60 + &#8216;px&#8217;; } else if( document.all ) { h = document.frames(&#8216;blockrandom&#8217;).document.body.scrollHeight; document.all.blockrandom.style.height = h [...]]]></description>
			<content:encoded><![CDATA[<div>Template บางตัวของ Joomla เวลาเปิดด้วย browser อื่นๆ เข้าได้ แต่ถ้าเป็น IE เวลาเปิดมันจะ Redirect ไปที่ http:///</div>
<div><strong>มันเกิดจาก code HTML นี้ (ยังไม่ได้เช็คในรายละเอียด)</strong></div>
<div id="_mcePaste">&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;</div>
<div id="_mcePaste">function iFrameHeight() {</div>
<div id="_mcePaste">var h = 0;</div>
<div id="_mcePaste">if ( !document.all ) {</div>
<div id="_mcePaste">h = document.getElementById(&#8216;blockrandom&#8217;).contentDocument.height;</div>
<div id="_mcePaste">document.getElementById(&#8216;blockrandom&#8217;).style.height = h + 60 + &#8216;px&#8217;;</div>
<div id="_mcePaste">} else if( document.all ) {</div>
<div id="_mcePaste">h = document.frames(&#8216;blockrandom&#8217;).document.body.scrollHeight;</div>
<div id="_mcePaste">document.all.blockrandom.style.height = h + 20 + &#8216;px&#8217;;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">&lt;/script&gt;</div>
<div id="_mcePaste">&lt;iframe 	id=&#8221;blockrandom&#8221;</div>
<div id="_mcePaste">name=&#8221;"</div>
<div id="_mcePaste">src=&#8221;http://&#8221;</div>
<div id="_mcePaste">width=&#8221;100%&#8221;</div>
<div id="_mcePaste">height=&#8221;200&#8243;</div>
<div id="_mcePaste">scrolling=&#8221;auto&#8221;</div>
<div id="_mcePaste">align=&#8221;top&#8221;</div>
<div id="_mcePaste">frameborder=&#8221;0&#8243;</div>
<div id="_mcePaste">class=&#8221;wrapper&#8221;&gt;</div>
<div id="_mcePaste">No Iframes&lt;/iframe&gt;</div>
<div>&#8212;</div>
<div><strong>ตำแหน่งของไฟล์</strong></div>
<div>
<div>./modules/mod_wrapper/tmpl/default.php</div>
<div>./components/com_wrapper/views/wrapper/tmpl/default.php</div>
<div>&#8211;</div>
</div>
<div><strong>code นี้</strong></div>
<div>
<div>&lt;iframe &lt;?php echo $load; ?&gt;</div>
<div>id=&#8221;blockrandom&#8221;</div>
<div>name=&#8221;&lt;?php echo $target ?&gt;&#8221;</div>
<div>src=&#8221;&lt;?php echo $url; ?&gt;&#8221;</div>
<div>width=&#8221;&lt;?php echo $width ?&gt;&#8221;</div>
<div>height=&#8221;&lt;?php echo $height ?&gt;&#8221;</div>
<div>scrolling=&#8221;&lt;?php echo $scroll ?&gt;&#8221;</div>
<div>align=&#8221;top&#8221;</div>
<div>frameborder=&#8221;0&#8243;</div>
<div>class=&#8221;wrapper&lt;?php echo $class ?&gt;&#8221;&gt;</div>
<div>&lt;?php echo JText::_(&#8216;NO_IFRAMES&#8217;); ?&gt;</div>
<div>&lt;/iframe&gt;</div>
<div>&#8211;</div>
</div>
<div>วิธีแก้ที่ไข (ที่ปลายเหตุ)  ก็ comment ตัว &lt;iframe&gt; ข้างต้นออกไปเลย  เหอ</div>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/joomla/joomla-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b8%9c%e0%b8%a5%e0%b9%83%e0%b8%99-ie-http/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JFolder::create: Infinite loop detected</title>
		<link>http://kentreez.com/blog/joomla/jfoldercreate-infinite-loop-detected/</link>
		<comments>http://kentreez.com/blog/joomla/jfoldercreate-infinite-loop-detected/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 05:20:26 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Joomla!]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=227</guid>
		<description><![CDATA[เวลาติดตั้ง Module หรือ Component แล้วเจอ Error ลักษณะนี้ JFolder::create: Infinite loop detected JFTP::store: Bad response Warning! &#8211; ไม่สามารถย้ายไฟล์ได้ Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/username/:/tmp:/usr/local/lib/php/) in/home/username/domains/your-domain.com/public_html/libraries/joomla/filesystem/folder.php on line 392 Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/timeonsale/:/tmp:/usr/local/lib/php/) in/home/username/domains/your-domain..com/public_html/libraries/joomla/filesystem/folder.php on line 392 (Keyword: Infinite [...]]]></description>
			<content:encoded><![CDATA[<p>เวลาติดตั้ง Module หรือ Component แล้วเจอ Error ลักษณะนี้</p>
<ul>
<li>JFolder::create: Infinite loop detected</li>
<li>JFTP::store: Bad response</li>
<li>Warning! &#8211; ไม่สามารถย้ายไฟล์ได้</li>
</ul>
<p><strong>Warning</strong>: is_dir() [<a href="http://www.timeonsale.com/administrator/function.is-dir">function.is-dir</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/username/:/tmp:/usr/local/lib/php/) in<strong>/home/username/domains/your-domain.com/public_html/libraries/joomla/filesystem/folder.php</strong> on line <strong>392</strong></p>
<p><strong>Warning</strong>: is_dir() [<a href="http://www.timeonsale.com/administrator/function.is-dir">function.is-dir</a>]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/timeonsale/:/tmp:/usr/local/lib/php/) in<strong>/home/username/domains/<strong>your-domain.</strong>.com/public_html/libraries/joomla/filesystem/folder.php</strong> on line <strong>392</strong></p>
<p>(Keyword: <strong>Infinite loop detected</strong>)</p>
<p>ให้เข้าไปเช็คที่หน้า Administrator &gt; Help &gt; System Info &gt; Directory Permissions</p>
<p>โดยเช็คตรง Cache Directory , Log Directory และ Temp Directory ว่ามีอันไหนที่มันไม่สามารถเขียนได้หรือป่าว (Unwritable) ให้แก้ไขให้มันเป็น Writable ให้หมด</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/joomla/jfoldercreate-infinite-loop-detected/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nothing</title>
		<link>http://kentreez.com/blog/uncategorized/nothing/</link>
		<comments>http://kentreez.com/blog/uncategorized/nothing/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 05:50:01 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=223</guid>
		<description><![CDATA[สมัยก่อนตอนที่ต้องทำงานอะไรสักอย่าง เราสามารถเริ่มทำได้เลย โดยที่ไม่ต้องคิดวางแผนอะไรมากมาย งานที่ทำสามารถทำเสร็จได้อย่างรวดเร็ว แต่เดี๋ยวนี้ รู้สึกว่าไม่สามารถคิดปุ๊บ ทำปั๊บ ได้เหมือนเมื่อก่อนแล้ว มีทั้งคิดไม่ออก และมีทั้งคิดออกแต่รู้สึกว่ามันยังใช้ไม่ได้ มันเลยเป็นการทำงานที่ช้ามาก ไม่รู้ว่าเป็นเพราะว่าคิดมากไป กังวลมากไป หรือสมองตอนนี้มันทื่อไปแล้ว&#8230; กลุ้ม -*-&#8230; งานหลักๆ ตอนนี้เป็นการแก้ไขปัญหาให้ลูกค้า เล็กบ้าง ใหญ่บ้าง มันก็สนุกดี เหมือนว่าเราเป็นหมอรักษาคนไข้เลย ทำซ้ำไปซ้ำมาจนโคตรพริ้วแล้ว บางทีไม่มีสติก็ทำได้ แต่ก็มีที่ทำพลาดไปเหมือนกัน (-_-&#8221;)&#8230;. ไม่รู้ว่าเป็นเพราะทำงานตรงส่วนนี้มากไปหรือป่าว เลยไม่ได้ใช้สมองในแบบของการคิดออกแบบเพื่อทำอะไรต่างๆ เหมือนเมื่อก่อนนี้ ถึงยังไงก็ตามมันจะเป็นได้เพียงข้ออ้างสำหรับความเศร้าที่เกิดจากความรู้สึกที่ว่าเรากำลังโง่ลง คงจะต้องหัดคิดให้มากขึ้น ไม่ให้มันฟ่อมากไปกว่านี้ T_T ตอนนี้อยากรู้อะไรหลายอย่างเลย แต่ก็ยังไม่ชอบการอ่านเยอะๆ อยู่ดี ชอบแนว workshop มากกว่า แต่ที่น่าเศร้าคือ เรื่องที่ต่างๆ ที่อยากรู้ตอนนี้ มันต้องอ่านเยอะมากเลย โอววว&#8230;]]></description>
			<content:encoded><![CDATA[<p>สมัยก่อนตอนที่ต้องทำงานอะไรสักอย่าง เราสามารถเริ่มทำได้เลย โดยที่ไม่ต้องคิดวางแผนอะไรมากมาย งานที่ทำสามารถทำเสร็จได้อย่างรวดเร็ว แต่เดี๋ยวนี้ รู้สึกว่าไม่สามารถคิดปุ๊บ ทำปั๊บ ได้เหมือนเมื่อก่อนแล้ว มีทั้งคิดไม่ออก และมีทั้งคิดออกแต่รู้สึกว่ามันยังใช้ไม่ได้ มันเลยเป็นการทำงานที่ช้ามาก ไม่รู้ว่าเป็นเพราะว่าคิดมากไป กังวลมากไป หรือสมองตอนนี้มันทื่อไปแล้ว&#8230; กลุ้ม -*-&#8230;</p>
<p>งานหลักๆ ตอนนี้เป็นการแก้ไขปัญหาให้ลูกค้า เล็กบ้าง ใหญ่บ้าง มันก็สนุกดี เหมือนว่าเราเป็นหมอรักษาคนไข้เลย ทำซ้ำไปซ้ำมาจนโคตรพริ้วแล้ว บางทีไม่มีสติก็ทำได้ แต่ก็มีที่ทำพลาดไปเหมือนกัน (-_-&#8221;)&#8230;.</p>
<p>ไม่รู้ว่าเป็นเพราะทำงานตรงส่วนนี้มากไปหรือป่าว เลยไม่ได้ใช้สมองในแบบของการคิดออกแบบเพื่อทำอะไรต่างๆ เหมือนเมื่อก่อนนี้  ถึงยังไงก็ตามมันจะเป็นได้เพียงข้ออ้างสำหรับความเศร้าที่เกิดจากความรู้สึกที่ว่าเรากำลังโง่ลง  คงจะต้องหัดคิดให้มากขึ้น ไม่ให้มันฟ่อมากไปกว่านี้ T_T</p>
<p>ตอนนี้อยากรู้อะไรหลายอย่างเลย แต่ก็ยังไม่ชอบการอ่านเยอะๆ อยู่ดี ชอบแนว workshop มากกว่า แต่ที่น่าเศร้าคือ เรื่องที่ต่างๆ ที่อยากรู้ตอนนี้ มันต้องอ่านเยอะมากเลย โอววว&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/uncategorized/nothing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyDropbox</title>
		<link>http://kentreez.com/blog/csharp/mydropbox/</link>
		<comments>http://kentreez.com/blog/csharp/mydropbox/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 17:17:01 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=218</guid>
		<description><![CDATA[หลังจากเขียนเว็บแล้วเริ่มเซ็งๆ เลยเขียน console app เล่นๆ แทน&#8230; ความเป็นมา คือผมใช้โปรแกรม Dropbox อยู่ แต่ไอ้การที่จะเอาไฟล์เก็บรหัสผ่าน ไปใส่ใน Dropbox มันไม่ใช่เรื่องที่ควรกระทำอย่างยิ่ง ถึงแม้จะบีบอัดเป็น RAR และเข้ารหัสไว้ ก็เลยเขียนโปรแกรมสำหรับ sync ไฟล์บนเครื่องกับบนโฮสติ้ง ผ่าน FTP โดยโปรแกรมจะรับ arguments ดังต่อไปนี้ FTP Server FTP Username FTP Password Local Path Remote Path Download: Click Here ความเศร้า ก็คือ พอเขียนเสร็จแล้ว เพิ่งนึกขึ้นได้ว่า ใช้ SVN แทนได้ แถมดีกว่าอีกด้วย -*- ว๊ากกกกกกก แต่ไม่เป็นไร ได้เขียนมันส์ๆ]]></description>
			<content:encoded><![CDATA[<p>หลังจากเขียนเว็บแล้วเริ่มเซ็งๆ เลยเขียน console app เล่นๆ แทน&#8230;</p>
<p>ความเป็นมา คือผมใช้โปรแกรม Dropbox อยู่ แต่ไอ้การที่จะเอาไฟล์เก็บรหัสผ่าน ไปใส่ใน Dropbox มันไม่ใช่เรื่องที่ควรกระทำอย่างยิ่ง ถึงแม้จะบีบอัดเป็น RAR และเข้ารหัสไว้</p>
<p>ก็เลยเขียนโปรแกรมสำหรับ sync ไฟล์บนเครื่องกับบนโฮสติ้ง ผ่าน FTP โดยโปรแกรมจะรับ arguments ดังต่อไปนี้</p>
<ol>
<li>FTP Server</li>
<li>FTP Username</li>
<li>FTP Password</li>
<li>Local Path</li>
<li>Remote Path</li>
</ol>
<p>Download: <a href="http://www.kentreez.com/download/MyDropbox.exe">Click Here</a></p>
<p>ความเศร้า ก็คือ พอเขียนเสร็จแล้ว เพิ่งนึกขึ้นได้ว่า ใช้ SVN แทนได้ แถมดีกว่าอีกด้วย -*-</p>
<p>ว๊ากกกกกกก</p>
<p>แต่ไม่เป็นไร ได้เขียนมันส์ๆ</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/csharp/mydropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UTF-8 migration process</title>
		<link>http://kentreez.com/blog/uncategorized/utf-8-migration-process/</link>
		<comments>http://kentreez.com/blog/uncategorized/utf-8-migration-process/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 21:09:18 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=214</guid>
		<description><![CDATA[พอดีว่าอัพเกรด moodle ให้ลูกค้า เลยเจอว่าใน package moodle-1.7.7 มีสคริปท์ส่วนนึงที่น่าสนใจดี ( admin/utfdbmigrate.php ) ประมาณแปลง encoding ของข้อมูล ที่เก็บอยู่ใน database ให้เป็น UTF-8 ไม่รู้ว่าใช้แค่ iconv หรือป่าว หรือจะมีอะไรที่เจ๋งกว่านั้น ? เอาไว้ว่างๆ จะแวะเค้าไปดูซะหน่อย&#8230; แปะ entry นี้ไว้กันลืม !]]></description>
			<content:encoded><![CDATA[<p>พอดีว่าอัพเกรด moodle ให้ลูกค้า</p>
<p>เลยเจอว่าใน package moodle-1.7.7 มีสคริปท์ส่วนนึงที่น่าสนใจดี ( admin/utfdbmigrate.php )</p>
<p>ประมาณแปลง encoding ของข้อมูล ที่เก็บอยู่ใน database ให้เป็น UTF-8</p>
<p>ไม่รู้ว่าใช้แค่ iconv หรือป่าว หรือจะมีอะไรที่เจ๋งกว่านั้น ?</p>
<p>เอาไว้ว่างๆ จะแวะเค้าไปดูซะหน่อย&#8230; แปะ entry นี้ไว้กันลืม !</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/uncategorized/utf-8-migration-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla extension Install/Uninstall</title>
		<link>http://kentreez.com/blog/uncategorized/joomla-extension-installuninstall/</link>
		<comments>http://kentreez.com/blog/uncategorized/joomla-extension-installuninstall/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 09:13:25 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=212</guid>
		<description><![CDATA[Install from Directory ใน Joomla Administrator ให้ใส่ค่าเป็น path จาก root path เลย ปล. เช็ค tmp_path ใน configuration.php ก่อนด้วย ==================================== เวลาติดตั้งเสร็จแล้ว แต่มันขึ้น Error message หรือ Warning Message เกี่ยวกับพวกเรื่อง Copy หรือ Moving Files เราก็แค่ดำเนินการเองแบบ Manual ไปเลย]]></description>
			<content:encoded><![CDATA[<p>Install from Directory ใน Joomla Administrator  ให้ใส่ค่าเป็น path จาก root path เลย</p>
<p>ปล. เช็ค tmp_path ใน configuration.php ก่อนด้วย</p>
<p>====================================</p>
<p>เวลาติดตั้งเสร็จแล้ว  แต่มันขึ้น Error message หรือ Warning Message เกี่ยวกับพวกเรื่อง Copy หรือ Moving Files  เราก็แค่ดำเนินการเองแบบ Manual ไปเลย</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/uncategorized/joomla-extension-installuninstall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ขั้นตอนติดตั้ง ห้องแต่งตัว virtualimage Discuz 7.0</title>
		<link>http://kentreez.com/blog/discuz/install-virtualimage-discuz-7-0/</link>
		<comments>http://kentreez.com/blog/discuz/install-virtualimage-discuz-7-0/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 10:38:07 +0000</pubDate>
		<dc:creator>kentreez</dc:creator>
				<category><![CDATA[Discuz]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[virtualimage]]></category>
		<category><![CDATA[ห้องแต่งตัว]]></category>
		<category><![CDATA[แต่งตัว]]></category>

		<guid isPermaLink="false">http://www.kentreez.com/blog/?p=177</guid>
		<description><![CDATA[บทความดั้งเดิมผมอ่านมาจาก ที่นี่ ครับ แต่บทความเขียนไว้ เหมือนจะไม่ตำแหน่งที่อัพโหลดไฟล์ และ code ที่ต้องนำมาแทนที่ มีปัญหาเรื่องอักขระที่มองไม่เห็น (White Space) แต่ php และ javascript ดันนำไปคิด ทำให้เกิด syntax error ตามมา ผมจึงนำมาเรียบเรียงใหม่ดังนี้ครับ คำเตือน: ก่อนการติดตั้งผมแนะนำให้คุณสั่ง backup ไว้ก่อนนะ เพราะถ้าคุณติดตั้งผิดพลาด มันมีโอกาสจะทำให้เว็บบอร์ดเข้าไม่ได้ แล้วคงจะตามแก้กันไม่ถูกละทีนี้ ดาวน์โหลดตัวติดตั้งก่อนเลยครับ ผมรวมเป็นไฟล์เดียวไว้ให้แล้ว คลิกที่นี่เพื่อโหลดตัวติดตั้ง ถ้าโฮสติ้งของคุณใช้ DirectAdmin คุณสามารถอัพโหลด discuz-7.0.0-virtualimage.tar.gz ขึ้นไป extract บนโฮสได้เลย ส่วน Control Panel ตัวอื่นก็แตกไฟล์ก่อนแล้วค่อยอัพโหลดแล้วกันนะ ตำแหน่งที่จะต้องนำไฟล์ติดตั้งไปวาง คือ ในโฟลเดอร์ของ discuz ที่มันมีไฟล์เหล่านี้ admincp.php, ajax.php, config.inc.php กำหนด CHMOD ของ virtualimage/photo และ [...]]]></description>
			<content:encoded><![CDATA[<p>บทความดั้งเดิมผมอ่านมาจาก <A HREF='http://www.discuzthai.com/viewthread.php?tid=6692' REL='nofollow'>ที่นี่</A> ครับ แต่บทความเขียนไว้ เหมือนจะไม่ตำแหน่งที่อัพโหลดไฟล์ และ code ที่ต้องนำมาแทนที่ มีปัญหาเรื่องอักขระที่มองไม่เห็น (White Space) แต่ php และ javascript ดันนำไปคิด ทำให้เกิด syntax error ตามมา ผมจึงนำมาเรียบเรียงใหม่ดังนี้ครับ<br />
<span id="more-177"></span></p>
<p><b style='color:red;'>คำเตือน:</b> ก่อนการติดตั้งผมแนะนำให้คุณสั่ง backup ไว้ก่อนนะ เพราะถ้าคุณติดตั้งผิดพลาด มันมีโอกาสจะทำให้เว็บบอร์ดเข้าไม่ได้ แล้วคงจะตามแก้กันไม่ถูกละทีนี้</p>
<ol>
<li>ดาวน์โหลดตัวติดตั้งก่อนเลยครับ ผมรวมเป็นไฟล์เดียวไว้ให้แล้ว <A href="http://www.kentreez.com/download/discuz/discuz-7.0.0-virtualimage.tar.gz" rel="nofollow"><strong>คลิกที่นี่เพื่อโหลดตัวติดตั้ง</strong></A></li>
<li>ถ้าโฮสติ้งของคุณใช้ DirectAdmin คุณสามารถอัพโหลด discuz-7.0.0-virtualimage.tar.gz ขึ้นไป extract บนโฮสได้เลย ส่วน Control Panel ตัวอื่นก็แตกไฟล์ก่อนแล้วค่อยอัพโหลดแล้วกันนะ</li>
<li>ตำแหน่งที่จะต้องนำไฟล์ติดตั้งไปวาง คือ ในโฟลเดอร์ของ discuz ที่มันมีไฟล์เหล่านี้ admincp.php, ajax.php, config.inc.php</li>
<li>กำหนด CHMOD ของ virtualimage/photo และ virtualimage/avatar ให้เป็น 777</li>
<li>เปิดหน้าติดตั้ง /images_install.php (ตย. http://www.____.com/bbs/images_install.php) แล้วก็กดดำเนินการติดตั้งได้เลย</li>
<li>พอติดตั้งเสร็จแล้ว ให้ไปลบไฟล์ images_install.php ออก</li>
<li>ดาวน์โหลดไฟล์ <A href="http://www.kentreez.com/download/discuz/discuz_plugin_virtualimage.txt" rel="nofollow"><strong>discuz_plugin_virtualimage.txt</strong></A></li>
<li>ดาวน์โหลดไฟล์ <A href="http://www.kentreez.com/download/discuz/discuz_plugin_images_admin.txt" rel="nofollow"><strong>discuz_plugin_images_admin.txt</strong></A></li>
<li>ไปที่ admin CP -> ปลั๊กอิน -> นำไฟล์เข้า -> Browse.. -> เลือกไฟล์ <strong>discuz_plugin_virtualimage.txt</strong> (จากข้อ 7.) -> กดปุ่มส่ง</li>
<li>ไปที่ admin CP -> ปลั๊กอิน -> นำไฟล์เข้า -> Browse.. -> เลือกไฟล์ <strong>discuz_plugin_images_admin.txt</strong> (จากข้อ 8.) -> กดปุ่มส่ง</li>
</ol>
<p>คราวนี้มาถึงขั้นตอนที่ยุ่งยากนิดหน่อย เพราะว่าต้องเข้าไปแก้หลายไฟล์</p>
<ol>
<li>แก้ไฟล์ <strong>./plugin.php</strong><br />
ค้นหา
<pre class="brush: php;">require_once './include/common.inc.php';</pre>
<p>นำโค๊ดนี้ไปวางที่ด้านบน
<pre class="brush: php;">define('images_css', 'virtualimage');</pre>
</li>
<li>แก้ไฟล์ <strong>./memcp.php</strong><br />
ค้นหา</p>
<pre class="brush: php;">if($msnnew &amp;&amp; !isemail($msnnew)) {</pre>
<p>นำโค๊ดนี้ไปวางที่ด้านบน</p>
<pre class="brush: php;">
if(!empty($discuz_viid) &amp;&amp; $gendernew != $member['gender']){
	showmessage('Your virtual image is in use and can not change the gender, first in the virtual image of the personal settings set to shut down the virtual image',&quot;plugin.php?identifier=virtualimage&amp;amp;module=virtualimage&amp;amp;index=option&quot;);
}
</pre>
</li>
<li>แก้ไฟล์ <strong>./viewthread.php</strong>
<ol>
<li>ค้นหา
<pre class="brush: php;">m.invisible,</pre>
<p>แทนที่ด้วย</p>
<pre class="brush: php;">m.invisible, m.viid,</pre>
</li>
<li>ค้นหา
<pre class="brush: php;">discuz_uc_avatar($post['authorid']);</pre>
<p>แทนที่ด้วย</p>
<pre class="brush: php;">discuz_uc_avatar($post['authorid'],'','',$post['viid'],$post['pid']);</pre>
</li>
</ol>
</li>
<li>แก้ไฟล์ <strong>./eccredit.php</strong>
<ol>
<li>ค้นหา
<pre class="brush: php;">m.invisible,</pre>
<p>แทนที่ด้วย</p>
<pre class="brush: php;">m.invisible, m.viid,</pre>
</li>
<li>ค้นหา
<pre class="brush: php;">discuz_uc_avatar($member['uid']</pre>
<p>แทนที่ด้วย</p>
<pre class="brush: php;">discuz_uc_avatar($member['uid'],'','',$member['viid'],$member['uid']</pre>
</li>
</ol>
</li>
<li>แก้ไฟล์ <strong>./include/common.inc.php</strong><br />
ค้นหา</p>
<pre class="brush: php;">m.customshow,</pre>
<p>แทนที่ด้วย</p>
<pre class="brush: php;">m.customshow, m.viid AS discuz_viid,</pre>
</li>
<li>แก้ไฟล์ <strong>./include/global.func.php</strong>
<ol>
<li>
ค้นหา</p>
<pre class="brush: php;">$url_forward = empty($url_forward) ? '' : (empty($_DCOOKIE['sid']) &amp;&amp; $transsidstatus ? transsid($url_forward) : $url_forward);</pre>
<p>นำโค๊ดนี้วางต่อด้านล่าง
<pre class="brush: php;">$url_forward = str_replace('&amp;amp;', '&amp;', $url_forward);</pre>
</li>
<li>ค้นหา
<pre class="brush: php;">
function discuz_uc_avatar($uid, $size = '', $returnsrc = FALSE) {
	if($uid &gt; 0) {
		$size = in_array($size, array('big', 'middle', 'small')) ? $size : 'middle';
		$uid = abs(intval($uid));
		if(empty($GLOBALS['avatarmethod'])) {
			return $returnsrc ? UC_API.'/avatar.php?uid='.$uid.'&amp;size='.$size : '&lt;img src=&quot;'.UC_API.'/avatar.php?uid='.$uid.'&amp;size='.$size.'&quot; /&gt;';
		} else {
			$uid = sprintf(&quot;%09d&quot;, $uid);
			$dir1 = substr($uid, 0, 3);
			$dir2 = substr($uid, 3, 2);
			$dir3 = substr($uid, 5, 2);
			$file = UC_API.'/data/avatar/'.$dir1.'/'.$dir2.'/'.$dir3.'/'.substr($uid, -2).'_avatar_'.$size.'.jpg';
			return $returnsrc ? $file : '&lt;img src=&quot;'.$file.'&quot; onerror=&quot;this.onerror=null;this.src=\''.UC_API.'/images/noavatar_'.$size.'.gif\'&quot; /&gt;';
		}
	} else {
		$file = $GLOBALS['boardurl'].IMGDIR.'/syspm.gif';
		return $returnsrc ? $file : '&lt;img src=&quot;'.$file.'&quot; /&gt;';
	}
}
</pre>
<p>แทนด้วย</p>
<pre class="brush: php;">
function discuz_uc_avatar($uid, $size = '', $returnsrc = FALSE, $viid ='', $vid='') {
	require DISCUZ_ROOT.'./forumdata/cache/plugin_virtualimage.php';
	$image_close = $_DPLUGIN['virtualimage']['vars']['imagesclose'];
	$image_url = $_DPLUGIN['virtualimage']['vars']['imageurl'];
	if(!$image_close &amp;&amp; $viid &amp;&amp; $uid &gt; 0) {
		$vi_avatar = &quot;&lt;div id=\&quot;Show{$vid}\&quot;  class=\&quot;imagefixeddiv\&quot;&gt;&lt;/div&gt;&lt;script type=\&quot;text/javascript\&quot;&gt;var image_url = '&quot;.$image_url.&quot;';
showimage('Show{$vid}','{$viid}');
&lt;/script&gt;&quot;;
		return $vi_avatar;
	} elseif ($uid &gt; 0) {
		$size = in_array($size, array('big', 'middle', 'small')) ? $size : 'middle';
		$uid = abs(intval($uid));
		if ($size == 'small' &amp;&amp; !$image_close &amp;&amp; file_exists(&quot;virtualimage/avatar/&quot;.$uid.&quot;_s.jpg&quot;)) {
			clearstatcache();
			return '&lt;img src=&quot;virtualimage/avatar/'.$uid.'_s.jpg&quot;&gt;';
		} else {
			$uid = sprintf(&quot;%09d&quot;, $uid);
			$dir1 = substr($uid, 0, 3);
			$dir2 = substr($uid, 3, 2);
			$dir3 = substr($uid, 5, 2);
			return $returnsrc ? UC_API.'/data/avatar/'.$dir1.'/'.$dir2.'/'.$dir3.'/'.substr($uid, -2).&quot;_avatar_$size.jpg&quot; : '&lt;img src=&quot;'.UC_API.'/data/avatar/'.$dir1.'/'.$dir2.'/'.$dir3.'/'.substr($uid, -2).&quot;_avatar_$size.jpg&quot;.'&quot; onerror=&quot;this.onerror=null;this.src=\''.UC_API.'/images/noavatar_'.$size.'.gif\'&quot;&gt;';
		}
	} else {
		$file = $GLOBALS['boardurl'].IMGDIR.'/syspm.gif';
		return $returnsrc ? $file : '&lt;img src=&quot;'.$file.'&quot; /&gt;';
	}
}
</pre>
</li>
</ol>
</li>
<li>แก้ไขไฟล์ <strong>./include/js/common.js</strong><br />
นำโค๊ดนี้ไว้ด้านล่างสุด</p>
<pre class="brush: jscript;">
function showimage(showpid,currface) {
	if(currface == '') {
		currface = 0;
	}
 	var faceArray = currface.split('-');
 	if(faceArray[6] != 0){
 		faceArray[8] = 0;
 		faceArray[9] = 0;
 	}
 	if(faceArray[12] != 0) {
 		faceArray[6] = 0;
 		faceArray[8] = 0;
 		faceArray[9] = 0;
 		faceArray[10] = 0;
 		faceArray[11] = 0;
 		faceArray[13] = 0;
 		faceArray[14] = 0;
 		faceArray[17] = 0;
 		faceArray[18] = 0;
 		faceArray[20] = 0;
 		faceArray[21] = 0;
 		faceArray[22] = 0;
 	}
 	var s='';
 	for(var i=0; i &lt; 26; i++) {
 		if(faceArray[i] != '0'){
 			s += '&lt;img src=&quot;'+image_url+i+'/'+faceArray[i]+'.gif&quot; style=&quot;position:absolute; width:140px; height:226px;z-index: '+i+'&quot; alt=&quot;&quot; /&gt;';
 		}
 	}
 	s += '&lt;img src=&quot;'+image_url+'blank.gif&quot; style=&quot;position:absolute; width:140px; height:226px;&quot; alt=&quot;&quot; /&gt;';
 	$(showpid).innerHTML = s;
}
</pre>
</li>
<li>แก้ไขไฟล์ <strong>./templates/default/css_script.htm</strong> (ถ้าใช้ template ใด ให้แก้ที่ template นั้นๆ)
<ol>
<li>ค้นหา
<pre class="brush: css;">&lt;!--{if CURSCRIPT == 'forumdisplay' &amp;&amp; $forum['ismoderator']}--&gt;</pre>
<p>นำโค๊ดนี้ไว้ด้านบน</p>
<pre class="brush: css;">&lt;!--{if images_css == 'virtualimage'}--&gt;{template images_css}&lt;!--{/if}--&gt;</pre>
</li>
<li>ค้นหา
<pre class="brush: css;">.profile_side .avatar { margin: 25px 0; text-align: center; }</pre>
<p>เปลี่ยนเป็น</p>
<pre class="brush: css;">.profile_side .avatar { margin: 25px 0 25px 32px;}</pre>
</li>
</ol>
</li>
<li>แก้ไขไฟล์ <strong>./templates/default/css_common.htm</strong> (ถ้าใช้ template ใด ให้แก้ที่ template นั้นๆ)<br />
นำโค๊ดนี้ไว้ด้านล่างสุด</p>
<pre class="brush: css;">/*virtualimage*/
.imagefixeddiv{height:226px;width:140px;}
/*virtualimage*/</pre>
</li>
<li>แก้ไขไฟล์ <strong>./templates/default/viewpro_classic.htm</strong> (ถ้าใช้ template ใด ให้แก้ที่ template นั้นๆ)<br />
ค้นหา</p>
<pre class="brush: css;">{echo discuz_uc_avatar($member[uid])}</pre>
<p>เปลี่ยนเป็น</p>
<pre class="brush: css;">{echo discuz_uc_avatar($member[uid], '', '', $member[viid], $member[uid])}</pre>
</li>
<li>แก้ไขไฟล์ <strong>./templates/default/viewthread_fastpost.htm</strong> (ถ้าใช้ template ใด ให้แก้ที่ template นั้นๆ)<br />
ค้นหา</p>
<pre class="brush: css;">{{echo discuz_uc_avatar($discuz_uid)}</pre>
<p>เปลี่ยนเป็น</p>
<pre class="brush: css;">{echo discuz_uc_avatar($discuz_uid,'','',$discuz_viid, &quot;my_$discuz_uid&quot;)}</pre>
</li>
<li>แก้ไขไฟล์ <strong>./templates/default/actions.lang.php</strong> (ถ้าใช้ template ใด ให้แก้ที่ template นั้นๆ)<br />
ค้นหา</p>
<pre class="brush: php;">211 =&gt; 'ผู้ควบคุมระบบ',</pre>
<p>นำโค๊ดนี้ไว้ด้านล่าง</p>
<pre class="brush: php;">221 =&gt; 'ใช้งานห้องแต่งตัว',</pre>
</li>
</ol>
<p>เสร็จซะทีครับ คราวนี้คุณก็ไปอัพเดทแคช เท่านี้ก็เรียบร้อยครับ ( AdminCP -> เครื่องมือ -> อัพเดทแคช )</p>
]]></content:encoded>
			<wfw:commentRss>http://kentreez.com/blog/discuz/install-virtualimage-discuz-7-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
