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

International Phonetic Alphabet (IPA) Chart in Unicode and XHTML/CSS

http://www.linguiste.org/phonetics/ipa/chart/ IPA の一覧と簡易入力。 適当な転写+選択式のインクリメンタル検索入力ができるといいんだけど。

Hindi NLP resources

Web上リソース Hindi web-based computational linguistic resources 本場 Resource Center for Indian Language Technology Solutions (CFILT) 言語学・語学 Hindi LinksWiktionaryも1000語くらいはあるっぽい。番外 Link Grammar Language in India国会議…

fstab の上位互換としての autofs

shared -user,rw,uid=1000,gid=100 \ / -fstype=auto,iocharset=sjis :/dev/hda4 \ / -fstype=cofs :cofs0 と書くと、/dev/hda4 -> shared もしくは、cofs0 -> shared というように、同じマウントポイントに対して、複数の候補を割り当てられる。

The Scala Programming Language

http://scala.epfl.ch/ yet another JVM languageOOな継承と総称プログラミングができて、 関数型なパタンマッチとカリー化ができて、 closure と 中置記法ができて、 Java VM と .NET で走るバイナリにコンパイルできる。 Java のクラスファイルとは自由に…

日本語フォントの埋め込み

$TEXMF/fonts/truetype に msgothic.ttc, msmincho.ttc をコピーする。(普通は必要ないが) $TEXMF/web2c/texmf.cnf -SYSTTF = c:/{winnt,windows,winnt35}/fonts//;c:/usr/sysfonts// +SYSTTF = c:/{winnt,windows,windows.1,winnt35}/fonts//;c:/usr/sysfon…

CMD から 実行可能スクリプトを実行する

…ことはできないので、 .bat を付加した名前でバッチファイルを作る。 たとえば fairlatex.rb なら、 @echo off e: ruby e:\mydoc\bin\fairlatex.rb %1 %2 %3 %4 %5これをパスの通ったディレクトリに置けば、fairlatex.rb という名前で実行できる。

Java の enum

って、思っていたより強力。switch とか iterator とか使えるし、 enum Color { RED, BLUE; } public class Test { public static void main(String[] args) { Color c = Color.RED; String s="s"; switch (c) { case RED: break; case BLUE: s = "a"; break…

MultiMap

generics な継承とか。 import java.util.*; interface MultiMap<K,V> extends Map<K,Set<V>> { boolean put(K key, V value); } class MultiHashMap<K,V> extends HashMap<K,Set<V>> implements MultiMap<K,V> { public boolean put(K key, V value) { Set<V> s = get(key); if ( s == null ) { </v></k,v></k,set<v></k,v></k,set<v></k,v>…

Jacques Garrigue -- Home Page

http://www.math.nagoya-u.ac.jp/~garrigue/home-j.html 講義資料充実しています。

Keith Price Bibliography Annotated Computer Vision Bibliography

http://iris.usc.edu/vision-notes/bibliography/contents.html Computer Vision を中心とした関連分野文献へのポインタ。

Java の switch 文

「あらゆる分岐を、メソッドのオーバーロードに帰着させる」というのは、 オブジェクト指向設計の「標準形」のひとつだと思う。switch 文 void proc(var variable) { switch ( variable ) { case c1: ... break; case c2: ... break; } }は、 interface Proc…

Language Observatory

http://gii2.nagaokaut.ac.jp/gii/blog/lopdiary.php?blogid=8 多言語データの基盤整備・分析を行う「言語天文台」プロジェクト。

CVS vs. SVN

cvs -d repos get fltk svn co repos/trunk fltk cvs update -dP svn update cvs add name svn add name rm -f name svn remove name cvs remove name mv name newname svn move name newname cvs remove name cvs add newname cvs commit svn commit cvs di…

Cygwin で cron

http://shooting-star.myhome.cx/cygwin/cron.html Windows のサービスとして、cron を登録する。 登録するためのプログラムはCygwinに含まれている。 $ cygrunsrv -I cron -d "CYGWIN cron" \ -p /usr/sbin/cron \ -a -D -e "CYGWIN=ntsec nosmbntsec"

Elementary, ... Googleで「はらへった」と検索するとピザが届くようにするまで

http://e8y.net/blog/2006/07/25/p126.html Plagger のプラグイン作成事例として、とても分かりやすい。 何気なく使われている、Filterのあわせ技に注目。

非Administrator生活を快適に過ごすテクニック

http://eside.homeip.net/columns/non-admin.html とりあえず、ユーザー切り替えの代わりに runas コマンドを使うことからはじめよう。

Java の配列の型安全性の穴

public class Subarray { public static void main(String[] args) { Integer[] i = new Integer[1]; // i[0] = new String(""); はもちろん通らないけれども、 // 安全なはずの「上位型へのキャスト」を使うと ... ( (Object[])i )[0] = new String(""); } …

Intel C++ Compiler for Linux* - Intel Software Network

http://www.intel.com/cd/software/products/asmo-na/eng/compilers/clin/219856.htmIntel C++ Compiler for Linux*Free Non-commercial Unsupported Compilericc は C++ のソースのみ、 C++ のライブラリとのリンクする。 icpc は いつも(Cのソースでも) C++…

The Computer Language Shootout Benchmarks

http://shootout.alioth.debian.org/ 言語のベンチマーク。

Traits

http://sumim.no-ip.com:8080/wiki/818 via d.y.d.

Computer Vision Source Code

http://www.cs.cmu.edu/~cil/v-source.html

MIT OpenCourseWare | Mathematics | 18.06 Linear Algebra, Spring 2005 | Video Lectures

http://ocw.mit.edu/ocwweb/mathematics/18-06spring-2005/videolectures/index.htm 1回目だけ視聴。 Row picture / Column picture ... 名前重要、ですね。via 少年老い易く学成り難し

Pragmas - perldoc.perl.org

http://perldoc.perl.org/index-pragmas.html Perl の基本構文をオーバーライドするプラグマ。演算子オーバーロードもあった。 (via T先輩のソース) #! /usr/bin/env perl use warnings; use strict; package Complex; use overload '+' => sub{ Complex->ne…

Copy constructor and implicit type conversion

cxx

#include <iostream> class Complex { private: const double re; const double im; public: Complex(double r = 0.0, double i = 0.0) : re(r), im(i) { std::cout << "constructor: " << *this << std::endl; } Complex(const Complex& c) : re(c.re), im(c.im) { st</iostream>…

Oliver Strunk -- The Elements of Style - Index

http://orwell.ru/library/others/style/index.htm

IDRC Books -- Editorial Guidelines and Instructions

http://archive.idrc.ca/books/edit/eindex.html#sguide The Chicago Manual of Style Indiana University Style Guide

import & checkout -- Subversion FAQ

すでにあるディレクトリを作業ディレクトリとして継続して使いたいときの import (相当の方法) http://subversion.tigris.org/faq.html#in-place-import # svn mkdir file:///root/svn-repository/etc \ -m "Make a directory in the repository to corres…

A Taxonomy of Finite Automata Minimization Algorithms - Watson (ResearchIndex)

http://citeseer.ist.psu.edu/35617.html オートマトンの最小化も、奥が深い。

Let's Boost

http://www.kmonos.net/alang/boost/ STL の次は Boost。STLもまだまだ勉強中だけど... STLのページ Standard Template Library プログラミング on the Web SGI - STL Programmer's Guide boost::property_mapに書かれている concept というのは、Java の in…

Graph Classes and Algorithms

http://www.jaist.ac.jp/~uehara/etc/graph-class/index.html