<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>वीर &#187; linux</title>
	<atom:link href="http://blog.vee-u.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vee-u.com</link>
	<description>Vee Satayamas; วีร์ สัตยมาศ</description>
	<lastBuildDate>Wed, 08 Jul 2009 10:13:48 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>th</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
		<url>http://www.gravatar.com/blavatar/bd3c818634c0a8caaaaec901dffff9e0?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>वीर &#187; linux</title>
		<link>http://blog.vee-u.com</link>
	</image>
			<item>
		<title>latex แบบมีภาษาไทยนิดๆ หน่อยๆ และไม่อยากให้ภาษาอื่นเปลี่ยน font</title>
		<link>http://blog.vee-u.com/2009/06/03/latexthai/</link>
		<comments>http://blog.vee-u.com/2009/06/03/latexthai/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 11:41:08 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[latin alphabet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[thai]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=1133</guid>
		<description><![CDATA[ปกติใช้ latex แล้วสร้าง pdf ออกมาก็จะได้ตัวหนังสือหน้าตาแบบนี้ 

แต่พอใส่ภาษาไทยเข้าไปแล้วหน้าตามันเปลี่ยนไป

อาจจะไม่ค่อยเห็นว่ามันเปลี่ยนเท่าไหร่ ดูที่หางๆ ของตัว T อาจจะชัดที่สุด 
แต่เราก็มีท่าแก้ให้ latin alphabet มันหน้าตาเหมือนเดิม

แบบนี้

\documentclass[letter]{article}
\usepackage[thai,english]{babel}
%\usepackage{thswitch}
\begin{document}
Test Foo
 \thaitext{เป็นแผนงาน}
\end{document}

เอา thswitch ออก เปลี่ยนบรรทัดที่มี babel จาก [english,thai] เป็น [thai,english] ส่วนที่เป็นภาษาไทยก็ใส่ \thaitext{&#8230;} เข้าไป 
คุ้นว่าเหมือนเคยเขียนไว้ใน LTN Plone แต่สงสัยไม่ได้เก็บไว้ หรือเก็บไว้แล้วหาไม่เจอ หรือไม่เคยเขียนเลย  แต่จำได้ว่าเคยทำแบบนี้ราวๆ พ.ศ. 2546 &#8230;
 Tagged: font, gnu/linux, latex, latin alphabet, linux, thai      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=1133&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ปกติใช้ latex แล้วสร้าง pdf ออกมาก็จะได้ตัวหนังสือหน้าตาแบบนี้ </p>
<p><a href="http://www.flickr.com/photos/vscript/3591413407/" title="e1.png by veer8, on Flickr"><img src="http://farm3.static.flickr.com/2424/3591413407_06805f24be_o.png" width="189" height="49" alt="e1.png" /></a></p>
<p>แต่พอใส่ภาษาไทยเข้าไปแล้วหน้าตามันเปลี่ยนไป</p>
<p><a href="http://www.flickr.com/photos/vscript/3591414695/" title="e2.png by veer8, on Flickr"><img src="http://farm3.static.flickr.com/2432/3591414695_7fbb4d5582_o.png" width="440" height="57" alt="e2.png" /></a></p>
<p>อาจจะไม่ค่อยเห็นว่ามันเปลี่ยนเท่าไหร่ ดูที่หางๆ ของตัว T อาจจะชัดที่สุด </p>
<p>แต่เราก็มีท่าแก้ให้ latin alphabet มันหน้าตาเหมือนเดิม</p>
<p><a href="http://www.flickr.com/photos/vscript/3591414931/" title="e3.png by veer8, on Flickr"><img src="http://farm4.static.flickr.com/3365/3591414931_22afcf059c_o.png" width="440" height="72" alt="e3.png" /></a></p>
<p>แบบนี้</p>
<pre>
\documentclass[letter]{article}
\usepackage[thai,english]{babel}
%\usepackage{thswitch}
\begin{document}
Test Foo
 \thaitext{เป็นแผนงาน}
\end{document}
</pre>
<p>เอา thswitch ออก เปลี่ยนบรรทัดที่มี babel จาก [english,thai] เป็น [thai,english] ส่วนที่เป็นภาษาไทยก็ใส่ \thaitext{&#8230;} เข้าไป </p>
<p>คุ้นว่าเหมือนเคยเขียนไว้ใน LTN Plone แต่สงสัยไม่ได้เก็บไว้ หรือเก็บไว้แล้วหาไม่เจอ หรือไม่เคยเขียนเลย  แต่จำได้ว่าเคยทำแบบนี้ราวๆ พ.ศ. 2546 &#8230;</p>
 Tagged: font, gnu/linux, latex, latin alphabet, linux, thai <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/1133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/1133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/1133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/1133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/1133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/1133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/1133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/1133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/1133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/1133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=1133&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2009/06/03/latexthai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2424/3591413407_06805f24be_o.png" medium="image">
			<media:title type="html">e1.png</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2432/3591414695_7fbb4d5582_o.png" medium="image">
			<media:title type="html">e2.png</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3365/3591414931_22afcf059c_o.png" medium="image">
			<media:title type="html">e3.png</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenOffice.org มี Grammar checker แล้ว</title>
		<link>http://blog.vee-u.com/2009/05/09/ooo_grammar_checker/</link>
		<comments>http://blog.vee-u.com/2009/05/09/ooo_grammar_checker/#comments</comments>
		<pubDate>Fri, 08 May 2009 20:54:10 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[3.1]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[grammar checker]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OO.o]]></category>
		<category><![CDATA[openoffice.org]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Writer]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=1082</guid>
		<description><![CDATA[OpenOffice.org มี Grammar checker แล้ว. จริงๆ แล้วคงจะมีนานแล้ว แต่ผมพึ่งรู้หลังจากอ่าน http://www.openoffice.org/dev_docs/features/3.1/index.html ก็เลยไป เอา LanguageTool ที่เป็น extension มาลง. แล้วก็ลองเขียนอะไรผิดๆ ใส่เข้าไปก็ได้ผลแบบนี้.

ไม่รู้ว่ากรณีผิดยากๆ กว่านี้มันจะตรวจเจอหรือเปล่า. แต่ว่าตรวจได้เท่านี้ก็เป็นประโยชน์แล้ว สำหรับผมนะครับ.  อีกอย่างคือ extension รวมทั้ง LanguageTool หาจากได้ http://extensions.services.openoffice.org/
ป.ล. ผมใช้ Ubuntu 8.04 แต่ว่าลง OO.o จาก PPA.
 Tagged: 3.1, gnu/linux, grammar checker, linux, OO.o, openoffice.org, ubuntu, Writer      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=1082&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>OpenOffice.org มี Grammar checker แล้ว. จริงๆ แล้วคงจะมีนานแล้ว แต่ผมพึ่งรู้หลังจากอ่าน <a href="http://www.openoffice.org/dev_docs/features/3.1/index.html">http://www.openoffice.org/dev_docs/features/3.1/index.html</a> ก็เลยไป เอา <a href="http://www.languagetool.org/">LanguageTool</a> ที่เป็น extension มาลง. แล้วก็ลองเขียนอะไรผิดๆ ใส่เข้าไปก็ได้ผลแบบนี้.</p>
<p><a href="http://www.flickr.com/photos/vscript/3513964022/" title="ooo_grammar by veer8, on Flickr"><img src="http://farm4.static.flickr.com/3394/3513964022_410f826e69_o.png" width="549" height="539" alt="ooo_grammar" /></a></p>
<p>ไม่รู้ว่ากรณีผิดยากๆ กว่านี้มันจะตรวจเจอหรือเปล่า. แต่ว่าตรวจได้เท่านี้ก็เป็นประโยชน์แล้ว สำหรับผมนะครับ.  อีกอย่างคือ extension รวมทั้ง LanguageTool หาจากได้ <a href="http://extensions.services.openoffice.org/">http://extensions.services.openoffice.org/</a></p>
<p>ป.ล. ผมใช้ Ubuntu 8.04 แต่ว่าลง OO.o จาก PPA.</p>
 Tagged: 3.1, gnu/linux, grammar checker, linux, OO.o, openoffice.org, ubuntu, Writer <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/1082/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/1082/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/1082/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/1082/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/1082/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/1082/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/1082/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/1082/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/1082/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/1082/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=1082&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2009/05/09/ooo_grammar_checker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3394/3513964022_410f826e69_o.png" medium="image">
			<media:title type="html">ooo_grammar</media:title>
		</media:content>
	</item>
		<item>
		<title>เกิดอะไรขึ้นกับ fgets ถ้า buffer เล็กกว่าความยาวบรรทัด</title>
		<link>http://blog.vee-u.com/2009/03/31/%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94%e0%b8%ad%e0%b8%b0%e0%b9%84%e0%b8%a3%e0%b8%82%e0%b8%b6%e0%b9%89%e0%b8%99%e0%b8%81%e0%b8%b1%e0%b8%9a-fgets-%e0%b8%96%e0%b9%89%e0%b8%b2-buffer-%e0%b9%80%e0%b8%a5/</link>
		<comments>http://blog.vee-u.com/2009/03/31/%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94%e0%b8%ad%e0%b8%b0%e0%b9%84%e0%b8%a3%e0%b8%82%e0%b8%b6%e0%b9%89%e0%b8%99%e0%b8%81%e0%b8%b1%e0%b8%9a-fgets-%e0%b8%96%e0%b9%89%e0%b8%b2-buffer-%e0%b9%80%e0%b8%a5/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 15:28:39 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[behavior]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[fgets]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=994</guid>
		<description><![CDATA[เวลาเขียนภาษา C เราใช้ fgets ต้องระบุด้วยว่า buffer ขนาดเท่าไหร ประมาณนี้

char buf[80];
fgets(buf, 80, fp);

จากตัวอย่างข้างบนถ้าบรรทัดยาวกว่า 79 byte (ต้องเหลือที่ไว้ใส่ &#8221; ด้วย) จะเกิดอะไรขึ้น  เท่าที่ลองดู fgets มันก็อ่านได้อยู่ดี อ่านได้แค่ไหนก็เอามาแค่นั้น ไม่มีอะไร return ออกมาพิเศษ
แต่ทำอย่างไรจะตรวจสอบได้ว่าอ่านมาไม่หมด เท่าที่คิดได้ตอนนี้คือดูว่าตัวสุดท้ายใน buf เป็น newline หรือเปล่า ถ้าไม่ใช่ก็อาจจะอ่านมาไม่หมด  แต่นี้ลองใน Ubuntu 8.04 นะครับ อาจจะมีระบบอื่นๆ กรณีอื่นๆ ที่ต่างออกไป
 Tagged: behavior, c++, fgets, gnu/linux, linux, ubuntu      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=994&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>เวลาเขียนภาษา C เราใช้ fgets ต้องระบุด้วยว่า buffer ขนาดเท่าไหร ประมาณนี้</p>
<pre name="code" class="c">
char buf[80];
fgets(buf, 80, fp);
</pre>
<p>จากตัวอย่างข้างบนถ้าบรรทัดยาวกว่า 79 byte (ต้องเหลือที่ไว้ใส่ &#8221; ด้วย) จะเกิดอะไรขึ้น  เท่าที่ลองดู fgets มันก็อ่านได้อยู่ดี อ่านได้แค่ไหนก็เอามาแค่นั้น ไม่มีอะไร return ออกมาพิเศษ</p>
<p>แต่ทำอย่างไรจะตรวจสอบได้ว่าอ่านมาไม่หมด เท่าที่คิดได้ตอนนี้คือดูว่าตัวสุดท้ายใน buf เป็น newline หรือเปล่า ถ้าไม่ใช่ก็อาจจะอ่านมาไม่หมด  แต่นี้ลองใน Ubuntu 8.04 นะครับ อาจจะมีระบบอื่นๆ กรณีอื่นๆ ที่ต่างออกไป</p>
 Tagged: behavior, c++, fgets, gnu/linux, linux, ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/994/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/994/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/994/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=994&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2009/03/31/%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94%e0%b8%ad%e0%b8%b0%e0%b9%84%e0%b8%a3%e0%b8%82%e0%b8%b6%e0%b9%89%e0%b8%99%e0%b8%81%e0%b8%b1%e0%b8%9a-fgets-%e0%b8%96%e0%b9%89%e0%b8%b2-buffer-%e0%b9%80%e0%b8%a5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>
	</item>
		<item>
		<title>เริ่มต้นใช้ Lua ต่อกับภาษาซี</title>
		<link>http://blog.vee-u.com/2009/03/26/lua/</link>
		<comments>http://blog.vee-u.com/2009/03/26/lua/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 12:45:20 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[extending]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=958</guid>
		<description><![CDATA[วันนี้อยากลองใช้ Lua ดูเพราะว่าขี้เกียจ bind อะไรๆ กับ Python เหนื่อย &#8230; ใช้ swig ก็งง (พยายามหาเหตุผลมาเล่น Lua)  ก็เลย download Lua 5.1.4 มา แล้วก็ก็สั่ง make linux local สิ่งที่ได้จากการ build ก็อยู่ใน folder เดิมๆ หลังจากนั้นผมก็ copy พวก liblua.a, *.h ทั้งหลาย, และ lua จากใน bin ไปไว้ใน folder เดียวกันหมดเลย สร้าง lua_hrule.c ขึ้นมา ทำอะไรไม่เป็นก็เขียนแค่นี้
lua_hrule.c

#include &#34;lua.h&#34;
#include &#34;lauxlib.h&#34;

int
luaopen_hrule(lua_State *L)
{
    return 1;
}

แล้วก็ Makefile [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=958&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>วันนี้อยากลองใช้ Lua ดูเพราะว่าขี้เกียจ bind อะไรๆ กับ Python เหนื่อย &#8230; ใช้ swig ก็งง (พยายามหาเหตุผลมาเล่น Lua)  ก็เลย download Lua 5.1.4 มา แล้วก็ก็สั่ง make linux local สิ่งที่ได้จากการ build ก็อยู่ใน folder เดิมๆ หลังจากนั้นผมก็ copy พวก liblua.a, *.h ทั้งหลาย, และ lua จากใน bin ไปไว้ใน folder เดียวกันหมดเลย สร้าง lua_hrule.c ขึ้นมา ทำอะไรไม่เป็นก็เขียนแค่นี้</p>
<p>lua_hrule.c</p>
<pre name="code" class="c">
#include &quot;lua.h&quot;
#include &quot;lauxlib.h&quot;

int
luaopen_hrule(lua_State *L)
{
    return 1;
}
</pre>
<p>แล้วก็ Makefile </p>
<pre>
CC=gcc
all:  hrule.so
hrule.so: lua_hrule.c
	$(CC) -shared -o hrule.so lua_hrule.c liblua.a
clean:
	rm -f  hrule.so
</pre>
<p>จริงๆ แล้ว Makefile ยาวกว่านี้แต่ build อย่างอื่นที่ไม่เกี่ยว พอสั่ง </p>
<pre>
make
</pre>
<p>เสร็จแล้ว ผมก็ได้ hrule.so ออกมา ก็เรียก lua แบบนี้</p>
<pre>
./lua
</pre>
<p>แล้วก็สั่ง</p>
<pre>require "hrule"</pre>
<p>ก็ใช้งานได้นะ ไม่มีข้อความอะไรรายงานข้อผิดพลาดออกมา &#8230; ตอนนี้ทำได้แค่นี้เอง เดี๋ยวเขียนต่อ :-P</p>
 Tagged: binding, c++, extending, gnu/linux, linux, lua, ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/958/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/958/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/958/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=958&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2009/03/26/lua/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>
	</item>
		<item>
		<title>เปิดเว็บไทใหญ่ได้แล้ว แต่อ่านไม่ออกนะ</title>
		<link>http://blog.vee-u.com/2009/03/13/%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94%e0%b9%80%e0%b8%a7%e0%b9%87%e0%b8%9a%e0%b9%84%e0%b8%97%e0%b9%83%e0%b8%ab%e0%b8%8d%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7-%e0%b9%81/</link>
		<comments>http://blog.vee-u.com/2009/03/13/%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94%e0%b9%80%e0%b8%a7%e0%b9%87%e0%b8%9a%e0%b9%84%e0%b8%97%e0%b9%83%e0%b8%ab%e0%b8%8d%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7-%e0%b9%81/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 17:38:41 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[taiyai]]></category>
		<category><![CDATA[ไทใหญ่]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=907</guid>
		<description><![CDATA[
เปิดเว็บดูได้แล้วกว่าจะลงฟอนท์ได้ ไป download มาจาก http://www.sitandread.net/archives/17 ที่ได้มาจากคุณ pongpan (ขอบคุณครับ).
ฟอนท์มาเป็น Font.exe เลย ถ้าใช้ Windows ก็คงสบาย แต่ผมไม่ได้ใช้ :-P. ก็เลยใช้ wine สั่ง wine Font.exe ก็ได้ฟอนท์ออกมาเอาไปใส่ใน $HOME/.fonts ปรับ Firefox มั่วๆ ตอนนี้ก็ยังงงอยู่ว่าปรับอย่างไร. ก็เปิดดูได้ซะงั้น.  
 Tagged: ไทใหญ่, firefox, font, gnu/linux, linux, taiyai, ubuntu      <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=907&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.flickr.com/photos/vscript/3348884703/" title="taiyaiweb by veer8, on Flickr"><img src="http://farm4.static.flickr.com/3606/3348884703_5719efc611_m.jpg" width="240" height="183" alt="taiyaiweb" /></a></p>
<p>เปิดเว็บดูได้แล้วกว่าจะลงฟอนท์ได้ ไป download มาจาก <a href="http://www.sitandread.net/archives/17">http://www.sitandread.net/archives/17</a> ที่ได้มาจากคุณ pongpan (ขอบคุณครับ).</p>
<p>ฟอนท์มาเป็น Font.exe เลย ถ้าใช้ Windows ก็คงสบาย แต่ผมไม่ได้ใช้ :-P. ก็เลยใช้ wine สั่ง wine Font.exe ก็ได้ฟอนท์ออกมาเอาไปใส่ใน $HOME/.fonts ปรับ Firefox มั่วๆ ตอนนี้ก็ยังงงอยู่ว่าปรับอย่างไร. ก็เปิดดูได้ซะงั้น.  </p>
 Tagged: ไทใหญ่, firefox, font, gnu/linux, linux, taiyai, ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/907/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=907&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2009/03/13/%e0%b9%80%e0%b8%9b%e0%b8%b4%e0%b8%94%e0%b9%80%e0%b8%a7%e0%b9%87%e0%b8%9a%e0%b9%84%e0%b8%97%e0%b9%83%e0%b8%ab%e0%b8%8d%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7-%e0%b9%81/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3606/3348884703_5719efc611_m.jpg" medium="image">
			<media:title type="html">taiyaiweb</media:title>
		</media:content>
	</item>
		<item>
		<title>Epson Stylus T11</title>
		<link>http://blog.vee-u.com/2009/01/24/epson-stylus-t11/</link>
		<comments>http://blog.vee-u.com/2009/01/24/epson-stylus-t11/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 13:28:24 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[epson]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[stylus]]></category>
		<category><![CDATA[t11]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=719</guid>
		<description><![CDATA[วันนี้ลุงบอกว่าซื้อ Printer มาใหม่ เป็น Epson Stylus T11 เพราะว่าหมึกถูกดี แต่ว่า Printer ไม่ได้ เวลาเอาไปใช้กับเครื่องที่ลง Linux TLE 9 ไว้. ผมก็เลยลองเอาเครื่องผมที่ลง Ubuntu 8.04 ไว้ไปลอง ก็พบว่าเครื่องก็มองเห็น printer นะทาง USB รู้ด้วยว่าเป็นรุ่นอะไร แต่ว่าไม่มี driver สำหรับรุ่นนี้. 
วันนี้ก็เลยมามาลองหาดูสักหน่อยว่ามีใครเคยเจอมาก่อนบ้าง ก็เจอวิธีที่
http://ubuntuforums.org/showthread.php?p=6071475 และ http://ubuntuforums.org/archive/index.php/t-964784.html. ดูผ่านๆ แล้วก็แอบยากนิดๆ เหมือนกัน. ก็เลยเอามาเก็บไว้ก่อน ไว้วันหลังไปลองทำดู.
แปลกดีที่ว่าชาวบ้านก็ดูเหมือนจะใช้ Debian/Ubuntu ลงในเครื่อง Desktop และ Laptop มากกว่า Distro อื่นๆ (อาจจะไม่จริงก็ได้) &#8230; แต่ว่า driver ก็มาเป็น RPM ซะงั้น &#8230; ถ้าผมซื้อ printer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=719&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>วันนี้ลุงบอกว่าซื้อ Printer มาใหม่ เป็น Epson Stylus T11 เพราะว่าหมึกถูกดี แต่ว่า Printer ไม่ได้ เวลาเอาไปใช้กับเครื่องที่ลง Linux TLE 9 ไว้. ผมก็เลยลองเอาเครื่องผมที่ลง Ubuntu 8.04 ไว้ไปลอง ก็พบว่าเครื่องก็มองเห็น printer นะทาง USB รู้ด้วยว่าเป็นรุ่นอะไร แต่ว่าไม่มี driver สำหรับรุ่นนี้. </p>
<p>วันนี้ก็เลยมามาลองหาดูสักหน่อยว่ามีใครเคยเจอมาก่อนบ้าง ก็เจอวิธีที่<br />
<a href="http://ubuntuforums.org/showthread.php?p=6071475">http://ubuntuforums.org/showthread.php?p=6071475</a> และ <a href="http://ubuntuforums.org/archive/index.php/t-964784.html">http://ubuntuforums.org/archive/index.php/t-964784.html</a>. ดูผ่านๆ แล้วก็แอบยากนิดๆ เหมือนกัน. ก็เลยเอามาเก็บไว้ก่อน ไว้วันหลังไปลองทำดู.</p>
<p>แปลกดีที่ว่าชาวบ้านก็ดูเหมือนจะใช้ Debian/Ubuntu ลงในเครื่อง Desktop และ Laptop มากกว่า Distro อื่นๆ (อาจจะไม่จริงก็ได้) &#8230; แต่ว่า driver ก็มาเป็น RPM ซะงั้น &#8230; ถ้าผมซื้อ printer เองก็คงแอบๆ เลี่ยงอะนะ รุ่นนี้ อย่างน้อยๆ ก็ช่วงนี้.</p>
 Tagged: epson, gnu/linux, linux, printer, stylus, t11, ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/719/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/719/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/719/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/719/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/719/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/719/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/719/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/719/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/719/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/719/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=719&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2009/01/24/epson-stylus-t11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>
	</item>
		<item>
		<title>cross processing effect ด้วย gimp</title>
		<link>http://blog.vee-u.com/2009/01/19/cross-processing-effect-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-gimp/</link>
		<comments>http://blog.vee-u.com/2009/01/19/cross-processing-effect-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-gimp/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 10:15:43 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[cross processing effect]]></category>
		<category><![CDATA[cross process]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=715</guid>
		<description><![CDATA[เห็นภาพของ มร.โชค ที่ http://mrchoke.multiply.com/photos/album/193/My_Way&#8230;#45 แล้วชอบใจ. จึงถามมร.โชคว่าทำอย่างไร มร.โชคว่าใช้ cross processing effect (ประมาณนั้น) ผลว่าได้เว็บนี้มา http://www.lilahpops.com/cross-processing-with-the-gimp/ เป็นวิธีทำ cross processing effect บน gimp.  ผมก็เลยจัดแจงทำตาม ได้ผลแบบภาพดอกทานตะวันข้างล่าง.

ชอบใจนัก ^_^ &#8230;
ป.ล. gimp เป็นซอฟต์แวร์เสรีเอาไว้ทำอะไรต่างๆ กับรูปภาพ มีทั้งบน gnu/linux, mac, windows ว่าไปก็คล้ายๆ photoshop แต่ว่าไม่ต้องซื้อหามาในราคาแพง แก้ไขปรับปรุงได้ตามใจ แถมใช้บน gnu/linux ได้เลยด้วย. 
 Tagged: cross process, cross processing effect, gimp, gnu/linux, howto, linux, tutorial, ubuntu     [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=715&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>เห็นภาพของ มร.โชค ที่ <a href="http://mrchoke.multiply.com/photos/album/193/My_Way...#45">http://mrchoke.multiply.com/photos/album/193/My_Way&#8230;#45</a> แล้วชอบใจ. จึงถามมร.โชคว่าทำอย่างไร มร.โชคว่าใช้ cross processing effect (ประมาณนั้น) ผลว่าได้เว็บนี้มา <a href="http://www.lilahpops.com/cross-processing-with-the-gimp/">http://www.lilahpops.com/cross-processing-with-the-gimp/</a> เป็นวิธีทำ <a href="http://en.wikipedia.org/wiki/Cross_processing">cross processing</a> effect บน <a href="http://www.gimp.org">gimp</a>.  ผมก็เลยจัดแจงทำตาม ได้ผลแบบภาพดอกทานตะวันข้างล่าง.</p>
<p><a href="http://www.flickr.com/photos/vscript/3209438904/" title="cross process by gimp by veer8, on Flickr"><img src="http://farm4.static.flickr.com/3325/3209438904_8206bcd0bf_m.jpg" width="240" height="180" alt="cross process by gimp" /></a></p>
<p>ชอบใจนัก ^_^ &#8230;</p>
<p>ป.ล. gimp เป็นซอฟต์แวร์เสรีเอาไว้ทำอะไรต่างๆ กับรูปภาพ มีทั้งบน gnu/linux, mac, windows ว่าไปก็คล้ายๆ photoshop แต่ว่าไม่ต้องซื้อหามาในราคาแพง แก้ไขปรับปรุงได้ตามใจ แถมใช้บน gnu/linux ได้เลยด้วย. </p>
 Tagged: cross process, cross processing effect, gimp, gnu/linux, howto, linux, tutorial, ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/715/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=715&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2009/01/19/cross-processing-effect-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-gimp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3325/3209438904_8206bcd0bf_m.jpg" medium="image">
			<media:title type="html">cross process by gimp</media:title>
		</media:content>
	</item>
		<item>
		<title>xmlrpc ด้วย python บน apache</title>
		<link>http://blog.vee-u.com/2008/12/18/xmlrpc-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-python-%e0%b8%9a%e0%b8%99-apache/</link>
		<comments>http://blog.vee-u.com/2008/12/18/xmlrpc-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-python-%e0%b8%9a%e0%b8%99-apache/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 06:53:28 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mod_wsgi]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wsgi]]></category>
		<category><![CDATA[xmlrpc]]></category>

		<guid isPermaLink="false">http://blog.vee-u.com/?p=672</guid>
		<description><![CDATA[xmlrpc ด้วย python บน apache ผ่าน mod_wsgi. ใช้ xmlrpc บน python เขียนง่ายมากเลย ทั้ง client และ server ดูตัวอย่างจาก http://docs.python.org/library/simplexmlrpcserver.html ได้
แต่ว่า simple server นี้เป็น standalone server แล้วผมก็เจอปัญหาอีกว่า พอเรียกใช้จากเครื่องอื่น ที่ไม่ใช่เครื่องเดียวกันแล้วมั้นช้าๆ ชอบกล เลยเปลี่ยนไปใช้ wsgi-xmlrpc แทน มีคนเขียนไว้ให้แล้วด้วยดีจัง ^_^. 
ทีแรกผมก็ลงโปรแกรมจาก easy_install เลย ใช้ easy_install wsgi_xmlrpc อะไรทำนองนี้ก็ลงได้ แต่เล่นไปเล่นมาเจอปัญหาภาษาไทย ก็เลยเอา source code จาก svn trunk ที่ google code มาใช้แทน ถึงตอนนี้ก็ยังใช้ได้ดีอยู่.  (วิธีใช้ mod_wsgi [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=672&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://en.wikipedia.org/wiki/XML-RPC">xmlrpc</a> ด้วย python บน apache ผ่าน mod_wsgi. ใช้ xmlrpc บน python เขียนง่ายมากเลย ทั้ง client และ server ดูตัวอย่างจาก <a href="http://docs.python.org/library/simplexmlrpcserver.html">http://docs.python.org/library/simplexmlrpcserver.html</a> ได้</p>
<p>แต่ว่า simple server นี้เป็น standalone server แล้วผมก็เจอปัญหาอีกว่า พอเรียกใช้จากเครื่องอื่น ที่ไม่ใช่เครื่องเดียวกันแล้วมั้นช้าๆ ชอบกล เลยเปลี่ยนไปใช้ <a href="http://code.google.com/p/wsgi-xmlrpc/">wsgi-xmlrpc</a> แทน มีคนเขียนไว้ให้แล้วด้วยดีจัง ^_^. </p>
<p>ทีแรกผมก็ลงโปรแกรมจาก easy_install เลย ใช้ easy_install wsgi_xmlrpc อะไรทำนองนี้ก็ลงได้ แต่เล่นไปเล่นมาเจอปัญหาภาษาไทย ก็เลยเอา source code จาก svn trunk ที่ google code มาใช้แทน ถึงตอนนี้ก็ยังใช้ได้ดีอยู่.  (วิธีใช้ mod_wsgi กับ userdir เข้าไปดูที่ <a href="http://blog.vee-u.com/2008/06/18/mod_wsgi_userdir_ubuntu/">http://blog.vee-u.com/2008/06/18/mod_wsgi_userdir_ubuntu/</a> ได้<br />
และ  <a href="http://blog.vee-u.com/tag/wsgi/">http://blog.vee-u.com/tag/wsgi/</a> ได้)</p>
<p>เพื่อที่ผมจะได้เอาไว้ดูเองในภายหลังด้วยจึงต้อง post ตัวอย่างสักหน่อย สมมุติ เขียน client แบบนี้</p>
<pre name="code" class="python">
# -*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding(&#039;utf-8&#039;) 

from xmlrpclib import ServerProxy
server = ServerProxy(&quot;http://localhost/test_service.wsgi&quot;, encoding=&quot;UTF-8&quot;)
print server.test_func(&quot;ดีจ๊ะ&quot;)
</pre>
<p>พอโปรแกรมทำงานแล้วได้ผลแบบนี้</p>
<pre>
ดีจ๊ะ ^_^
</pre>
<p>เวลาเขียน server ก็เขียนประมาณนี้ใน test_service.wsgi</p>
<pre name="code" class="python">
import site
import os

os.environ[&#039;PYTHON_EGG_CACHE&#039;] = &quot;/somewhere/egg&quot;
site.addsitedir(&quot;/home/vee/pyenv/WSGI-1/lib/python2.5/site-packages&quot;)

from wsgiref import simple_server
import wsgi_xmlrpc

def test_func(txt):
   return txt + &quot; ^_^&quot; 

application = wsgi_xmlrpc.WSGIXMLRPCApplication(methods=[test_func])
</pre>
<p>^_^</p>
 Tagged: apache, gnu/linux, linux, mod_wsgi, python, ubuntu, wsgi, xmlrpc <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/672/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=672&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2008/12/18/xmlrpc-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-python-%e0%b8%9a%e0%b8%99-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>
	</item>
		<item>
		<title>Python 3.0 release</title>
		<link>http://blog.vee-u.com/2008/12/04/python-30-release/</link>
		<comments>http://blog.vee-u.com/2008/12/04/python-30-release/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 17:16:41 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming language]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python 3.0]]></category>
		<category><![CDATA[python 3000]]></category>
		<category><![CDATA[python 3k]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://openil.wordpress.com/?p=652</guid>
		<description><![CDATA[เข้าไปดูได้ที่ http://docs.python.org/dev/3.0/whatsnew/3.0.html. ผมยังไม่ได้ลองใช้เลย แต่อ่านดูก็เป็นรุ่นที่มีการเปลี่ยนแปลงใหญ่โตที่เดียว คำสั่ง print ต้องใส่วงเล็บ เช่น print(10) แทนที่จะเป็น print 10 แบบแต่ก่อน. ใช้ list น้อยลงไปใช้ view กับ iterator แทนในหลายกรณี เช่น คำสั่ง map ก็ return iterator ออกแทน แบบนี้น่าจะ ประหยัด memory ขึ้นมั้ง.  เรื่อง unicode, syntax และอื่นๆ อีกมากมาย อ่านได้ที่ http://docs.python.org/dev/3.0/whatsnew/3.0.html. ไม่รู้มีอะไรมาช่วย migrate code จาก Python 2.x หรือเปล่า?  
ได้ข่าวผ่านมาทาง http://developers.slashdot.org/article.pl?sid=08%2F12%2F04%2F0420219&#38;from=rss
update: มีตัวแปลง code เก่าให้ใช้กับ Python 3.0 ด้วย นอกจากนั้นก็มีข่าวภาษาไทยด้วยที่ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=652&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>เข้าไปดูได้ที่ <a href="http://docs.python.org/dev/3.0/whatsnew/3.0.html">http://docs.python.org/dev/3.0/whatsnew/3.0.html</a>. ผมยังไม่ได้ลองใช้เลย แต่อ่านดูก็เป็นรุ่นที่มีการเปลี่ยนแปลงใหญ่โตที่เดียว คำสั่ง print ต้องใส่วงเล็บ เช่น print(10) แทนที่จะเป็น print 10 แบบแต่ก่อน. ใช้ list น้อยลงไปใช้ view กับ iterator แทนในหลายกรณี เช่น คำสั่ง map ก็ return iterator ออกแทน แบบนี้น่าจะ ประหยัด memory ขึ้นมั้ง.  เรื่อง unicode, syntax และอื่นๆ อีกมากมาย อ่านได้ที่ <a href="http://docs.python.org/dev/3.0/whatsnew/3.0.html">http://docs.python.org/dev/3.0/whatsnew/3.0.html</a>. ไม่รู้มีอะไรมาช่วย migrate code จาก Python 2.x หรือเปล่า?  </p>
<p>ได้ข่าวผ่านมาทาง <a href="http://developers.slashdot.org/article.pl?sid=08%2F12%2F04%2F0420219&amp;from=rss">http://developers.slashdot.org/article.pl?sid=08%2F12%2F04%2F0420219&amp;from=rss</a></p>
<p>update: มีตัวแปลง code เก่าให้ใช้กับ Python 3.0 ด้วย นอกจากนั้นก็มีข่าวภาษาไทยด้วยที่ <a href="http://www.blognone.com/node/9853">blognone</a></p>
<p>update2: มี dictionary comprehension ด้วยคล้ายๆ list comprehension น่าใช้มากมาย ^_^</p>
 Tagged: gnu/linux, linux, programming language, python, python 3.0, python 3000, python 3k, release, ubuntu <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/652/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/652/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/652/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=652&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2008/12/04/python-30-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>
	</item>
		<item>
		<title>dict api over http</title>
		<link>http://blog.vee-u.com/2008/12/04/dict-api-over-http/</link>
		<comments>http://blog.vee-u.com/2008/12/04/dict-api-over-http/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 09:53:40 +0000</pubDate>
		<dc:creator>वीर</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[dict protocol]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wsgi]]></category>

		<guid isPermaLink="false">http://openil.wordpress.com/?p=650</guid>
		<description><![CDATA[ผมอยากให้ basa-asa (ซึ่งเป็นโปรแกรมช่วยแปลภาษา เช่น ช่วยเปิด dictionary ให้ ไม่ใช่โปรแกรมแปลภาษาอัตโนมัติแบบ Google translation) เปิด dictionary ผ่าน dict protocol ได้ เพราะว่าจะได้สะดวกทั้ง dictionary ที่ download มาได้และ dictionary ของชาวบ้านที่เขาไม่ให้ download (ไม่รู้ว่าจริงๆ แล้วมีหรือเปล่า dictionary ที่ใช้ผ่าน dict protocol ได้แต่ไม่ให้ download).  แต่ว่า dict protocol นี้อาจจะเขียน javascript ไปเปิดตรงๆ ลำบากสักหน่อย มากไปกว่านั้น protocol ต่างๆ ที่ไม่ใช่ http ก็มักจะโดนปิดกั้นอย่างน่าเศร้าใจ. ด้วยเหตุผลดังกล่าวผมก็เลยทำ dicthttp ขึ้นมาเป็นตัวหุ้ม (wrapper) dict server ไว้อีกที แล้วก็แปลง ผลที่ได้เป็นแบบ json [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=650&subd=openil&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ผมอยากให้ <a href="code.google.com/p/basaasa">basa-asa</a> (ซึ่งเป็นโปรแกรมช่วยแปลภาษา เช่น ช่วยเปิด dictionary ให้ ไม่ใช่โปรแกรมแปลภาษาอัตโนมัติแบบ Google translation) เปิด dictionary ผ่าน <a href="http://tools.ietf.org/html/rfc2229">dict protocol</a> ได้ เพราะว่าจะได้สะดวกทั้ง dictionary ที่ download มาได้และ dictionary ของชาวบ้านที่เขาไม่ให้ download (ไม่รู้ว่าจริงๆ แล้วมีหรือเปล่า dictionary ที่ใช้ผ่าน dict protocol ได้แต่ไม่ให้ download).  แต่ว่า dict protocol นี้อาจจะเขียน javascript ไปเปิดตรงๆ ลำบากสักหน่อย มากไปกว่านั้น protocol ต่างๆ ที่ไม่ใช่ http ก็มักจะโดนปิดกั้นอย่างน่าเศร้าใจ. ด้วยเหตุผลดังกล่าวผมก็เลยทำ dicthttp ขึ้นมาเป็นตัวหุ้ม (wrapper) dict server ไว้อีกที แล้วก็แปลง ผลที่ได้เป็นแบบ json ส่งผ่าน web (http) ไป.</p>
<p>เวลาใช้ dict protocol เราอาจจะค้นหาคำโดยใช้ url แบบ dict://hostname/d:word:database อะไรทำนองนี้ เวลาทำ wrapper ผมก็ทำให้ใช้ประมาณนั้นคือ http://hostname/d:word:database ได้เหมือนกัน แล้วผลก็ return มาเป็น json. โดยเป็น list ของ {ชื่อ database, คำที่ใช้ค้นหา, definition}.</p>
<p>แบบนี้เป็นต้น</p>
<p>$ curl http://localhost:8000/d:computer:gcide<br />
[{"word": "Computer", "def": "Computer \\Com*put\"er\\ (k[o^]m*p[=u]t\&#8221;[~e]r), n.\n1. One who computes.\n\n2. (Computers) an electronic device for performing\ncalculations automatically. It consists of a clock to\nprovide voltage pulses to synchronize the operations of\nthe devices within the computer, a central processing\nunit, where the arithmetical and logical operations are\nperformed on data, a random-access memory, where the\nprograms and data are stored for rapid access, devices to\ninput data and output results, and various other\nperipheral devices of widely varied function, as well as\ncircuitry to support the main operations.\n\nNote: This modern sense of computer comprises the\nstored-program computers, in which multiple steps in a\ncalculation may be stored within the computer itself as\n{instructions} in a {program}, and are then executed by\nthe computer without further intervention of the\noperator. Different types of computer are variously\ncalled {analog computer}, {number cruncher,\nnumber-cruncher}, {digital computer}, and {pari-mutuel\nmachine, totalizer, totaliser, totalizator,\ntotalisator}.\n\nSyn: data processor, electronic computer, information\nprocessing system.\n[WordNet 1.5 +PJC]\n\n3. (Computers) same as {digital computer}.\n[PJC]&#8220;, &#8220;database&#8221;: &#8220;gcide&#8221;}, {&#8221;word&#8221;: &#8220;computer&#8221;, &#8220;def&#8221;: &#8220;electronic device \\electronic device\\ n.\na device depending on the principles of electronics and using\nthe manipulation of electron flow for its operation.\n[PJC]\n\nNote: Numerous electronic devices are in daily use, among\nthem the {television}, {radio}, {computer}, {robot},\n{transmitter}, {receiver}, {VCR}, {CD player}, etc.\n[PJC]&#8220;, &#8220;database&#8221;: &#8220;gcide&#8221;}]</p>
<p>ขยุกขยุยไปบ้าง &#8230; แต่มันก็เป็นแบบนี้ล่ะ</p>
<p>นอกจากคำสั่ง define ใน dict protocol แล้วก็ใช้ match ได้ด้วย แบบ http://hostname/m:คำ:database:strategy ได้ด้วย. แต่เหมือน n ยังใส่ไม่ได้ หาไม่เจอว่าจะใส่ตรงไหนของ dictclient (python).</p>
<p>โปรแกรม dicthttp อยู่ที่ <a href="http://code.google.com/p/basaasa/source/browse/#svn/trunk/dicthttp">http://code.google.com/p/basaasa/source/browse/#svn/trunk/dicthttp</a> ใช้ wsgi พื้นๆ</p>
 Tagged: ajax, dict protocol, dictionary, gnu/linux, http, linux, online, python, ubuntu, wsgi <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openil.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openil.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openil.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openil.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openil.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openil.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openil.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openil.wordpress.com/650/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openil.wordpress.com/650/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openil.wordpress.com/650/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.vee-u.com&blog=1389597&post=650&subd=openil&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.vee-u.com/2008/12/04/dict-api-over-http/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25e1504bfb8a12a8485a67513a626c0d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">वीर</media:title>
		</media:content>
	</item>
	</channel>
</rss>