- 2008 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2007 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2006 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2005 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2004 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2003 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2002 : 01 02 03 04 05 06 07 08 09 10 11 12
2006-03-29 Wed
あずきフォント・うずらフォント
- Reference
あずきフォント
http://key.milkcafe.to/azuki/font/azuki.html
うずらフォント
http://key.milkcafe.to/azuki/font/uzura.html
- via
窓の杜 - JIS第一水準漢字まで備えるかわいい太字の手書き風フォント「うずらフォント」
http://www.forest.impress.co.jp/article/2006/03/28/uzurafont.html
窓の杜 - フォント
http://www.forest.impress.co.jp/lib/offc/print/font/
2006-03-24 Fri
ロック音MT - 録音ソフトウェア
- Reference
避難所 - ロック音MT
http://hp.vector.co.jp/authors/VA014492/#lkm
- via
窓の杜 - 音声録音ソフト「ロック音・ミレニアム」v1.02
http://www.forest.impress.co.jp/article/2000/04/24/lockon.html
無音PCの目指して - Zalman TechのTNN 500AF
- Summary
TTNは "Totally No Noize" の略.
- Reference
Japan.internet.com Webビジネス - PC の低騒音にいらいら…無音の PC はないものか
http://japan.internet.com/busnews/20060331/6.html
血液サラサラの謎
- Summary
現在の血液サラサラ・ドロドロ検査では赤血球が形を変える能力を観察しているだけ
- Reference
Wikipedia - 血液サラサラ
All About - 家庭の医学 - 血液サラサラ? 血液ドロドロ?
http://allabout.co.jp/health/familymedicine/closeup/CU20040810A/index.htm
- via
スラッシュドット ジャパン - 「魚のような脂肪」を持つ豚
http://slashdot.jp/science/article.pl?sid=06/03/30/2116235
HighMoon - Duel in Space
- Summary




重力を計算して打ち合うシューティングゲーム.
- Reference
HighMoon - Duel in Space
http://highmoon.gerdsmeier.net/index.php
- via
MOONGIFT - HighMoon - 遠い宇宙より…撃沈せよ
http://oss.moongift.jp/intro/i-1430.html
MOONGIFT - HighMoon レビュー
http://oss.moongift.jp/review/i-1432.html
2006-03-23 Thu
xmethods - 開発者に対してさまざまなAPIを提供するWebサービス
- Reference
www.xmethods.net
http://www.xmethods.net/
- via
窓の杜 - 全151カ国から選択した2国間の為替レートを監視し変動時にデスクトップ表示
http://www.forest.impress.co.jp/article/2006/03/23/currencyexchange.html
rsync の使い方
#!/bin/sh RSYNC=/usr/bin/rsync LOCAL_PATH=/path/to/target/ REMOTE_USER=username REMOTE_HOST=example.com REMOTE_PATH=/path/to/backup/ $RSYNC -avz -e ssh $LOCAL_PATH $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH
2006-03-16 Thu
エラー Allowed memory size of XXXXXXX bytes exhausted
- Summary
/var/log/apache/error.logに以下のメッセージを発見.
Allowed memory size of 8388608 bytes exhausted (tried to allocate 133 bytes)
- 原因
PHP の メモリリミットを超えたメモリを扱おうとした.
- 対策
/etc/php4/apache/php.ini
memory_limit の値を増やす.
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
;memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) memory_limit = 16M
- 反省
富豪的プログラミングをやりすぎ,このエラーに遭遇.
memory_limitの値を増やしてもいたちごっこな気がするので,ロジックを再考してみる.
- Reference
trustBee - パソコンQ&A : Re:compose.php3 のエラー
http://www.trustbee.com/bbs/?i=bee&a=7&t=421&m=2178
Perlモジュール orz
- Reference
orz - Total Failure - search.cpan.org
http://search.cpan.org/~ingy/orz/lib/orz.pm
orz
- via
オレンジニュース - 2006-03-13
http://secure.ddo.jp/~kaku/tdiary/20060313.html#p02
MySQL で階層構造のデータを扱うには
- Reference
MySQL AB :: Managing Hierarchical Data in MySQL
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
mysql:12071
http://www.mysql.gr.jp/mysqlml/mysql/msg/12071
- via
オレンジニュース - 2006-03-15
http://secure.ddo.jp/~kaku/tdiary/20060315.html#p13
シーケンスと採番テーブルと欠番探索
・シーケンス
| 良 | アプリケーションで採番について考えなくて済む.絶対に重複しない. |
| 悪 | データを追加するまで、与えられる番号が分からない.欠番が起こる. |
・採番テーブル
| 良 | データを追加する前に与えられる番号が分かる. |
| 悪 | 管理が大変.バグの要因になりがち.設計者の手腕にかかっている. |
・欠番探索
| 良 | データを追加する前に与えられる番号が分かる.絶対に重複しない.欠番が起こらない. |
| 悪 | データ件数が多いと採番に時間がかかる (100万件くらいは余裕らしい) |
- Reference
@IT - Database Expert - シーケンスと採番テーブルの選択
http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=15927&forum=26&5
2006-03-15 Wed
JavaScript で指定の HTML 要素を動的に角丸デザインにする方法
- Source
Rounded("div#nifty","#377CB1","#9BD1FA"); // この1行だけで要素を角丸にすることが可能
- Reference
Nifty Corners
http://pro.html.it/esempio/nifty/
- via
phpspot開発日誌 - Javascriptで指定のHTML要素を動的に角丸デザインにする方法
http://phpspot.org/blog/archives/2006/03/javascripthtml.html
target="_blank" を使わないで別ウィンドウでリンクを開くのに rel="external" を使う
- Reference
tcervo.com - 2004-01-01 - Opening a link in a new window - the valid way
http://tcervo.com/?p=18
- via
hori-uchi.com: _blankを使わないで別ウィンドウを開くにはrel="external"を使うのが美しいと思う。
http://hori-uchi.com/archives/000424.html
target="_blank" を使わないで新しいウィンドウでリンクを開く方法
- Summary
target="_blank" を使わないで新しいウィンドウでリンクを開くための手法.
Behaviour.js を利用すればより簡単,かつHTMLを汚さずに実装可能.
Sample
- Source
var myrules = { '.popup' : function(el){ var href = el.getAttribute('href'); if (href){ el.onclick = function(){ window.open(href); return false;} el.onkeypress = function(){ window.open(href); return false;} } } }; Behaviour.register(myrules);
<script type="text/javascript" src="behaviour.js"></script> <a href="index.html">Normal</a> <a class="popup" href="index.html">Pop up</a>
- Reference
Behaviour : Using CSS selectors to apply Javascript behaviours
http://bennolan.com/behaviour/
- via
cl.pocari.org - 2006-03-14
http://cl.pocari.org/2006-03-14-5.html
2006-03-13 Mon
JavaScript で数値を3桁区切り
function toReadableNumber(str){ var ret = Math.floor(str).toString(); ret = ret.match(/./g).reverse().join(""); ret = ret.replace(/(\d{3})/g,"$1,"); ret = ret.match(/./g).reverse().join("").replace(/^,/,""); return ret; }
- Reference
きんがくとかをけたくぎり
http://page.freett.com/elledia/tips/comma.html
Internet Explorer Developer Toolbar - Internet Explorer に DOMインスペクタなどを付加するツールバー
- Summary
Internet Explorer に DOMインスペクタ,ルーラーなどを付加することができる.
- Reference
Internet Explorer Developer Toolbar Beta
http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038
Flow - 幻想的なゲーム
- Reference
Welcome to Flow in Games
http://intihuatani.usc.edu/cloud/flowing/
シンプソン(Simpson)係数 - 関係の強さを測定する指標
- 式
( X and Y ) での検索結果数を, X と Y の検索結果のヒット数で少ないほうで割る.
- Reference
先端研ブログ - 2006-03-08 - リアルとWebのネットワーク分析
http://blog.japan.cnet.com/sentan/archives/002672.html
2006-03-12 Sun
Firefox 検索プラグインに MySQL Reference を追加する
- mysql.src
# Mozilla search plugin for MySQL Reference # by Yoshiki SATO <xight.org+memo@gmail.com>. # http://xight.org/misc/firefox/searchplugins/ # This file is released into the public domain. # # Version: 0.0.1 (2006-03-12) # Country: JP # Language: ja <search version="0.0.1" name="MySQL Reference" description="MySQL Reference" sourceTextEncoding="0" method="get" action="http://dev.mysql.com/doc/mysql/search.php" queryCharset="UTF-8" searchForm="http://dev.mysql.com/doc/mysql/search.php" > <input name="q" user> <input name="lang" value="ja"> <interpret browserResultType="result" charset="EUC-JP" language="ja" resultListStart="<div id='results'></div>" resultListEnd="<hr/>" resultItemStart="<li style='padding-bottom: 1em'>" resultItemEnd="</li>" > </search> <browser alsomatch="http://dev.mysql.com/doc/mysql/search.php" update="http://xight.org/misc/firefox/searchplugins/mysql.src" updateIcon="http://xight.org/misc/firefox/searchplugins/mysql.png" updateCheckDays="100" >
- Reference
xight.org - misc - firefox
http://xight.org/misc/firefox/
2006-03-11 Sat
金楽 高島平店
- Summary
高島平にある焼肉屋.
- Data
| 住所 | 東京都板橋区高島平8-19-6 |
| 営業時間 | 11:00 - 14:30 , 17:00 - 26:00 |
| 定休日 | 月曜日 |
| 電話番号 | 03-3931-1020 |
| 最寄り駅 | 高島平 |
志村料理飲料組合 ぐるめ・ネット - 焼肉 金楽 高島平店
http://www.shimura-ryouin.gr.jp/gurume/shop/b014.html
spyc - PHPでYAMLを扱えるライブラリ
- 用途
オプションファイルを YAML で記述.
オプションファイルの編集に PHP を利用.
- YAML から 配列に
include('spyc.php'); $array = Spyc::YAMLLoad('yamlfile.yml'); print_r($array);
- 配列 から YAML に
include('spyc.php'); $array[] = 'Sequence item'; $array['The Key'] = 'Mapped value'; $array[] = array('A sequence','of a sequence'); $array[] = array('first' => 'A sequence','second' => 'of mapped values'); $array['Mapped'] = array('A sequence','which is mapped'); $array['A Note'] = 'What if your text is too long?'; $array['Another Note'] = 'If that is the case, the dumper will probably fold your text by using a block. Kinda like this.'; $array['The trick?'] = 'The trick is that we overrode the default indent, 2, to 4 and the default wordwrap, 40, to 60.'; $array['Old Dog'] = "And if you want\n to preserve line breaks, \ngo ahead!"; $yaml = Spyc::YAMLDump($array,4,60); print_r($yaml);
- Reference
SourceForge - spyc: a simple php yaml class
http://spyc.sourceforge.net/
cl.pocari.org - 人間にとって読みやすいデータ直列化フォーマット YAML Ain't Markup Language
http://cl.pocari.org/2005-10-20-1.html
NamingSense::TokuLog! - YAMLでヴァリデーションの条件を書く
http://d.hatena.ne.jp/tokuhirom/20060310/1142007501
- via
phpspot開発日誌 - PHP用YAMLクラス : spyc
http://phpspot.org/blog/archives/2006/02/phpyaml_spyc.html
2006-03-10 Fri
Webpaint - Wiki文法を覚える必要のない Wiki
- Reference
Wetpaint
http://wetpaint.com/
Wetpaint - Wetpaint Quick Tour
http://wetpaint.com/demo_win.html
wikiSandbox
http://www.wikisandbox.com/
- via
Wiki文法を覚える必要のない次世代型Wiki「Wetpaint」
http://gigazine.net/News/html/lg/001189.htm
Bindows(TM) - Ajaxフレームワーク
- Reference
Bindows(TM)
http://www.bindows.net/
Bindows(TM) 日本公式ウェブサイト
http://www.bindows.jp/
Bindows(TM) 日本公式ウェブサイト - APIリファレンス
http://www.bindows.jp/tech/api/
- via
Japan.internet.com Webテクノロジー - ネオジャパン、Ajax フレームワーク「Bindows」を提供
http://japan.internet.com/webtech/20060310/3.html
CSS だけで Mac OS X の Dock 風ナビゲーション
- Reference
Lucky bag::blog: CSS だけで Mac OS X の Dock 風ナビゲーション
http://www.lucky-bag.com/archives/2006/03/css-navigation-magnification.html
Paul Armstrong Designs - Weblog - CSS
http://paularmstrongdesigns.com/weblog/css/navigation-magnification
地図ソフト,空間データ閲覧サービス
- Reference
地図ソフト - ぜんのホームページ
http://zenjiro.sourceforge.jp/?%C3%CF%BF%DE%A5%BD%A5%D5%A5%C8
地図閲覧ソフト( MMap+(仮称) ) 置場
http://www.geocities.jp/msanpopo/mmap_plus.html
国土地理院 - 数値地図 (空間データ基盤) の閲覧サービス
http://sdf.gsi.go.jp/
2006-03-09 Thu
Mu-cade - シューティングゲーム
- Summary

Noiz2sa[2003-09-21-22],A7Xpg[2003-09-21-10],Torus Trooper[2004-11-20-3], Gunroar[2005-07-07-2]の作者によるゲーム.
- Reference
ABA Games - Mu-cade
http://www.asahi-net.or.jp/~cs8k-cyu/windows/mcd.html
- via
窓の杜 - 2006-03-09
http://www.forest.impress.co.jp/article/2006/03/09/mucade.html
数学の部屋 -
- Reference
数学の部屋 - 数学の美しさ
http://web2.incl.ne.jp/yaoki/kousiki.htm
数学の部屋 - 今週の問題
http://web2.incl.ne.jp/yaoki/week.htm
- via
オレンジニュース - 2006-02-27
http://secure.ddo.jp/~kaku/tdiary/20060227.html#p20
テトリス講座
- Reference
テトリス講座
http://www13.plala.or.jp/TETRiS_TGM/kouza/top.htm
- via
オレンジニュース - 2006-03-08
http://secure.ddo.jp/~kaku/tdiary/20060308.html#p28
起床術 - 布団から抜け出すための4つのテクニック
- 布団から足だけを出す.
足が冷えるにしたがって意識もはっきりする.
- カーテンを開けておく.
寝ている状態で光を浴びるとステロイド (ホルモン) が分泌され、眠りが浅くなるという研究結果がある.
- テレビやラジオをつける.
起きたい時間の30分程度前から音が流れるようにする.
- ガバッと起きる.
- Reference
早起き生活 - 起床術 - 布団から抜け出すためのテクニック
http://www.hayaoki-seikatsu.com/documents/articles/kisyoujutsu01.html
- via
オレンジニュース - 2006-03-07
http://secure.ddo.jp/~kaku/tdiary/20060307.html#p11
del.icio.us のマッシュアップ,Flickr のマッシュアップ
- Reference
phpspot開発日誌 - サードパーティ製Flickrツール集
http://phpspot.org/blog/archives/2006/01/flickr_2.html
phpspot開発日誌 - del.icio.usのマッシュアップ作品集
http://phpspot.org/blog/archives/2006/03/delicious_2.html
- via
オレンジニュース - 2006-03-07
http://secure.ddo.jp/~kaku/tdiary/20060307.html#p03
PHP のメールの文字化け対策
- Reference
PHP:メールのタイトル、本文の文字化け回避:mb_internal_encoding
http://www.res-system.com/weblog/item/478
PHP:メールのタイトル、本文の文字化け回避(UTF-8での注意点):mb_language('uni')
http://www.res-system.com/weblog/item/500
PHPによるUTF-8メール(多言語混在メール)の送信方法
http://www.securehtml.jp/utf-8/php_utf_mail.html
BASE64
- Summary
バイナリデータの6bitを0〜63までの数値とみなす.
| アルファベットの大文字 | 26 文字 |
| アルファベットの小文字 | 26 文字 |
| 数字 | 10 文字 |
| 記号(+,/) | 2 文字 |
3byte が常に 4byte に変換されるので,
データサイズは常に33%程度増加する.
- Reference
Wikipedia - Base64
@IT:Insider's Computer Dictionary [Base64]
http://www.atmarkit.co.jp/icd/root/21/5784921.html
パノプティコン - 犯罪者を自力で更生させるための教育・改造するためのシステム
- Reference
Wikipedia - パノプティコン
監獄の誕生—監視と処罰: 本
ised@glocom - 規律訓練
http://ised.glocom.jp/keyword/%E8%A6%8F%E5%BE%8B%E8%A8%93%E7%B7%B4
NTT西日本 ソリューション営業本部:最適経営のヒント > 特集 > 2005年9月号
http://www.ntt-west.co.jp/solution/hint/jpn/story/0509/02.html
先端研ブログ
- Reference
CNET Japan Blog - 先端研ブログ
http://blog.japan.cnet.com/sentan/
- via
www.textfile.org - 2006-03-07
http://www.hyuki.com/t/200603.html#i20060307134219
文芸的なコード
- Reference
Literate Programming.com
http://www.literateprogramming.com/
LiteratePrograms.org
http://literateprograms.org/
- via
www.textfile.org - 2006-03-06
http://www.hyuki.com/t/200603.html#i20060306070238
2006-03-08 Wed
PIZZA SALVATORE CUOMO
- Summary
ピザとパスタのお店.
入店するとイタリア語で何か言われる.(「いらっしゃいませ」?)
初めて「アリーデベルチ」という言葉を生で聞いた.
- Data
| 住所 | 東京都千代田区永田町2-13-10 The Prudential Plaza 1F |
| 営業時間 | 11:00 - 24:00 |
| 最寄り駅 | 赤坂見附 , 永田町 |
- Reference
SALVATORE CUOMO JAPAN
http://www.salvatore.jp/
2006-03-06 Mon
GD::Barcode::QRcode で各ページにQRコードの画像を付加
- Summary
[2006-03-05-1]を応用し,Refererを用いてQRコード生成.
- インストール
# aptitude install libexpat-dev libgd2-dev
# cpan install GD
# cpan install GD::Barcode::QRcode
- qr.cgi
#!/usr/bin/perl use strict; use GD::Barcode::QRcode; my $str = $ENV{'HTTP_REFERER'}; my $header = qq(Content-Type: image/png\n\n); my $qr = GD::Barcode::QRcode->new($str,{ ECC => 'L', Version => 2, ModuleSize =>2,})->plot->png; print $header,$qr; exit;
- 各ページに以下の HTML で付加可能.
<img src="path/to/qr.cgi" width="97" height="97" alt="QRcode" />- Reference
GD::Barcode::QRcode
nitsujiの日記 - GD::Barcode::QRcodeのバグ?の件について
http://d.hatena.ne.jp/nitsuji/20070626/1182840997
2006-03-05 Sun
Adblock Plus と Filterset.G Updater
- Summary
Adblock Plus Version 0.6から 作者変更.
- Reference
mozdev.org - adblockplus: index
http://adblockplus.mozdev.org/
Mozilla Update :: Extensions -- More Info:Adblock Filterset.G Updater - All Releases
https://addons.mozilla.org/extensions/moreinfo.php?id=1136
- via
bushwhacker: Adblock Plus作者が変更に
http://bushwhacker.seesaa.net/article/11918536.html
GD::Barcode::QRcode を用いた QRコード生成
- Summary
http://example.com/cgi-bin/qr.cgi?q=QRコードにしたい文字列
でQRコードの画像を生成したい.
- 準備
# cpan -i GD::Barcode::QRcode
- 注意
GD::Barcode::QRcode (0.01) 40行目を変更
#$oSelf->{Version} = $rhPrm->{Version} || 1; $oSelf->{Version} = $rhPrm->{Version};
- Source
#!/usr/bin/perl use strict; use CGI; use GD::Barcode::QRcode; my $q = new CGI; my $str = $q->param('q'); my $header = qq(Content-Type: image/png\n\n); my $qr = GD::Barcode::QRcode->new($str)->plot->png; print $header,$qr; exit;
- Reference
GD::Barcode::QRcode
Debian パッケージディレクトリ検索 (バイナリ) - libgd-graph-perl
どんぞこ日誌(2004-07-25)
http://donzoko.net/cgi-bin/tdiary/20040725.html