<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>数奇な因子 &#187; software</title>
	<atom:link href="http://www.numericalfactor.org/wp/tag/software/feed" rel="self" type="application/rss+xml" />
	<link>http://www.numericalfactor.org/wp</link>
	<description>Numerical Factor</description>
	<lastBuildDate>Sun, 02 May 2010 09:50:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>セッション+リバースプロクシで悩んだ</title>
		<link>http://www.numericalfactor.org/wp/archives/267</link>
		<comments>http://www.numericalfactor.org/wp/archives/267#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:44:32 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/?p=267</guid>
		<description><![CDATA[Apache モジュール mod_proxy を使ってリバースプロクシを掛けているwebサーバとの間で，cgiからセッション情報をやり取りしたかったのだけど，さっぱりうまくいかず，なぜかクッキーファイルが量産されていた… [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://httpd.apache.org/docs/2.2/ja/mod/mod_proxy.html">Apache モジュール mod_proxy</a> を使ってリバースプロクシを掛けているwebサーバとの間で，cgiからセッション情報をやり取りしたかったのだけど，さっぱりうまくいかず，なぜかクッキーファイルが量産されていた…つまり常に新しいセッションが作られていた．</p>

<p>答えは，クライアントが見ている（と思っている）サーバと実際にcgiが動いているサーバが違うとかそんな理由で，サーバ側とクライアント側でクッキーのドメインとかパスが食い違っていたせいと思われます．
というわけで，ProxyPass/ProxyPassReverseディレクティブだけでなく，以下の二つも設定してやり（上のリンク先参照），双方の齟齬を埋めてやらないといけないのでした．</p>

<pre><code>ProxyPassReverseCookieDomain internal-domain public-domain
ProxyPassReverseCookiePath internal-path public-path
</code></pre>

<p>これでおk．一仕事終えたので，寝よう．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/267/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiz/AIGLX/fglrx plays well on gutsy</title>
		<link>http://www.numericalfactor.org/wp/archives/256</link>
		<comments>http://www.numericalfactor.org/wp/archives/256#comments</comments>
		<pubDate>Thu, 13 Mar 2008 10:00:48 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/256</guid>
		<description><![CDATA[最近まで Xgl を使って Compiz を動かしてましたが，もう一回 AIGLX を試してみようと思いました．
前に試したときは Xgl の方が速かったのでずっとそうしてましたが，
きっと AMD（ATI）のドライバも [...]]]></description>
			<content:encoded><![CDATA[<p>最近まで Xgl を使って Compiz を動かしてましたが，もう一回 AIGLX を試してみようと思いました．
前に試したときは Xgl の方が速かったのでずっとそうしてましたが，
きっと AMD（ATI）のドライバも，そろそろこなれてるだろうと期待．
なにより Xgl だと KDE4 のディスプレイ設定が開けない．</p>

<p>というわけで，<a href="http://ati.amd.com/support/drivers/linux/linux-radeon.html">AMD のドライバ</a>を落としてきて，<a href="http://forlong.blogage.de/article/2007/10/23/fglrx-8423---finally-with-AIGLX-support">参考文献</a>を見ながらインストール．</p>

<p>わりとすんなり入れられて，速度も上々．ディスプレイ設定も見られる．
ついでに GTK のテーマとエンジンを <a href="http://www.gnome-look.org/content/show.php?content=56438">Aurora</a> にして，
綺麗になりました．</p>

<p><a rel="lightbox" href='http://www.numericalfactor.org/wp/wp-content/uploads/scr0313.jpg' title='EmeraldのテーマはsolidLine'><img src='http://www.numericalfactor.org/wp/wp-content/uploads/scr0313min.png' alt='EmeraldのテーマはsolidLine' /></a></p>

<p>さあ，卒論の手直しをしよう…．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/256/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two days left until the dream becomes reality.</title>
		<link>http://www.numericalfactor.org/wp/archives/252</link>
		<comments>http://www.numericalfactor.org/wp/archives/252#comments</comments>
		<pubDate>Thu, 10 Jan 2008 14:39:34 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/252</guid>
		<description><![CDATA[新年明けました．


KDE4 の最初のリリースである KDE4.0 が
あとちょっとでリリース．楽しみです．
昨日気づいたけど，TCCC07の商品がまだ来ない．
UVAがだいぶ前に新システムになったけど，
新システム側 [...]]]></description>
			<content:encoded><![CDATA[<p>新年明けました．</p>

<ul>
<li><a href="http://www.kde.org/">KDE4</a> の最初のリリースである KDE4.0 が
あとちょっとでリリース．楽しみです．</li>
<li>昨日気づいたけど，TCCC07の商品がまだ来ない．</li>
<li><a href="http://acm.uva.es/problemset/">UVA</a>がだいぶ前に<a href="http://icpcres.ecs.baylor.edu/onlinejudge/">新システム</a>になったけど，
新システム側はページ閲覧すらできない．</li>
</ul>

<p><pre>
[ ! ] ページのリダイレクト設定が正しくありません</p>

<p>このアドレスへのリクエストに対する
サーバのリダイレクト設定がループしています。</p>

<ul>
<li>Cookie を無効化したり拒否していることにより、
この問題が発生している可能性もあります。
</pre></li>
</ul>

<p>Firefoxがこんなエラーメッセージ出します．Cookieはもちろん受け入れてますが．</p>

<p>Mozilla Suiteとかならいけるのに…なんかまずい設定してたかな．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/252/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MPI</title>
		<link>http://www.numericalfactor.org/wp/archives/233</link>
		<comments>http://www.numericalfactor.org/wp/archives/233#comments</comments>
		<pubDate>Tue, 04 Sep 2007 14:24:02 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac osx]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/233</guid>
		<description><![CDATA[Message Passing Interface.
並列計算機でメッセージ交換をするための規格．MPICH, LAM/MPI, OpenMPI, MSMPIなどの実装がある．

普通のPCでも動くことが分かったので（ま [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Message_Passing_Interface">Message Passing Interface</a>.
並列計算機でメッセージ交換をするための規格．<a href="http://www-unix.mcs.anl.gov/mpi/mpich/">MPICH</a>, <a href="http://www.lam-mpi.org/">LAM/MPI</a>, <a href="http://www.open-mpi.org/">OpenMPI</a>, <a href="http://www.microsoft.com/japan/technet/windowsserver/library/4cb68e33-024b-4677-af36-28a1ebe9368f.mspx">MSMPI</a>などの実装がある．</p>

<p>普通のPCでも動くことが分かったので（まあプロセス間通信してるだけだから出来ますよね），入れてみた．
MacBookにはMacPortsで、UbuntuにはaptでどちらもMPICHを．</p>

<ul>
<li>mpdboot（Ubuntuのみ）</li>
<li>mpicc/mpif77 でコンパイル</li>
<li>mpirun -np N ./a.out で実行（Nはプロセス数）</li>
<li>mpdstop（Ubuntuのみ）</li>
</ul>

<p>こんな手順で行けた．Mac側のmpdデーモンは勝手に動いてる?</p>

<p>あとはホームディレクトリに .mpd.conf が必要だった．secretwordってどうすんだろ．
PCクラスタとかで，同じsecretwordのホストだけ参加したりするのか．</p>

<p>とりあえず文字列を送るテストをしたら，Ubuntuのマシン（Pen4）では6プロセス以上だとCPUが忙しそうだった．</p>

<p><a href="http://www.openmp.org/">OpenMP</a>を使うよりさらに並列化したい場合は，MPIで明示的にメッセージを飛ばしてやる方が細かく指示できて効果が期待できるということらしい．その分複雑で面倒，と．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/233/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最近のgccは気を利かせすぎるようだ</title>
		<link>http://www.numericalfactor.org/wp/archives/214</link>
		<comments>http://www.numericalfactor.org/wp/archives/214#comments</comments>
		<pubDate>Mon, 20 Aug 2007 16:02:48 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[algorithm]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[uva]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/214</guid>
		<description><![CDATA[UVAに送信してて思った．

手元ではコンパイル通る（-Wall付きで）のに，向こうではコンパイルエラー．
よく見ると必要なライブラリをincludeしてない，ということが最近よく起こりました．

なんで #includ [...]]]></description>
			<content:encoded><![CDATA[<p>UVAに送信してて思った．</p>

<p>手元ではコンパイル通る（-Wall付きで）のに，向こうではコンパイルエラー．
よく見ると必要なライブラリをincludeしてない，ということが最近よく起こりました．</p>

<p>なんで #include&lt;cstdio&gt; が無いのに，何の問題もなくsprintf使えてるんだ…みたいな．</p>

<pre><code>gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
</code></pre>

<p>使ってるコンパイラはこれですが，こういうのをチェックするオプションって無いんでしょうか．
バージョンが違うと，こうも動作が違うものか…．</p>

<p>関係ないけど，<a href="http://acm.uva.es/p/v3/369.html">UVA369</a>がちょっと面白かった．</p>

<p>組合せ数<sub>N</sub>C<sub>M</sub>を出せという話なんですが，5 &#8806; N, M &#8806; 100．定義通り書くとすると <img src='http://www.numericalfactor.org/wp/wp-content/uploads/texclip20070821005022.png' alt='N!/( (N-M)! * M!)' /> を計算するけど，
100の階乗って10の150乗より大きい値（問題文に書いてある）なわけで．</p>

<p>これに対応するには? 任意精度の整数を使えば出来ます．
階乗にする数は高々100なので，
1!から100!まで配列に入れといて必要になったら呼び出せば毎回計算せずに済む．
あとは定義通りに計算でおkと．</p>

<p>で，多倍長整数を使いたくない場合，
というか多分期待されてる回答はこれだと思うのですが．</p>

<p>私も多倍長整数使いたくないので何かいい性質がないかと<a href="http://ja.wikipedia.org/wiki/%E7%B5%84%E5%90%88%E3%81%9B_%28%E6%95%B0%E5%AD%A6%29">組合せ (数学) &#8211; Wikipedia</a>
を読んでたら，ありました．つかこの程度の知識は持っとけと言われるかも．</p>

<p><img src='http://www.numericalfactor.org/wp/wp-content/uploads/texclip20070821005521.png' alt='{}_N \mathrm{C} _M = {}_{N-1} \mathrm{C} _M + {}_{N-1} \mathrm{C} _{M-1}' /></p>

<p>ある二つの組合せ数が分かってれば次の一つが計算できると．
というわけで次のようなN&times;Mの表を作ります．</p>

<table>
<thead>
<tr>
  <th>N\M</th>
  <th>1</th>
  <th>2</th>
  <th>3</th>
  <th>4</th>
  <th>5</th>
  <th>6</th>
  <th>7</th>
  <th>8</th>
</tr>
</thead>
<tbody>
<tr>
  <td>1</td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>2</td>
  <td>2</td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>3</td>
  <td>3</td>
  <td></td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>4</td>
  <td>4</td>
  <td></td>
  <td></td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>5</td>
  <td>5</td>
  <td></td>
  <td></td>
  <td></td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>6</td>
  <td>6</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td>1</td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>7</td>
  <td>7</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td>1</td>
  <td></td>
</tr>
<tr>
  <td>8</td>
  <td>8</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td>1</td>
</tr>
</tbody>
</table>

<p><sub>N</sub>C<sub>N</sub>=1，<sub>N</sub>C<sub>1</sub>=nが分かればこれだけ埋められます．問題文にM &#8806; Nだと書いてある（組合せ数だからこれは当然）ので，表の左下三角部分だけ埋めれば良い．</p>

<p>ここでさっきの式が使えるわけですね．この表ではNは下方向に，Mは右方向に向かってそれぞれ増えていくので，式を当てはめると，あるセルAの上と左上のセルの値が分かればその和がセルAの値! という話になります．</p>

<table>
<thead>
<tr>
  <th>N\M</th>
  <th>1</th>
  <th>2</th>
  <th>3</th>
  <th>4</th>
  <th>5</th>
  <th>6</th>
  <th>7</th>
  <th>8</th>
</tr>
</thead>
<tbody>
<tr>
  <td>1</td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>2</td>
  <td>2</td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>3</td>
  <td>3</td>
  <td>3</td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>4</td>
  <td>4</td>
  <td>6</td>
  <td>4</td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>5</td>
  <td>5</td>
  <td>10</td>
  <td>10</td>
  <td>5</td>
  <td>1</td>
  <td></td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>6</td>
  <td>6</td>
  <td>15</td>
  <td>20</td>
  <td>15</td>
  <td>6</td>
  <td>1</td>
  <td></td>
  <td></td>
</tr>
<tr>
  <td>7</td>
  <td>7</td>
  <td>21</td>
  <td>35</td>
  <td></td>
  <td></td>
  <td></td>
  <td>1</td>
  <td></td>
</tr>
<tr>
  <td>8</td>
  <td>8</td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td></td>
  <td>1</td>
</tr>
</tbody>
</table>

<p>こんな感じ．上の解法とは違って和しかとらないので簡単．しかも問題文にあるように全ての計算がlongで収まるので多倍長の計算が不要．そしてN&times;Mは高々10,000でしかなく，和もその半分の回数程度しか計算しないので速い．</p>

<p>長々と書いたけど，おそらくこの問題やるような人であればほぼ確実に知ってそうな気がする．</p>

<p>Equation images by <a href="http://maru.bonyari.jp/texclip/">TexClip</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/214/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQLであれこれ</title>
		<link>http://www.numericalfactor.org/wp/archives/208</link>
		<comments>http://www.numericalfactor.org/wp/archives/208#comments</comments>
		<pubDate>Mon, 30 Jul 2007 11:34:42 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/208</guid>
		<description><![CDATA[テーブル内のデータを，あるカラムで重複を排除したうえでまた別のカラムでソートしたいという状況だったんですが．
SQLで，DISTINCTの存在は知っていたけどDISTINCT ONは知らなかったので無駄な時間を費してしま [...]]]></description>
			<content:encoded><![CDATA[<p>テーブル内のデータを，あるカラムで重複を排除したうえでまた別のカラムでソートしたいという状況だったんですが．
SQLで，DISTINCTの存在は知っていたけどDISTINCT ONは知らなかったので無駄な時間を費してしまった．</p>

<p>PostgreSQLではDISTINCTよりGROUP BYの方が速いとか最近は改善されてて大して変わらないとかあったけど，速度で困るような状況じゃないしそもそもGROUP BYへの書き換えがさっぱり分からないのでDISTINCTでいくことにした．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/208/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TeXLiveに手を出すのはまだ早かった</title>
		<link>http://www.numericalfactor.org/wp/archives/206</link>
		<comments>http://www.numericalfactor.org/wp/archives/206#comments</comments>
		<pubDate>Mon, 23 Jul 2007 15:34:50 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/206</guid>
		<description><![CDATA[MacBookにはpowerdotを入れたけど、家のUbuntuには入れてない．
でもサイトから書庫取ってきて展開とかするのは面倒．
ということで，aptで取れるパッケージとして入ってないか探してたところ、
TeXLiv [...]]]></description>
			<content:encoded><![CDATA[<p>MacBookにはpowerdotを入れたけど、家のUbuntuには入れてない．
でもサイトから書庫取ってきて展開とかするのは面倒．
ということで，aptで取れるパッケージとして入ってないか探してたところ、
<a href="http://www.tug.org/texlive/">TeXLive</a>というパッケージに含まれてるっぽいということがわかった．</p>

<p>teTeXにはライセンス（いろいろごちゃまぜでdebian的には使いづらい）やメンテナンス（もうメンテしないと<a href="http://www.tug.org/tetex/">宣言されている</a>）に問題があったけど，TeXLiveはこれらを解決した新しいTeXディストリビューションだとか．</p>

<p>今まで入れてたTeX関係のパッケージと衝突するようなので，適当に削除しつつTeXLiveを入れてみた．
この作業が既に面倒なのだが始めてしまったので仕方ない．</p>

<p>この結果，確かにpowerdotはTeXLive関連のパッケージに含まれてたのでコンパイルできたけど，日本語が出ないという状態に．文字コード（UTF-8/EUC-JP/Shift_JIS）変えても出ない．私の用途では日本語通らないと意味ないよ…．</p>

<p>ということで，TeXLiveはまだ使わない方が良いという結論．まだpTeXでいこう．
環境の原状回復はまた今度．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>slides with powerdot</title>
		<link>http://www.numericalfactor.org/wp/archives/205</link>
		<comments>http://www.numericalfactor.org/wp/archives/205#comments</comments>
		<pubDate>Sun, 22 Jul 2007 05:52:44 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[tex]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/205</guid>
		<description><![CDATA[もうメンテされていないprosperよりpowerdotの方が良いみたい．
スライドの重ね合わせ(文字を徐々に表示させるとか)も簡単らしいので，これからはpowerdotを使ってみようと思います．卒研の中間発表とか?

 [...]]]></description>
			<content:encoded><![CDATA[<p>もうメンテされていない<a href="http://prosper.sourceforge.net/">prosper</a>より<a href="http://stuwww.uvt.nl/~hendri/Downloads/powerdot.html">powerdot</a>の方が良いみたい．
スライドの重ね合わせ(文字を徐々に表示させるとか)も簡単らしいので，これからはpowerdotを使ってみようと思います．卒研の中間発表とか?</p>

<p>例によってMacPortsでインストールしたpTeXには最初からpowerdotが付いていたので特にすることもなく．</p>

<p>とりあえずpropserで書いたtexファイルをpowerdotにしてみたら，\emailや\institutionが使えなかったりした(<samp>Undefined control sequence</samp>ですと)．これは…．まあいいけど．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/205/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>favicon @ Firefox trunk</title>
		<link>http://www.numericalfactor.org/wp/archives/204</link>
		<comments>http://www.numericalfactor.org/wp/archives/204#comments</comments>
		<pubDate>Sun, 22 Jul 2007 03:32:30 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/204</guid>
		<description><![CDATA[faviconに関係するバグ．


Bug 373353 add favicons to the results in the location bar
Bug 382220 remove the content&#82 [...]]]></description>
			<content:encoded><![CDATA[<p>faviconに関係するバグ．</p>

<ul>
<li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=373353">Bug 373353</a> add favicons to the results in the location bar</li>
<li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=382220">Bug 382220</a> remove the content&#8217;s favicon from the urlbar</li>
</ul>

<p>上のは，URLバーのドロップダウンで表示されるURLにfaviconも一緒に表示しようというモノ．実装済み．</p>

<p>下のは，URLバーからfaviconを削除しようというもの．faviconは偽装されやすいので，セキュリティを考えてブラウザ側が用意するアイコンを置こうとしているらしい（タブには表示させる）．進行中．</p>

<p>この二つは雰囲気的に衝突しそうな気がするけど，どうなるのかな．Firefoxをタブ無しで使ってる人は，URLバーからfaviconを消されたらどこで見ればいいんだろう．私は削除してくれて構わないですが．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/204/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacPorts が良い感じ</title>
		<link>http://www.numericalfactor.org/wp/archives/203</link>
		<comments>http://www.numericalfactor.org/wp/archives/203#comments</comments>
		<pubDate>Sun, 15 Jul 2007 16:23:23 +0000</pubDate>
		<dc:creator>line</dc:creator>
				<category><![CDATA[mac osx]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tex]]></category>

		<guid isPermaLink="false">http://www.numericalfactor.org/wp/archives/203</guid>
		<description><![CDATA[やんごとなき事情から TeX でプレゼンを書くことになり， Mac OS X で prosper を使う方法を探しまわってました．

pLaTeX は OS に付属なので prosper を入れれば良いか…と思ってました [...]]]></description>
			<content:encoded><![CDATA[<p>やんごとなき事情から TeX でプレゼンを書くことになり， Mac OS X で <a href="http://prosper.sourceforge.net/">prosper</a> を使う方法を探しまわってました．</p>

<p>pLaTeX は OS に付属なので prosper を入れれば良いか…と思ってましたが，意外と面倒でした．日本語でいろいろなページは見つかりましたが，いまいちうまく行きませんでした（今検索したら <a href="http://mnchk.wordpress.com/2006/08/22/powerpoint-like-presentation-with-latex/">PowerPoint-like Presentation with LaTeX</a> というページもあり，実は簡単だったのかもしれない）．</p>

<p>そこで試してみたのが <a href="http://www.macports.org/">MacPorts</a>（ちょうど MacPorts 1.5 が出たところ）． OS X 向けのパッケージシステムということで， TeX 関係だけでなく数々のソフトが簡単にインストールできます． Mac OS X の標準的なインストールも十分簡単（<samp>/Applications</samp> とかに *.app をドラッグ&amp;ドロップするだけ）ですが， Ubuntu Linux に慣れてしまった私はコンソールから <code>aptitude install platex</code> とかしたいわけです． MacPorts なら <code>sudo port install ptex</code> などと打てば依存関係もチェックしてインストールしてくれるのでらくちん． MacPorts が入れるソフトは <samp>/opt</samp> 下に置かれるので Mac に元から入っているものと混じらないし，アンインストールも基本的に（<code>sudo port deactivate installed</code> してから）このディレクトリを消せばOK．</p>

<p><a href="http://macwiki.sourceforge.jp/wiki/index.php/MacPorts">MacPorts @ MacWiki</a> を見て，主に <a href="http://www.miko.org/~tatyana/tech/OSX/Beginning_OSX.html">Beginning OS X</a> を参考にして MacPorts を導入していったらあっさりできました．具体的には bash, lv, kinput2-macim, ghostscript, pTeX の順にインストールしていったところ， pTeX のパッケージに prosper が入ってたようで，この時点で tex を PDF 化できました．しおりの文字化けは<a href="http://www.rmatsumoto.org/tex-ps-pdf/hyperref.ja.html">しおり(bookmark)の日本語が文字化けする @ hyperref と日本語</a>にて配布されている perl スクリプトを使わせてもらい，サクッと解決．</p>

<p>あと MacPorts には variants という仕組みがあって，オプションを付けてパッケージの付加機能が利用できたりします．私は pTeX をインストールする時 <code>sudo port install pTeX +utf8 +motif</code> てな感じで variantsを指定して， pTeX が UTF-8 で書かれた tex ファイルを受け付けるようにしました．<code>+motif</code> は， <code>xdvi</code> の GUI ツールキットが Motif になるのかと思います．</p>

<p>これで環境構築はおけー．</p>
]]></content:encoded>
			<wfw:commentRss>http://www.numericalfactor.org/wp/archives/203/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
