Index > Index (February 2005)

Index (February 2005)

Wed, February 23, 2005

Windows で tomcat4.1を普通にインストールするとエラーになる

tomcatを使うことになった。
tomcat4.1をダウンロードしてインストール。 しかし、なぜかうまく起動できない。

続きを読む

Mon, February 14, 2005

apache2のログ、リファラー情報を記録する

apache2ではデフォルトでリファラー情報のログは出さない。 しかし、httpd.conf をちょっと設定するだけで、リファラー情報はとれることが判明。

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent

    CustomLog logs/access_log common

     #
     # If you would like to have agent and referer logfiles, uncomment the
     # following directives.
     #
     #CustomLog logs/referer_log referer
     #CustomLog logs/agent_log agent

続きを読む

Thu, February 10, 2005

タイトルを50音順にソートする(Senを使用)(sen)

ブログのタイトルを 50音順にソートしたい。

話を簡単にするために、タイトルだけを 抜き出して一行一タイトルにしたテキストファイルを用意し、 それを50音順にソートして標準出力するコードを考えてみる。

50音でソートするために、漢字の読みを調べる必要がある。 そのため、Sen を利用します。

続きを読む

 Twitter
follow me on Twitter
 Categories
 Archives