<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4963475472717192504</id><updated>2012-01-24T04:13:09.498+09:00</updated><category term='bazaar'/><category term='ubuntu'/><category term='mercurial'/><category term='python'/><category term='chrome'/><title type='text'>物置にあるノート</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>71</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4480871000636360152</id><published>2012-01-08T05:11:00.001+09:00</published><updated>2012-01-08T05:11:29.877+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>cinnamonを使ってみた</title><content type='html'>&amp;nbsp;Ubuntuに&lt;a href="http://cinnamon.linuxmint.com/"&gt;cinnamon&lt;/a&gt;をインストールした。&lt;br /&gt;&amp;nbsp;UIはほぼWindows XP。UnityやGnome Shellよりは使いやすいがWindows7やKDEと比べるとかなりの機能がない。&lt;br /&gt;&amp;nbsp;アンリミテッドボタンがデスクトップ左上最前面にあるのでウィンドウのボタンを左に置くと重なる。google chromeだと終了ボタンと被って終了ボタンを押せない。&lt;br /&gt;ウィンドウ関連でUnityやGnome Shellにあるショートカット見当たらない。今後追加されるかもしれないがなくても困らない。(あるが私が知らないだけの可能性もある。)&lt;br /&gt;&amp;nbsp;UnityやGnome Shellみたいに何かをやろうとするたびに画面を切り替える必要は無いので使いやすい。&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4480871000636360152?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4480871000636360152/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2012/01/cinnamon.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4480871000636360152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4480871000636360152'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2012/01/cinnamon.html' title='cinnamonを使ってみた'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-5887331879823468636</id><published>2011-11-30T22:02:00.001+09:00</published><updated>2011-11-30T22:10:32.335+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Y PPA インストール</title><content type='html'>Y PPAをインストール&lt;br /&gt;PPAに関する機能が一通り使える。&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PPA追加&lt;/li&gt;&lt;li&gt;PPA削除&lt;/li&gt;&lt;li&gt;PPA検索&lt;/li&gt;&lt;li&gt;PPAで追加されるパッケージの確認&lt;/li&gt;&lt;/ul&gt;synapticを起動してリポジトリの設定をするのは大変だっただけにとても便利になった。&lt;br /&gt;&lt;br /&gt;インストール方法&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;ppa:webupd8team/y-ppa-managerをリポジトリに追加&lt;/li&gt;&lt;li&gt;y-ppa-managerをインストール&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-5887331879823468636?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/5887331879823468636/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/11/y-ppa.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5887331879823468636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5887331879823468636'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/11/y-ppa.html' title='Y PPA インストール'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-6822360351150624555</id><published>2011-11-25T21:48:00.001+09:00</published><updated>2011-11-25T22:01:14.518+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>PyPyでテンプレートエンジンを動かしてみた</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;table cellpadding="4" cellspacing="0"&gt;&lt;colgroup&gt;&lt;col width="85*"&gt;&lt;/col&gt;&lt;col width="85*"&gt;&lt;/col&gt;&lt;col width="85*"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr valign="TOP"&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;" width="33%"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0.1cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;Python 2.7.2&lt;/span&gt;&lt;/td&gt;&lt;td style="border: 1px solid #000000; padding: 0.1cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;PyPy 1.7&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="TOP"&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;Jinja&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.0069 seconds&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.0138 seconds&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="TOP"&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;Mako&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.0062 seconds&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.0153 seconds&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="TOP"&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;Genshi&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.1334 seconds&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.1048 seconds&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr valign="TOP"&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;Chameleon&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.0260 seconds&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.1cm; padding-left: 0.1cm; padding-right: 0.1cm; padding-top: 0cm;" width="33%"&gt;&lt;span style="font-family: 'Liberation Serif', serif;"&gt;0.0188 seconds&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;Jinja2とMakoはPython 2.7が速く、GenshiとChameleonはPyPy 1.7が速かった。&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-6822360351150624555?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/6822360351150624555/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/11/pypy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6822360351150624555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6822360351150624555'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/11/pypy.html' title='PyPyでテンプレートエンジンを動かしてみた'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7730135132694792954</id><published>2011-11-24T17:15:00.001+09:00</published><updated>2011-11-25T22:01:29.128+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mercurial'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>pypy 1.7とMerurial</title><content type='html'>PyPy 1.7にMercurialをインストールして色々動かしてみたけどまだcpythonの方が速い。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7730135132694792954?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7730135132694792954/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/11/pypy-17merurial.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7730135132694792954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7730135132694792954'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/11/pypy-17merurial.html' title='pypy 1.7とMerurial'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-1498317119126739571</id><published>2011-11-22T01:37:00.001+09:00</published><updated>2011-11-25T22:01:48.779+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>PyPy 1.7リリース</title><content type='html'>PyPy 1.7がリリースされてた。これまでUbuntu 11.10だと動かなかったが、動くようになってた。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-1498317119126739571?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/1498317119126739571/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/11/pypy-17.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1498317119126739571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1498317119126739571'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/11/pypy-17.html' title='PyPy 1.7リリース'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-412937612038904235</id><published>2011-11-16T01:36:00.001+09:00</published><updated>2011-11-16T01:47:20.688+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu11.10 Japanese Teamによる追加パッケージを利用する</title><content type='html'>リポジトリを追加するため下記コマンドを実行する。&lt;br /&gt;&lt;ul&gt;&lt;li&gt;wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add -&lt;/li&gt;&lt;li&gt;wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | sudo apt-key add -&lt;/li&gt;&lt;li&gt;sudo wget https://www.ubuntulinux.jp/sources.list.d/oneiric.list -O /etc/apt/sources.list.d/ubuntu-ja.list&lt;/li&gt;&lt;li&gt;sudo apt-get update&lt;/li&gt;&lt;/ul&gt;パッケージをアップグレードするため下記コマンドを実行する。&lt;br /&gt;&lt;ul&gt;&lt;li&gt;sudo apt-get upgrade&lt;/li&gt;&lt;/ul&gt;パッケージを追加するため下記コマンドを実行する。&lt;br /&gt;&lt;ul&gt;&lt;li&gt;sudo apt-get install ubuntu-defaults-ja&lt;/li&gt;&lt;li&gt;sudo wget https://www.ubuntulinux.jp/fonts.conf.d/oneiric-69-language-selector-ja-jp.conf -O /etc/fonts/conf.avail/69-language-selector-ja-jp.conf&lt;/li&gt;&lt;li&gt;sudo fontconfig-voodoo -s ja_JP&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.ubuntulinux.jp/products/JA-localized"&gt;参考&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-412937612038904235?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/412937612038904235/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/11/ubuntu1110-japanese-team.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/412937612038904235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/412937612038904235'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/11/ubuntu1110-japanese-team.html' title='Ubuntu11.10 Japanese Teamによる追加パッケージを利用する'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7802465342914237367</id><published>2011-10-25T20:38:00.000+09:00</published><updated>2011-11-25T22:02:04.766+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu11.10でPyPy</title><content type='html'>PyPy Webサイトで公開されていバイナリpypy1.6だとlibffi5がないため動かない。PPAだと64bit版がないため動かない。現状Ubuntu11.10 64bitだと自分でコンパイルしないといけない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7802465342914237367?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7802465342914237367/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110pypy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7802465342914237367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7802465342914237367'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110pypy.html' title='Ubuntu11.10でPyPy'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2048375890230856256</id><published>2011-10-23T18:29:00.001+09:00</published><updated>2011-11-25T22:02:16.958+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu11.10のフォント</title><content type='html'>Ubuntu 11.10のsansフォントは &lt;br /&gt;Gtk+ fc-match sans:lang=ja&lt;br /&gt;Qt fc-match sans&lt;br /&gt;Flash fc-match sans&lt;br /&gt;のフォントを利用している。&lt;br /&gt;&lt;br /&gt;QtやFlashでフォントが変になったらfc-match sansでどのフォントが使用されているか見て設定すればいい。&lt;br /&gt;&lt;br /&gt;わからなければ&lt;br /&gt;/etc/fonts/conf.avail/69-language-selector-ja-jp.conf&lt;br /&gt;&amp;lt;test name="lang" compare="contains"&amp;gt;&lt;br /&gt;&amp;lt;string&amp;gt;ja&amp;lt;/string&amp;gt;&lt;br /&gt;&amp;lt;/test&amp;gt;&lt;br /&gt;を3箇所削除すればいいらしい。(serif,monospace,sans-serifにそれぞれ一つある)&lt;br /&gt;&lt;br /&gt;/etc/fonts/conf.avail/65-nonlatin.confのserif,monospace,sans-serifに&lt;br /&gt;takao fontを追加すれば問題なくなると思うんだけど。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2048375890230856256?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2048375890230856256/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110_23.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2048375890230856256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2048375890230856256'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110_23.html' title='Ubuntu11.10のフォント'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-8324603926506510467</id><published>2011-10-20T02:52:00.000+09:00</published><updated>2011-11-25T22:02:53.977+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Flashのフォントもおかしい</title><content type='html'>Qtアプリのフォントがおかしいと書いたがFlashのフォントもおかしい。Qtアプリと同じフォントで表示される。&lt;br /&gt;Ubuntu11.10はGtk+以外のアプリでフォント周りに問題を抱えているようだ。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-8324603926506510467?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/8324603926506510467/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/10/flash.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8324603926506510467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8324603926506510467'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/10/flash.html' title='Flashのフォントもおかしい'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-6430878523008441991</id><published>2011-10-20T01:45:00.002+09:00</published><updated>2011-11-25T22:03:06.708+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu11.10でQtアプリがおかしい</title><content type='html'>Ubuntu11.04から11.10にアップデートしたあと指定したフォントと別のフォントが選ばれている。&lt;br /&gt;qt4-configでフォントの設定をしても反映されない。&lt;br /&gt;&lt;br /&gt;qt4-configでテーマをGtk+以外に設定するとフォントの設定ができるようになった。&lt;br /&gt;&lt;br /&gt;Ubuntu11.10はとにかく安定して動作しない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-6430878523008441991?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/6430878523008441991/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110qt.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6430878523008441991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6430878523008441991'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110qt.html' title='Ubuntu11.10でQtアプリがおかしい'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-5932767533451111819</id><published>2011-10-14T18:39:00.001+09:00</published><updated>2011-11-25T22:02:37.530+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu11.10は危険かも？</title><content type='html'>さっきまともに動いていると書いたけど、色々と危険な箇所がありそうだ。&lt;br /&gt;まずはAlt-F1を押すとUnityが最前面に出てきてUnityからのアプリの起動とウインドウの最大化、最小化、終了、以外の操作がほぼできなくなった。&lt;br /&gt;キーボード入力はできないしインジケーターも触れない。Xを終わらせることしかできなくなった。 &lt;br /&gt;11.04からアップデートしたのが原因かもしれないがあまりにも動かない箇所が多い。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-5932767533451111819?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/5932767533451111819/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110_14.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5932767533451111819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5932767533451111819'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110_14.html' title='Ubuntu11.10は危険かも？'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-3443547482060671546</id><published>2011-10-14T18:13:00.001+09:00</published><updated>2011-10-14T18:13:44.332+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>Ubuntu11.10インストール</title><content type='html'>Ubuntu11.10をインストール。&lt;br /&gt;あるタイミングでタッチパッドが無効になる以外問題ない。&lt;br /&gt;アプリではGwibberがまともに動かない。すぐに応答しなくなる。あとリストの表示方法がわからない。検索アイコンがない。&lt;br /&gt;まあ今はGwibberを使ってなくてHototを使っているので全く問題ない。&lt;br /&gt;Gwibberがまともに動かなかったらHototかPinoにでも移行したほうがいい。&lt;br /&gt;それ以外はとくに問題はなかった。11.04より全体的にUIが洗練されているように感じた。Gnome3ベースになったのが大きいのかな？&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-3443547482060671546?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/3443547482060671546/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3443547482060671546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3443547482060671546'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/10/ubuntu1110.html' title='Ubuntu11.10インストール'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2745986038633775425</id><published>2011-08-29T13:28:00.000+09:00</published><updated>2011-08-29T13:28:21.063+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mercurial'/><title type='text'>mercurialをpypyで動かす</title><content type='html'>pypy setup.py --pure installでインストール&lt;br /&gt;pypyフォルダ/bin/hgにインストールされる&lt;br /&gt;&lt;br /&gt;色々動かしてみたけど問題なく動いているようだった。&lt;br /&gt;速度に関してはcpythonより遅かった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2745986038633775425?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2745986038633775425/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/08/mercurialpypy.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2745986038633775425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2745986038633775425'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/08/mercurialpypy.html' title='mercurialをpypyで動かす'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7960347948919999421</id><published>2011-08-23T15:39:00.000+09:00</published><updated>2011-08-23T15:39:57.095+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>pypy1.6 リリース</title><content type='html'>pypy1.6がリリースされていた。自分が今使っている用途だと大幅に速くなっていた。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7960347948919999421?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7960347948919999421/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/08/pypy16.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7960347948919999421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7960347948919999421'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/08/pypy16.html' title='pypy1.6 リリース'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-737448051541662960</id><published>2011-07-08T19:08:00.000+09:00</published><updated>2011-07-08T19:08:26.071+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mercurial'/><title type='text'>Mercurial 1.9</title><content type='html'>また日本語ファイル名が使えなくなりました。&lt;br /&gt;ファイル名をUnicodeで管理するのが一番労力がいらない気がする。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-737448051541662960?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/737448051541662960/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/07/mercurial-19.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/737448051541662960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/737448051541662960'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/07/mercurial-19.html' title='Mercurial 1.9'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4523827813854127595</id><published>2011-06-20T15:26:00.002+09:00</published><updated>2011-06-20T15:26:58.273+09:00</updated><title type='text'>thinkpad T510が復活した</title><content type='html'>壊れてから放置してたらいつの間にか復活した。よかった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4523827813854127595?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4523827813854127595/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/06/thinkpad-t510_20.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4523827813854127595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4523827813854127595'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/06/thinkpad-t510_20.html' title='thinkpad T510が復活した'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-5870744002699093460</id><published>2011-06-17T01:33:00.000+09:00</published><updated>2011-06-17T01:33:10.556+09:00</updated><title type='text'>thinkpad T510が壊れた</title><content type='html'>６月購入&lt;br /&gt;１０月１回目の修理。&lt;br /&gt;４月２回目の修理。&lt;br /&gt;６月にまた壊れた。&lt;br /&gt;壊れすぎ。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-5870744002699093460?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/5870744002699093460/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/06/thinkpad-t510.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5870744002699093460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5870744002699093460'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/06/thinkpad-t510.html' title='thinkpad T510が壊れた'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4640355162397863487</id><published>2011-06-08T01:19:00.001+09:00</published><updated>2011-06-08T01:27:22.432+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mercurial'/><title type='text'>BitbucketにSSHでアクセスする。</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: large;"&gt;Linuxの場合&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;公開／秘密鍵を作成&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;ssh-keygen&lt;/pre&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;chmod 644 ~/.ssh/id_rsa.pub&lt;br /&gt;ssh-agent bash&lt;br /&gt;ssh-add&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;Bitbucketに公開鍵を登録&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;BitbucketにログインしてAccountを選択&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;SSH Keysのところで公開鍵を選択してUpload keyを選択&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;Mercurialの設定&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;[ui]&lt;br /&gt;ssh = ssh -C&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;を追加する。&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Windowsの場合&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;公開／秘密鍵を作成&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;Puttygenを起動して「公開／秘密鍵のペアを作成」を実行して公開鍵と秘密鍵を保存する&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;Bitbucketに公開鍵を登録&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;Puttygenの公開鍵をコピーする。&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;BitbucketにログインしてAccountを選択&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;SSH KeysのところでPuttygenでコピーした公開鍵をペーストしてAdd Keyを選択&lt;/pre&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;Mercurialの設定&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;pre style="font-family: 'Courier New', Courier, monospace; line-height: 1.3; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;[ui]&lt;/pre&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 16px; white-space: pre;"&gt;ssh = "&amp;lt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 16px; white-space: pre;"&gt;TortoisePlinkのパス&amp;gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 16px; white-space: pre;"&gt;\TortoisePlink.exe" -ssh -2 -batch -C&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: Arial, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 17px;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: white; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 16px; white-space: pre;"&gt;を追加する。&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 16px; white-space: pre;"&gt;TortoisePlinkの設定&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; line-height: 16px; white-space: pre;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;Pageantを実行してタスクトレイのメニューからAdd Keyを選択して秘密鍵を登録する&lt;/span&gt;&lt;/pre&gt;&lt;pre style="overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;Pagenntを使わない場合はTortoisePlik.exeの引数に-i 秘密鍵のファイルと-pw 鍵のパスフレーズを追加する。&lt;/span&gt;&lt;/pre&gt;&lt;pre style="overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;WindowsでもmingwやcygwinのSSHを使う場合は、Linuxの場合とほとんど同じ。&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4640355162397863487?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4640355162397863487/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/06/bitbucketssh.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4640355162397863487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4640355162397863487'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/06/bitbucketssh.html' title='BitbucketにSSHでアクセスする。'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-58670138400702224</id><published>2011-02-23T10:49:00.000+09:00</published><updated>2011-02-23T10:49:53.921+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chrome'/><title type='text'>chrome 10以降でフォントの設定が反映されない</title><content type='html'>chrome10以降で設定画面が変更になったせいでsans-serifフォントの設定項目がなくなった。&lt;br /&gt;sans-serifフォントを変更するには設定画面を旧バージョンに戻すか(--disable-tabbed-options)&lt;br /&gt;フォームで右クリックメニューのスペルチェックのオプション→言語設定→フォントとエンコードから設定する。&lt;br /&gt;&lt;br /&gt;新バージョンのフォント設定画面のStandart Fontはserifフォントのこと。大抵のページはfont-familyにsan-serifがされているので設定が反映されていないようにみえる。&lt;br /&gt;&lt;br /&gt;chromeの設定ファイル(Preferences)のwebkit→webprefs→sansserif_font_familyを直接いじっても設定できるがミスするとPreferencesが削除されてChromeが起動する。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-58670138400702224?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/58670138400702224/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/02/chrome-10.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/58670138400702224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/58670138400702224'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/02/chrome-10.html' title='chrome 10以降でフォントの設定が反映されない'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-6411612797433343241</id><published>2011-01-29T02:10:00.000+09:00</published><updated>2011-01-29T02:10:40.028+09:00</updated><title type='text'>openSUSE11.3でfontconfigの設定</title><content type='html'>ヒンティングを無効にしてビットマップを使用せずアンチエイリアスをかける設定をしてフォントが見やすくなった。デフォルトの設定がヒンティングが有効だったせいで気づかず困った。&lt;br /&gt;Ubuntuだと最初からかなりの日本語フォントの設定がしてあったんだがopenSUSEでは自分で設定しないといけなかった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-6411612797433343241?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/6411612797433343241/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2011/01/opensuse113fontconfig.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6411612797433343241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6411612797433343241'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2011/01/opensuse113fontconfig.html' title='openSUSE11.3でfontconfigの設定'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-3094231958077211961</id><published>2010-10-29T17:43:00.000+09:00</published><updated>2010-10-29T17:43:49.061+09:00</updated><title type='text'>Gwibberで更新されなくなった</title><content type='html'>Gwibberを使用していたらTwitterのタイムラインが更新されなくなった。&lt;br /&gt;gwibber-serverプロセスを再起動させたら直った。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-3094231958077211961?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/3094231958077211961/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/10/gwibber.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3094231958077211961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3094231958077211961'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/10/gwibber.html' title='Gwibberで更新されなくなった'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-233070784807028937</id><published>2010-09-07T16:20:00.000+09:00</published><updated>2010-09-07T16:20:36.625+09:00</updated><title type='text'>Gwibberをアップデート</title><content type='html'>UbuntuのGwibberをアップデートした。&lt;br /&gt;そのさいに既存のアカウントでOAuth認証をしてもうまくいかなかった。&lt;br /&gt;一旦アカウントを削除したあとOAuth認証を行うとうまくいった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-233070784807028937?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/233070784807028937/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/09/gwibber.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/233070784807028937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/233070784807028937'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/09/gwibber.html' title='Gwibberをアップデート'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2182029330253308968</id><published>2010-08-26T17:54:00.000+09:00</published><updated>2010-08-26T17:54:09.490+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mercurial'/><title type='text'>MercurialのPy3k対応</title><content type='html'>ちょっと見てみたけどWindowsでマルチバイト文字があると動きそうにない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2182029330253308968?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2182029330253308968/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/08/mercurialpy3k.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2182029330253308968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2182029330253308968'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/08/mercurialpy3k.html' title='MercurialのPy3k対応'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-8279143108846419777</id><published>2010-08-06T12:17:00.000+09:00</published><updated>2010-08-06T12:17:37.575+09:00</updated><title type='text'>Ubuntu10.04で起動時にTrackPointのカーソル速度を変更</title><content type='html'>/etc/gdm/PreSession/Defaultに&lt;br /&gt;echo -n 110 &gt; /sys/devices/platform/i8042/serio1/serio2/speed&lt;br /&gt;echo -n 160 &gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity&lt;br /&gt;を追加すると起動時に反映された。&lt;br /&gt;&lt;br /&gt;rc.localに追加すると反映されると書いてあるサイトもあったが自分の環境では反映されなかった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-8279143108846419777?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/8279143108846419777/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/08/ubuntu1004trackpoint.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8279143108846419777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8279143108846419777'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/08/ubuntu1004trackpoint.html' title='Ubuntu10.04で起動時にTrackPointのカーソル速度を変更'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2778309190057607447</id><published>2010-07-09T23:44:00.000+09:00</published><updated>2010-07-09T23:44:19.811+09:00</updated><title type='text'>ubuntuでローマ字カスタマイズ</title><content type='html'>scim-anthyだったら簡単にローマ字テーブルを簡単に変更できたんだがiBus-Anthyだとtable.pyをいじらないといけない。&lt;br /&gt;しかしmozcを使えば簡単にローマ字テーブルを変更できるのでiBusでローマ字テーブルを変更したい場合はmozcを利用したほうが楽。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2778309190057607447?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2778309190057607447/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/07/ubuntu.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2778309190057607447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2778309190057607447'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/07/ubuntu.html' title='ubuntuでローマ字カスタマイズ'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4372017104462162198</id><published>2010-07-01T02:16:00.001+09:00</published><updated>2010-07-01T02:16:42.889+09:00</updated><title type='text'>googleclをインストール</title><content type='html'>googleclをインストールしました。&lt;br /&gt;pipを利用してgoogleclをインストールしたがgdataがインストールされなかったので、&lt;br /&gt;gdataもインストール。&lt;br /&gt;googleclはgdataが必須なので依存関係を設定してほしい。&lt;br /&gt;コンソールに表示される文字コードがUTF-8なのでWindowsで文字化け。&lt;br /&gt;UTF-8をprintで出力しているだけのようなのでprintを関数に変更して、&lt;br /&gt;関数の中で文字列をUnicodeにしてprintを呼べば文字化けは回避できそう。&lt;br /&gt;ただWindowsのコマンドプロンプトでgoogleclを使うメリットはなさそう。&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4372017104462162198?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4372017104462162198/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/07/googlecl.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4372017104462162198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4372017104462162198'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/07/googlecl.html' title='googleclをインストール'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-542165116779580841</id><published>2010-06-06T05:17:00.000+09:00</published><updated>2010-06-06T05:17:18.913+09:00</updated><title type='text'>virtualenvをインストール</title><content type='html'>Windowsマシンでは特に必要はないが、Ubuntuだとやり方を知らないだけかもしれないがaptで管理しているライブラリ以外をインストールできないので最新のライブラリを利用したい場合は使う必要がある。&lt;br /&gt;Ubuntu10.4だとJinja2のせいでFlaskがインストールできないので。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-542165116779580841?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/542165116779580841/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/06/virtualenv.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/542165116779580841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/542165116779580841'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/06/virtualenv.html' title='virtualenvをインストール'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2840311732852685855</id><published>2010-05-08T17:13:00.000+09:00</published><updated>2010-05-08T17:13:06.536+09:00</updated><title type='text'>Chameleon Genshiでバグ</title><content type='html'>Chameleon GenshiでXIncludeを使うと挿入したファイルの最後にNoneが挿入される。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2840311732852685855?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2840311732852685855/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/05/chameleon-genshi.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2840311732852685855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2840311732852685855'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/05/chameleon-genshi.html' title='Chameleon Genshiでバグ'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-633833404207214370</id><published>2010-05-01T18:59:00.005+09:00</published><updated>2010-05-02T17:38:16.461+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>chameleon.genshiを試してみた</title><content type='html'>easy_install ChameleonでChameleonをインストール。&lt;br /&gt;以下のテンプレートファイルを使用して出力。&lt;br /&gt;&lt;br /&gt;base.html&lt;br /&gt;&lt;pre class="prettyprint" id="html"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&lt;br /&gt;xmlns:py="http://genshi.edgewall.org/" py:strip=""&amp;gt;&lt;br /&gt;&amp;lt;py:match path="head" once="true"&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;base&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;/py:match&amp;gt;&lt;br /&gt;&amp;lt;py:match path="body" once="true"&amp;gt;&lt;br /&gt;&amp;lt;body class="index"&amp;gt;&lt;br /&gt;&amp;lt;div id="header"&amp;gt;&lt;br /&gt;&amp;lt;h1&amp;gt;base&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;Welcome!&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="footer"&amp;gt;&lt;br /&gt;&amp;lt;hr /&amp;gt;&lt;br /&gt;&amp;lt;p class="legalese"&amp;gt;c 2007 Edgewall Software&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/py:match&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;genshi.html&lt;br /&gt;&lt;pre class="prettyprint"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&lt;br /&gt;      xmlns:py="http://genshi.edgewall.org"&lt;br /&gt;      xmlns:xi="http://www.w3.org/2001/XInclude"&amp;gt;&lt;br /&gt;  &amp;lt;xi:include href="base.html" /&amp;gt;&lt;br /&gt;  &amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;$title&amp;lt;/title&amp;gt;&lt;br /&gt;  &amp;lt;/head&amp;gt;&lt;br /&gt;  &amp;lt;body class="index"&amp;gt;&lt;br /&gt;    &amp;lt;div id="header"&amp;gt;&lt;br /&gt;   &amp;lt;h1&amp;gt;$title&amp;lt;/h1&amp;gt;&lt;br /&gt; &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;p&amp;gt;Welcome!&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;div id="footer"&amp;gt;&lt;br /&gt;   &amp;lt;hr /&amp;gt;&lt;br /&gt;   &amp;lt;p class="legalese"&amp;gt;c 2007 Edgewall Software&amp;lt;/p&amp;gt;&lt;br /&gt; &amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;chameleon.genshiを使用して出力した結果は以下のようになる。&lt;br /&gt;&lt;pre class="prettyprint" id="html"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org"&amp;gt;&lt;br /&gt;&amp;lt;div id="footer"&amp;gt;&lt;br /&gt;&amp;lt;hr&amp;gt;&lt;br /&gt;&amp;lt;p class="legalese"&amp;gt;c 2007 Edgewall Software&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Welcome!&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div id="header"&amp;gt;&lt;br /&gt;&amp;lt;h1&amp;gt;base&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;genshiでの出力はgenshi.htmlの内容がbase.htmlで上書きされるので大幅に出力結果が違う。&lt;br /&gt;&amp;lt;head&amp;gt;の中身がなくなっている。&amp;lt;body&amp;gt;タグがなくなっている。&amp;lt;body&amp;gt;タグの中身の順番が逆になっている。&lt;br /&gt;&lt;br /&gt;速度は速いけど現時点で実用するのは無理。&lt;br /&gt;genshi以外のテンプレートとくにZPTは使えるかもしれないが試していない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-633833404207214370?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/633833404207214370/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/05/chameleongenshi.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/633833404207214370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/633833404207214370'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/05/chameleongenshi.html' title='chameleon.genshiを試してみた'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-5956636669786295436</id><published>2010-04-14T17:32:00.002+09:00</published><updated>2010-04-14T17:36:30.275+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>python2.6にlxml2.2.6をインストール</title><content type='html'>doc/build.txtに書いている内容を元にコンパイルをしてインストールしたがetree.parseの引数にURIが指定出来ない。&lt;br /&gt;この辺の問題でpython2.6のバイナリが用意できないのかな？&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-5956636669786295436?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/5956636669786295436/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/04/python26lxml226.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5956636669786295436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5956636669786295436'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/04/python26lxml226.html' title='python2.6にlxml2.2.6をインストール'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4435622349585520169</id><published>2010-03-23T10:30:00.002+09:00</published><updated>2010-03-23T10:34:49.753+09:00</updated><title type='text'>python2.6でlxml2.2.4を使う</title><content type='html'>easy_installを使ってlxml2.2.4をインストールしetree.parseの引数にURIを渡すとエラーになる。&lt;br /&gt;lxml2.2.2だと問題ない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4435622349585520169?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4435622349585520169/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/03/python26lxml224.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4435622349585520169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4435622349585520169'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/03/python26lxml224.html' title='python2.6でlxml2.2.4を使う'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-5688360680494178847</id><published>2010-03-22T09:27:00.002+09:00</published><updated>2010-03-22T09:30:36.429+09:00</updated><title type='text'>windowsでpipを使う</title><content type='html'>アンインストールする時に同じファイルにリネームしようとしてエラーになる。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-5688360680494178847?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/5688360680494178847/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/03/windowspip.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5688360680494178847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5688360680494178847'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/03/windowspip.html' title='windowsでpipを使う'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4489296078111726066</id><published>2010-03-11T23:35:00.002+09:00</published><updated>2010-03-11T23:40:13.544+09:00</updated><title type='text'>Google日本語入力</title><content type='html'>今までローマ字カスタマイズができるという理由だけでskk-imeをつかっていたけど、Google日本語入力でローマ字カスタマイズが出来るようになったので乗り換え。&lt;br /&gt;変換結果がかなり微妙だがskk-imeよりローマ字カスタマイズが出来るようになった。&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bitbucket.org/witten/google_ime/"&gt;ローマ字テーブル&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4489296078111726066?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4489296078111726066/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/03/google.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4489296078111726066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4489296078111726066'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/03/google.html' title='Google日本語入力'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-1658001260958907727</id><published>2010-02-27T18:27:00.001+09:00</published><updated>2010-02-27T18:30:07.041+09:00</updated><title type='text'>evnetletとlxmlの併用</title><content type='html'>eventletを使用してhtmlを取得したあとlxmlを使ってparseするとときどき無限ループになる。&lt;br /&gt;並列処理をしてhtmlを取得したあとに無限ループになるようだけどよくわからない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-1658001260958907727?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/1658001260958907727/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/02/evnetletlxml.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1658001260958907727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1658001260958907727'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/02/evnetletlxml.html' title='evnetletとlxmlの併用'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-8310913719714704654</id><published>2010-02-20T21:51:00.001+09:00</published><updated>2010-02-20T21:55:38.706+09:00</updated><title type='text'>pypmでmercurial</title><content type='html'>mercurial 1.4.2だとうまく動かなかったがリポジトリをhttp://pypm-free.activestate.comに変更して1.4.3をインストールしたらhg.batの内容が変わっていて上手く動くようになった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-8310913719714704654?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/8310913719714704654/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/02/pypmmercurial.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8310913719714704654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8310913719714704654'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/02/pypmmercurial.html' title='pypmでmercurial'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7399973525420311752</id><published>2010-01-31T21:34:00.003+09:00</published><updated>2010-02-13T07:19:48.006+09:00</updated><title type='text'>ActivePythonをインストール</title><content type='html'>PyPMを使ってみたいと思いActivePythonをインストール。&lt;br /&gt;pipとyolk機能をあわせた感じだった。&lt;br /&gt;インストール先が変わったのでMercurialのhg.batがうまく動いてくれなかった。&lt;br /&gt;&lt;br /&gt;2/13&lt;br /&gt;Mercurialのhg.batがPEP 370に対応していない。hg.batのコメントに書いてあるように相対パスでpython.exeの場所を指定しているためscriptフォルダの場所が変わるとエラーになる。&lt;br /&gt;hg.batを修正して相対パスではなく絶対パスでpython.exeの場所を指定する必要がある。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7399973525420311752?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7399973525420311752/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2010/01/activepython.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7399973525420311752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7399973525420311752'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2010/01/activepython.html' title='ActivePythonをインストール'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-6730645157089054539</id><published>2009-11-12T00:27:00.002+09:00</published><updated>2009-11-12T00:45:05.553+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bazaar'/><title type='text'>bazaarがすごすぎる</title><content type='html'>mainフォルダを作ってファイルを追加してコミット&lt;br /&gt;bzr branch main trunkでtrunkブランチを作成&lt;br /&gt;trunkでファイルを更新してコミット&lt;br /&gt;bzr push main&lt;br /&gt;bzr brach main testでtestブランチを作成&lt;br /&gt;testでファイルを更新してコミット&lt;br /&gt;trunkでbzr pull&lt;br /&gt;trunkでファイルを更新してコミット&lt;br /&gt;bzr push&lt;br /&gt;testでbzr pull&lt;br /&gt;testでファイルを更新してコミット&lt;br /&gt;bzr push&lt;br /&gt;bzr logで表示されるログがすごいことになってた。枝が一切なく真っ直ぐなログ。&lt;br /&gt;もしかしてbzr branch は枝を作らずただbranch nickを書き換えるだけなのか？&lt;br /&gt;意味不明すぎてすごすぎる。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-6730645157089054539?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/6730645157089054539/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/11/bazaar.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6730645157089054539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6730645157089054539'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/11/bazaar.html' title='bazaarがすごすぎる'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-1217815237069234045</id><published>2009-09-27T02:52:00.002+09:00</published><updated>2009-09-27T03:00:03.277+09:00</updated><title type='text'>utf8fixパッチの更新停止</title><content type='html'>更新しようと思っていたけどすっかり忘れていた。&lt;br /&gt;理由はコミット時のトランザクションファイルを作成しているところでopenを使っているから、&lt;br /&gt;どうしてもMercurialにパッチを当てないと対応できない。&lt;br /&gt;openerを使わずにopenを使っている理由はどうもopenerにフルパスを渡すと例外が発生するからopenを使っているみたい。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-1217815237069234045?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/1217815237069234045/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/09/utf8fix.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1217815237069234045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1217815237069234045'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/09/utf8fix.html' title='utf8fixパッチの更新停止'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4700530209635305478</id><published>2009-07-15T22:41:00.001+09:00</published><updated>2009-07-15T22:44:48.842+09:00</updated><title type='text'>wxPython+Twistedが動かない問題が解決</title><content type='html'>twisted.internet._threadselect.ThreadedSelectReactor._doSelectInThreadでselectした時にEINTRエラーが発生してスレッドがおかしくなっていた。&lt;br /&gt;_threadselect.py 288行目のreturnをcontinueに変更したら一応動くようになった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4700530209635305478?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4700530209635305478/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/wxpythontwisted.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4700530209635305478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4700530209635305478'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/wxpythontwisted.html' title='wxPython+Twistedが動かない問題が解決'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-8372712142105077586</id><published>2009-07-14T02:52:00.001+09:00</published><updated>2009-07-14T02:54:47.150+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>eventletのリポジトリ</title><content type='html'>bitbucketにリポジトリが大量にあってどれを使えばいいのかわからない。&lt;br /&gt;サイトからリンクされているリポジトリは古い。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-8372712142105077586?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/8372712142105077586/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/eventlet.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8372712142105077586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8372712142105077586'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/eventlet.html' title='eventletのリポジトリ'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4354521833551280922</id><published>2009-07-10T00:28:00.003+09:00</published><updated>2009-07-11T03:45:22.208+09:00</updated><title type='text'>全角文字を含むパスでfixutf8が動かない</title><content type='html'>&lt;a href="http://witten-note.blogspot.com/2009/07/fixutf8_05.html"&gt;日本語が含まれるパスでfixutf8が使えない&lt;/a&gt;の続き。&lt;br /&gt;fixutf-jpだとutf-8-&gt;unicodeの変換に失敗するとmbcs-&gt;unicodeに変換するのでhg initやhg statなどは動く。&lt;br /&gt;しかしcommitが動かない。openにutf-8の文字列を渡しているのが原因。__builtin__.openをフックしてパス名だけをUnicodeに変換すれば動くようにできると思うがやりかたがわからない。&lt;br /&gt;&lt;br /&gt;7/11追記&lt;br /&gt;openが動かないのはローカルの環境だった。現状はopenまで行けずos.chdirでこける。&lt;br /&gt;wrapしてないのが原因。os.chdirをwrapするとopenでこける。&lt;br /&gt;__builtins__.openをwrapしてもwrapした関数が呼ばれず__builtins__.openが呼ばれる。&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(255, 255, 255); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:メイリオ;font-size:medium;"  &gt;&lt;span class="Apple-style-span" style="color: rgb(82, 82, 82); letter-spacing: -1px;font-family:'Lucida Grande','Trebuchet MS',Tahoma,Arial,sans-serif;font-size:17px;"  &gt;&lt;a href="http://bitbucket.org/witten/hg-fixutf-jp-patch/" style="color: rgb(43, 84, 125); text-decoration: underline;"&gt;hg-fixutf-jp-patch&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;を更新した。&lt;br /&gt;fixutf8を更新するより、Mercurial内部のファイル名の文字コードをUnicodeに変換してリポジトリのファイル名の文字コードをutf-8にした方が絶対に楽だ。&lt;br /&gt;fixutf8自体ascii以外のファイル名しか想定していない。リポジトリのパスにascii以外の文字コードが入るとを動かなくなる。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4354521833551280922?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4354521833551280922/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8_10.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4354521833551280922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4354521833551280922'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8_10.html' title='全角文字を含むパスでfixutf8が動かない'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4813515761004286897</id><published>2009-07-07T01:40:00.003+09:00</published><updated>2009-07-07T01:48:48.695+09:00</updated><title type='text'>utf8fixのコマンドライン関連のパッチ</title><content type='html'>&lt;a href="http://witten-note.blogspot.com/2009/07/fixutf8-repository.html"&gt;fixutf8を有効にすると --repositoryが使えなくなる&lt;/a&gt;バグを修正したパッチをbitbucketに置いた。&lt;br /&gt;tortoisehgでコミットできない原因は削除されるパラメーターが間違っていたわけではなく、&lt;br /&gt;コマンドを実行していなかったのでコマンドラインが取得できなかったのが原因。&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(255, 255, 255); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;font-family:メイリオ;font-size:medium;"  &gt;&lt;span class="Apple-style-span" style="color: rgb(82, 82, 82); letter-spacing: -1px;font-family:'Lucida Grande','Trebuchet MS',Tahoma,Arial,sans-serif;font-size:17px;"  &gt;&lt;a href="http://bitbucket.org/witten/hg-fixutf-jp-patch/" style="color: rgb(43, 84, 125); text-decoration: underline;"&gt;hg-fixutf-jp-patch&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4813515761004286897?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4813515761004286897/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/utf8fix.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4813515761004286897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4813515761004286897'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/utf8fix.html' title='utf8fixのコマンドライン関連のパッチ'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7345408656252251188</id><published>2009-07-05T18:18:00.003+09:00</published><updated>2009-07-05T18:36:47.674+09:00</updated><title type='text'>日本語が含まれるパスでfixutf8が使えない</title><content type='html'>コメントで指摘されてた件ですが、&lt;br /&gt;&lt;a href="http://witten-note.blogspot.com/2009/07/fixutf8-repository_05.html"&gt;fixutf8を有効にすると --repositoryが使えなくなる原因&lt;/a&gt;でも少し書きましたが、起動時にリポジトリのパスを設定した後、プラグインのロードを行っているため、パスをutf-8に変換できずcp932で保存するためエラーになる。&lt;br /&gt;&lt;br /&gt;対処方法としては文字コード判定処理を入れるのが一番簡単かもしれない。&lt;br /&gt;やり方としてはutf-8からUnicodeに変換しているところで今はignoreを指定して変換してるがstrictを指定して変換するように変更し例外が発生したらstrictを指定してlocale.getpreferredencoding()で取得した文字コードからUnicodeに変換しまた例外が発生したらignoreを指定してutf-8からUnicodeに変換する方法が思いついたが責任は持てない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7345408656252251188?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7345408656252251188/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8_05.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7345408656252251188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7345408656252251188'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8_05.html' title='日本語が含まれるパスでfixutf8が使えない'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-1828943301152486566</id><published>2009-07-05T17:53:00.002+09:00</published><updated>2009-07-05T18:18:15.860+09:00</updated><title type='text'>fixutf8を有効にすると --repositoryが使えなくなる原因</title><content type='html'>mercurialは起動時にコマンドライン引数の内--config、--cwd、--repositoryオプションの処理をしてコマンドラインから削除してからプラグインのロードを始める。&lt;br /&gt;fixutf8はロードされた際にコマンドラインをUnicodeで取得してutf-8に変換している。&lt;br /&gt;この時に行われるコマンドラインを削除する処理が適当で、--config、--cwd、--repositoryオプションを削除しないといけないのに、削除されたコマンドライン数分前のコマンドラインを削除している。&lt;br /&gt;このためhg -R /home/witten/hg commitのコマンドラインはcommitが残るがhg  commit -R /home/witten/hgのようなコマンドラインは/home/witten/hgが残ってしまいそんなコマンドはないとエラーが表示される。&lt;br /&gt;tortoisehgが作成するコマンドラインはhg  commit --verbose --repository /home/witten/hg -m logのためエラーが発生する。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-1828943301152486566?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/1828943301152486566/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8-repository_05.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1828943301152486566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1828943301152486566'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8-repository_05.html' title='fixutf8を有効にすると --repositoryが使えなくなる原因'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-8412611523913737037</id><published>2009-07-05T03:39:00.003+09:00</published><updated>2009-07-05T03:44:51.646+09:00</updated><title type='text'>fixutf8を有効にすると --repositoryが使えなくなる</title><content type='html'>--repositoryを指定すると hg: unknown command path名と表示される。&lt;br /&gt;tortoisehgでcommit出来なくなるのもこれが原因&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-8412611523913737037?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/8412611523913737037/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8-repository.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8412611523913737037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8412611523913737037'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8-repository.html' title='fixutf8を有効にすると --repositoryが使えなくなる'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-206718668894349673</id><published>2009-07-05T03:24:00.000+09:00</published><updated>2009-07-05T03:26:53.330+09:00</updated><title type='text'>Mercurial 1.3 のwindows binaryでfixutf8が動かない</title><content type='html'>ctypesがない。&lt;br /&gt;Mercurial本体では使ってないからね。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-206718668894349673?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/206718668894349673/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/mercurial-13-windows-binaryfixutf8.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/206718668894349673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/206718668894349673'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/mercurial-13-windows-binaryfixutf8.html' title='Mercurial 1.3 のwindows binaryでfixutf8が動かない'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2474897681538333029</id><published>2009-07-05T02:52:00.001+09:00</published><updated>2009-07-05T02:54:50.664+09:00</updated><title type='text'>Mercurial 1.3で文字化け</title><content type='html'>ubuntu Mercurial 1.3でhg helpを実行すると改行しているところで文字化け。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2474897681538333029?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2474897681538333029/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/mercurial-13.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2474897681538333029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2474897681538333029'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/mercurial-13.html' title='Mercurial 1.3で文字化け'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-1581198065607272015</id><published>2009-07-03T06:05:00.002+09:00</published><updated>2009-07-03T06:08:33.842+09:00</updated><title type='text'>mercurial 1.3 + tortoisehg 0.8</title><content type='html'>windowsでfixutf8を有効にするとcommitできない。(すべてアルファベットでも)&lt;br /&gt;それ以外のコマンドlogとstatは一応問題なく動いている。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-1581198065607272015?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/1581198065607272015/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/mercurial-13-tortoisehg-08.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1581198065607272015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1581198065607272015'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/mercurial-13-tortoisehg-08.html' title='mercurial 1.3 + tortoisehg 0.8'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4706589911522704733</id><published>2009-07-01T03:53:00.002+09:00</published><updated>2009-07-01T04:09:10.219+09:00</updated><title type='text'>fixutf8でUnicodeDecodeErrorを出さないようにする</title><content type='html'>fixutf8を使ってaddremoveをするとutf-8と元々の文字コード(日本語版のWindowsならcp932)の2つが混在し必ずUnicodeDecodeErrorが発生する。&lt;br /&gt;&lt;br /&gt;win32helper.pyの81行目u = s.decode('utf-8')のdecode関数に'ignore'か'replace'の引数を追加することで2つの文字コードが混在していてもUnicodeDecodeErrorが発生しなくなる。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4706589911522704733?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4706589911522704733/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8unicodedecodeerror.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4706589911522704733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4706589911522704733'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8unicodedecodeerror.html' title='fixutf8でUnicodeDecodeErrorを出さないようにする'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-5309232593195825725</id><published>2009-07-01T02:49:00.002+09:00</published><updated>2009-07-01T02:56:32.442+09:00</updated><title type='text'>fixutf8を使うために設定しないといけないこと</title><content type='html'>環境を変えたとたんに動かなくなり、いろいろ設定を変更して動くようになった。&lt;br /&gt;&lt;br /&gt;1. HGENCODINGをutf-8にする。しなくても一応動くがascii以外のログメッセージがコミット出来なくなる。&lt;br /&gt;&lt;br /&gt;2. エディタはutf-8でbomを付けないものを使用する。notepadはbomを付けるので別のエディタにする。&lt;br /&gt;&lt;br /&gt;fixutf8の説明に一切書いてないので苦労した。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-5309232593195825725?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/5309232593195825725/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5309232593195825725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5309232593195825725'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/07/fixutf8.html' title='fixutf8を使うために設定しないといけないこと'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4393521548558057320</id><published>2009-06-29T03:30:00.002+09:00</published><updated>2009-06-29T03:33:13.894+09:00</updated><title type='text'>UbuntuでwxPython+Twistedが動かなくなった</title><content type='html'>昔(8.10)は動いていたと思うが、9.04だと動かない。&lt;br /&gt;web.clientをコールしたあと結果が帰ってこない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4393521548558057320?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4393521548558057320/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/06/ubuntuwxpythontwisted.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4393521548558057320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4393521548558057320'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/06/ubuntuwxpythontwisted.html' title='UbuntuでwxPython+Twistedが動かなくなった'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7858509165529329298</id><published>2009-06-28T08:48:00.002+09:00</published><updated>2009-06-28T08:52:09.229+09:00</updated><title type='text'>hgsubversionのパス指定先を変更</title><content type='html'>今までプラグインのパス指定が~/hgsubversionだったのが~/hgsubversion/hgsubversionに変わってた。&lt;br /&gt;setup.pyを追加するために変更されたらしい。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7858509165529329298?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7858509165529329298/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/06/hgsubversion.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7858509165529329298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7858509165529329298'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/06/hgsubversion.html' title='hgsubversionのパス指定先を変更'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-6727788619779788067</id><published>2009-06-18T21:53:00.002+09:00</published><updated>2009-06-18T21:58:11.186+09:00</updated><title type='text'>Scalaでプログラム</title><content type='html'>あまりにも資料がないためにまったく進まず諦めてPythonで作り直そうかと考えている。&lt;br /&gt;かなりの時間をかけてやっとTabのなかにTableを入れるところまで出来たが苦労した。&lt;br /&gt;JTable自体かなり特殊なのもあると思うが、Tableのヘッダーに文字を追加するのにこんなに苦労するとは思わなかった。&lt;br /&gt;GoogleCodeSearchはとても便利だと改めて感じた。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-6727788619779788067?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/6727788619779788067/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/06/scala.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6727788619779788067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6727788619779788067'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/06/scala.html' title='Scalaでプログラム'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2943414621712125099</id><published>2009-06-13T12:06:00.002+09:00</published><updated>2009-06-13T12:09:00.640+09:00</updated><title type='text'>UbuntuのDropboxをバージョンアップ</title><content type='html'>Ubuntuのバージョンを9.04にアップデートしたら今まで利用していたDropboxが動かなくなっていたのでバージョンアップした。&lt;br /&gt;これまでGnomeのみで自動起動していたのが他の環境でも自動起動するようになっていた。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2943414621712125099?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2943414621712125099/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/06/ubuntudropbox.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2943414621712125099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2943414621712125099'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/06/ubuntudropbox.html' title='UbuntuのDropboxをバージョンアップ'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2238286703688411732</id><published>2009-06-11T16:52:00.001+09:00</published><updated>2009-06-11T16:55:21.128+09:00</updated><title type='text'>bpythonをインストールした</title><content type='html'>&lt;span style="font-family: arial;"&gt;最初のうちは見やすくて補完などもちゃんとできていて使いやすいと思っていたが、&lt;br /&gt;日本語を使おうとするとUnicodeDecodeErrorが発生して終了する。&lt;br /&gt;日本語を使うことも多いのでまったく使えない。&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2238286703688411732?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2238286703688411732/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/06/bpython.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2238286703688411732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2238286703688411732'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/06/bpython.html' title='bpythonをインストールした'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-5774801637265735637</id><published>2009-06-06T16:45:00.002+09:00</published><updated>2009-06-06T16:49:51.134+09:00</updated><title type='text'>pyqt 4.5リリース</title><content type='html'>pyqt4.5が6/5にリリースされた。ライセンスはGPLのままらしい。&lt;br /&gt;今回のバージョンアップでpython3.0に正式対応している。他のGUIライブラリに比べれば速い対応だと思う。&lt;br /&gt;今wxPythonを使っているので今すぐ使うつもりはないが、使ってみたいとは思っている。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-5774801637265735637?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/5774801637265735637/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/06/pyqt-45.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5774801637265735637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/5774801637265735637'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/06/pyqt-45.html' title='pyqt 4.5リリース'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7920579326733145706</id><published>2009-05-13T03:38:00.002+09:00</published><updated>2009-05-13T03:42:23.403+09:00</updated><title type='text'>hg-fixutf8が動くようになってた</title><content type='html'>これまでまともに動作していなかったhg-fixutf8がやっと実用できるレベルになっていた。&lt;br /&gt;これでwin32mbcsを使う必要がなくなった。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7920579326733145706?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7920579326733145706/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/05/hg-fixutf8.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7920579326733145706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7920579326733145706'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/05/hg-fixutf8.html' title='hg-fixutf8が動くようになってた'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-1041519547565608333</id><published>2009-05-06T08:57:00.003+09:00</published><updated>2009-05-06T09:37:47.551+09:00</updated><title type='text'>win32mbcs-patchを更新</title><content type='html'>&lt;span class="nf"&gt;7890の変更でpconvertがutil.pyからwindows.pyに移動していた。&lt;br /&gt;元々pconvertでは、util.splitpathを呼んでいたが、windows.pyに移動したため&lt;/span&gt;&lt;span class="nf"&gt;util.splitpathが呼べなくなり&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sep&lt;/span&gt;&lt;span class="p"&gt;)を呼ぶように変更された。&lt;br /&gt;splitpathはwin32mbcsでunicodeに変換して処理をしていたためpconvertを呼ぶとファイル名に0x5c&lt;/span&gt;&lt;span class="nf"&gt;&lt;/span&gt;&lt;span class="n"&gt;&lt;/span&gt;&lt;span class="o"&gt;&lt;/span&gt;&lt;span class="n"&gt;&lt;/span&gt;&lt;span class="p"&gt;&lt;/span&gt;&lt;span class="n"&gt;&lt;/span&gt;&lt;span class="o"&gt;&lt;/span&gt;&lt;span class="n"&gt;&lt;/span&gt;&lt;span class="p"&gt;&lt;/span&gt;があった場合、動かなくなっていた。&lt;br /&gt;&lt;br /&gt;今回の修正ではutil.pconvertとwindows.pconvertを&lt;span class="p"&gt;win32mbcsでunicodeに変換して処理をするようにした。&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-1041519547565608333?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/1041519547565608333/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/05/win32mbcs-patch.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1041519547565608333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1041519547565608333'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/05/win32mbcs-patch.html' title='win32mbcs-patchを更新'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-1969858602539956948</id><published>2009-04-22T06:22:00.002+09:00</published><updated>2009-04-25T01:27:27.642+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>lxml.objectifyの問題</title><content type='html'>メソッドとタグ名が同じだとタグ名でタグにアクセスできない。&lt;br /&gt;他のライブラリGnosis objectifyやBeautifulSoupでも同じようにアクセスできない。&lt;br /&gt;Gnosis objectifyはメソッド自体がほとんどないのでそれほど気にする必要はないと思う。&lt;br /&gt;Amaraは同じ名前があると_タグ名でアクセスできる。&lt;br /&gt;BeautifulSoupやlxml.objectifyを使ってアクセスする場合はメソッド名をすべて把握して重複する時は、xpathやfindなど別の方法でアクセスする必要がある。&lt;br /&gt;もしかするとAmaraのような回避方法があるかもしれないが調べてない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-1969858602539956948?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/1969858602539956948/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/04/lxmlobjectify.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1969858602539956948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/1969858602539956948'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/04/lxmlobjectify.html' title='lxml.objectifyの問題'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-4534860908879119799</id><published>2009-04-17T05:39:00.003+09:00</published><updated>2009-04-25T01:28:03.312+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>BeautifulSoupの最新版</title><content type='html'>BeautifulSoupの最新版がLunchpadで公開されていたが大幅に変更されていた。&lt;br /&gt;(LunchpadはBazaarを入れないとソースがダウンロードできなかったはずなのであまり好きではない。&lt;br /&gt;Bazaar自体もローカルでコミット出来るサーバ型なのであまり好きではない。まともに実用できるsvkみたいなイメージがある。)&lt;br /&gt;これまでBeutifulSoup.pyだけだったのが複数ファイルになり、その上lxmlを利用できるようになっていた。&lt;br /&gt;パース時の速度がかなり遅かったのでこの変更は期待できるかもしれないがlxmlを利用してもそこ以外が遅ければまったく意味がない。&lt;br /&gt;個人的にはxpathを使うよりBeautifulSoupの方が目的の要素を探すのが楽だから期待はしている。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-4534860908879119799?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/4534860908879119799/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/04/beautifulsoup.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4534860908879119799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/4534860908879119799'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/04/beautifulsoup.html' title='BeautifulSoupの最新版'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-3794653410610308181</id><published>2009-04-16T17:02:00.002+09:00</published><updated>2009-04-25T01:28:03.312+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>chameleon.genshiが速い</title><content type='html'>&lt;a href="http://pypi.python.org/pypi/chameleon.genshi/"&gt;chameleon.genshi&lt;/a&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;Genshi template                               665.46 ms&lt;br /&gt;Mako Template                                 102.64 ms&lt;br /&gt;Djange template                               784.00 ms&lt;br /&gt;Spitfire template                              87.78 ms&lt;br /&gt;Spitfire template -O1                          54.63 ms&lt;br /&gt;Spitfire template -O2                          23.70 ms&lt;br /&gt;Spitfire template -O3                          23.22 ms&lt;br /&gt;Spitfire template -O4                          14.42 ms&lt;br /&gt;StringIO                                      113.35 ms&lt;br /&gt;cStringIO                                      25.57 ms&lt;br /&gt;list concat                                    20.83 ms&lt;br /&gt;ChameleonGenshi                               114.44 ms&lt;br /&gt;ChameleonZPT                                  121.35 ms&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;spitfireに付属していたbigtable.pyにchameleon.genshiとchameleon.zptを追加して計測。&lt;br /&gt;ただしspitfireのサイトにあるベンチマークの結果に比べてchameleon.zptが遅いのが気になる。&lt;br /&gt;&lt;br /&gt;あとgenshiとどれくらい互換性があるのかわからないが普通に使う分にはとくに問題はなかった。&lt;br /&gt;ただし改行の仕方がまったく違うのでその点は注意する必要がある。&lt;br /&gt;&lt;br /&gt;makoとほとんど速度が変わらないのでこれまでxmlベースのテンプレートは遅いという理由でgenshiを避けてた人は&lt;br /&gt;chameleon.genshiを使えば速度の問題は回避できそう。&lt;br /&gt;&lt;br /&gt;どうでもいいけどspitfireの速さは異常。いくらpsycoを使っているとはいえ、一行ごとリストを追加するより速いとは。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-3794653410610308181?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/3794653410610308181/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/04/chameleongenshi.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3794653410610308181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3794653410610308181'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/04/chameleongenshi.html' title='chameleon.genshiが速い'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-7251463034102585886</id><published>2009-04-08T00:59:00.000+09:00</published><updated>2009-04-25T01:28:03.312+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>win32mbcs-patch更新</title><content type='html'>最新だとパッチが当てれなかったので更新&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-7251463034102585886?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/7251463034102585886/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/04/win32mbcs-patch.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7251463034102585886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/7251463034102585886'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/04/win32mbcs-patch.html' title='win32mbcs-patch更新'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-117521646179864033</id><published>2009-04-01T04:01:00.002+09:00</published><updated>2009-04-25T01:28:03.312+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>pythonの次期VCSがMercurialに決定</title><content type='html'>&lt;a href="http://mail.python.org/pipermail/python-dev/2009-March/087931.html"&gt;http://mail.python.org/pipermail/python-dev/2009-March/087931.html&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;&gt;The decision is made! I've selected a DVCS to use for Python. We're&lt;br /&gt;&gt;switching to Mercurial (Hg).&lt;br /&gt;&lt;br /&gt;bazaarはブランチを扱うのが面倒だったりするので、&lt;br /&gt;GitかMercurialになればいいなあと思っていました。&lt;br /&gt;&lt;br /&gt;正式にmercurialへの移行が決まったことは今自分が使っていることもあり、良かったと思います。&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-117521646179864033?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/117521646179864033/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/04/pythonvcsmercurial.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/117521646179864033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/117521646179864033'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/04/pythonvcsmercurial.html' title='pythonの次期VCSがMercurialに決定'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-8907676753266844804</id><published>2009-03-19T18:03:00.000+09:00</published><updated>2009-04-25T01:28:11.998+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>lxmlがpython3に対応してた</title><content type='html'>lxml 2.2 beta4でpython3に対応したみたい。&lt;br /&gt;lxmlが使っているCythonは去年の11月にリリースされた0.10で対応してたようだ。&lt;br /&gt;Python3自体インストールしていないので試してはいない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-8907676753266844804?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/8907676753266844804/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/03/lxmlpython3.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8907676753266844804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/8907676753266844804'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/03/lxmlpython3.html' title='lxmlがpython3に対応してた'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-6228397299848315267</id><published>2009-03-14T04:25:00.002+09:00</published><updated>2009-04-25T01:28:11.998+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>wxPython TreeListCtrl</title><content type='html'>TreeListCtrlを使うときはFrameでイベントをbindしても受け取れずにTreeListCtrl.GetMainWindowに対してbindするとFrameでイベントを受け取れる。&lt;br /&gt;Linux(Gtk+)だと上からリサイズするとヘッダーが欠ける。&lt;br /&gt;&lt;br /&gt;他のウィジェットとはかなり使い方が違う箇所がある上、ドキュメントもサンプルもほとんどない。&lt;br /&gt;そのため動作が不安定な所があるが使い方を間違えているのか、TreeListCtrlのバグか判断することができない。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-6228397299848315267?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/6228397299848315267/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/03/wxpython-treelistctrl.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6228397299848315267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6228397299848315267'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/03/wxpython-treelistctrl.html' title='wxPython TreeListCtrl'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-3716189924023807897</id><published>2009-03-13T01:18:00.002+09:00</published><updated>2009-04-25T01:28:11.998+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Amara2</title><content type='html'>Amaraでは4Suite_XMLを使っていたが、Amara2ではライブラリに依存せずC拡張を使っている。&lt;br /&gt;速度がAmaraで5秒ぐらいかかっていたものがAmara2では1秒ぐらいしかかからなくなっており高速化されており、ElementTreeとほど変わらない速度になっている。&lt;br /&gt;APIが大幅に変わっており、amara.parseはdomパーサに変わっており、Amaraと同じように使うには、amara.bindery.parseを使うように変更する必要がある。&lt;br /&gt;関数名と同じタグがあった場合、Amaraだと_タグ名でアクセスする必要があったがAmara2だとエラーが発生する。&lt;br /&gt;html5libを使えば、amara.bindery.html.parseでhtmlを扱うことも出来る。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-3716189924023807897?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/3716189924023807897/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/03/amara2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3716189924023807897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/3716189924023807897'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/03/amara2.html' title='Amara2'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-6739055724656575003</id><published>2009-03-09T20:30:00.002+09:00</published><updated>2009-04-25T01:28:11.999+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Mercurial Bookmarks Extension</title><content type='html'>headにローカルタグを付ける拡張。ブランチのように利用することができる。&lt;br /&gt;ブランチはchangesetに保存するため作成すると削除することができないが、&lt;br /&gt;bookmarksは".hg/bookmarks"に保存するため"hg bookmark -d"で削除することができる。&lt;br /&gt;&lt;br /&gt;&gt;hg bookmark test&lt;br /&gt;&gt;hg bookmarks&lt;br /&gt;* test 0:00465edff3ff&lt;br /&gt;&gt;hg commit&lt;br /&gt;&gt;hg bookmarks&lt;br /&gt;* test 1:cad989aa14e1&lt;br /&gt;&gt;hg update -r0&lt;br /&gt;&gt;hg bookmark test2&lt;br /&gt;&gt;hg bookmarks&lt;br /&gt;  test 1:cad989aa14e1&lt;br /&gt;* test2 0:00465edff3ff&lt;br /&gt;&gt;hg commit&lt;br /&gt;create new head&lt;br /&gt;&gt;hg bookmarks&lt;br /&gt;  test 1:cad989aa14e1&lt;br /&gt; * test2 2:bd7b9b5e2796&lt;br /&gt;&gt;hg bookmark -d test&lt;br /&gt;&gt;hg bookmarks&lt;br /&gt;* test2 2:bd7b9b5e2796&lt;br /&gt;&lt;br /&gt;コミットするとブックマークがheadに移動する。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-6739055724656575003?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/6739055724656575003/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/03/mercurial-bookmarks-extension.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6739055724656575003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/6739055724656575003'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/03/mercurial-bookmarks-extension.html' title='Mercurial Bookmarks Extension'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-452591646397136389</id><published>2009-03-06T09:17:00.002+09:00</published><updated>2009-04-25T01:28:11.999+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>BitbucketにPatchを登録する</title><content type='html'>&lt;ol&gt;&lt;li&gt;BitbucketでPatchをあてるリポジトリを表示させてpatch queueを選択してリポジトリを作成。&lt;/li&gt;&lt;li&gt;1で作成したリポジトリをhg qcloneをする。&lt;/li&gt;&lt;li&gt;MQを使ってPatchを作成する。&lt;/li&gt;&lt;li&gt;hg qcommitをする。&lt;/li&gt;&lt;li&gt;patchフォルダ(&lt;code&gt;&lt;/code&gt;.hg/patches)に移動してhg pushする。&lt;/li&gt;&lt;/ol&gt;&lt;a href="http://ches.nausicaamedia.com/articles/technogeekery/using-mercurial-queues-and-bitbucket"&gt;Patch Queues&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-452591646397136389?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/452591646397136389/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/03/bitbucketpatch.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/452591646397136389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/452591646397136389'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/03/bitbucketpatch.html' title='BitbucketにPatchを登録する'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-2479702393713236418</id><published>2009-03-06T01:55:00.002+09:00</published><updated>2009-04-25T01:28:23.007+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>mercurialで'0x5c'が含まれるパスに対応させるpatch</title><content type='html'>Mercurial 1.2がリリースされていたので、'0x5c'が含まれるパスでも動くようにするpatchを作成した。&lt;br /&gt;簡単な確認をして動作を確認したものをbitbacketに置いておきます。&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bitbucket.org/witten/win32mbcs-patch/"&gt;win32mbcs-patch&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-2479702393713236418?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/2479702393713236418/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/03/mercurial0x5cpatch.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2479702393713236418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/2479702393713236418'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/03/mercurial0x5cpatch.html' title='mercurialで&apos;0x5c&apos;が含まれるパスに対応させるpatch'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-911079310636938555</id><published>2009-02-25T01:18:00.002+09:00</published><updated>2009-04-25T01:28:23.007+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Mercurialでwin32text extentionを使うときに注意すること</title><content type='html'>win32text extentionを使う場合は、すべてのリポジトリで使った方がいい。&lt;br /&gt;win32text extentionを使っていない環境でCRLFを追加してwin32text extentionを使っている環境に&lt;br /&gt;持ってくるとすべての行が変更されたことになる。(リポジトリの改行はCRLFでファイルは変換されてLFになるため)&lt;br /&gt;こうなった場合は、CRLFのファイルだけwin32text extentionを使わないようにするか、win32text extentionを使わないようにしてrevertするしかないと思う。&lt;br /&gt;&lt;br /&gt;ちなみにCRLFのファイルを登録しないようにするには、win32text extentionを有効にして、&lt;br /&gt;設定ファイルに&lt;br /&gt;[hooks]&lt;br /&gt;pretxncommit.crlf = python:hgext.win32text.forbidcrlf&lt;br /&gt;と書けばいい。&lt;br /&gt;そうするとCRLFのファイルがあるとcommitできなくなる。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-911079310636938555?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/911079310636938555/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/02/mercurialwin32text-extention.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/911079310636938555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/911079310636938555'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/02/mercurialwin32text-extention.html' title='Mercurialでwin32text extentionを使うときに注意すること'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4963475472717192504.post-185933311768955811</id><published>2009-02-22T22:17:00.003+09:00</published><updated>2009-04-25T01:28:23.007+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Mercurialでファイル名に0x5cがあるとコミットできない</title><content type='html'>2chで話題になっていたんで試してみたら見事にcommitできず。&lt;br /&gt;環境は、mercurial 1.1.2 windows win32mbcs extention有効状態&lt;br /&gt;直接ファイル名を指定するとcommitできるけど、&lt;br /&gt;hg commitだと追加したファイルだと認識されない。&lt;br /&gt;原因はutil.pyでファイル名とディレクトリを分ける処理でrfind(sep)としているから。&lt;br /&gt;これ以外にもフォルダ名の終端が'0x5c'だとabortしたりと悲惨なことになってた。&lt;br /&gt;原因はosutil.cの_listdirでファイル名の終端がセパレーターか調べているところで、最後の文字がマルチバイトか調べてないから。&lt;br /&gt;&lt;br /&gt;win32mbcs extentionが出て来たころはここまで酷くなかったと思ってたんだが。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4963475472717192504-185933311768955811?l=witten-note.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://witten-note.blogspot.com/feeds/185933311768955811/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://witten-note.blogspot.com/2009/02/mercurial0x5c.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/185933311768955811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4963475472717192504/posts/default/185933311768955811'/><link rel='alternate' type='text/html' href='http://witten-note.blogspot.com/2009/02/mercurial0x5c.html' title='Mercurialでファイル名に0x5cがあるとコミットできない'/><author><name>witten</name><uri>http://www.blogger.com/profile/05816124690678981908</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
