<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2japanesetitles.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemtitles.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Yukun's Blog</title>
	
	<link>http://www.yukun.info</link>
	<description>難しいことは分かりやすく、簡単なことは面白く紹介</description>
	<lastBuildDate>Mon, 21 May 2012 15:18:28 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/yukun-blog" /><feedburner:info uri="yukun-blog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fyukun-blog" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://add.my.yahoo.co.jp/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fyukun-blog" src="http://i.yimg.jp/i/jp/my/addtomy/standard_bb.gif">myyahoo???</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/yukun-blog" src="http://www.bloglines.com/images/sub_modern11.gif">Bloglines???</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fyukun-blog" src="http://buttons.googlesyndication.com/fusion/add.gif">Google???</feedburner:feedFlare><feedburner:feedFlare href="http://r.hatena.ne.jp/append/http://feeds.feedburner.com/yukun-blog" src="http://r.hatena.ne.jp/images/addto_w.gif">???RSS???</feedburner:feedFlare><feedburner:feedFlare href="http://reader.livedoor.com/subscribe/http://feeds.feedburner.com/yukun-blog" src="http://image.reader.livedoor.com/img/banner/91_17_1.gif">Livedoor???????</feedburner:feedFlare><feedburner:feedFlare href="http://reader.goo.ne.jp/web/bookmarklet.html?,,http%3A%2F%2Ffeeds.feedburner.com%2Fyukun-blog" src="http://reader.goo.ne.jp/web/img/addwebrss.gif">goo RSS???????</feedburner:feedFlare><feedburner:feedFlare href="http://www.fenrir.co.jp/rd/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Fyukun-blog" src="http://images2.fenrir.co.jp/fb/sleipnir_feed.gif">Sleipnir に追加</feedburner:feedFlare><item>
		<title>クライアント-サーバ間のFTPの接続構成図</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/GJeZsNXaQA8/ftp-connection-client-server.html</link>
		<comments>http://www.yukun.info/blog/2012/05/ftp-connection-client-server.html#comments</comments>
		<pubDate>Mon, 21 May 2012 15:00:47 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2249</guid>
		<description>FTP(File Transfer Protocol)はInternet Request for Comment(RFC) 959で定義されているファイル転送プロトコルであるが、この度、改めてFTPの仕組み、特にクライア &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/ftp-connection-client-server.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/ftp-connection-client-server.html"&gt;クライアント-サーバ間のFTPの接続構成図&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>FTP(File Transfer Protocol)はInternet Request for Comment(RFC) 959で定義されているファイル転送プロトコルであるが、この度、改めてFTPの仕組み、特にクライアント-サーバ間の接続方法を確認。</p>
<p><a href="http://www.yukun.info/wp-content/uploads/FTP.png"><img src="http://www.yukun.info/wp-content/uploads/FTP.png" alt="FTP connection between client and server" title="FTP connection between client and server" width="495" height="90" class="alignnone size-full wp-image-2251" /></a></p>
<p>上図より接続のフローを簡単に説明すると、</p>
<ol>
<li>クライアント→サーバ(port 21)へTCPで制御用の接続を試みる</li>
<li>サーバ→クライアントへTCPでデータ伝送用の接続を試みる</li>
<li>両コネクションにてコマンドのやり取り＋データの伝送を行う</li>
</ol>
<p>FTPにはActive/Passiveの2つのモードがあるが、両モードの違いはサーバ→クライアントへの接続に使用するサーバ側の送信ポートの違いである。図の通り、Activeモードはport 20番、Passiveモードは1024以上のport番号からランダムに選択したものを使用する。<br />
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2011/02/java-tcp-socket-echo.html" rel="bookmark" title="2011年2月12日">Java: TCP Socket Echo Server/Client サンプル</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/python-socket-server-client.html" rel="bookmark" title="2012年5月20日">Python: TCP/IPv4 Socket Server/Client (1 Client接続のみ)</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html" rel="bookmark" title="2012年5月21日">Python: UDP/IPv4 Socket Server/Client (1 Client接続のみ)</a></li>
<li><a href="http://www.yukun.info/blog/2008/10/php-set-cookie-delete-time.html" rel="bookmark" title="2008年10月31日">PHP: クライアントへのCookieの設定と削除 &#8211; setcookie()関数</a></li>
<li><a href="http://www.yukun.info/blog/2008/12/actionscript-air-url-socket-monitor.html" rel="bookmark" title="2008年12月24日">AIR: Webサーバ、Socketの接続状況を検知 &#8211; URLMonitor、SocketMonitorクラス</a></li>
</ul>
<p><!-- Similar Posts took 7.012 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/ftp-connection-client-server.html">クライアント-サーバ間のFTPの接続構成図</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/Pfw1QNi6KQbGfviTMO6ASi-lg1E/0/da"><img src="http://feedads.g.doubleclick.net/~a/Pfw1QNi6KQbGfviTMO6ASi-lg1E/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Pfw1QNi6KQbGfviTMO6ASi-lg1E/1/da"><img src="http://feedads.g.doubleclick.net/~a/Pfw1QNi6KQbGfviTMO6ASi-lg1E/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=GJeZsNXaQA8:pDBxeJPjhUI:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=GJeZsNXaQA8:pDBxeJPjhUI:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=GJeZsNXaQA8:pDBxeJPjhUI:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=GJeZsNXaQA8:pDBxeJPjhUI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=GJeZsNXaQA8:pDBxeJPjhUI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=GJeZsNXaQA8:pDBxeJPjhUI:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=GJeZsNXaQA8:pDBxeJPjhUI:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/GJeZsNXaQA8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/ftp-connection-client-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/ftp-connection-client-server.html</feedburner:origLink></item>
		<item>
		<title>Python: UDP/IPv4 Socket Server/Client (1 Client接続のみ)</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/mpXFAJsJv0w/python-udp-socket-server-client.html</link>
		<comments>http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html#comments</comments>
		<pubDate>Sun, 20 May 2012 15:00:35 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[socke]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2239</guid>
		<description>先日はTCPでのデータ送受だったので、今回はUDPプロトコルを用いた確認をする。 ソースコード(for Python 2.7) 補足はソースコード中のコメントを参照。サンプルの為、サーバ・クライアントは同一マシン上での実 &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html"&gt;Python: UDP/IPv4 Socket Server/Client (1 Client接続のみ)&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>先日はTCPでのデータ送受だったので、今回はUDPプロトコルを用いた確認をする。</p>
<h3>ソースコード(for Python 2.7)</h3>
<p>補足はソースコード中のコメントを参照。サンプルの為、サーバ・クライアントは同一マシン上での実行を想定。</p>
<p><strong>tsUdpServ.py</strong></p>
<pre>
# coding: utf-8

from socket import *
from time import ctime

HOST = gethostname()
PORT = 34512
BUFSIZE = 1024
ADDR = (gethostbyname(HOST), PORT)
USER = 'Server'

udpServSock = socket(AF_INET, SOCK_DGRAM) # IPv4/UDPでソケット作成
udpServSock.bind(ADDR) # HOST, PORTでbinding

while True:
	print 'Waiting for message...'
	data, addr = udpServSock.recvfrom(BUFSIZE) # データ受信
	print '...received from and returned to:', addr
	udpServSock.sendto('%s > [%s] %s' % (USER, ctime(), data), addr) # データ送信
udpServSock.close()
</pre>
<p>TCPと大きく変わるところは、ソケットの作成時にソケットファミリーをSOCK_DGRAMとすること。また、listen()とaccept()メソッドが不要となったところあたりかな。</p>
<p><strong>tsUdpClnt.py</strong></p>
<pre>
# coding: utf-8

from socket import *

HOST = gethostname()
PORT = 34512
BUFSIZE = 1024
ADDR = (gethostbyname(HOST), PORT)
USER = 'Client'

udpClntSock = socket(AF_INET, SOCK_DGRAM)

while True:
	data = raw_input('%s > ' % USER) # 標準入力からのデータ入力
	if not data:
		break
	udpClntSock.sendto(data, ADDR) # データ送信
	data, ADDR = udpClntSock.recvfrom(BUFSIZE) # データ受信
	if not data:
		break
	print data # データ出力
udpClntSock.close()
</pre>
<p><span id="more-2239"></span></p>
<h3>実行結果</h3>
<p>Windows7 64bit上でスクリプトを実行。</p>
<p><strong>tsUdpServ.py</strong></p>
<pre>
Waiting for message...
...received from and returned to: ('192.168.11.2', 58173)
Waiting for message...
...received from and returned to: ('192.168.11.2', 58173)
Waiting for message...
</pre>
<p><strong>tsUdpClnt.py</strong></p>
<pre>
C:\pleiades\workspace\pyTest\src>python tsUdpClnt.py
Client > hello
Server > [Sun May 20 12:12:14 2012] hello
Client > world with python network
Server > [Sun May 20 12:12:39 2012] world with python network
Client >
</pre>
<h3>参考サイト</h3>
<ul>
<li><a href="http://wiki.python.org/moin/UdpCommunication">UdpCommunication &#8211; PythonInfo Wiki</a></li>
<li><a href="http://docs.python.org/library/socket.html">17.2. socket — Low-level networking interface — Python v2.7.3 documentation</a></li>
</ul>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2012/05/python-socket-server-client.html" rel="bookmark" title="2012年5月20日">Python: TCP/IPv4 Socket Server/Client (1 Client接続のみ)</a></li>
<li><a href="http://www.yukun.info/blog/2011/02/java-tcp-socket-echo.html" rel="bookmark" title="2011年2月12日">Java: TCP Socket Echo Server/Client サンプル</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/ftp-connection-client-server.html" rel="bookmark" title="2012年5月22日">クライアント-サーバ間のFTPの接続構成図</a></li>
<li><a href="http://www.yukun.info/blog/2008/10/java-inetaddress-getlocalhost.html" rel="bookmark" title="2008年10月30日">Java: ローカルホスト名とIPアドレスを取得 &#8211; InetAddress.getLocalHost()メソッド</a></li>
<li><a href="http://www.yukun.info/blog/2010/05/java-networkinterface-ipv6-ipv4.html" rel="bookmark" title="2010年5月16日">Java: インターフェースとローカルのIPv6, IPv4アドレスの取得 &#8211; NetworkInterfaceクラス</a></li>
</ul>
<p><!-- Similar Posts took 7.776 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html">Python: UDP/IPv4 Socket Server/Client (1 Client接続のみ)</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/2HxkORECILxhS2DEmupNYU4RyEA/0/da"><img src="http://feedads.g.doubleclick.net/~a/2HxkORECILxhS2DEmupNYU4RyEA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2HxkORECILxhS2DEmupNYU4RyEA/1/da"><img src="http://feedads.g.doubleclick.net/~a/2HxkORECILxhS2DEmupNYU4RyEA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=mpXFAJsJv0w:twhVy4lhkgE:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=mpXFAJsJv0w:twhVy4lhkgE:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=mpXFAJsJv0w:twhVy4lhkgE:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=mpXFAJsJv0w:twhVy4lhkgE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=mpXFAJsJv0w:twhVy4lhkgE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=mpXFAJsJv0w:twhVy4lhkgE:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=mpXFAJsJv0w:twhVy4lhkgE:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/mpXFAJsJv0w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html</feedburner:origLink></item>
		<item>
		<title>Python: TCP/IPv4 Socket Server/Client (1 Client接続のみ)</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/8hQiCyyKy1U/python-socket-server-client.html</link>
		<comments>http://www.yukun.info/blog/2012/05/python-socket-server-client.html#comments</comments>
		<pubDate>Sat, 19 May 2012 15:00:18 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Socket]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2230</guid>
		<description>PythonでSocketサーバ、クライアントの接続方法を下記のソースコードを用いて確認。C言語のどう程度のサンプルと比較すると行数が少なく、書きやすい。これがThreadやノンブロッキング・多重化を用いた時にどの程度膨 &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/python-socket-server-client.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/python-socket-server-client.html"&gt;Python: TCP/IPv4 Socket Server/Client (1 Client接続のみ)&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>PythonでSocketサーバ、クライアントの接続方法を下記のソースコードを用いて確認。C言語のどう程度のサンプルと比較すると行数が少なく、書きやすい。これがThreadやノンブロッキング・多重化を用いた時にどの程度膨らむかは今後確認予定。</p>
<h3>ソースコード(for Python 2.7)</h3>
<p>補足はソースコード中のコメントを参照。サンプルの為、サーバ・クライアントは同一マシン上での実行を想定。</p>
<p><strong>tsTcpServ.py</strong></p>
<pre>
# coding: utf-8

from socket import *
from time import ctime

HOST = gethostname()
PORT = 34512
BUFSIZE = 1024
ADDR = (gethostbyname(HOST), PORT)
USER = 'Server'

tcpSerSock = socket(AF_INET, SOCK_STREAM) # IPv4/TCPソケットとして作成
tcpSerSock.bind(ADDR) # アドレス、ポートのbinding
tcpSerSock.listen(5) # サーバソケットの最大接続要求の順番待ち数

while True:
	print 'Waiting for connection...'
	(tcpCliSock, addr) = tcpSerSock.accept() # 接続待受開始
	print '...connected from.' , addr
	while True:
		data = tcpCliSock.recv(BUFSIZE) # C->Sデータの受信
		if not data:
			break
		tcpCliSock.send('%s > [%s] %s' % (USER, ctime(), data)) # S->Cデータの送信
	tcpCliSock.close() # Clientソケットのclose
tcpSerSock.close() # Serverソケットのclose (到達不能コード)
</pre>
<p><strong>tsTcpclnt.py</strong></p>
<pre>
# coding: utf-8

from socket import *

HOST = gethostname()
PORT = 34512
BUFSIZE = 1024
ADDR = (gethostbyname(HOST), PORT)
USER = 'Client'

tcpClntSock = socket(AF_INET, SOCK_STREAM)
tcpClntSock.connect(ADDR)

while True:
	data = raw_input('%s > ' % USER) # 標準入力からのデータ入力
	if not data:
		break
	tcpClntSock.send(data) # C->Sへデータ送信
	data = tcpClntSock.recv(BUFSIZE) # S->Cのデータ受信
	if not data:
		break
	print data
tcpClntSock.close()
</pre>
<p><span id="more-2230"></span></p>
<h3>実行結果</h3>
<p><strong>tsTcpServ.py</strong></p>
<pre>
Waiting for connection...
...connected from. ('192.168.11.2', 52208)
Waiting for connection...
...connected from. ('192.168.11.2', 52211)
Waiting for connection...
</pre>
<p><strong>tsTcpClnt.py</strong></p>
<pre>
C:\pleiades\workspace\pyTest\src>python tsTcpClnt.py
Client > hello
Server > [Sat May 19 18:52:12 2012] hello
Client > good
Server > [Sat May 19 18:52:17 2012] good
Client > how about you
Server > [Sat May 19 18:52:30 2012] how about you
Client >

C:\pleiades\workspace\pyTest\src>python tsTcpClnt.py
Client > reconnect
Server > [Sat May 19 18:52:42 2012] reconnect
Client > end
Server > [Sat May 19 18:52:44 2012] end
Client >
</pre>
<h3>参考サイト</h3>
<ul>
<li><a href="http://www.python.jp/doc/nightly/howto/sockets.html">ソケットプログラミング HOWTO — Python 2.7ja1 documentation</a></li>
</ul>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html" rel="bookmark" title="2012年5月21日">Python: UDP/IPv4 Socket Server/Client (1 Client接続のみ)</a></li>
<li><a href="http://www.yukun.info/blog/2011/02/java-tcp-socket-echo.html" rel="bookmark" title="2011年2月12日">Java: TCP Socket Echo Server/Client サンプル</a></li>
<li><a href="http://www.yukun.info/blog/2008/12/actionscript-air-url-socket-monitor.html" rel="bookmark" title="2008年12月24日">AIR: Webサーバ、Socketの接続状況を検知 &#8211; URLMonitor、SocketMonitorクラス</a></li>
<li><a href="http://www.yukun.info/blog/2010/05/java-networkinterface-ipv6-ipv4.html" rel="bookmark" title="2010年5月16日">Java: インターフェースとローカルのIPv6, IPv4アドレスの取得 &#8211; NetworkInterfaceクラス</a></li>
<li><a href="http://www.yukun.info/blog/2008/10/java-inetaddress-getlocalhost.html" rel="bookmark" title="2008年10月30日">Java: ローカルホスト名とIPアドレスを取得 &#8211; InetAddress.getLocalHost()メソッド</a></li>
</ul>
<p><!-- Similar Posts took 8.714 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/python-socket-server-client.html">Python: TCP/IPv4 Socket Server/Client (1 Client接続のみ)</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/mfOtbSJROqrJ0fwmwYJM55RafQg/0/da"><img src="http://feedads.g.doubleclick.net/~a/mfOtbSJROqrJ0fwmwYJM55RafQg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mfOtbSJROqrJ0fwmwYJM55RafQg/1/da"><img src="http://feedads.g.doubleclick.net/~a/mfOtbSJROqrJ0fwmwYJM55RafQg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=8hQiCyyKy1U:3Up5uTWQERw:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=8hQiCyyKy1U:3Up5uTWQERw:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=8hQiCyyKy1U:3Up5uTWQERw:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=8hQiCyyKy1U:3Up5uTWQERw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=8hQiCyyKy1U:3Up5uTWQERw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=8hQiCyyKy1U:3Up5uTWQERw:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=8hQiCyyKy1U:3Up5uTWQERw:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/8hQiCyyKy1U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/python-socket-server-client.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/python-socket-server-client.html</feedburner:origLink></item>
		<item>
		<title>Recognize the purpose of the meeting</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/5-1ozYoeGCs/recognize-purpose-of-meeting.html</link>
		<comments>http://www.yukun.info/blog/2012/05/recognize-purpose-of-meeting.html#comments</comments>
		<pubDate>Fri, 18 May 2012 15:00:49 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Days]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2228</guid>
		<description>I didn&amp;#8217;t go off the track from the main theme of meeting. The aims of the meeting are the following poin &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/recognize-purpose-of-meeting.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/recognize-purpose-of-meeting.html"&gt;Recognize the purpose of the meeting&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>I didn&#8217;t go off the track from the main theme of meeting. The aims of the meeting are the following points:</p>
<p>1) Share the acknowledging and knowledge.<br />
2) Come to a conclusion or next action plan after discussion.</p>
<p>Especially, 2) is important for me because 4 days ago, I failed moderate the meeting and uphold the above point of view. From now, I will pay attention to moderating the meeting.</p>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2007/03/position-and-aims.html" rel="bookmark" title="2007年3月4日">Determine the Position and Aims</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html" rel="bookmark" title="2012年5月18日">I&#8217;ll continue to write the technical blog</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/we-start-to-share-our-study-progress.html" rel="bookmark" title="2012年5月13日">We start to share our study progress</a></li>
<li><a href="http://www.yukun.info/blog/2007/03/purpose.html" rel="bookmark" title="2007年3月1日">About Purpose Simply</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/that-and-this.html" rel="bookmark" title="2006年7月12日">I want to do that and this</a></li>
</ul>
<p><!-- Similar Posts took 9.214 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/recognize-purpose-of-meeting.html">Recognize the purpose of the meeting</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/SeC9sz3uYfXK7_hKGP-ayeUoO38/0/da"><img src="http://feedads.g.doubleclick.net/~a/SeC9sz3uYfXK7_hKGP-ayeUoO38/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/SeC9sz3uYfXK7_hKGP-ayeUoO38/1/da"><img src="http://feedads.g.doubleclick.net/~a/SeC9sz3uYfXK7_hKGP-ayeUoO38/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=5-1ozYoeGCs:X83fEORL-L8:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=5-1ozYoeGCs:X83fEORL-L8:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=5-1ozYoeGCs:X83fEORL-L8:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=5-1ozYoeGCs:X83fEORL-L8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=5-1ozYoeGCs:X83fEORL-L8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=5-1ozYoeGCs:X83fEORL-L8:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=5-1ozYoeGCs:X83fEORL-L8:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/5-1ozYoeGCs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/recognize-purpose-of-meeting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/recognize-purpose-of-meeting.html</feedburner:origLink></item>
		<item>
		<title>I’ll continue to write the technical blog</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/LzhPix9Ba1k/continue-write-technical-blog.html</link>
		<comments>http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html#comments</comments>
		<pubDate>Thu, 17 May 2012 15:00:23 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Days]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2221</guid>
		<description>When I was a university student, I wrote the technical blog in this site to improve my skill and further my st &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html"&gt;I&amp;#8217;ll continue to write the technical blog&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>When I was a university student, I wrote the technical blog in this site to improve my skill and further my studies in programming, network, software design but recently, I can&#8217;t write it constantly because I&#8217;m busy with work.</p>
<p>Writing blog to study is effective for studying because you need certain stills to write a blog such as:</p>
<p>1. Gathering knowledge about a theme<br />
2. Logical thinking and writing</p>
<p>Now that I work for a system engineer in a bank and need to learn new skill, it is hard to take the free time after work. So I usually write articles in advance on Saturday or Sunday for three or four days as a buffer.</p>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2006/11/write-in-blog.html" rel="bookmark" title="2006年11月3日">What&#8217;s the mean to continue to write in blog ?</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/that-and-this.html" rel="bookmark" title="2006年7月12日">I want to do that and this</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/start-blog.html" rel="bookmark" title="2006年7月9日">I will start writing Blog</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/recognize-purpose-of-meeting.html" rel="bookmark" title="2012年5月19日">Recognize the purpose of the meeting</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/run-over.html" rel="bookmark" title="2006年7月10日">Run over anything of what I&#8217;ve done</a></li>
</ul>
<p><!-- Similar Posts took 8.773 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html">I&#8217;ll continue to write the technical blog</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/90SEBQeEiUaWedWICWgSnH222C8/0/da"><img src="http://feedads.g.doubleclick.net/~a/90SEBQeEiUaWedWICWgSnH222C8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/90SEBQeEiUaWedWICWgSnH222C8/1/da"><img src="http://feedads.g.doubleclick.net/~a/90SEBQeEiUaWedWICWgSnH222C8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LzhPix9Ba1k:Q8imVJspjtU:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LzhPix9Ba1k:Q8imVJspjtU:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LzhPix9Ba1k:Q8imVJspjtU:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LzhPix9Ba1k:Q8imVJspjtU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=LzhPix9Ba1k:Q8imVJspjtU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LzhPix9Ba1k:Q8imVJspjtU:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=LzhPix9Ba1k:Q8imVJspjtU:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/LzhPix9Ba1k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html</feedburner:origLink></item>
		<item>
		<title>How to put off many books</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/e73Dz0-ksXg/how-to-put-off-many-books.html</link>
		<comments>http://www.yukun.info/blog/2012/05/how-to-put-off-many-books.html#comments</comments>
		<pubDate>Wed, 16 May 2012 15:00:07 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Days]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2213</guid>
		<description>I continue to clean up my room after I&amp;#8217;ve moved to new house. I worry about how to put off many books th &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/how-to-put-off-many-books.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/how-to-put-off-many-books.html"&gt;How to put off many books&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>I continue to clean up my room after I&#8217;ve moved to new house. I worry about how to put off many books that I brought from family home and I can&#8217;t store in new house such as technical books and novels. It is &#8220;MOTTAINAI&#8221; to put off as dust so at first I&#8217;m planing to sell in Amazon market place but I recognize it is troublesome and low margin task with respect to spend much time to register the book, respond to buyer, send book, inform them. So I&#8217;ll request to cutting vendors to cut books and after that I&#8217;ll scan them as PDF or JPG data to read by some devices and I can save the space in my house.</p>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2007/03/explained-book.html" rel="bookmark" title="2007年3月3日">I Explained the Book in English</a></li>
<li><a href="http://www.yukun.info/blog/2007/02/trajectory.html" rel="bookmark" title="2007年2月23日">Books, the Trajectory of Having Traced Life</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/that-and-this.html" rel="bookmark" title="2006年7月12日">I want to do that and this</a></li>
<li><a href="http://www.yukun.info/blog/2007/03/overstuffed-schedule.html" rel="bookmark" title="2007年3月6日">The Overstuffed Schedule is Doing Badly</a></li>
<li><a href="http://www.yukun.info/blog/2007/08/invest-myself.html" rel="bookmark" title="2007年8月24日">Invest myself</a></li>
</ul>
<p><!-- Similar Posts took 6.238 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/how-to-put-off-many-books.html">How to put off many books</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/VzTa_AgI_xczt6r6b6QwpV3_DhQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/VzTa_AgI_xczt6r6b6QwpV3_DhQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VzTa_AgI_xczt6r6b6QwpV3_DhQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/VzTa_AgI_xczt6r6b6QwpV3_DhQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=e73Dz0-ksXg:kL7xhxTdNd0:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=e73Dz0-ksXg:kL7xhxTdNd0:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=e73Dz0-ksXg:kL7xhxTdNd0:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=e73Dz0-ksXg:kL7xhxTdNd0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=e73Dz0-ksXg:kL7xhxTdNd0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=e73Dz0-ksXg:kL7xhxTdNd0:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=e73Dz0-ksXg:kL7xhxTdNd0:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/e73Dz0-ksXg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/how-to-put-off-many-books.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/how-to-put-off-many-books.html</feedburner:origLink></item>
		<item>
		<title>Python: ソースコード中でのUTF-8文字(日本語等)のエンコーディング指定</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/yodBFoIyi4M/python-utf8-encode.html</link>
		<comments>http://www.yukun.info/blog/2012/05/python-utf8-encode.html#comments</comments>
		<pubDate>Tue, 15 May 2012 15:00:31 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2202</guid>
		<description>Pythonスクリプトの実行(コンパイル→実行)の際に下記のエラーが発生した場合、 SyntaxError: Non-ASCII character '\ABC' in file C:\XXX\YYY\ZZZ.py on &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/python-utf8-encode.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/python-utf8-encode.html"&gt;Python: ソースコード中でのUTF-8文字(日本語等)のエンコーディング指定&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>Pythonスクリプトの実行(コンパイル→実行)の際に下記のエラーが発生した場合、</p>
<pre>
SyntaxError: Non-ASCII character '\ABC' in file C:\XXX\YYY\ZZZ.py on line MM,
but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
</pre>
<p>ソースコード中にASCII以外の文字(日本語など)が含まれているがエンコードの指定が無いことが原因となる。<br />
対処法はスクリプトの先頭行に下記の何れかの1行記述することでUTF-8文字の使用を宣言する。</p>
<pre>
# coding: utf-8
</pre>
<pre>
# -*- coding: utf-8 -*-
</pre>
<h3>参考サイト</h3>
<ul>
<li><a href="http://www.python.org/dev/peps/pep-0263/">PEP 0263 &#8212; Defining Python Source Code Encodings</a></li>
</ul>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2008/09/python-add-line-number-to-text-file.html" rel="bookmark" title="2008年9月8日">Python: テキストファイルの行頭に行番号を追加</a></li>
<li><a href="http://www.yukun.info/blog/2008/07/python-command-line-arguments.html" rel="bookmark" title="2008年7月26日">Python: コマンドライン引数の取得 &#8211; sys.argv変数</a></li>
<li><a href="http://www.yukun.info/blog/2008/06/python-random2.html" rel="bookmark" title="2008年6月11日">Python: モジュールにテスト関数を定義 &#8211; 重複のない乱数(整数MIN以上MAX以下)の生成</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/python-udp-socket-server-client.html" rel="bookmark" title="2012年5月21日">Python: UDP/IPv4 Socket Server/Client (1 Client接続のみ)</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html" rel="bookmark" title="2012年5月14日">Python: MS Word ファイルからテキストファイルへ変換</a></li>
</ul>
<p><!-- Similar Posts took 8.950 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/python-utf8-encode.html">Python: ソースコード中でのUTF-8文字(日本語等)のエンコーディング指定</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/DYO-uEad7_goU3uM0-ETWLdvpRg/0/da"><img src="http://feedads.g.doubleclick.net/~a/DYO-uEad7_goU3uM0-ETWLdvpRg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DYO-uEad7_goU3uM0-ETWLdvpRg/1/da"><img src="http://feedads.g.doubleclick.net/~a/DYO-uEad7_goU3uM0-ETWLdvpRg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=yodBFoIyi4M:Vlkygo5M-wA:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=yodBFoIyi4M:Vlkygo5M-wA:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=yodBFoIyi4M:Vlkygo5M-wA:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=yodBFoIyi4M:Vlkygo5M-wA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=yodBFoIyi4M:Vlkygo5M-wA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=yodBFoIyi4M:Vlkygo5M-wA:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=yodBFoIyi4M:Vlkygo5M-wA:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/yodBFoIyi4M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/python-utf8-encode.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/python-utf8-encode.html</feedburner:origLink></item>
		<item>
		<title>Python: win32comモジュールのインストール方法</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/LGaivlZ0Bfg/python-win32com-module-install.html</link>
		<comments>http://www.yukun.info/blog/2012/05/python-win32com-module-install.html#comments</comments>
		<pubDate>Mon, 14 May 2012 15:00:29 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2206</guid>
		<description>PythonでWindowsのアプリ・ファイルを扱う際に必要なwin32comモジュールのインストール方法を以下の通り。 配布元へアクセス：Win32 Extensions for Python ダウンロードエリアに移動 &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/python-win32com-module-install.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/python-win32com-module-install.html"&gt;Python: win32comモジュールのインストール方法&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>PythonでWindowsのアプリ・ファイルを扱う際に必要なwin32comモジュールのインストール方法を以下の通り。</p>
<p><span id="more-2206"></span></p>
<ol>
<li>配布元へアクセス：<a href="http://starship.python.net/~skippy/win32/Downloads.html">Win32 Extensions for Python</a></li>
<li>ダウンロードエリアに移動：<a href="http://sourceforge.net/projects/pywin32/files/">Python for Windows extensions &#8211; Browse Files at SourceForge.net</a></li>
<li>ページ中のpywin32のリンクを開き、最新ビルドリンクを開く</li>
<li>Pythonの使用環境に合わせてダウンロードパッケージを選択(32bit or 64bitはpythonのプロンプト実行時に確認できる)<br />
32bitの例：</p>
<pre>
C:\Users\yukun>python
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
</pre>
<p>この場合は、pywin32-XXX.win32-py2.7.exeを選択</li>
<li>ダウンロードしたexeファイルを実行しインストールする</li>
<li>インストール後”C:\&#8230;\Lib\site-packages”ディレクトリにwin32comモジュールのファイル群が作成されていることを確認</li>
<li>import文が正常に実行できることを確認
<pre>
C:\Users\yukun>python
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com
>>>
</pre>
</li>
</ol>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html" rel="bookmark" title="2012年5月14日">Python: MS Word ファイルからテキストファイルへ変換</a></li>
<li><a href="http://www.yukun.info/blog/2008/06/install-lxml.html" rel="bookmark" title="2008年6月13日">Python: lxmlのインストール方法</a></li>
<li><a href="http://www.yukun.info/blog/2010/06/windows7-speed-up-tips.html" rel="bookmark" title="2010年6月15日">Windows7高速化・軽量化Tips</a></li>
<li><a href="http://www.yukun.info/blog/2011/03/python-twitter-install.html" rel="bookmark" title="2011年3月5日">Python Twitter のインストール</a></li>
<li><a href="http://www.yukun.info/blog/2011/02/vmware-player-centos.html" rel="bookmark" title="2011年2月23日">VMware PlayerでCentOSをインストール</a></li>
</ul>
<p><!-- Similar Posts took 10.022 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/python-win32com-module-install.html">Python: win32comモジュールのインストール方法</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/ZqhL738_PsK4icqkcbVHCNXsltY/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZqhL738_PsK4icqkcbVHCNXsltY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ZqhL738_PsK4icqkcbVHCNXsltY/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZqhL738_PsK4icqkcbVHCNXsltY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LGaivlZ0Bfg:1-nK1kd4DXA:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LGaivlZ0Bfg:1-nK1kd4DXA:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LGaivlZ0Bfg:1-nK1kd4DXA:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LGaivlZ0Bfg:1-nK1kd4DXA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=LGaivlZ0Bfg:1-nK1kd4DXA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=LGaivlZ0Bfg:1-nK1kd4DXA:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=LGaivlZ0Bfg:1-nK1kd4DXA:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/LGaivlZ0Bfg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/python-win32com-module-install.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/python-win32com-module-install.html</feedburner:origLink></item>
		<item>
		<title>Python: MS Word ファイルからテキストファイルへ変換</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/DwA_g1Ob5t0/python-word-to-text-convert.html</link>
		<comments>http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html#comments</comments>
		<pubDate>Sun, 13 May 2012 15:00:15 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2193</guid>
		<description>COM(Component Object Model)を使用してWordファイル内のテキストをテキストファイルへ抽出・変換するスクリプト。 ソースコード # coding: utf-8 import fnmatch, o &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html"&gt;Python: MS Word ファイルからテキストファイルへ変換&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>COM(Component Object Model)を使用してWordファイル内のテキストをテキストファイルへ抽出・変換するスクリプト。</p>
<h3>ソースコード</h3>
<pre>
# coding: utf-8

import fnmatch, os, sys, win32com.client

if __name__ == '__main__':
	wa = win32com.client.gencache.EnsureDispatch("Word.Application")
	try:
		for path, dirs, files in os.walk(sys.argv[1]): # コマンドラインより探索ディレクトリpathを取得
			for filename in files:
				if not fnmatch.fnmatch(filename, "*.doc"): continue # wordファイルの拡張子かをパターン・マッチング
				doc = os.path.abspath(os.path.join(path, filename)) # wordファイルへの絶対パスを作成
				print "processing %s in %s" % (doc, path)
				wa.Documents.Open(doc)
				txt = doc[:-3] + 'txt' # 変換保管するテキストファイル名
				wa.ActiveDocument.SaveAs(txt, FileFormat=win32com.client.constants.wdFormatText)
				wa.ActiveDocument.Close()
	finally:
		wa.Quit() # Wordの終了
</pre>
<p><span id="more-2193"></span></p>
<h3>実行結果</h3>
<p>上記のソースコードをwordtotext.pyで保管し実行。ここでは当方環境でWordファイルが保管されているディレクトリを指定し、実行する。</p>
<pre>
>python wordtotext.py "C:\Users\yukun\Google Drive\E-mail_Writing_Text"
processing C:\Users\yukun\Google Drive\E-mail_Writing_Text\Yukun Homework Package 1.doc in C:\Users\yukun\Google Drive\E-mail_Writing_Text
processing C:\Users\yukun\Google Drive\E-mail_Writing_Text\Yukun Homework Package 2.doc in C:\Users\yukun\Google Drive\E-mail_Writing_Text
processing C:\Users\yukun\Google Drive\E-mail_Writing_Text\Yukun Homework Package 3.doc in C:\Users\yukun\Google Drive\E-mail_Writing_Text
processing C:\Users\yukun\Google Drive\E-mail_Writing_Text\Yukun Homework Package 4.doc in C:\Users\yukun\Google Drive\E-mail_Writing_Text
processing C:\Users\yukun\Google Drive\E-mail_Writing_Text\Yukun Homework Package 5.doc in C:\Users\yukun\Google Drive\E-mail_Writing_Text
processing C:\Users\yukun\Google Drive\E-mail_Writing_Text\Yukun Homework Package 6.doc in C:\Users\yukun\Google Drive\E-mail_Writing_Text
</pre>
<p>◯実行前ディレクトリ<br />
<a href="http://www.yukun.info/wp-content/uploads/pytnon_wordtotxt_before.png"><img src="http://www.yukun.info/wp-content/uploads/pytnon_wordtotxt_before.png" alt="pytnon_wordtotxt_before" title="pytnon_wordtotxt_before" width="536" height="437" class="alignnone size-full wp-image-2195" /></a></p>
<p>◯実行後ディレクトリ<br />
<a href="http://www.yukun.info/wp-content/uploads/pytnon_wordtotxt_after.png"><img src="http://www.yukun.info/wp-content/uploads/pytnon_wordtotxt_after.png" alt="pytnon_wordtotxt_after" title="pytnon_wordtotxt_after" width="536" height="437" class="alignnone size-full wp-image-2196" /></a></p>
<h3>参考サイト</h3>
<ul>
<li><a href="http://www.python.jp/doc/release/library/fnmatch.html">10.8. fnmatch — Unix ファイル名のパターンマッチ — Python 2.7ja1 documentation</a></li>
<li><a href="http://docs.python.org/library/os.html">15.1. os — Miscellaneous operating system interfaces — Python v2.7.3 documentation</a></li>
</ul>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2012/05/python-win32com-module-install.html" rel="bookmark" title="2012年5月15日">Python: win32comモジュールのインストール方法</a></li>
<li><a href="http://www.yukun.info/blog/2008/08/python-directory-listdir-glob.html" rel="bookmark" title="2008年8月9日">Python: 指定したパスのディレクトリ中のファイル一覧を出力</a></li>
<li><a href="http://www.yukun.info/blog/2008/06/linux-users.html" rel="bookmark" title="2008年6月26日">ユーザー管理に関するLinuxコマンド</a></li>
<li><a href="http://www.yukun.info/blog/2008/09/r-set-work-directory.html" rel="bookmark" title="2008年9月3日">Rで統計: 作業ディレクトリの設定と確認 &#8211; setwd()、getwd()関数</a></li>
<li><a href="http://www.yukun.info/blog/2008/09/python-file-write-writelines.html" rel="bookmark" title="2008年9月6日">Python: テキストファイルに書き込み &#8211; write()、writelines()メソッド</a></li>
</ul>
<p><!-- Similar Posts took 8.044 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html">Python: MS Word ファイルからテキストファイルへ変換</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/MLlnfoGlrZ-jxNlV1o9Y8N8JSjI/0/da"><img src="http://feedads.g.doubleclick.net/~a/MLlnfoGlrZ-jxNlV1o9Y8N8JSjI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MLlnfoGlrZ-jxNlV1o9Y8N8JSjI/1/da"><img src="http://feedads.g.doubleclick.net/~a/MLlnfoGlrZ-jxNlV1o9Y8N8JSjI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=DwA_g1Ob5t0:YPSBuy6raIk:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=DwA_g1Ob5t0:YPSBuy6raIk:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=DwA_g1Ob5t0:YPSBuy6raIk:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=DwA_g1Ob5t0:YPSBuy6raIk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=DwA_g1Ob5t0:YPSBuy6raIk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=DwA_g1Ob5t0:YPSBuy6raIk:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=DwA_g1Ob5t0:YPSBuy6raIk:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/DwA_g1Ob5t0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/python-word-to-text-convert.html</feedburner:origLink></item>
		<item>
		<title>We start to share our study progress</title>
		<link>http://feedproxy.google.com/~r/yukun-blog/~3/_liKNqnp4X0/we-start-to-share-our-study-progress.html</link>
		<comments>http://www.yukun.info/blog/2012/05/we-start-to-share-our-study-progress.html#comments</comments>
		<pubDate>Sun, 13 May 2012 14:55:32 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Days]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=2211</guid>
		<description>From today, my sister and I have started to share our study progress in order to maintain our motivation to co &amp;#8230; &lt;a href="http://www.yukun.info/blog/2012/05/we-start-to-share-our-study-progress.html"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.yukun.info/blog/2012/05/we-start-to-share-our-study-progress.html"&gt;We start to share our study progress&lt;/a&gt; is a post from: &lt;a href="http://www.yukun.info"&gt;Yukun&amp;#039;s Blog&lt;/a&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>From today, my sister and I have started to share our study progress in order to maintain our motivation to continue to study. Because we consider that it is difficult for us to maintain it after daily work by oneself. We choose Facebook groups as the tool to confirm our progress because it is convenient to share our daily progress such as &#8220;Today I&#8217;ve studied AAA&#8221; and &#8220;How to start to study is BBB&#8221;. At first, we will try to use it whether it is an effective or not. After that, We&#8217;ll rule about how to report our daily progress with trial and error.</p>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2010/05/many-interrupted-jobs.html" rel="bookmark" title="2010年5月6日">Many interrupted jobs</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/studying-programming.html" rel="bookmark" title="2006年7月25日">The plan of studying Programming in this vacation</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/that-and-this.html" rel="bookmark" title="2006年7月12日">I want to do that and this</a></li>
<li><a href="http://www.yukun.info/blog/2006/07/run-over.html" rel="bookmark" title="2006年7月10日">Run over anything of what I&#8217;ve done</a></li>
<li><a href="http://www.yukun.info/blog/2012/05/continue-write-technical-blog.html" rel="bookmark" title="2012年5月18日">I&#8217;ll continue to write the technical blog</a></li>
</ul>
<p><!-- Similar Posts took 6.437 ms --></p>
<p><a href="http://www.yukun.info/blog/2012/05/we-start-to-share-our-study-progress.html">We start to share our study progress</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/YRTRJ1D5VROY__gZCc5nap01niY/0/da"><img src="http://feedads.g.doubleclick.net/~a/YRTRJ1D5VROY__gZCc5nap01niY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YRTRJ1D5VROY__gZCc5nap01niY/1/da"><img src="http://feedads.g.doubleclick.net/~a/YRTRJ1D5VROY__gZCc5nap01niY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/yukun-blog?a=_liKNqnp4X0:x26PgFLjFTE:OAQBO0PjnPA"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=OAQBO0PjnPA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=_liKNqnp4X0:x26PgFLjFTE:spdCosxkSQE"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=spdCosxkSQE" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=_liKNqnp4X0:x26PgFLjFTE:fqmcRPSHgvs"><img src="http://feeds.feedburner.com/~ff/yukun-blog?d=fqmcRPSHgvs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=_liKNqnp4X0:x26PgFLjFTE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=_liKNqnp4X0:x26PgFLjFTE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/yukun-blog?a=_liKNqnp4X0:x26PgFLjFTE:2V2C0W9ye1I"><img src="http://feeds.feedburner.com/~ff/yukun-blog?i=_liKNqnp4X0:x26PgFLjFTE:2V2C0W9ye1I" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/yukun-blog/~4/_liKNqnp4X0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2012/05/we-start-to-share-our-study-progress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yukun.info/blog/2012/05/we-start-to-share-our-study-progress.html</feedburner:origLink></item>
	</channel>
</rss>

