memo.xight.org

2005-11 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
最近 日分 / 今月の一覧

2005-11-30 Wed

XML::Simple での XML::SAX

- Summary
・ 環境変数 "XML_SIMPLE_PREFERRED_PARSER",またはパッケージ変数 "$XML::Simple::PREFERRED_PARSER" で利用するパーサーを指定可能
・ これら設定が undef の場合,XML::SAX を優先的に使用
・ これら設定は初期状態では undef
・ XML::SAX が内部的に利用するパーサーはユーザが最後にインストールしたSAXパーサーになる

$XML::Simple::PREFERRED_PARSER = 'XML::Parser';
と書くと,XML::Parser が使われる

- Reference
search.cpan.org: XML::Simple - Easy API to maintain XML (esp config files)
http://search.cpan.org/%7Egrantm/XML-Simple-2.14/lib/XML/Simple.pm#ENVIRONMENT

iandeth. - XML::Simple は遅い説における意外な落とし穴
http://iandeth.dyndns.org/mt/ian/archives/000589.html

- via
Sledge::Plugin::TokuLog! - 「XML::Simple は遅い説における意外な落とし穴」について
http://d.hatena.ne.jp/tokuhirom/20051130/1133306919

カテゴリ: [Perl][XML]

CVS から Subversion への移行

- Summary
cvs2svnは遅いらしいので,cvs export してから svn import するのが良いらしい.

- somescript に実行権限を付加

% svn propset svn:executable ON somescript


- via
Sledge::Plugin::TokuLog! - Subversion への移行コストはそれに見合うかj
http://d.hatena.ne.jp/tokuhirom/20051130/1133323580
Sledge::Plugin::TokuLog! - えーマジCVS!!CVSが許されるのは小学生までだよね
http://d.hatena.ne.jp/tokuhirom/20051129/1133240808

カテゴリ: [CVS][Subversion]

refererplot - リファラーの波をグラフ化

- Reference
リファラーの波をグラフ化 (refererplot) : いやな日記
http://namazu.org/~satoru/diary/20040413.html#p01

- via
[を] 100円ショップページへのリファラーの波をグラフ化
http://chalow.net/2005-11-29-3.html

カテゴリ: [Software][Ruby][SWF]

Firefox 1.5

- Download
http://ftp-mozilla.netscape.com/pub/mozilla.org/firefox/releases/1.5/win32/ja/Firefox%20Setup%201.5.exe
- Reference
スラッシュドット ジャパン | Mozilla Firefox1.5ついに公開
http://slashdot.jp/article.pl?sid=05/11/30/0041209
- via
窓の杜 - 【NEWS】「Firefox」v1.5正式版が日本時間で30日未明から午前中の間にリリース予定
http://www.forest.impress.co.jp/article/2005/11/29/firefox15plan.html

カテゴリ: [Software][Firefox]

TextMate

- Summary
Ruby on Rails のデモで利用されているエディタ.
http://www.rubyonrails.com/media/video/rails_take2_with_sound.mov
- ネタ?
[ruby-list:41416] Rubyでこういうの作れますか? (中央銀行編)
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/41416
- Reference
TextMate: The Missing Editor for OS X
http://macromates.com/
- via
スラッシュドット ジャパン | RubyForge、1000プロジェクトを越える
http://slashdot.jp/developers/article.pl?sid=05/11/29/0252247

カテゴリ: [Software]

2005-11-29 Tue

Media Playerを埋め込む

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer">
<param name="Filename" value="URL">
<param name="AutoStart" value="自動スタート true | false">
<param name="AutoRewind" value="自動巻き戻し true | false">
<param name="PlayCount" value="再生回数 0で無限">
<param name="AutoRewind" value="自動巻き戻し true | false">
<param name="Volume" value="音量 -10000~0">
<param name="Balance" value="左右の音量バランス -10000>0<10000">
<param name="ShowControls" value="全てのコントロールバー true | false">
<param name="ShowAudioControls" value="音量コントロールバー true | false">
<param name="ShowDisplay" value="タイトル・著作権 true | false">
<param name="ShowGotoBar" value="関連リンクバー true | false">
<param name="ShowPositionControls" value="早送り・巻き戻しバー true | false">
<param name="ShowStatusBar" value="ステータスバー true | false">
<param name="ShowTracker" value="再生位置バー true | false">

- Reference
Dynamic HTML Styling : DHTML Media Player
http://members.at.infoseek.co.jp/dhtml_s/web_dhtml/dhtml_media_player.htm

カテゴリ: [HTML][Stub]

TabScroller - 右クリック + ホイール回転でタブを切り替え

- Reference
KrickelKrackel - TabScroller for Mozilla/Firefox
http://www.krickelkrackel.de/tabscroller/
- via
窓の杜 - 【NEWS】「Firefox」上での右クリック+ホイール回転でタブを切り替え「TabScroller」
http://www.forest.impress.co.jp/article/2005/11/28/tabscroller.html

カテゴリ: [Firefox][Stub]

SmartOCR

- Reference
スマートリーディング - SmartOCR
http://www.smartread.biz/SmartOCR1.0/
- via
窓の杜 - 【NEWS】独自エンジンを搭載したフリーの日本語OCRソフト「SmartOCR Lite Edition」
http://www.forest.impress.co.jp/article/2005/11/29/smartocrlite.html

カテゴリ: [Software][Stub]

2005-11-28 Mon

笑点web

- Summary
笑点の公式Webサイト.
過去の放送内容もバッチリ.
- Reference
日本テレビ - 笑点web
http://www.ntv.co.jp/sho-ten/02_week/kako.html

カテゴリ: [TV]

RPMパッケージのアップデートを楽にしたい

- Reference
ITmedia エンタープライズ : Linux Tips「RPMパッケージのアップデートを楽にしたい」
http://www.itmedia.co.jp/help/tips/linux/l0417.html

ITmedia エンタープライズ : Linux Tips「「rhnsd --interval 120」と書かれたプロセスがある」
http://www.itmedia.co.jp/help/tips/linux/l0459.html

カテゴリ: [Linux][RedHat][Stub]

Apacheのチューニング

- Summary
負荷テストには ab (Apache Bench) を用いる.

- Reference
@IT - Apacheパフォーマンス・チューニングのポイント (2/2)
http://www.atmarkit.co.jp/flinux/rensai/apache15/apache15b.html
Apacheのチューニング
http://tech.bayashi.net/svr/doc/apache/tune.html

カテゴリ: [Apache][Stub]

ChangeLogメモ開始3周年

- 記録

Line 55382 (行)
Entry 4223 (エントリ)
File size 1952420 (byte)

- 備考
  ChangeLog開始日は[2002-11-28-1]
  ChangeLog開始1周年は[2003-11-28-1]
  ChangeLog開始2周年は[2004-11-28-1]

  10000行達成は[2003-10-04-1]
  20000行達成は[2004-05-06-23]
  30000行達成は[2004-09-10-12]
  40000行達成は[2004-12-26-1]
  50000行達成は[2005-07-19-25]

2005-11-27 Sun

iTunes Companion + BlogPeople loves Music - AutoPlay でArt Workを効率的に取り込む

- Summary

iTunes CompanionがArt Workの画像を取得するまでに7〜10秒.
取得した画像を演奏中の曲にコピーするのに1,2秒.
演奏中の曲が含まれるアルバムのほかの曲に画像をコピーするのに5〜10秒.


iTunes CompanionのArt Work埋め込み処理に30秒ほどかかるので,
BlogPeaople loves Music - AutoPlayで再生時間を30秒に設定すると,
効率的なArt Work取り込みが可能.
- Reference
Konfabulator - Gallery - iTunes Companion
http://www.widgetgallery.com/view.php?widget=33155
BlogPeople loves Music
http://www.blogpeople.net/loves-music.html
YVG Software Services :: iTunes Art Importer 0.9.2
http://www.yvg.com/itunesartimporter.shtml
- via
Going My Way: 演奏している曲のArt Workを自動でアルバム全部に埋め込んでくれる iTunes Companion
http://kengo.preston-net.com/archives/002247.shtml
Going My Way: iTunesの曲にArt Workを追加するiTunes Art Importer
http://kengo.preston-net.com/archives/002233.shtml
Modern Syntax : iTunesにCDジャケットをガンガン取り込む効率的な方法
http://www.aivy.co.jp/BLOG_TEST/nagasawa/a/archives/2005/10/itunescd.html

カテゴリ: [Software]

Google の電卓機能がもの凄い理由

- answer to life the universe and everything
Googleの電卓機能は '人生、宇宙、すべての答え' の答えを知っている.
answer to life the universe and everything

ダグラス・アダムズのSFコメディ「銀河ヒッチハイク・ガイド」シリーズ3冊目「宇宙クリケット大戦争」で,
ネズミのグループに対してスーパーコンピューターのディープ・ソートが与える回答より.

Amazon - 銀河ヒッチハイク・ガイド: DVD

- Reference
SUNPILLAR情報館 裏技室 - Google電卓
http://www.mc.ccnw.ne.jp/sunpillar/game/urawaza/other/google_calculator.html
dive into mark - 2003-08-14 - Google calculator
http://diveintomark.org/archives/2003/08/14/calculator

Wikipedia - 人生、宇宙、すべての答え
Wikipedia - The Answer to Life, the Universe, and Everything

銀河ヒッチハイク・ガイド: DVD



- via
はてな - Googleの、ヘルプにも載っていない意外な使い方と知られざる裏技を教えてください。
http://www.hatena.ne.jp/1132893049

絵文録ことのは - 2003-10-19
http://kotonoha.main.jp/2003/10/19googleculculate.html

カテゴリ: [Google]

RESTでよくある間違い

- Summary
REST推進者のPaul Prescod氏によるドキュメント.

1. Using HTTP is not enough.
2. Do not overuse POST.
3. Do not depend on URI's internal structure.
4. Do not put actions in URIs.
5. Services are seldom resources.
6. Sessions are irrelevant.
7. Do not invent proprietary object identifiers.
8. Do not worry about protocol independence.


- Summary (和訳)

1. HTTPを使用するだけでは十分でない.
2. POSTを乱用しない.
3. URIの内部構造に依存しない.
4. URIにアクションを入れない.
5. サービスはほとんどリソースにならない.
6. セッションは関係ない.
7. プロプライエタリなオブジェクト ID を発明しない.
8. プロトコル独立を気にしない.


- Reference
Common REST Mistakes
http://www.prescod.net/rest/mistakes/
RESTでよくある間違い (Common REST Mistakesの和訳)
http://www.geocities.jp/yamamotoyohei/rest/mistakes.html

カテゴリ: [REST]

fluxiom

- Summary
Rails + prototype.js + script.aculo.us で作られた,
SNS + Social Tagging な オンラインファイラー.
- Reference
fluxiom - capture, manage, access and deliver content across your enterprise
script.aculo.us
http://script.aculo.us/
mir.aculo.us - 2005-11-24
http://mir.aculo.us/articles/2005/11/24/fluxiom
- via
最速インターフェース研究会 - 2005-11-26
http://la.ma.la/blog/diary_200511260836.htm

カテゴリ: [WebTool][script.aculo.us]

新都大学 - NEET UNIVERCITY

- Summary
以下の5つの学部から構成される架空の大学
・軽材学部
・強要学部
・音痴学部
・現代精神学部
・煙草学部

結構凝った作り.

- Reference
新都大学
http://yabe.mt.tama.hosei.ac.jp/neet/
- via
32nd diary - 2005-11-25
http://taka.no32.tk/diary/20051125.html#p10

カテゴリ: [ネタ]
Referrer (Inside): [2005-01-28-1]

2005-11-26 Sat

iPod nano 到着

- 到着
WMA -> MP3変換に24時間.

- アクセサリに不満
iPod nano Tubeを装着したまま,iPod nano Dockが利用できない.
iPod nano Dockを利用する時はヘッドフォンを抜かなくてはならない.

Apple iPod nano 4GB white [MA005J/A] Apple iPod nano 4GB black [MA107J/A] iPod nano Dock [MA072G/A] iPod nano Tube [MA241G/A]

カテゴリ: [Hardware][iPod]

2005-11-25 Fri

サポートが終了したRed Hat Linuxをアップデートするには

- 下準備
GnuPGがインストールされていない場合は

# rpm -Uvh http://download.fedoralegacy.org/redhat/9/updates/i386/gnupg-1.2.1-9.i386.rpm


- aptを利用する場合
1. aptのインストール

# rpm -ivh http://download.fedora.us/fedora/redhat/9/i386/RPMS.stable/apt-0.5.5cnc6-0.fdr.8.rh90.i386.rpm


2. /etc/apt/sources.listの編集

rpm http://download.fedoralegacy.org/apt redhat/9/i386 os updates legacy-utils
# ミラーサーバの場合
rpm http://ftp.riken.go.jp/pub/Linux/fedoralegacy/apt redhat/8.0/i386 os updates legacy-utils



3. apt DBの更新

# apt-get update


4. PGPキーの追加

# rpm --import http://www.fedoralegacy.org/FEDORA-LEGACY-GPG-KEY


5. パッケージのアップデート

# apt-get upgrade


- yumを利用する場合
1. yumのインストール

# rpm -ivh http://download.fedora.us/fedora/redhat/9/i386/RPMS.stable/yum-2.0.3-0.fdr.1.rh90.noarch.rpm


2. /etc/yum.conf の編集 (ミラーサイトを利用する場合)

[redhat-os]
name=Red Hat Linux $releasever ($basearch)
baseurl=
# http://download.fedora.us/fedora/redhat/$releasever/$basearch/yum/os/
  http://riksun.riken.go.jp/pub/Linux/fedoralegacy/redhat/$releasever/os/$basearch/

[redhat-updates]
name=Red Hat Linux $releasever ($basearch) updates
baseurl=
#  http://download.fedora.us/fedora/redhat/$releasever/$basearch/yum/updates/
  http://riksun.riken.go.jp/pub/Linux/fedoralegacy/redhat/$releasever/updates/$basearch/



3. PGPキーのアップデート

# rpm --import http://www.fedoralegacy.org/FEDORA-LEGACY-GPG-KEY


4. yum update

# yum update


5. Red Hat Networkを利用していた場合
以下のコマンドを実行してデーモンを止めておく.

# service rhnsd stop
# chkconfig rhnsd off


- トラブルシューティング

warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 4f2a6fd2

上記エラーの場合は以下を実行してみる.

# rpm --import /usr/share/doc/yum-2.0.3/*GPG-KEY
# rpm --import /usr/share/rhn/RPM-GPG-KEY


- Reference
@IT - サポートが終了したRed Hat Linuxをアップデートするには (apt編)
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/602endrhlup2.html
@IT - サポートが終了したRed Hat Linuxをアップデートするには (yum編)
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/599endrhlup.html
The Fedora Legacy Project
http://www.fedoralegacy.org/

カテゴリ: [RedHat]

AJAX SSH

- Reference
ベイエリア情報局: AJAX SSH作ってみた
http://bz2.jp/blog/archives/2005/09/ajax_ssh.html
AJAX SSH
http://ajaxssh.bz2.jp/demo/
- via
@IT:Ajaxを使ったamazon検索をPHPで作ろう
http://www.atmarkit.co.jp/fwcr/rensai/ajax_php01/01.html

カテゴリ: [Ajax][Stub]

クリップボードの盗聴

- Reference
Ceekz Logs - あなたのクリップボードが盗まれる
http://private.ceek.jp/archives/001639.html
Internet Explorerの「スクリプトによる貼り付け処理」機能の能力を検証する
http://java-house.jp/%7Etakagi/security/misc/jscript-clipboard/test.html
- via
[結]2005年11月 - www.textfile.org
http://www.hyuki.com/t/200511.html#i20051124072059
[結]2005年11月 - www.textfile.org
http://www.hyuki.com/t/200511.html#i20051124131544

カテゴリ: [Security][Stub]

Webalizer の検索語の日本語対応

- via
cl.pocari.org - 2005-11-19 - Webalizer の検索語の日本語対応の話
http://cl.pocari.org/2005-11-19-6.html

カテゴリ: [Webalizer][Stub]

フリーのアイコン集

- Reference
famfamfam.com: Icons
http://www.famfamfam.com/lab/icons/
graphicPUSH: Free icons and free icon sets for web designers.
http://www.graphicpush.com/icons/
- via
cl.pocari.org - 2005-11-19 - Web 2.0 なアプリケーションで使えるアイコン
http://cl.pocari.org/2005-11-19-5.html

カテゴリ: [Memo][Stub]

debugConsole

- Reference
debugConsole
http://www.debugconsole.de/
- via
cl.pocari.org - 2005-11-18 - JavaScript のポップアップウィンドウで PHP のデバッグを行うことができる debugConsole
http://cl.pocari.org/2005-11-18-1.html

カテゴリ: [PHP][Stub]

text-hatena.jsを利用したはてな記法ワープロ

- Summary
Text::HatenaのJavaScript移植版.

- Reference
はてな記法ワープロ
http://tech.nitoyon.com/javascript/application/texthatena/wordpro/

text-hatena.js 公開 [tech.nitoyon.com]
http://tech.nitoyon.com/javascript/application/texthatena/download.html

Text::Hatena

- via
cl.pocari.org - 2005-11-23 - Text::Hatena の JavaScript 移行版 text-hatena.js
http://cl.pocari.org/2005-11-23-5.html

カテゴリ: [JavaScript][Stub]

Selenium

- Summary
Webアプリケーションのテストツール.

- Reference
Selenium ver.0.5 勝手にまとめサイト
http://mk.zansu.com/selenium/

mozdev.org - seleniumrecorder
http://seleniumrecorder.mozdev.org/

- via
cl.pocari.org - 2005-11-24 - Selenium ver.0.5 勝手にまとめサイト
http://cl.pocari.org/2005-11-24-2.html

カテゴリ: [Software][Stub]

prototype.js の使い方

- Reference
prototype.js v1.3.1 の使い方
http://www.imgsrc.co.jp/~kuriyama/prototype/prototype.js.html
- via
cl.pocari.org - 2005-11-24 - prototype.js v1.3.1 の使い方
http://cl.pocari.org/2005-11-24-6.html

カテゴリ: [JavaScript][Stub]

Googleロゴを描く男

- via
スラッシュドット ジャパン | Googleロゴを描く男
http://slashdot.jp/article.pl?sid=05/11/24/0140250

カテゴリ: [Google][Art][Stub]

ウォームビズの効果

- Reference
エンジニア的超緻密計算☆ウォームビズって効果ある?/Tech総研
http://rikunabi-next.yahoo.co.jp/tech/docs/ct_s03500.jsp?p=bpc021&f=vten&__r=1
- via
スラッシュドット ジャパン | ウォームビズ・カリキュレータ
http://slashdot.jp/article.pl?sid=05/11/24/234213

カテゴリ: [Memo][Stub]

Firefoxの検索エンジンリストに memo.xight.org を追加する

- Summary
サイトの移転に伴い,
Firefoxの検索エンジンリストに xight.org の clsearch.cgi を追加する [2005-09-16-4] を改良
ついでにアイコンを作ってみた.

C:\Program Files\Mozilla Firefox\searchplugins\xight.src
を作成

# Mozilla search plugin for memo.xight.org
# by Yoshiki SATO <xight.org+memo@gmail.com>.
# http://memo.xight.org/searchplugin/
# This file is released into the public domain.
#
# Version: 0.0.2 (2005-11-25)
# Country: JP
# Language: ja

<search
	version="0.0.2"
	name="memo.xight.org"
	description="memo.xight.org"
	sourceTextEncoding="0"
	method="get"
	action="http://memo.xight.org/clsearch.cgi"
	queryCharset="EUC-JP"
	searchForm="http://memo.xight.org/"
>

<input name="key" user>
<input name="mode" value="1">

<interpret
	browserResultType="result"
	charset="EUC-JP"
	language="ja"
	resultListStart="<!-- RESULT LIST START -->"
	resultListEnd="<!-- RESULT LIST END -->"
	resultItemStart="<!-- RESULT ITEM START -->"
	resultItemEnd="<!-- RESULT ITEM END -->"
>

</search>

<browser
	alsomatch="http://memo.xight.org/clsearch.cgi"
	update="http://memo.xight.org/xight.src"
	updateIcon="http://memo.xight.org/xight.png"
	updateCheckDays="100"
>


- Reference
Firefoxのツールバーの検索エンジンリストを自作し、追加する。 - TheRaindrop レインドロップ
http://pellucid.raindrop.jp/weblog/item/67

カテゴリ: [Firefox]

2005-11-22 Tue

crontabでメールの宛先を変更する

- crontab -e

MAILTO=paul



- 補足
ユーザごとの設定は以下のパス
/var/spool/cron

- Reference

$ man 5 crontab