2006-10-01から1ヶ月間の記事一覧

djbdns

DNS はローカルでキャッシュすると、平均的には速くなることもあるかもしれない。 # 大学の環境ではLANが十分に速いので、基幹DNSの応答とローカルDNSの応答がほとんど変わらないっぽいdnscacheの設定 HOWTO Setup a DNS Server with DJBDNS - Gentoo Linux …

sshでSOCKSプロキシ

基本的に、TCP汎用のプロキシ。http://d.hatena.ne.jp/lurker/20060731/1154349129 ssh -D 1080 login-server で、プロキシをローカルに立ち上げる。 login-server はリモートにある閉じたネットワークへのログインサーバー。プロキシの使いかた: TSOCKS_CO…

Java で木構造

富豪的プログラマは javax.swing.tree.TreeNodeのインターフェイスで、実装は DefaultMutableTreeNode を使うらしい。

高階 template

cxx

ふつうにできるのを知ってショックでした。 以前、それらしく書いてみたらコンパイルエラーだったので、 できないと思い込んでいた。 // パラメータとして型を渡す template class template< typename T > class T0 {}; // パラメータとして1階テンプレート…

MUSASHI -- datamining

http://musashi.sourceforge.jp/ いわゆるひとつのデータマイニングツール。 ある時系列量を与えると、年間変動とノイズと長期的変動を分離したりできると思う。 (みてない)

Memos - tfidf.net

http://tfidf.net/memos/ Manabu Sassano さん。

Algorithms for drawing graphs -- an annotated bibliography

http://dx.doi.org/10.1016/0925-7721(94)00014-x

zsh を exec する方法

http://chasen.org/~daiti-m/text/zsh-exec.html # csh なら, .cshrc に if ($?prompt) then setenv SHELL /usr/local/bin/zsh if ( -x $SHELL ) exec $SHELL endif # sh, bash なら, .profile に [ -x /usr/local/bin/zsh ] && exec zsh

Yuval Yaari - Post details

Text Highlighting Script [perl][net]: http://planet.gentoo.org/developers/yuval/2006/10/07/text_highlighting_script Getoptはハッシュで受け取れたのか。 #!/usr/bin/perl use Getopt::Std; use Term::ANSIColor; my $word = shift; my %hash; getopt…

zsh 設定

http://yutaka.prosou.nu/pukiwiki/index.php?zsh

g++ -fstrict-aliasing

http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/optimize-options.html#index-fstrict_002daliasing-511 int i = 10; float f = *( (int*)&i );は移植性が低いだけでなく、GCC4の最適化 O2 O1 -fstrict-aliasing -fschedule-insns によって意味が変わる。訂正…

数値計算ガイド -- Sun

http://docs.sun.com/source/806-4847/ncgtoc.html 浮動小数点演算の説明がかなり詳細。 via 浮動小数点数 - Wikipedia -

Qt 4.2 -- Qt Tutorial

http://doc.trolltech.com/4.2/tutorial.html 一見 Java awt, swing と似ている。 SIGNAL & SLOT のイベント処理のところは違うけれど。 qmake -project qmake make

unison によるディレクトリの同期

unison -sshargs=-1 -ui=text -servercmd=/space/home/xxx/bin/unison ~/public_html ssh://test.com//space/home/xxx/public_html やたら長いが、 sshargs=-1 は ssh コマンドのオプションで、SSH version 1 の指定。 servercmd=... はサーバー側の unison …

bitwise operators

http://www.icce.rug.nl/documents/cplusplus/cplusplus03.html#an208 x = ~x; x = compl x; x = x ^ 0; x = x xor 0;

BGL

Boost Graph Library [cxx][net]: http://www.msc.cs.gunma-u.ac.jp/~tanaka/boost/bgl.html

Chapter10.Boost.StaticAssert

http://boost.org/doc/html/boost_staticassert.html コンパイル時に、型変数の値チェックとかできる。 かなり便利かも。 #include <iterator> #include <boost/static_assert.hpp> #include <boost/type_traits.hpp> template <class RandomAccessIterator > RandomAccessIterator foo(RandomAccessIterator from, RandomAccessIterator to) { // this</class></boost/type_traits.hpp></boost/static_assert.hpp></iterator>…

Adaptive topic-dependent language modelling using word-based varigrams

Julius によるオフライン音声認識 for Windows

sr lm

目的:wav2txt 動かすだけなら、すごく簡単です。 まともに使えるようにするのは、かなり大変です。Julius ディクテーションキットをダウンロードする。fast.jconf の input sscalc などを適切に編集する。run_fast.bat として動かす。Julius は基本的にはデ…

GUIdebook

http://www.guidebookgallery.org/ via When the Rain Falls Silver

lintsh

http://code.dogmap.org./lintsh/ bash family 内部の互換性問題

GCC 解読室 Wiki*

http://wikiwiki.jp/aloha/