<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns="http://purl.org/rss/1.0/"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
 xmlns:image="http://purl.org/rss/1.0/modules/image/"
 xmlns:admin="http://webns.net/mvcb/"
 xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel rdf:about="http://highfrontier.ldblog.jp/">
<title>As mind is suitable...</title>
<link>http://highfrontier.ldblog.jp/</link>
<description>気になる話題にちょっとコメントを…

</description>
<dc:language>ja</dc:language>
<admin:generatorAgent rdf:resource="http://blog.livedoor.com/?v=2.0" />
<image rdf:resource="http://image.profile.livedoor.jp/icon/highfrontier_60.gif"/>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<items>
 <rdf:Seq>
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/52004061.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51998469.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51997943.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51990950.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51984917.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51975204.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51974699.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51968023.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51964174.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51964158.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51948954.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51946572.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51937948.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51937052.html" />
  <rdf:li rdf:resource="http://highfrontier.ldblog.jp/archives/51936384.html" />
 </rdf:Seq>
</items>
</channel>
<image rdf:about="http://image.profile.livedoor.jp/icon/highfrontier_60.gif">
 <title>As mind is suitable...</title>
 <link>http://highfrontier.ldblog.jp/</link>
 <url>http://image.profile.livedoor.jp/icon/highfrontier_60.gif</url>
</image>
<item rdf:about="http://highfrontier.ldblog.jp/archives/52004061.html">
<title>unisonでパスフレーズ入れないでフォルダ同期</title>
<link>http://highfrontier.ldblog.jp/archives/52004061.html</link>
<description>unisonでパスフレーズ入れないでフォルダ同期したかったのでmemo

とりあえず、ssh経由でrsyncを使ってバックアップを取っていたが思い立ってunisonで同期したくなった人向けでもあるσ(^◇^;)

と言うわけで、sshでバックアップしていた相手先マシンにパスフレーズなしでrsy...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2010-02-09T09:54:56+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[<div class="section">
<p>unisonでパスフレーズ入れないでフォルダ同期したかったのでmemo</p>

<p>とりあえず、ssh経由でrsyncを使ってバックアップを取っていたが思い立ってunisonで同期したくなった人向けでもあるσ(^◇^;)</p>

<p>と言うわけで、sshでバックアップしていた相手先マシンにパスフレーズなしでrsyncする用の公開鍵を事前につくっておいてそれを利用するという内容</p>

<p>具体的なコマンドは以下。</p>

<pre>
 $ unison -sshargs '-i /home/USER/.ssh/rsync' \
 &gt; /home/USER/DIRECTORY \
 &gt; ssh://SERVER//backup/DIRECTORY \
 &gt; -batch -fastcheck false [-silent]|&lt;
</pre>

<p> -silentオプションはcronで実行する時に使うと余分なlog増えなくてよい。</p>
<p>ミソは-sshargs '-i hogehoge'の部分。</p>
<p>最初rsyncのように-sshcmd 'ssh -i hogehoge'とやっても意味なかったのでおかしーなと思っていたら-sshargsというそのものズバリのオプションがunisonにはあったσ(^◇^;)</p>
</div>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=52004061" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51998469.html">
<title>mmm-modeでgccのMD（machine description）ファイルを編集する</title>
<link>http://highfrontier.ldblog.jp/archives/51998469.html</link>
<description>** 事前準備
 mmm-mode を http://sourceforge.net/projects/mmm-mode/ からダウンロードし、configure ＆ make install しておく

** .emacsに以下の設定

&amp;gt;||
 	
(setq auto-mode-alist (append (list
                               '(&quot;.md&quot; . emacs-lisp-mod...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2010-01-28T16:50:02+09:00</dc:date>
<dc:subject>emacs</dc:subject>
<content:encoded><![CDATA[<div class="section">
<h4> 事前準備</h4>
<p> mmm-mode を <a href="http://sourceforge.net/projects/mmm-mode/">http://sourceforge.net/projects/mmm-mode/</a> からダウンロードし、configure ＆ make install しておく</p>

<h4> .emacsに以下の設定</h4>

<pre>
 	
(setq auto-mode-alist (append (list
                               '(&quot;.md&quot; . emacs-lisp-mode)
                              auto-mode-alist)))
;; mmm-mode
(require 'mmm-mode)
(setq mmm-global-mode 'maybe)
;; md mode
(mmm-add-classes
 '((md
    :submode asm-mode
    :front &quot;\&quot;@&quot;
    :back &quot;\&quot;&quot;
    :insert ((?t md nil @ &quot;\&quot;@&quot;
                 @ &quot;\n&quot; _ &quot;\n&quot; @ &quot;\&quot;&quot; @))
    )))
(mmm-add-mode-ext-class nil &quot;\\.md?\\'&quot; 'md))
</pre>

<p>"@改行　～　"はアセンブラ複数行だからいいが、</p>

<p>"{ ～　}"でC++-modeもやりたいのだが…だれか追記する方法教えてくださいm(._.)m おねがい</p>
</div>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51998469" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51997943.html">
<title>背景に画像を使ったWEBページをなるべく見たまま必要な所だけを切り出して印刷する方法</title>
<link>http://highfrontier.ldblog.jp/archives/51997943.html</link>
<description>nanapiとかいい感じに印刷したいんだけど、背景の枠の部分とかうまく印刷できないので以下のようにしたら成功したのでメモ &quot;φ(・ェ・o)~メモメモ

+ ”Print What You Like” [http://www.printwhatyoulike.com/] で必要な所だけ切り出す
+ ”Print What You Like” の save...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2010-01-27T14:43:43+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[<div class="section">
<p>nanapiとかいい感じに印刷したいんだけど、背景の枠の部分とかうまく印刷できないので以下のようにしたら成功したのでメモ "φ(・ェ・o)~メモメモ</p>

<ol>
<li> ”Print What You Like” <a href="[http://www.printwhatyoulike.com/]">[http://www.printwhatyoulike.com/]</a> で必要な所だけ切り出す</li>
<li> ”Print What You Like” の save asでhtmlにする</li>
<li> このとき開いたローカルのURLをコピー</li>
<li> 開いたHTMLを Shutter [apt:shutter] を使いWEBサイトのスクリーンショットの機能をつかって上でコピーしたURLでキャプチャ。</li>
<li> 印刷</li>
</ol>

<p>難点は画像としてプリンタに送信されるので、プリンタ側で画像の展開に時間がかかるってことで、他の人が急いでるときには使えないワザだったりするσ(^◇^;)</p>
</div>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51997943" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51990950.html">
<title>bookmarkletをとりあえず読めるようにする</title>
<link>http://highfrontier.ldblog.jp/archives/51990950.html</link>
<description>bookmarkletをコピってきても読みにくいので簡単に読めるようにするのはどーしたもんかjavascript:void(0)と。
いままでsedを使って
$ echo &quot;javascript:var%20b=new%20Array();hogegoge..&quot; | nkf --url-input | sed -e 's/;/;\n/g'
としてきたのだがindentがなくて読みにく...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2010-01-12T11:08:13+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[bookmarkletをコピってきても読みにくいので簡単に読めるようにするのはどーしたもんかjavascript:void(0)と。
いままでsedを使って
<blockquote>$ echo "javascript:var%20b=new%20Array();hogegoge.." | nkf --url-input | sed -e 's/;/;\n/g'</blockquote>
としてきたのだがindentがなくて読みにくい。で、思い出したのがastyleというコマンド。これ使うと読みやすくなる。

たとえば
<blockquote>javascript:(function(){var%20i,c,x,h;%20for(i=0;x=document.links[i];++i) %20{%20h=x.getAttribute(%22href%22);%20x.title+=%22%20%22%20+%20x.innerHTML; %20while(c=x.firstChild)x.removeChild(c);%20 x.appendChild(document.createTextNode(h));%20}%20})()</blockquote>
こんなbookmarkletがあったら、
sedの代わりにastyleを使えば読みやすくになる。
<blockquote>$ echo "javascript:(function(){var%20i,c,x,h;%20for(i=0;x=document.links[i];++i) %20{%20h=x.getAttribute(%22href%22);%20x.title+=%22%20%22%20+%20x.innerHTML; %20while(c=x.firstChild)x.removeChild(c);%20 x.appendChild(document.createTextNode(h));%20}%20})()" | nkf --url-input | astyle
<pre> javascript:
 (function() {
     var i,c,x,h;
     for (i=0;x=document.links[i];++i) {
         h=x.getAttribute("href");
         x.title+=" " + x.innerHTML;
         while (c=x.firstChild)x.removeChild(c);
         x.appendChild(document.createTextNode(h));
     }
 })()
 $</pre></blockquote>
まぁbookmarkletを読む機会そのものがなかなかないわけだが(ﾟ∀ﾟ)
<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51990950" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51984917.html">
<title>flashのボタンが押せなかったので（karmic koara/amd64)</title>
<link>http://highfrontier.ldblog.jp/archives/51984917.html</link>
<description>年末動画三昧にそなえてw

http://labs.adobe.com/downloads/flashplayer10_64bit.html
ここからlibflashplayer.soをダウンロード
で、以下の様にインストール
# sudo -s
# apt-get remove flashplugin-nonfree flashplugin-installer
# mv libflashplayer.so /usr/lib/mozil...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-12-31T01:40:53+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[年末動画三昧にそなえてw

http://labs.adobe.com/downloads/flashplayer10_64bit.html
ここからlibflashplayer.soをダウンロード
で、以下の様にインストール
<blockquote><pre># sudo -s
# apt-get remove flashplugin-nonfree flashplugin-installer
# mv libflashplayer.so /usr/lib/mozilla/plugins
# cd /usr/lib/xulrunner-addons/plugins
# ln -s ../../mozilla/plugins/libflashplayer.so ./</pre></blockquote>

ブラウザは再起動すればさっきまで押せなかったflashのボタンが押せるようになる。

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51984917" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51975204.html">
<title>Canon iR C4580 &amp; LBP1820をkarmic koaraで使う</title>
<link>http://highfrontier.ldblog.jp/archives/51975204.html</link>
<description>Canonのドライバをまんまインストールしようとすると依存関係がドータラと面倒なことになったのでやり方を変えてみた。次回の更新時用の自分メモw


各プリンタは一旦 システム管理＞印刷 から”Canon LIPS-IV Foomatic/lips4 (recommended)” でインストール
Canon iR C4580...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-12-10T14:17:58+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[<p>Canonのドライバをまんまインストールしようとすると依存関係がドータラと面倒なことになったのでやり方を変えてみた。次回の更新時用の自分メモw</P>

<ol>
<li>各プリンタは一旦 システム管理＞印刷 から”Canon LIPS-IV Foomatic/lips4 (recommended)” でインストール</li>
<li>Canon iR C4580のほうは以下のパッチを当てたPPDで設定を上書き
<blockquote><pre>--- CNCUPSIRC4580LJ.ppd.org	2008-10-29 12:27:46.000000000 +0900
+++ CNCUPSIRC4580LJ.ppd	2009-12-10 11:46:24.545856354 +0900
@@ -28,7 +28,10 @@
 *cupsVersion: 1.1
 *cupsManualCopies: True
 *cupsModelNumber: 114
-*cupsFilter: "application/vnd.cups-postscript 0 pstolipscpca"
+*%cupsFilter: "application/vnd.cups-postscript 0 pstolipscpca"
+*cupsFilter:	"application/vnd.cups-postscript 100 foomatic-rip"
+*cupsFilter:	"application/vnd.cups-pdf 0 foomatic-rip"
+*cupsFilter:	"application/vnd.apple-pdf 25 foomatic-rip"
 *ModelName: "iR C3880/C4580 LIPS4"
 *ShortNickName: "iR C3880/C4580"
 *NickName: "Canon iR C3880/C4580 LIPS4 ver.1.8"</pre></blockquote></li>
<li> LBP1820 は 2.の用にするとPSをそのまま印刷するハメになるので以上でおわり（原因は探っていないがどうせソースのプリントアウトにしかつかわないので問題無し）</li>
</ol>

<p>以下も何かあったら参照
http://www.openprinting.org/show_printer.cgi?recnum=Canon-LIPS-IV
</P>
<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51975204" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51974699.html">
<title>debian系ディストでクリーンインストール</title>
<link>http://highfrontier.ldblog.jp/archives/51974699.html</link>
<description>今までインストールしてたパッケージの一覧を得る

&amp;gt; $ dpkg --get-selections &amp;gt;myselections

今までインストールしてたパッケージの一覧をクリーン

&amp;gt; $ dpkg --clear-selections

一覧からパッケージをインストール

&amp;gt; $ dpkg --set-selections  dpkg --get-s...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-12-09T11:11:45+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[<div class="section">
<p>今までインストールしてたパッケージの一覧を得る</p>

<p>> $ dpkg --get-selections >myselections</p>

<p>今までインストールしてたパッケージの一覧をクリーン</p>

<p>> $ dpkg --clear-selections</p>

<p>一覧からパッケージをインストール</p>

<p>> $ dpkg --set-selections <myselections</p>

<p>ネタ元 man dpkg</p>

<p>ついでにインストール済みパッケージに説明をつけたいときは</p>

<p>> dpkg --get-selections | awk '{print $1}'| env COLUMNS=256 xargs dpkg -l </p>

<p>さらに追記</p>

<p>システムを切り替えたばっかりでパッケージが足りないときの対処法はコマンドの前にauto-apt runをつける</p>

<p>> $ auto-apt run COMMAND</p>

<p>でも</p>

<p>> $ sudo apt-get install auto-apt</p>

<p>すると結構大量の依存パッケージが入るが俺の場合普通に使うコンパイル環境までついでに入るので別の意味で重宝w</p>
</div>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51974699" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51968023.html">
<title>PCで見てたサイトをPSP向けにブックマーク</title>
<link>http://highfrontier.ldblog.jp/archives/51968023.html</link>
<description>PCで見てたページをPSPで開きたいときのやり方を考えた。

PCでWebブラウジングしててメモる方法ははてなやbit.lyやGoogleReaderなどいろいろ。
でもPSPでは、どれもログインするためのユーザーIDやパスワードを入れるがﾒﾝﾄﾞい。
というわけでいいこと思いつきました。

その...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-11-25T17:29:56+09:00</dc:date>
<dc:subject>PSP</dc:subject>
<content:encoded><![CDATA[<div class="section">
<p>PCで見てたページをPSPで開きたいときのやり方を考えた。</p>

<p>PCでWebブラウジングしててメモる方法ははてなやbit.lyやGoogleReaderなどいろいろ。</p>
<p>でもPSPでは、どれもログインするためのユーザーIDやパスワードを入れるがﾒﾝﾄﾞい。</p>
<p>というわけでいいこと思いつきました。</p>

<p>その方法はtwitter</p>

<p>もばついをいつも使ってるのでtwitterに投稿しといてPCでPSPで開きたいものには★をつけとく。</p>

<p>これで後から見つけやすい。いい感じw</p>
</div>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51968023" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51964174.html">
<title>sshでのログインが遅いので…</title>
<link>http://highfrontier.ldblog.jp/archives/51964174.html</link>
<description>新しいサーバーへのsshでのログインに時間がかかったので古いマシンと比較してみた。
前のサーバーでは以下の部分ように変更していたので新しいマシンでも同じように変更した。
自分メモをここに残しておく。

diff -u /etc/ssh/sshd_config.org /etc/ssh/sshd_config
--- /e...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-11-18T13:47:55+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[新しいサーバーへのsshでのログインに時間がかかったので古いマシンと比較してみた。
前のサーバーでは以下の部分ように変更していたので新しいマシンでも同じように変更した。
自分メモをここに残しておく。

<blockquote><pre>diff -u /etc/ssh/sshd_config.org /etc/ssh/sshd_config
--- /etc/ssh/sshd_config.org	2009-11-16 21:49:03.636079399 +0900
+++ /etc/ssh/sshd_config	2009-11-18 13:40:40.319635941 +0900
@@ -75,3 +75,7 @@
 Subsystem sftp /usr/lib/openssh/sftp-server
 
 UsePAM yes
+
+UseDNS=no
+GSSAPIAuthentication no
+AddressFamily inet</pre></blockquote>
<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51964174" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51964158.html">
<title>PSPでPodcastを聞く方法</title>
<link>http://highfrontier.ldblog.jp/archives/51964158.html</link>
<description>iPodだと聞き終わったPodcastは次の同期のとき自動で消せるんで精神衛生上非常に良かったのだが、PSPのRSSチャンネルはそれぞれのチャンネル毎に残せる数が設定できるだけで聞き終わったチャンネルがどれだかまったく分かりにくい。(highfroniterだけでしょうか？σ(^◇^;))
...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-11-18T12:17:34+09:00</dc:date>
<dc:subject>たわごと</dc:subject>
<content:encoded><![CDATA[<div class="section">
<p>iPodだと聞き終わったPodcastは次の同期のとき自動で消せるんで精神衛生上非常に良かったのだが、PSPのRSSチャンネルはそれぞれのチャンネル毎に残せる数が設定できるだけで聞き終わったチャンネルがどれだかまったく分かりにくい。(highfroniterだけでしょうか？σ(^◇^;))</p>

<p>そんなこんなでいろいろと考えた結果、RSSチャンネルを一つにし、時系列に並べ(新しい順に勝手に並ぶがw)て管理するのが便利だと、判断した。</p>

<p>と言うわけで以下のようにした。</p>

<ol>
<li> 基本方針としてはPSPに一週間分のPodcastを蓄積させる。</li>
<li> 聞き逃したら、PCで聞くことにする。</li>
</ol>

<p>以上をふまえ、</p>

<ol>
<li> Podcastの管理をPSPからpodcast.comへ集約。</li>
<li> 滅多にないが独自形式のRSSがあったりするのでPodcast.comへ登録する時にRSSの情報をノーマライズしておく(PubDateとかそのへんもろもろをyahoo pipesを使って規格に沿った形へノーマライズ)。</li>
<li> podcast.comの機能で最新のものだけを集めたRSSを出す事ができるのでそれをyahoo pipesに渡す。</li>
<li> 一週間分だけを出力</li>
</ol>

<p>なお、一週間に複数発行しているPodcastは一昨日、昨日、今日という時間でRSSを分割し、それぞれをpocast.comに登録する事で対応。</p>

<p>RSSの管理をWebServiceに集約した事でPSPのｸｿな入力を使わずにPodcastの登録・削除をPCで出来るようになって非常便利になった。</p>
<p>だいたいPSPでPodcastって規格に沿ってないやつ登録できなかったりするのがあったり、そもそもPodcastのあるページ表示できなかったりするんだもんなーー、困ったものだ。</p>

<p>問題は聞く時間。やっぱ倍速再生ほしいw</p>
</div>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51964158" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51948954.html">
<title>デフォルトのemacsを変える</title>
<link>http://highfrontier.ldblog.jp/archives/51948954.html</link>
<description># update-alternatives --config emacs

`emacs' を提供する 2 個の alternatives があります。

  選択肢       alternative
-----------------------------------------------
          1    /usr/bin/emacs-snapshot
*+        2    /usr/bin/emacs22

デフォルト[*] の...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-10-19T14:09:34+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[<i>#</i> <b>update-alternatives --config emacs</b><br>
<br>
`emacs' を提供する 2 個の alternatives があります。<br>
<br>
  選択肢       alternative<br>
-----------------------------------------------<br>
          1    /usr/bin/emacs-snapshot<br>
*+        2    /usr/bin/emacs22<br>
<br>
デフォルト[*] のままにするには Enter、さもなければ選択肢の番号のキーを押してください: <b>1</b><br>
'emacs' を提供するために '/usr/bin/emacs-snapshot' を使います。<br>
<i>#</i>
<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51948954" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51946572.html">
<title>eyeD3がこけるので</title>
<link>http://highfrontier.ldblog.jp/archives/51946572.html</link>
<description>ubuntu 9.04 で eyeD3が
'ascii' codec can't encode characters in position 17-30: ordinal not in range(128)
と言ってこけるので
/etc/python2.6/sitecustomize.py
に細工した。
# diff -ud sitecustomize.py.org sitecustomize.py
--- sitecustomize.py.org	2009-04-19 ...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-10-15T00:02:44+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[ubuntu 9.04 で eyeD3が
<blockquote>'ascii' codec can't encode characters in position 17-30: ordinal not in range(128)</blockquote>
と言ってこけるので
/etc/python2.6/sitecustomize.py
に細工した。
<blockquote># diff -ud sitecustomize.py.org sitecustomize.py
<pre>--- sitecustomize.py.org	2009-04-19 11:50:18.000000000 +0900
+++ sitecustomize.py	2009-10-15 00:00:24.000000000 +0900
@@ -1,4 +1,7 @@
 # install the apport exception handler if available
+import sys
+sys.setdefaultencoding('utf-8')
+
 try:
     import apport_python_hook
 except ImportError:</pre></blockquote>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51946572" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51937948.html">
<title>運動会の思い出を教えてください！ ってことで思い出してみる</title>
<link>http://highfrontier.ldblog.jp/archives/51937948.html</link>
<description>男子校だったのでｱﾂかったw
しかーし、文化系の部活のリレーで、それそで部活のアイテム持って走ったりw
うちは楽器持って走るのは今思えばかなり危険σ(^◇^;)
ン十万の楽器、転んで壊したらどーすんじゃw
まーﾈﾀでもって走っただけで、楽器持つ必要はなかったんだけどね＞...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-09-28T15:58:41+09:00</dc:date>
<dc:subject></dc:subject>
<content:encoded><![CDATA[男子校だったのでｱﾂかったw<br>
しかーし、文化系の部活のリレーで、それそで部活のアイテム持って走ったりw<br>
うちは楽器持って走るのは今思えばかなり危険σ(^◇^;)<br>
ン十万の楽器、転んで壊したらどーすんじゃw<br>
まーﾈﾀでもって走っただけで、楽器持つ必要はなかったんだけどね＞みんなﾊﾞｶw
<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51937948" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51937052.html">
<title>linux環境でWindowsで作った日本語ファイル名入りzipの解凍の仕方</title>
<link>http://highfrontier.ldblog.jp/archives/51937052.html</link>
<description>文字化け対策メモ

unzip -O cp932 FromWindowsZip.File.zip</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-09-26T22:31:55+09:00</dc:date>
<dc:subject>linux</dc:subject>
<content:encoded><![CDATA[文字化け対策メモ

<blockquote>unzip -O cp932 FromWindowsZip.File.zip</blockquote>
<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51937052" width="1" height="1" />
]]>
</content:encoded>
</item>
<item rdf:about="http://highfrontier.ldblog.jp/archives/51936384.html">
<title>EmacsMuse(2) : LaTeX publishの時まともなfigure環境を使いたい</title>
<link>http://highfrontier.ldblog.jp/archives/51936384.html</link>
<description>タイトル通りなんだけどσ(^◇^;)
期末で報告書の作成でどーしても細かい設定しないとはみ出して困ったチャンになっちゃったので作ってみた。本当は生LaTeXで書くのが筋なんだろーけど、締めまでもう一週間もない。・゜゜・(≧◯≦)・゜゜・。

(defun muse-publish-figure-t...</description>
<dc:creator>highfrontier</dc:creator>
<dc:date>2009-09-25T17:24:33+09:00</dc:date>
<dc:subject>emacs</dc:subject>
<content:encoded><![CDATA[タイトル通りなんだけどσ(^◇^;)
期末で報告書の作成でどーしても細かい設定しないとはみ出して困ったチャンになっちゃったので作ってみた。本当は生LaTeXで書くのが筋なんだろーけど、締めまでもう一週間もない。・゜゜・(≧◯≦)・゜゜・。

<blockquote><pre>(defun muse-publish-figure-tag (beg end &optional attr)
  (let* (
	 (position (cdr (assoc "position" attrs)))
	 (caption (cdr (assoc "caption" attrs)))
	 (label (cdr (assoc "label" attrs)))
	 (center (cdr (assoc "center" attrs)))
         (centerp (and (stringp center) (string= center "t")))
	 )
    (if (muse-style-derived-p 'latex)
	(progn
	  (muse-publish-ensure-block beg end)
	  (goto-char beg)
	  (insert (concat "\\begin{figure}"
　　　　　  (if (stringp position)
　　　　　　　(concat "[" position "]\n") "\n")))
	  (if centerp (insert "\\begin{center}\n"))
	  (goto-char end)
	  (if (stringp label)
　　　　　  (insert (concat "\\label{" label "}\n")))
	  (if (stringp caption)
            (insert (concat "\\caption{" caption "}\n")))
	  (if centerp (insert "\\end{center}\n"))
	  (insert "\\end{figure}")
	  (muse-publish-mark-read-only beg (point))))))
(add-to-list 'muse-publish-markup-tags
             '("figure" t t nil muse-publish-figure-tag))</pre></blockquote>

<img src="http://counter2.blog.livedoor.com/c?ro=1&act=rss&output=no&id=109791&name=highfrontier&pid=51936384" width="1" height="1" />
]]>
</content:encoded>
</item>

</rdf:RDF>
