<?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>MEMOBALL.info &#187; admin</title>
	<atom:link href="http://www.memoball.info/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.memoball.info</link>
	<description>All of my Memories</description>
	<lastBuildDate>Thu, 22 Jul 2010 06:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Ribbon</title>
		<link>http://www.memoball.info/06/jquery-ribbon/</link>
		<comments>http://www.memoball.info/06/jquery-ribbon/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 03:40:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=319</guid>
		<description><![CDATA[หลังจากตามหามานานสำหรับ code RIBBON ก็มีคนมาโพสใน DZone จนได้ ให้เขียนเล่นเองอยู่ตั้งนาน แต่ข้อเสียของตัวนี้ก็คือเหมือนกับ office มากไปหน่อยต้องลองเปลี่ยน theme เอา
http://jqueryribbon.codeplex.com/
]]></description>
			<content:encoded><![CDATA[<p>หลังจากตามหามานานสำหรับ code RIBBON ก็มีคนมาโพสใน DZone จนได้ ให้เขียนเล่นเองอยู่ตั้งนาน แต่ข้อเสียของตัวนี้ก็คือเหมือนกับ office มากไปหน่อยต้องลองเปลี่ยน theme เอา<br />
<a href="http://jqueryribbon.codeplex.com/">http://jqueryribbon.codeplex.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/06/jquery-ribbon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>วิธี ที่พึงระลึกถึงขณะใช้ JQuery</title>
		<link>http://www.memoball.info/06/%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%80%e0%b8%a3%e0%b9%87%e0%b8%a7-jquer/</link>
		<comments>http://www.memoball.info/06/%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%80%e0%b8%a3%e0%b9%87%e0%b8%a7-jquer/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 03:23:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=317</guid>
		<description><![CDATA[บทความนี้จะกล่าวถึงการใช้ jQuery ที่ถูกต้องเพื่อเพิ่มประสิทธิภาพในการทำงานของตัว script ที่เราเขียนให้มีประสิทธิภาพสูงสุด

จาก WikiBall


			




เนื้อหา


1 ใช้เวอร์ชั่นใหม่สุด
2 ใช้ For แทน Each
3 รวมสคริปซะ
4 ใช้ ID แทน Class
5 เก็บไว้ในตัวแปร
6 หลีกเลี่ยงการใช้ DOM Manipulation
7 ใส่ return false ด้วย
8 ใช้ join แทน concat
9 reference




 if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } 

 ใช้เวอร์ชั่นใหม่สุด
แน่นอนเสียเหลือเกินว่าของใหม่ย่อมดีกว่าของเก่า ดังนั้นเราจึงควรใช้ jQuery ในเวอร์ชั่นที่ใหม่กว่า

&#60;!-- get the API with a simple script tag [...]]]></description>
			<content:encoded><![CDATA[<p>บทความนี้จะกล่าวถึงการใช้ jQuery ที่ถูกต้องเพื่อเพิ่มประสิทธิภาพในการทำงานของตัว script ที่เราเขียนให้มีประสิทธิภาพสูงสุด<span id="more-317"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Increase_jQuery_performance">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#.E0.B9.83.E0.B8.8A.E0.B9.89.E0.B9.80.E0.B8.A7.E0.B8.AD.E0.B8.A3.E0.B9.8C.E0.B8.8A.E0.B8.B1.E0.B9.88.E0.B8.99.E0.B9.83.E0.B8.AB.E0.B8.A1.E0.B9.88.E0.B8.AA.E0.B8.B8.E0.B8.94" ref="toc"><span class="tocnumber">1</span> <span class="toctext">ใช้เวอร์ชั่นใหม่สุด</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B9.83.E0.B8.8A.E0.B9.89_For_.E0.B9.81.E0.B8.97.E0.B8.99_Each" ref="toc"><span class="tocnumber">2</span> <span class="toctext">ใช้ For แทน Each</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B8.A3.E0.B8.A7.E0.B8.A1.E0.B8.AA.E0.B8.84.E0.B8.A3.E0.B8.B4.E0.B8.9B.E0.B8.8B.E0.B8.B0" ref="toc"><span class="tocnumber">3</span> <span class="toctext">รวมสคริปซะ</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B9.83.E0.B8.8A.E0.B9.89_ID_.E0.B9.81.E0.B8.97.E0.B8.99_Class" ref="toc"><span class="tocnumber">4</span> <span class="toctext">ใช้ ID แทน Class</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B9.80.E0.B8.81.E0.B9.87.E0.B8.9A.E0.B9.84.E0.B8.A7.E0.B9.89.E0.B9.83.E0.B8.99.E0.B8.95.E0.B8.B1.E0.B8.A7.E0.B9.81.E0.B8.9B.E0.B8.A3" ref="toc"><span class="tocnumber">5</span> <span class="toctext">เก็บไว้ในตัวแปร</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B8.AB.E0.B8.A5.E0.B8.B5.E0.B8.81.E0.B9.80.E0.B8.A5.E0.B8.B5.E0.B9.88.E0.B8.A2.E0.B8.87.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_DOM_Manipulation" ref="toc"><span class="tocnumber">6</span> <span class="toctext">หลีกเลี่ยงการใช้ DOM Manipulation</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B9.83.E0.B8.AA.E0.B9.88_return_false_.E0.B8.94.E0.B9.89.E0.B8.A7.E0.B8.A2" ref="toc"><span class="tocnumber">7</span> <span class="toctext">ใส่ return false ด้วย</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B9.83.E0.B8.8A.E0.B9.89_join_.E0.B9.81.E0.B8.97.E0.B8.99_concat" ref="toc"><span class="tocnumber">8</span> <span class="toctext">ใช้ join แทน concat</span></a></li>
<li class="toclevel-1"><a href="./#reference" ref="toc"><span class="tocnumber">9</span> <span class="toctext">reference</span></a></li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name=".E0.B9.83.E0.B8.8A.E0.B9.89.E0.B9.80.E0.B8.A7.E0.B8.AD.E0.B8.A3.E0.B9.8C.E0.B8.8A.E0.B8.B1.E0.B9.88.E0.B8.99.E0.B9.83.E0.B8.AB.E0.B8.A1.E0.B9.88.E0.B8.AA.E0.B8.B8.E0.B8.94" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">ใช้เวอร์ชั่นใหม่สุด</span></h2>
<p>แน่นอนเสียเหลือเกินว่าของใหม่ย่อมดีกว่าของเก่า ดังนั้นเราจึงควรใช้ jQuery ในเวอร์ชั่นที่ใหม่กว่า
</p>
<pre name="code" class="html">&lt;!-- get the API with a simple script tag --&gt;
 &lt;script type=&quot;text/javascript&quot; src=&quot;&lt;a href=&quot;http://www.google.com/jsapi%22%3E%3C/script&quot;&gt;http://www.google.com/jsapi&quot;&gt;&lt;/script&lt;/a&gt;&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
     /* and load minified jQuery v1.3.2 this way */
     google.load (&quot;jquery&quot;, &quot;1.3.2&quot;, {uncompressed: false});  

     google.setOnLoadCallback (onLoad);
 &lt;/script&gt;</pre>
<p><a name=".E0.B9.83.E0.B8.8A.E0.B9.89_For_.E0.B9.81.E0.B8.97.E0.B8.99_Each" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">ใช้ For แทน Each</span></h2>
<p><a name=".E0.B8.A3.E0.B8.A7.E0.B8.A1.E0.B8.AA.E0.B8.84.E0.B8.A3.E0.B8.B4.E0.B8.9B.E0.B8.8B.E0.B8.B0" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">รวมสคริปซะ</span></h2>
<p>รวมสคริปของทุกเพจไว้ด้วยกัน เพื่อที่จะให้บราวเซอร์โหลดแค่ครั้งเดียว<br />
<a name=".E0.B9.83.E0.B8.8A.E0.B9.89_ID_.E0.B9.81.E0.B8.97.E0.B8.99_Class" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">ใช้ ID แทน Class</span></h2>
<p>ในการใช้ selecter ของ jQuery ควรจะใช้เลือกโดย ID แทนการเลือกด้วย class เช่น $(&#8217;#demo&#8217;) แทนการใช้ $(&#8217;.example&#8217;) ดังนั้นเราจึงควรเขียน HTML ใช้สนับสนุนการใช้งานในส่วนนี้ด้วย หรือถ้าจำเป็นต้องใช้ class จริงๆ ควรทำการสโคปการค้นหาให้เล็กลงเช่น  $(&#8217;.class&#8217;, &#8216;#class-container&#8217;)</p>
<pre>$(expression, context)  </pre>
<li><a name=".E0.B9.80.E0.B8.81.E0.B9.87.E0.B8.9A.E0.B9.84.E0.B8.A7.E0.B9.89.E0.B9.83.E0.B8.99.E0.B8.95.E0.B8.B1.E0.B8.A7.E0.B9.81.E0.B8.9B.E0.B8.A3" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">เก็บไว้ในตัวแปร</span></h2>
<p>อย่าทำการ select หลายครั้งที่เหมือนกัน เพราะจะทำให้เปลืองโหลดขณะทำการ select ดังนั้นเราควรที่จะเก็บใส่ตัวแปรของเราซะ</p>
<pre name="code" class="javascript">
$('#demo').html ('What's up');
$('#demo').css ('color', '#444444');
$('#demo').addclass ('fulltext');
</pre>
<p>ควรใช้เป็น
</p>
<pre name="code" class="javascript">
var demo = $('#demo');
demo.html ('What's up');
demo.css ('color', '#444444');
demo.addclass ('fulltext');</pre>
<p>หรือ
</p>
<pre name="code" class="javascript"> $('#demo').css ('color', '#444444').addclass ('fulltext');
</pre>
<p><a name=".E0.B8.AB.E0.B8.A5.E0.B8.B5.E0.B8.81.E0.B9.80.E0.B8.A5.E0.B8.B5.E0.B9.88.E0.B8.A2.E0.B8.87.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_DOM_Manipulation" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">หลีกเลี่ยงการใช้ DOM Manipulation</span></h2>
<p>หลีกเลี่ยงการใช้ function เกี่ยวกับการทำ DOM ใหม่ append(), after(),prepend() โดยการใช้ html() แทน<br />
<a name=".E0.B9.83.E0.B8.AA.E0.B9.88_return_false_.E0.B8.94.E0.B9.89.E0.B8.A7.E0.B8.A2" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">ใส่ return false ด้วย</span></h2>
<p>Function ที่ไม่มีการ return ใดๆ กลับมาเลย ควรเพิ่ม return false ด้วย<br />
<a name=".E0.B9.83.E0.B8.8A.E0.B9.89_join_.E0.B9.81.E0.B8.97.E0.B8.99_concat" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">ใช้ join แทน concat</span></h2>
<p>ถ้าข้อความเป็น array ควรใช้ join แทนการใช้ array มาบวกกัน<br />
<a name="reference" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> reference </span></h2>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/10-ways-to-instantly-increase-your-jquery-performance/" class="external free" title="http://net.tutsplus.com/tutorials/javascript-ajax/10-ways-to-instantly-increase-your-jquery-performance/" rel="nofollow">http://net.tutsplus.com/tutorials/javascript-ajax/10-ways-to-instantly-increase-your-jquery-performance/</a>
</p>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 26/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:61-0!1!0!!th!2!edit=0 and timestamp 20090825081353 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Increase_jQuery_performance">http://wiki.memoball.info/index.php/Increase_jQuery_performance</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:JQuery&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:JQuery (ยังไม่ได้สร้าง)">JQuery</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Javascript&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Javascript (ยังไม่ได้สร้าง)">Javascript</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/06/%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b9%80%e0%b8%a3%e0%b9%87%e0%b8%a7-jquer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>แจ้งเตือน Firebug แบบ Gmail</title>
		<link>http://www.memoball.info/05/%e0%b9%81%e0%b8%88%e0%b9%89%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b7%e0%b8%ad%e0%b8%99-firebug-%e0%b9%81%e0%b8%9a%e0%b8%9a-gmail/</link>
		<comments>http://www.memoball.info/05/%e0%b9%81%e0%b8%88%e0%b9%89%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b7%e0%b8%ad%e0%b8%99-firebug-%e0%b9%81%e0%b8%9a%e0%b8%9a-gmail/#comments</comments>
		<pubDate>Fri, 22 May 2009 02:34:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application]]></category>
		<category><![CDATA[Web application]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=286</guid>
		<description><![CDATA[สำหรับนักพัฒนาเวปไซต์ที่อยากรู้อยากเห็นทั้งหลาย (รวมทั้งผมด้วย) คงเคยใช้ firebug ไปลองแกะหน้าของ gmail ดูว่ามันทำยังไงมันถึงได้เร็วขนาดนี้ แล้วก็จะเห็นแจ้งเตือนว่า firebug ทำให้การใช้งานของท่านช้าลงนะ วันนี้เลยเอาวิธีทำแจ้งเตือนแบบนี้มาเก็บไว้ให้ดูเล่นๆ กัน


จาก WikiBall


			
			
 How to

&#60;script type=&#34;text/javascript&#34;&#62;
if( window.console &#38;&#38; window.console.firebug )
    document.getElementsByTagName('body')[0].innerHTML +=
           &#34;&#60;div onclick=\&#34;this.style.display = 'none'\&#34; &#34;+
           &#34;style='position:absolute; top:0; width:100%; padding: 5px [...]]]></description>
			<content:encoded><![CDATA[<p>สำหรับนักพัฒนาเวปไซต์ที่อยากรู้อยากเห็นทั้งหลาย (รวมทั้งผมด้วย) คงเคยใช้ firebug ไปลองแกะหน้าของ gmail ดูว่ามันทำยังไงมันถึงได้เร็วขนาดนี้ แล้วก็จะเห็นแจ้งเตือนว่า firebug ทำให้การใช้งานของท่านช้าลงนะ วันนี้เลยเอาวิธีทำแจ้งเตือนแบบนี้มาเก็บไว้ให้ดูเล่นๆ กัน<br />
<span id="more-286"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Block_Firebug">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --><br />
			<a name="How_to" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">How to</span></h2>
<pre name="code" class="javascript">
&lt;script type=&quot;text/javascript&quot;&gt;
if( window.console &amp;&amp; window.console.firebug )
    document.getElementsByTagName('body')[0].innerHTML +=
           &quot;&lt;div onclick=\&quot;this.style.display = 'none'\&quot; &quot;+
           &quot;style='position:absolute; top:0; width:100%; padding: 5px 0; background: #ff7; border-bottom: 1px solid #770; font-weight: bold; text-align: center;'&gt;&quot;+
           &quot;Firebug can make this web page slow, we suggest you disable it for this web page. Click to close this warning.&lt;/div&gt;&quot;;
&lt;/script&gt;
</pre>
<p>เพียงแค่เพิ่ม script ด้านบน ก็สามารถแจ้งเตือนผู้ใช้ได้แล้วว่าท่านกำลังเปิด firebug อยู่ ซึ่งอาจทำให้การดูเวปไซต์ของท่านนั้นช้าลง เหมือนตัวอย่างเช่น gmail นั่นเอง
</p>
<p><a name="Reference" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">Reference</span></h2>
<ul>
<li><a href="http://www.unwrongest.com/blog/if-firebug-slows-down-your-web-page-make-a-suggestion/" class="external free" title="http://www.unwrongest.com/blog/if-firebug-slows-down-your-web-page-make-a-suggestion/" rel="nofollow">http://www.unwrongest.com/blog/if-firebug-slows-down-your-web-page-make-a-suggestion/</a>
</li>
<li><a href="http://blog.dkferguson.com/index.cfm/2009/3/31/Block-Firebug-on-your-site/" class="external free" title="http://blog.dkferguson.com/index.cfm/2009/3/31/Block-Firebug-on-your-site/" rel="nofollow">http://blog.dkferguson.com/index.cfm/2009/3/31/Block-Firebug-on-your-site/</a>
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 6/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:54-0!1!0!!th!2!edit=0 and timestamp 20090825115814 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Block_Firebug">http://wiki.memoball.info/index.php/Block_Firebug</a></div>
<p>						<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/05/%e0%b9%81%e0%b8%88%e0%b9%89%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b7%e0%b8%ad%e0%b8%99-firebug-%e0%b9%81%e0%b8%9a%e0%b8%9a-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>วิธีติดตั้งฟอนต์ Tahoma บน Ubuntu</title>
		<link>http://www.memoball.info/04/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%9f%e0%b8%ad%e0%b8%99%e0%b8%95%e0%b9%8c-tahoma-%e0%b8%9a%e0%b8%99-ubuntu/</link>
		<comments>http://www.memoball.info/04/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%9f%e0%b8%ad%e0%b8%99%e0%b8%95%e0%b9%8c-tahoma-%e0%b8%9a%e0%b8%99-ubuntu/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 13:54:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=270</guid>
		<description><![CDATA[555 ลืมๆๆๆ วิธีการติดตั้งตัวอักษร Tahoma ไปแล้ว วันนี้ก็เลยต้องมาหาใหม่ จะได้ไม่ทำให้เวปที่ออกแบบมา เพี้ยนไป

จาก WikiBall


			

 ติดตั้งแพคเกจ msttcorefonts
sudo apt-get install msttcorefonts

 ดาวน์โหลดฟอนต์ Tahoma จาก http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB

 แตก IELPKTH.CAB โดยใช้คำสั่ง cabextract

 ย้ายไฟล์สกุล ttf ไปที่/usr/share/fonts/truetype/msttcorefonts/

 จัดการลบไฟล์ในข้อ 2-3 ออกไปได้เลย


ขอบคุณ http://bact.blogspot.com สำหรับเนื้อหานี้ครับ




รับข้อมูลจาก (Reference) : 
จาก WikiBall : http://wiki.memoball.info/index.php/วิธีติดตั้งฟอนต์_Tahoma_บน_Ubuntu

หมวดหมู่:&#32;Ubuntu &#124; Linux

			


]]></description>
			<content:encoded><![CDATA[<p>555 ลืมๆๆๆ วิธีการติดตั้งตัวอักษร Tahoma ไปแล้ว วันนี้ก็เลยต้องมาหาใหม่ จะได้ไม่ทำให้เวปที่ออกแบบมา เพี้ยนไป</p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%9F%E0%B8%AD%E0%B8%99%E0%B8%95%E0%B9%8C_Tahoma_%E0%B8%9A%E0%B8%99_Ubuntu">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<ol>
<li> ติดตั้งแพคเกจ msttcorefonts
<pre>sudo apt-get install msttcorefonts</pre>
</li>
<li> ดาวน์โหลดฟอนต์ Tahoma จาก <a href="http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB" class="external free" title="http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB" rel="nofollow">http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB</a>
</li>
<li> แตก IELPKTH.CAB โดยใช้คำสั่ง cabextract
</li>
<li> ย้ายไฟล์สกุล ttf ไปที่/usr/share/fonts/truetype/msttcorefonts/
</li>
<li> จัดการลบไฟล์ในข้อ 2-3 ออกไปได้เลย
</li>
</ol>
<p>ขอบคุณ <a href="http://bact.blogspot.com" class="external free" title="http://bact.blogspot.com" rel="nofollow">http://bact.blogspot.com</a> สำหรับเนื้อหานี้ครับ
</p>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 4/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:48-0!1!0!!th!2!edit=0 and timestamp 20090825115814 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%95%E0%B8%B4%E0%B8%94%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B8%9F%E0%B8%AD%E0%B8%99%E0%B8%95%E0%B9%8C_Tahoma_%E0%B8%9A%E0%B8%99_Ubuntu">http://wiki.memoball.info/index.php/วิธีติดตั้งฟอนต์_Tahoma_บน_Ubuntu</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Ubuntu&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Ubuntu (ยังไม่ได้สร้าง)">Ubuntu</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Linux&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Linux (ยังไม่ได้สร้าง)">Linux</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/04/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%9f%e0%b8%ad%e0%b8%99%e0%b8%95%e0%b9%8c-tahoma-%e0%b8%9a%e0%b8%99-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ปรับเปลี่ยนครั้งใหญ่</title>
		<link>http://www.memoball.info/04/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99%e0%b8%84%e0%b8%a3%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b9%83%e0%b8%ab%e0%b8%8d%e0%b9%88/</link>
		<comments>http://www.memoball.info/04/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99%e0%b8%84%e0%b8%a3%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b9%83%e0%b8%ab%e0%b8%8d%e0%b9%88/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 15:49:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=243</guid>
		<description><![CDATA[วันนี้ได้ทำการปรับเปลี่ยนเวป www.memoball.info โดยใช้ Plugins ที่เพิ่งเขียนขึ้นเอง โดยใช้ PHP Simple HTML DOM ซึ่งเป็น php library ไว้สำหรับสร้าง DOM ของโค้ด HTML ที่ไปดูดมาจากที่อื่นที่ไหนก็ได้ แต่สำหรับ plugin ตัวนี้ได้เขียนไว้สำหรับดูด wiki.memoball.info เท่านั้น
Wikiball Plugin
]]></description>
			<content:encoded><![CDATA[<p>วันนี้ได้ทำการปรับเปลี่ยนเวป www.memoball.info โดยใช้ Plugins ที่เพิ่งเขียนขึ้นเอง โดยใช้ <a href="http://simplehtmldom.sourceforge.net/">PHP Simple HTML DOM</a> ซึ่งเป็น php library ไว้สำหรับสร้าง DOM ของโค้ด HTML ที่ไปดูดมาจากที่อื่นที่ไหนก็ได้ แต่สำหรับ plugin ตัวนี้ได้เขียนไว้สำหรับดูด wiki.memoball.info เท่านั้น<br />
<a href="http://www.memoball.info/wp-content/uploads/2009/04/wikiball.zip">Wikiball Plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/04/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99%e0%b8%84%e0%b8%a3%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b9%83%e0%b8%ab%e0%b8%8d%e0%b9%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การใช้ div สร้าง round-corner แบบ dynmic</title>
		<link>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-div-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-round-corner-%e0%b9%81%e0%b8%9a%e0%b8%9a-dynmic/</link>
		<comments>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-div-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-round-corner-%e0%b9%81%e0%b8%9a%e0%b8%9a-dynmic/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 15:01:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Round corner]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=194</guid>
		<description><![CDATA[ุวันนี้เราจะพูดกันถึงเรื่องการสร้าง round-corner ซึ่งก้คือการทำให้มุมของกล่องของเราแสดงเป็นรูปแบบโค้ง ซึ่งนิยมใช้กันกันการออกแบบเวปปัจจุับัน ซึ่งในที่นี้จะกล่าวถึงวิธีทำแบบใช้ div  ซึ่งจากที่ผมได้ลองค้นหาดูแล้วก็พบว่า ส่วนใหญ่ที่ทำการสอนกันนั้นจะ static คือแบบที่ไม่สามารถยึดหดกล่องได้แบบอิสระ เพราะการกำหนดรูปของกล่องอย่างตายตัว หรือใช้ css ของ mozilla ซึ่งจะใช้ได้เพียงบางบราวเซอร์เท่านั้น โดยสุดท้ายได้ทำการออกแบบเป็นโค้ดดังต่อไปนี้

จาก WikiBall


			
หลังจากค้นหาข้อมูลอยู่หลายครั้งในการทำ round-corner ให้กับเวปไซต์ ส่วนมาก round corner ที่ใช้กันจะเป็นแบบ static คือกำหนดความยาวรูป และกล่องมาเลย ทำให้ไม่ยืดหยุ่นในการใช้งาน แต่ถ้าเป็นแบบ dynamic ที่สามารถยืดหดกล่องได้และทำโดยใช้ div และ css จะทำได้ยากมากเพราะติดปัญหาเรื่อง cross browser โดยเฉพาะการแสดงผลใน MSIE จะมีปัญหามาก เนื่องจากไม่ค่อยแสดงผลตามแบบ w3c สักเท่าไหร่ และโดยเฉพาะเจ้า MSIE6 มีปัญหา bug ที่เกี่ยวกับ css มากอยู่พอสมควร เช่น ปัญหา [3px-jog] ซึ่งทำให้การออกแบบบางลักษณะไม่ได้





เนื้อหา


1 [...]]]></description>
			<content:encoded><![CDATA[<p>ุวันนี้เราจะพูดกันถึงเรื่องการสร้าง round-corner ซึ่งก้คือการทำให้มุมของกล่องของเราแสดงเป็นรูปแบบโค้ง ซึ่งนิยมใช้กันกันการออกแบบเวปปัจจุับัน ซึ่งในที่นี้จะกล่าวถึงวิธีทำแบบใช้ div  ซึ่งจากที่ผมได้ลองค้นหาดูแล้วก็พบว่า ส่วนใหญ่ที่ทำการสอนกันนั้นจะ static คือแบบที่ไม่สามารถยึดหดกล่องได้แบบอิสระ เพราะการกำหนดรูปของกล่องอย่างตายตัว หรือใช้ css ของ mozilla ซึ่งจะใช้ได้เพียงบางบราวเซอร์เท่านั้น โดยสุดท้ายได้ทำการออกแบบเป็นโค้ดดังต่อไปนี้<span id="more-194"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89_div_%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87_round-corner">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<p>หลังจากค้นหาข้อมูลอยู่หลายครั้งในการทำ round-corner ให้กับเวปไซต์ ส่วนมาก round corner ที่ใช้กันจะเป็นแบบ static คือกำหนดความยาวรูป และกล่องมาเลย ทำให้ไม่ยืดหยุ่นในการใช้งาน แต่ถ้าเป็นแบบ dynamic ที่สามารถยืดหดกล่องได้และทำโดยใช้ div และ css จะทำได้ยากมากเพราะติดปัญหาเรื่อง cross browser โดยเฉพาะการแสดงผลใน MSIE จะมีปัญหามาก เนื่องจากไม่ค่อยแสดงผลตามแบบ w3c สักเท่าไหร่ และโดยเฉพาะเจ้า MSIE6 มีปัญหา bug ที่เกี่ยวกับ css มากอยู่พอสมควร เช่น ปัญหา [<a href="http://www.positioniseverything.net/explorer/threepxtest.html" class="external text" title="http://www.positioniseverything.net/explorer/threepxtest.html" rel="nofollow">3px-jog</a>] ซึ่งทำให้การออกแบบบางลักษณะไม่ได้
</p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla" ref="toc"><span class="tocnumber">1</span> <span class="toctext">การใช้ css ของ Mozzilla</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_DIV.2BCSS" ref="toc"><span class="tocnumber">2</span> <span class="toctext">การใช้ DIV+CSS</span></a>
<ul>
<li class="toclevel-2"><a href="./#HTML" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">HTML</span></a></li>
<li class="toclevel-2"><a href="./#CSS" ref="toc"><span class="tocnumber">2.2</span> <span class="toctext">CSS</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla_2" ref="toc"><span class="tocnumber">3</span> <span class="toctext">การใช้ css ของ Mozzilla</span></a></li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การใช้ css ของ Mozzilla </span></h2>
<ul>
<li> <b>-moz-border-radius-bottomleft</b> sets the rounding for the bottom-left curve.
</li>
<li> <b>-moz-border-radius-bottomright</b> sets the rounding for the bottom-right curve.
</li>
<li> <b>-moz-border-radius-topleft</b> sets the rounding for the top-left curve.
</li>
<li> <b>-moz-border-radius-topright</b> sets the rounding for the top-right curve.
</li>
</ul>
<p><i>ข้อดีคือ</i>
</p>
<ul>
<li> ทำง่าย
</li>
<li> ใช้ bandwidth และ connection น้อย
</li>
</ul>
<p><i>ข้อเสีย</i>
</p>
<ul>
<li> ใช้ได้ไม่ครบทุก browser แน่นอนว่า MSIE ใช้ไม่ได้แน่นอน
</li>
</ul>
<p><a href="https://developer.mozilla.org/en/CSS/-moz-border-radius" class="external free" title="https://developer.mozilla.org/en/CSS/-moz-border-radius" rel="nofollow">https://developer.mozilla.org/en/CSS/-moz-border-radius</a>
</p>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_DIV.2BCSS" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การใช้ DIV+CSS </span></h2>
<p><a name="HTML" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> HTML </span></h3>
<pre name="code" class="html">
&lt;div id=&quot;box&quot;&gt;
  &lt;div class=&quot;border-top&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-topleft&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-topright&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-left&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-right&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-bottom&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-bottomleft&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-bottomright&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;content&quot;&gt;
    /* Type your content */
  &lt;/div&gt;
&lt;/div&gt;
</pre>
<p><a name="CSS" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> CSS </span></h3>
<pre>
@charset &quot;utf-8&quot;;
/* CSS Document */

#box {
	position: relative;
	/* Replace the border image size here */
	margin: 12px 12px 12px 12px;
	/*
	 * Don't use padding here because IE6 is render incorrectly
	 * Padding shoud be in &quot;.content&quot;
	 */
}

#box .content {
	padding: 4px;
}

.border-top,
.border-bottom,
.border-topleft,
.border-left,
.border-bottomleft,
.border-topright,
.border-right,
.border-bottomright {
	position: absolute;
}

.border-top,
.border-bottom {
	left: 0px;
}

.border-topleft,
.border-left,
.border-bottomleft {
	left: -12px;
	width: 12px;
}

.border-topright,
.border-right,
.border-bottomright {
	right: -12px;
	width:  12px;
}
.border-top,
.border-topleft,
.border-topright {
	top:   -12px;
	height: 12px;
}

.border-bottom,
.border-bottomleft,
.border-bottomright {
	bottom: -12px;
	height:  12px;
}

.border-top, .border-bottom {
	width: 100%;
}
.border-left, .border-right {
	top: 0px;
	bottom: 0px;
	height: 100%;
	/* IE6 fix the 100% bug */
	_height: expression(eval(this.parentNode.clientHeight) + &quot;px&quot;);
}

/* replace the border images link here */
.border-top         { background: URL(../images/greenHorizontal.gif) repeat-x top; }
.border-topleft     { background: URL(../images/greenCorner.gif) no-repeat left top; }
.border-topright    { background: URL(../images/greenCorner.gif) no-repeat right top; }
.border-left        { background: URL(../images/greenVertical.gif) repeat-y left; }
.border-right       { background: URL(../images/greenVertical.gif) repeat-y right; }
.border-bottom      { background: URL(../images/greenHorizontal.gif) repeat-x bottom; }
.border-bottomleft  { background: URL(../images/greenCorner.gif) no-repeat left bottom; }
.border-bottomright { background: URL(../images/greenCorner.gif) no-repeat right bottom; }
</pre>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla_2" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การใช้ css ของ Mozzilla </span></h2>
<ul>
<li> <b>-moz-border-radius-bottomleft</b> sets the rounding for the bottom-left curve.
</li>
<li> <b>-moz-border-radius-bottomright</b> sets the rounding for the bottom-right curve.
</li>
<li> <b>-moz-border-radius-topleft</b> sets the rounding for the top-left curve.
</li>
<li> <b>-moz-border-radius-topright</b> sets the rounding for the top-right curve.
</li>
</ul>
<p><i>ข้อดีคือ</i>
</p>
<ul>
<li> ใช้ได้ทุก browser
</li>
</ul>
<p><i>ข้อเสีย</i>
</p>
<ul>
<li> เขียน css ยุ่งยาก
</li>
<li> ต้องเปิด connection เพื่อโหลดรูปเพิ่มอีก 3 รูป
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 12/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:25-0!1!0!!th!2!edit=0 and timestamp 20090825115814 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89_div_%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87_round-corner">http://wiki.memoball.info/index.php/การใช้_div_สร้าง_round-corner</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:CSS&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:CSS (ยังไม่ได้สร้าง)">CSS</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:HTML&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:HTML (ยังไม่ได้สร้าง)">HTML</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-div-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-round-corner-%e0%b9%81%e0%b8%9a%e0%b8%9a-dynmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Order list (ol) error ใน IE</title>
		<link>http://www.memoball.info/03/order-list-ol-error-%e0%b9%83%e0%b8%99-ie/</link>
		<comments>http://www.memoball.info/03/order-list-ol-error-%e0%b9%83%e0%b8%99-ie/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 04:53:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[IE error]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=190</guid>
		<description><![CDATA[หลังจากนั่งงง อยู่เกือบครึ่งวัน เพราะการแสดงผลผิดพลาดของ MSIE ทั้ง 6 และ 7 ซึ่ง ol จะแลดงเลข counter เป็น 1 ทั้งหมด โดยที่ทั้ง Firefox,Safari,Chrome แสดงผลตามปกติ

จาก WikiBall


			
			
 HTML code
&#60;div id=&#34;GovTop10&#34;&#62;&#60;h1&#62;เวปราชการยอดนิยม&#60;/h1&#62;
&#60;ol&#62;
&#60;li&#62;&#60;a title=&#34;สรรพากร (www.rd.go.th)&#34; href=&#34;http://www.rd.go.th&#34;&#62;สรรพากร&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน (www.obec.go.th)&#34; href=&#34;http://www.obec.go.th&#34;&#62;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;สำนักงานประกันสังคม (www.sso.go.th)&#34; href=&#34;http://www.sso.go.th&#34;&#62;สำนักงานประกันสังคม&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;สำนักงานสลากกินแบ่งรัฐบาล (www.glo.or.th)&#34; href=&#34;http://www.glo.or.th&#34;&#62;สำนักงานสลากกินแบ่งรัฐบาล&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration) (www.thailocaladmin.go.th)&#34; href=&#34;http://www.thailocaladmin.go.th&#34;&#62;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration)&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;กรมประชาสัมพันธ์ (www.prd.go.th)&#34; href=&#34;http://www.prd.go.th&#34;&#62;กรมประชาสัมพันธ์&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;www.ocsc.go.th (www.ocsc.go.th)&#34; href=&#34;http://www.ocsc.go.th&#34;&#62;www.ocsc.go.th&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;ธนาคารแห่งประเทศไทย (www.bot.or.th)&#34; href=&#34;http://www.bot.or.th&#34;&#62;ธนาคารแห่งประเทศไทย&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;Information [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจากนั่งงง อยู่เกือบครึ่งวัน เพราะการแสดงผลผิดพลาดของ MSIE ทั้ง 6 และ 7 ซึ่ง ol จะแลดงเลข counter เป็น 1 ทั้งหมด โดยที่ทั้ง Firefox,Safari,Chrome แสดงผลตามปกติ<span id="more-190"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Order_list_%28ol%29_error_%E0%B9%83%E0%B8%99_IE">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --><br />
			<a name="HTML_code" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">HTML code</span></h2>
<pre name="code" class="html">&lt;div id=&quot;GovTop10&quot;&gt;&lt;h1&gt;เวปราชการยอดนิยม&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a title=&quot;สรรพากร (www.rd.go.th)&quot; href=&quot;http://www.rd.go.th&quot;&gt;สรรพากร&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน (www.obec.go.th)&quot; href=&quot;http://www.obec.go.th&quot;&gt;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;สำนักงานประกันสังคม (www.sso.go.th)&quot; href=&quot;http://www.sso.go.th&quot;&gt;สำนักงานประกันสังคม&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;สำนักงานสลากกินแบ่งรัฐบาล (www.glo.or.th)&quot; href=&quot;http://www.glo.or.th&quot;&gt;สำนักงานสลากกินแบ่งรัฐบาล&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration) (www.thailocaladmin.go.th)&quot; href=&quot;http://www.thailocaladmin.go.th&quot;&gt;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;กรมประชาสัมพันธ์ (www.prd.go.th)&quot; href=&quot;http://www.prd.go.th&quot;&gt;กรมประชาสัมพันธ์&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;www.ocsc.go.th (www.ocsc.go.th)&quot; href=&quot;http://www.ocsc.go.th&quot;&gt;www.ocsc.go.th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;ธนาคารแห่งประเทศไทย (www.bot.or.th)&quot; href=&quot;http://www.bot.or.th&quot;&gt;ธนาคารแห่งประเทศไทย&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Information of Thai tambon or villages with local products and many interesting places (www.thaitambon.com)&quot; href=&quot;http://www.thaitambon.com&quot;&gt;Information of Thai tambon or villages with local products and many interesting places&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;CM108.com เชียงใหม่ หางานเชียงใหม่ ภาพเชียงใหม่ เชียงใหม่108 จังหวัดเชียงใหม่ (www.cm108.com)&quot; href=&quot;http://www.cm108.com&quot;&gt;CM108.com เชียงใหม่ หางานเชียงใหม่ ภาพเชียงใหม่ เชียงใหม่108 จังหวัดเชียงใหม่&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</pre>
<p><a href="http://wiki.memoball.info//index.php/%E0%B8%A0%E0%B8%B2%E0%B8%9E:OlError.gif" class="image" title="ตัวอย่าง ol error"><img alt="ตัวอย่าง ol error" src="http://wiki.memoball.info//images/7/70/OlError.gif" width="214" height="278" border="0" /></a>
</p>
<p><a name="CSS_code" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">CSS code</span></h2>
<pre name="code" class="css">
#GovTop10 {
	text-align: left;
	width: 200px;
}
#GovTop10 li{
	width: 180px;
}
#GovTop10 h1{
	font-size: 15px;
	color: #29ABE2;
	text-align: center;
	margin-bottom: 0px;
}

#GovTop10 .site{
	width: 180px;
	list-style: none;
}

GovTop10 .zebra_odd{
	background-color:#FFFFFF;
}
#GovTop10 .zebra_even{
	background-color: #EFEFEF;
}</pre>
<p><a name=".E0.B8.A7.E0.B8.B4.E0.B8.98.E0.B8.B5.E0.B9.81.E0.B8.81.E0.B9.89.E0.B9.84.E0.B8.82" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">วิธีแก้ไข</span></h2>
<p>หลังจากหาอยู่เป็นเวลานานจึงได้พบว่า สิ่งที่ทำให้เกความผิดพลาดคือ
</p>
<pre name="code" class="css">
#GovTop10 li{
	width: 180px;
}
</pre>
<p>โดยถ้าลบ width ทิ้ง ก็จะแสดงผลได้ถูกต้องตามเดิม
</p>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 13/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:38-0!1!0!!th!2!edit=0 and timestamp 20090825115815 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Order_list_%28ol%29_error_%E0%B9%83%E0%B8%99_IE">http://wiki.memoball.info/index.php/Order_list_(ol)_error_ใน_IE</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:HTML&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:HTML (ยังไม่ได้สร้าง)">HTML</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:CSS&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:CSS (ยังไม่ได้สร้าง)">CSS</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/03/order-list-ol-error-%e0%b9%83%e0%b8%99-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การสร้าง PHP Error Log</title>
		<link>http://www.memoball.info/03/187/</link>
		<comments>http://www.memoball.info/03/187/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 03:20:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=187</guid>
		<description><![CDATA[วันนี้ได้ทำการจัดการเรื่อง error ของ php ไม่ให้แสดงบนหน้าเวป แต่ไปเก็บไว้ที่ file แทน ทำให้เพิ่มความปลอดภัยของเวปไซต์เราและยังสามารถทำการ debug โปรแกรมได้ง่ายด้วย 

จาก WikiBall


			
			
 ปิดไม่ให้แสดง error

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off


 แสดง error ใน logs file

# enable PHP error logging
php_flag  log_errors on
php_value error_log  /home/path/public_html/domain/PHP_errors.log


 จัดการ permission ของ logs

# prevent access to PHP error log
&#60;Files PHP_errors.log&#62;
 Order allow,deny
 Deny from all
 [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้ได้ทำการจัดการเรื่อง error ของ php ไม่ให้แสดงบนหน้าเวป แต่ไปเก็บไว้ที่ file แทน ทำให้เพิ่มความปลอดภัยของเวปไซต์เราและยังสามารถทำการ debug โปรแกรมได้ง่ายด้วย <span id="more-187"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87_PHP_Error_logs_%E0%B9%83%E0%B8%99_.htaccess">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --><br />
			<a name=".E0.B8.9B.E0.B8.B4.E0.B8.94.E0.B9.84.E0.B8.A1.E0.B9.88.E0.B9.83.E0.B8.AB.E0.B9.89.E0.B9.81.E0.B8.AA.E0.B8.94.E0.B8.87_error" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">ปิดไม่ให้แสดง error</span></h3>
<pre>
# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
</pre>
<p><a name=".E0.B9.81.E0.B8.AA.E0.B8.94.E0.B8.87_error_.E0.B9.83.E0.B8.99_logs_file" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">แสดง error ใน logs file</span></h3>
<pre>
# enable PHP error logging
php_flag  log_errors on
php_value error_log  /home/path/public_html/domain/PHP_errors.log
</pre>
<p><a name=".E0.B8.88.E0.B8.B1.E0.B8.94.E0.B8.81.E0.B8.B2.E0.B8.A3_permission_.E0.B8.82.E0.B8.AD.E0.B8.87_logs" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">จัดการ permission ของ logs</span></h3>
<pre>
# prevent access to PHP error log
&lt;Files PHP_errors.log&gt;
 Order allow,deny
 Deny from all
 Satisfy All
&lt;/Files&gt;
</pre>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 13/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:37-0!1!0!!th!2!edit=0 and timestamp 20090825115815 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87_PHP_Error_logs_%E0%B9%83%E0%B8%99_.htaccess">http://wiki.memoball.info/index.php/การสร้าง_PHP_Error_logs_ใน_.htaccess</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Linux&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Linux (ยังไม่ได้สร้าง)">Linux</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:PHP&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:PHP (ยังไม่ได้สร้าง)">PHP</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/03/187/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การ block torrent อย่างง่าย</title>
		<link>http://www.memoball.info/03/%e0%b8%81%e0%b8%b2%e0%b8%a3-block-torrent-%e0%b8%ad%e0%b8%a2%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2/</link>
		<comments>http://www.memoball.info/03/%e0%b8%81%e0%b8%b2%e0%b8%a3-block-torrent-%e0%b8%ad%e0%b8%a2%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 14:53:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[block torrent]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=183</guid>
		<description><![CDATA[พอดีวันนี้ว่างๆ เลยเอาของที่มีอยู่แล้วมาใส่ไว้ใน wiki เพื่อจะได้เป็นความรู้ไว้ใช้ต่อไปในอนาคต วันนี้จึงมานำเสนอการ block torrent เพราะ มีอยู่ช่วงนึงที่บ้านแชร์ไฟล์กันกระจาย ไม่มีระเบียบ บางช่วงจึงทำงานไม่ได้เพราะเนตช้า ก็เลยหาทางวิธีทำการบล็อกโดยไม่ต้องลงทุนอะไร ถึงแม้จะมีช่องโหว่อยู่ก็ตาม แต่ก็ยังดีกว่าไม่ได้จัดการอะไรเลย
ที่ว่าไม่ต้องลงทุนเพราะใช้ตัวจัดการเป็น computer PC ธรรมดา ที่ปกติก็เปิดไว้สำหรับ share file อยู่แล้วก็เลยเอามาทำเป็น routing server (ไม่รู้เรียกถูกหรือเปล่า) ซะเลย โดยทำตามลิงค์ข้างล่างนี้ครับ

จาก WikiBall


			




เนื้อหา


1 Network Infrastructor
2 Program Installation and Configuration

2.1 Routing Server

2.1.1 Network Interface configuration
2.1.2 Network Firewall
2.1.3 Bash script
2.1.4 DHCP




3 ข้อดี ข้อเสีย

3.1 ข้อดี
3.2 ข้อเสีย






 if (window.showTocToggle) { var tocShowText = "แสดง"; var [...]]]></description>
			<content:encoded><![CDATA[<p>พอดีวันนี้ว่างๆ เลยเอาของที่มีอยู่แล้วมาใส่ไว้ใน wiki เพื่อจะได้เป็นความรู้ไว้ใช้ต่อไปในอนาคต วันนี้จึงมานำเสนอการ block torrent เพราะ มีอยู่ช่วงนึงที่บ้านแชร์ไฟล์กันกระจาย ไม่มีระเบียบ บางช่วงจึงทำงานไม่ได้เพราะเนตช้า ก็เลยหาทางวิธีทำการบล็อกโดยไม่ต้องลงทุนอะไร ถึงแม้จะมีช่องโหว่อยู่ก็ตาม แต่ก็ยังดีกว่าไม่ได้จัดการอะไรเลย<span id="more-183"></span><br />
ที่ว่าไม่ต้องลงทุนเพราะใช้ตัวจัดการเป็น computer PC ธรรมดา ที่ปกติก็เปิดไว้สำหรับ share file อยู่แล้วก็เลยเอามาทำเป็น routing server (ไม่รู้เรียกถูกหรือเปล่า) ซะเลย โดยทำตามลิงค์ข้างล่างนี้ครับ</p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%A5%E0%B9%87%E0%B8%AD%E0%B8%84_torrent_%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#Network_Infrastructor" ref="toc"><span class="tocnumber">1</span> <span class="toctext">Network Infrastructor</span></a></li>
<li class="toclevel-1"><a href="./#Program_Installation_and_Configuration" ref="toc"><span class="tocnumber">2</span> <span class="toctext">Program Installation and Configuration</span></a>
<ul>
<li class="toclevel-2"><a href="./#Routing_Server" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">Routing Server</span></a>
<ul>
<li class="toclevel-3"><a href="./#Network_Interface_configuration" ref="toc"><span class="tocnumber">2.1.1</span> <span class="toctext">Network Interface configuration</span></a></li>
<li class="toclevel-3"><a href="./#Network_Firewall" ref="toc"><span class="tocnumber">2.1.2</span> <span class="toctext">Network Firewall</span></a></li>
<li class="toclevel-3"><a href="./#Bash_script" ref="toc"><span class="tocnumber">2.1.3</span> <span class="toctext">Bash script</span></a></li>
<li class="toclevel-3"><a href="./#DHCP" ref="toc"><span class="tocnumber">2.1.4</span> <span class="toctext">DHCP</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.82.E0.B9.89.E0.B8.AD.E0.B8.94.E0.B8.B5_.E0.B8.82.E0.B9.89.E0.B8.AD.E0.B9.80.E0.B8.AA.E0.B8.B5.E0.B8.A2" ref="toc"><span class="tocnumber">3</span> <span class="toctext">ข้อดี ข้อเสีย</span></a>
<ul>
<li class="toclevel-2"><a href="./#.E0.B8.82.E0.B9.89.E0.B8.AD.E0.B8.94.E0.B8.B5" ref="toc"><span class="tocnumber">3.1</span> <span class="toctext">ข้อดี</span></a></li>
<li class="toclevel-2"><a href="./#.E0.B8.82.E0.B9.89.E0.B8.AD.E0.B9.80.E0.B8.AA.E0.B8.B5.E0.B8.A2" ref="toc"><span class="tocnumber">3.2</span> <span class="toctext">ข้อเสีย</span></a></li>
</ul>
</li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name="Network_Infrastructor" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Network Infrastructor </span></h2>
<ol>
<li> Gateway router&nbsp;: adsl เราเตอร์ทั่วไป กำหนด ip เป็น 192.168.0.2 (เป็นอย่างอื่นได้ 192.168.0.X แต่ต้องตั้งค่าอื่นให้ตรงตามนี้ด้วย) ซึ่ง adsl router แต่ละรุ่นจะมีวิธีตั่งค่า gateway ที่แตกต่างกัน
</li>
<li> Routing server&nbsp;: เนื่องจากคุณสมบัติของ Gateway ถึงแม้จะมันเรียกกันว่า router ก็ตาม แต่ไม่มีคุณสมบัติในการ route หาเส้นทางแต่อย่างใด ดังนั้นจึงจำเป็นต้องใช้ PC หรือเครื่องคอมพิวเตอร์อื่นในการทำการหาเส้นทางแทน ไม่จำเป็นต้องแรง เพราะของผมที่ใช้งานอยู่ก็ PIII ram 128MB ก็ใช้ได้ แต่ควรมี UPS ซักหน่อยเพื่อความเสถียร
</li>
<li> Client&nbsp;: เครื่อง PC หรือ Notebook ของผู้ใช้งาน
</li>
</ol>
<p><a name="Program_Installation_and_Configuration" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Program Installation and Configuration </span></h2>
<p><a name="Routing_Server" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> Routing Server </span></h3>
<p>ติดตั้งโปรแกรมสำคัญในเรื่อง Routing server ซึ่งในที่นี้จะใช้ OS เป็น Ubunutu(Linux) ซึ่งจะใช้ Linux ตัวอื่นก็ไม่ผิด แต่อาจมี configuration file ของบางโปรแกรมอยู่ไม่ตรงกัน
</p>
<p><a name="Network_Interface_configuration" href="http://wiki.memoball.info/"></a><br />
<h4> <span class="mw-headline"> Network Interface configuration </span></h4>
<pre>$ sudo vim /etc/network/interfaces</pre>
<p>ตั้งค่าเป็น
</p>
<pre>
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp

auto eth0
iface eth0 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        network 192.168.0.0
        gateway 192.168.0.2

auto eth0:1
iface eth0:1 inet static
        address 192.168.1.1
        netmask 255.255.255.0
        network 192.168.1.0
        #firewall configuration
        pre-up sh /etc/network/firewall/firewall.sh
</pre>
<p><a name="Network_Firewall" href="http://wiki.memoball.info/"></a><br />
<h4> <span class="mw-headline"> Network Firewall </span></h4>
<p>สร้าง diretory ชื่อ firewall ใน /etc/network/ หรือที่ไหนก็ได้แต่อย่าลืมเปลี่ยนบรรทัดสุดท้านใน interfaces ให้ตรงด้วย
</p>
<pre>
/etc/network$ sudo mkdir firewall
/etc/network$ cd firewall
/etc/network/firewall$ sudo vim torrent-block.iptables
</pre>
<pre>
# Generated by iptables-save v1.4.0 on Sat Jan 10 23:19:36 2009
*filter
:INPUT ACCEPT [1148:92586]
:FORWARD DROP [1106:549432]
:OUTPUT ACCEPT [835:103625]

# open icmp packet
-A FORWARD -i eth0 -p icmp -j ACCEPT
-A FORWARD -i eth0:1 -p icmp -j ACCEPT 

# open forward tcp port
-A FORWARD -p tcp --dport 20 -j ACCEPT
-A FORWARD -p tcp --sport 20 -j ACCEPT
-A FORWARD -p tcp --dport 21 -j ACCEPT
-A FORWARD -p tcp --sport 21 -j ACCEPT
-A FORWARD -p tcp --dport 22 -j ACCEPT
-A FORWARD -p tcp --sport 22 -j ACCEPT
-A FORWARD -p tcp --dport 23 -j ACCEPT
-A FORWARD -p tcp --sport 23 -j ACCEPT
-A FORWARD -p tcp --dport 25 -j ACCEPT
-A FORWARD -p tcp --sport 25 -j ACCEPT
-A FORWARD -p udp --dport 53 -j ACCEPT
-A FORWARD -p udp --sport 53 -j ACCEPT
-A FORWARD -p tcp --dport 53 -j ACCEPT
-A FORWARD -p tcp --sport 53 -j ACCEPT
-A FORWARD -p tcp --dport 80 -j ACCEPT
-A FORWARD -p tcp --sport 80 -j ACCEPT
-A FORWARD -p tcp --dport 443 -j ACCEPT
-A FORWARD -p tcp --sport 443 -j ACCEPT
-A FORWARD -p tcp --dport 88 -j ACCEPT
-A FORWARD -p tcp --sport 88 -j ACCEPT
-A FORWARD -p tcp --dport 135:139 -j ACCEPT
-A FORWARD -p tcp --sport 135:139 -j ACCEPT
-A FORWARD -p tcp --dport 445 -j ACCEPT
-A FORWARD -p tcp --sport 445 -j ACCEPT
-A FORWARD -p tcp -s 192.168.0.0/24 -j ACCEPT
-A FORWARD -p tcp -d 192.168.0.0/24 -j ACCEPT
COMMIT
# Completed on Sat Jan 10 23:19:36 2009

# Generated by iptables-save v1.4.0 on Sat Jan 10 23:19:36 2009
*nat <img src='http://www.memoball.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> REROUTING ACCEPT [166:14287] <img src='http://www.memoball.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> OSTROUTING ACCEPT [3:337]
:OUTPUT ACCEPT [3:337]
-A POSTROUTING -s 192.168.1.0/24 -o eth0 -j SNAT --to-source 192.168.0.1
COMMIT
# Completed on Sat Jan 10 23:19:36 2009
</pre>
<p><a name="Bash_script" href="http://wiki.memoball.info/"></a><br />
<h4> <span class="mw-headline"> Bash script </span></h4>
<p>สร้าง Bash script อย่างง่ายเพื่อ run command หรือจะเรียกใน shell ตามคำสั่งต่อไปนี้ได้เลย
</p>
<pre>
# Add static static route
# if-UP
route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.1 dev eth0
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0:1
iptables-restore /etc/network/firewall/torrent-block.iptables
</pre>
<p><a name="DHCP" href="http://wiki.memoball.info/"></a><br />
<h4> <span class="mw-headline"> DHCP </span></h4>
<p>เพื่อจะให้เครื่อง server ของเราแจก ip ได้โดยอัตโนมัติ<br />
ติดตั้ง dhcpd3
</p>
<pre>
$ sudo apt-get install dhcp3-server
$ sudo vim /etc/dhcp3/dhcpd.conf
</pre>
<p>ตั้งค่า
</p>
<pre>
# Sample configuration file for ISC dhcpd for Debian
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name &quot;example.org&quot;;
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

#subnet 10.152.187.0 netmask 255.255.255.0 {
#}

# This is a very basic subnet declaration.

# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.50 192.168.1.130;
  option domain-name-servers 58.64.124.150;
# option domain-name &quot;internal.example.org&quot;;
  option routers 192.168.1.1;
  option broadcast-address 192.168.1.255;
  default-lease-time 600;
  max-lease-time 7200;
}
</pre>
<pre>
$ sudo /etc/init.d/dhcp3-server start
</pre>
<p><a name=".E0.B8.82.E0.B9.89.E0.B8.AD.E0.B8.94.E0.B8.B5_.E0.B8.82.E0.B9.89.E0.B8.AD.E0.B9.80.E0.B8.AA.E0.B8.B5.E0.B8.A2" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> ข้อดี ข้อเสีย </span></h2>
<p><a name=".E0.B8.82.E0.B9.89.E0.B8.AD.E0.B8.94.E0.B8.B5" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> ข้อดี </span></h3>
<ol>
<li> สร้างง่าย
</li>
<li> ต้นทุนต่ำ เพราะไม่ต้องลงทุนมาก มีเครื่องเก่าก็เอามาประยุกต์ใช้ได้
</li>
</ol>
<p><a name=".E0.B8.82.E0.B9.89.E0.B8.AD.E0.B9.80.E0.B8.AA.E0.B8.B5.E0.B8.A2" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> ข้อเสีย </span></h3>
<ol>
<li> ถ้าผู้ใช้มีความรู้มากหน่อย ก็จะสามารถหาช่องทางออกช่องอื่นได้ง่าย เพราะยังดีช่องโหว่อยู่มีเยอะให้ออก
</li>
</ol>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 35/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:36-0!1!0!!th!2!edit=0 and timestamp 20090825115815 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%A5%E0%B9%87%E0%B8%AD%E0%B8%84_torrent_%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2">http://wiki.memoball.info/index.php/การบล็อค_torrent_อย่างง่าย</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:Network&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:Network (ยังไม่ได้สร้าง)">Network</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
<p>ส่วนใครจะตั้งเวลาปิดเปิด torrent ก็ใช้ crontab รัน script เอาครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/03/%e0%b8%81%e0%b8%b2%e0%b8%a3-block-torrent-%e0%b8%ad%e0%b8%a2%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN Keywords และการใช้คำสั่ง set properties (setprops)</title>
		<link>http://www.memoball.info/02/svn-keywords/</link>
		<comments>http://www.memoball.info/02/svn-keywords/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 10:09:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Trac & SVN]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=180</guid>
		<description><![CDATA[วันนี้นั่งเขียน auto-props ของ svn อยู่  ก็เลยเอา keywords ของ svn มาใส่เก็บไว้ใน wiki จะได้ง่ายต่อการค้นหา 
มาอัพเดตในส่วนของ keywords (Tue Aug 18,2009) ใหม่ โดยจะเพิ่มส่วนของการใช้งานคำสั่ง เพราะเพิ่งค้นพบว่าตัวเองชอบการใช้ command line มากกว่าการใช้ UI ซึ่งอาจเป็นเพราะใช้ Ubuntu Destop/Server เสียจนชิน อีกทั้งการใช้คำสั่งบางอย่าง สามารถทำงานได้สะดวกกว่าการใช้ UI ดังนั้นในที่นี้ จึงจะกล่างถึงแต่เฉพาะการใช้งาน Set proporties ใน svn เท่านั้น


จาก WikiBall


			




เนื้อหา


1 Command

1.1 propset
1.2 propedit
1.3 proplist


2 Keywords

2.1 Date
2.2 Revision
2.3 Author
2.4 HeadURL
2.5 Id


3 ขอบคุณข้อมูลดีๆ จาก ref




 if (window.showTocToggle) [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้นั่งเขียน auto-props ของ svn อยู่  ก็เลยเอา keywords ของ svn มาใส่เก็บไว้ใน wiki จะได้ง่ายต่อการค้นหา </p>
<p>มาอัพเดตในส่วนของ keywords (Tue Aug 18,2009) ใหม่ โดยจะเพิ่มส่วนของการใช้งานคำสั่ง เพราะเพิ่งค้นพบว่าตัวเองชอบการใช้ command line มากกว่าการใช้ UI ซึ่งอาจเป็นเพราะใช้ Ubuntu Destop/Server เสียจนชิน อีกทั้งการใช้คำสั่งบางอย่าง สามารถทำงานได้สะดวกกว่าการใช้ UI ดังนั้นในที่นี้ จึงจะกล่างถึงแต่เฉพาะการใช้งาน Set proporties ใน svn เท่านั้น<br />
<span id="more-180"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Svn_keyword_and_setprops">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#Command" ref="toc"><span class="tocnumber">1</span> <span class="toctext">Command</span></a>
<ul>
<li class="toclevel-2"><a href="./#propset" ref="toc"><span class="tocnumber">1.1</span> <span class="toctext">propset</span></a></li>
<li class="toclevel-2"><a href="./#propedit" ref="toc"><span class="tocnumber">1.2</span> <span class="toctext">propedit</span></a></li>
<li class="toclevel-2"><a href="./#proplist" ref="toc"><span class="tocnumber">1.3</span> <span class="toctext">proplist</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#Keywords" ref="toc"><span class="tocnumber">2</span> <span class="toctext">Keywords</span></a>
<ul>
<li class="toclevel-2"><a href="./#Date" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">Date</span></a></li>
<li class="toclevel-2"><a href="./#Revision" ref="toc"><span class="tocnumber">2.2</span> <span class="toctext">Revision</span></a></li>
<li class="toclevel-2"><a href="./#Author" ref="toc"><span class="tocnumber">2.3</span> <span class="toctext">Author</span></a></li>
<li class="toclevel-2"><a href="./#HeadURL" ref="toc"><span class="tocnumber">2.4</span> <span class="toctext">HeadURL</span></a></li>
<li class="toclevel-2"><a href="./#Id" ref="toc"><span class="tocnumber">2.5</span> <span class="toctext">Id</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.82.E0.B8.AD.E0.B8.9A.E0.B8.84.E0.B8.B8.E0.B8.93.E0.B8.82.E0.B9.89.E0.B8.AD.E0.B8.A1.E0.B8.B9.E0.B8.A5.E0.B8.94.E0.B8.B5.E0.B9.86_.E0.B8.88.E0.B8.B2.E0.B8.81_ref" ref="toc"><span class="tocnumber">3</span> <span class="toctext">ขอบคุณข้อมูลดีๆ จาก ref</span></a></li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name="Command" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Command </span></h2>
<p><a name="propset" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> propset </span></h3>
<p>ใช้คำสั่ง propset เพื่อทำการสร้างค่า properties ใหม่ให้กับ file ตังตัวอย่างการ set ในส่วนของ copyright โดยชื่อ file สามารถใช้ regular expression ได้ด้วย ซึ่งการใช้ regular expression ใน svn แบบ UI เป็นเรื่องที่ทำยากมาก
</p>
<pre>
$ svn propset copyright '(c) 2003 Red-Bean Software' calc/button.c
property 'copyright' set on 'calc/button.c'
</pre>
<p>ด้วอย่างด้านล่าง จะเป็นการเปลี่ยนหมดทุกไฟล์ ใน directory
</p>
<pre>
$ svn propset svn:keywords 'Author Date Id Revision HeadURL' *
</pre>
<p><a name="propedit" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> propedit </span></h3>
<p><a name="proplist" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> proplist </span></h3>
<p>proplist ใช้สำหรับแสดง properties ใน file ในตัวอย่างต้านล่างเป็นการดู properties ทีละหลายๆ ไฟล์ โดยสามารถเลือกดูทีละ file โดยเปลี่ยนจาก * เป็นชื่อ<br />
เราใช้ &#8211;verbose สำหรับแสดง value ใน properties ต่างๆ ซึ่งถ้าเราไม่ใส่ เอาพุตที่ออกมานั้นจะเป็นเฉพาะชื่อ properties ที่ทำการตั้งไว้เท่านั้น
</p>
<pre>
$ svn proplist --verbose *
Properties on 'gcp_addressbook.ext.php':
  svn:keywords&nbsp;: Author Date Id Revision HeadURL
Properties on 'gcp_all.ext.php':
  svn:keywords&nbsp;: Author Date Id Revision HeadURL
Properties on 'gcp_compose.ext.php':
  svn:keywords&nbsp;: Author Date Id Revision HeadURL
Properties on 'gcp_list.ext.php':
  svn:keywords&nbsp;: Author Date Id Revision HeadURL
Properties on 'gcp_login.ext.php':
  svn:keywords&nbsp;: Author Date Id Revision HeadURL
Properties on 'gcp_mail.ext.php':
  svn:keywords&nbsp;: Author Date Id Revision HeadURL
Properties on 'gcp_settings.ext.php':
  svn:keywords&nbsp;: Author Date Id Revision HeadURL
</pre>
<p><a name="Keywords" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> Keywords </span></h2>
<p>การใส่ keyword ใน file นั้น สามารถทำได้โดยการใส่ข้อความตามรูปแบบ ชื่อ keyword ที่ต้องการระหว่าง $ ดังต่อไปนี้
</p>
<pre>
$Revision$
$Id$
</pre>
<p>ไม่ต้องใส่ค่าสงไป เพราะค่าที่ได้จะถูกใส่โดยอัตโนมัติ
</p>
<p><a name="Date" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">Date</span></h3>
<p>สำหรับใส่วันที่ที่การเปลี่ยนแปลงไฟล์ ใน revision นั้นๆ หรือใช้ LastChangedDate. แทนก็ได้ ซึ่งจะให้ผลดังตัวอย่าง
</p>
<pre>$Date: 2002-07-22 21:42:37 -0700 (Mon, 22 Jul 2002) $ </pre>
<p><a name="Revision" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">Revision</span></h3>
<p>สำหรับใส่เลข revision หรือใช้  LastChangedRevision หรือ Rev แทนก็ได้
</p>
<pre>$Revision: 144 $</pre>
<p><a name="Author" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">Author</span></h3>
<p>สำหรับใส่ชื่อผู้เขียนข้อมูลนี้ขึ้น หรือใช้ LastChangedBy แทนก็ได้
</p>
<pre>$Author: harry $</pre>
<p><a name="HeadURL" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">HeadURL</span></h3>
<p>สำหรับใส่ URL หรือที่อยู่ไฟล์ (ในตำแหน่งสุดท้าย ไม่ขึ้นอยู่กับว่าจะย้ายหรือคัดลอกมาจากไหน) หรือใช้ URL แทนก็ได้
</p>
<pre>$HeadURL: http://svn.collab.net/repos/trunk/README $</pre>
<p><a name="Id" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline">Id</span></h3>
<p>ใส่ทุกอย่างที่จำเป็นต้องมี ดูได้ดังตัวอย่าง คือ ชื่อไฟล์ Revision วันที่และเวลาที่ทำการเปลี่ยนแปลง และผู้เขียน ตามลำดับ
</p>
<pre>$Id: calc.c 148 2002-07-28 21:30:43Z sally $</pre>
<p>
</p>
<p><a name=".E0.B8.82.E0.B8.AD.E0.B8.9A.E0.B8.84.E0.B8.B8.E0.B8.93.E0.B8.82.E0.B9.89.E0.B8.AD.E0.B8.A1.E0.B8.B9.E0.B8.A5.E0.B8.94.E0.B8.B5.E0.B9.86_.E0.B8.88.E0.B8.B2.E0.B8.81_ref" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> ขอบคุณข้อมูลดีๆ จาก ref </span></h2>
<ul>
<li> <a href="http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.4" class="external free" title="http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.4" rel="nofollow">http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.4</a>
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 39/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:21-0!1!0!!th!2!edit=0 and timestamp 20090825115816 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Svn_keyword_and_setprops">http://wiki.memoball.info/index.php/Svn_keyword_and_setprops</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:SVN&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:SVN (ยังไม่ได้สร้าง)">SVN</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/02/svn-keywords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
