Wednesday, March 21, 2007

Bawang Mumbai

Kemarin ketemu relasi perusahaan India di kantor mereka Tokyo. Kantor pusat dan beberapa cabangnya ada di India. Salah satu nya di Mumbai. Katanya dulu namanya Bombay, tapi ini nama buatan (atau pilihan) Inggris waktu menjajah India, jadi sekarang dikembalikan ke nama aslinya Mumbai. Demikian juga Madras yang nama buatan Inggris dikembalikan ke Chennai nama aslinya. Udah pernah dengar sih rasanya, cuma baru kali ini dengar langsung dari orang India.
Terlepas dari kontroversi mengenai penggantian nama ini, kalo gitu bawang bombay harus ganti nama dong jadi bawang mumbai?

Friday, March 9, 2007

OpenCV

OpenCV related links:

Main site
Open Source Computer Vision Library at Sourceforge
Open Source Computer Vision Library at Intel


Tutorial
Introduction to programming with OpenCV

Documentations
Image Processing and Analysis Reference
Basic Structures and Operations Reference
Structural Analysis Reference
Experimental Functionality Reference

Some other links:
http://www.idd.tamabi.ac.jp/art/wiki/index.php?Programming%2FOpenCV

私が提案する少子化対策

私が提案する少子化対策は次の通り: 国の年金制度を完全廃止する。国民は子供を十分多くつくり、自分の老後にそなえる。退職したら、複数の子供から仕送りをもらい、そして複数の子供が年をとって弱った自分を介護してもらう。国の年金制度を完全廃止することでこのようにせざるをえない状況を作る。不幸にも子供をで恵まれない夫婦の老後の最低限のレベルを国が生活支援として保証する。

馬鹿にしている市議会選挙

飯塚市の市議会選挙は明後日に迫ります。選挙カーは走り回り、スピーカから「~でございます。よろしくお願いします」「あたたかいご支援、ありがとうございます」が繰り返し流れます。「~でございます。よろしくお願いします」と聞いたからその立候補者に票を入れるわけないと思い、選挙のやり方を不思議に思います。この状況からわかることは、政治家は市民を馬鹿にしているか、市民は本当に馬鹿かのどちらかです。無意味な言葉を繰り返しうるさく言わずに、なぜ私はあなたに票を入れるべきかを説得力のある説明をしてもらいたい。

Monday, March 5, 2007

Multi RBL check

Here are some sites to check multiple RBL sites:

robtex's Multi-RBL check
http://www.robtex.com/rbls.html
Openrbl
http://openrbl.org/
MXRate (not multiple, but decisions are based on info from many servers)
http://www.mxrate.com/lookup/lookupResults.asp

Thursday, March 1, 2007

Asterisk dialplan patterns

X matches any digit from 0-9
Z matches any digit form 1-9
N matches any digit from 2-9
[1237-9] matches any digit or letter in the brackets
(in this example, 1,2,3,7,8,9)
. wildcard, matches one or more characters
! wildcard, matches zero or more characters immediately
(only Asterisk 1.2 and later, see note)


References:
voip-info.org

sip.conf settings

Keywords used in sip.conf settings:

[general]

* allow -- 有効なコーデックの指定
* allowguest -- パスワードの認証が必要かどうか
* allowexternaldomains -- ドメインによってはじくかどうか
* allowexternalinvites -- 外部への INVITE と REFER コマンドを使用するかどうか(使用不可)
* autocreatepeer -- peer としての設定のされていないユーザからの Register を許可するかどうか
* autodomain -- 「domain」「bindaddr」「externip」「externhost」で設定された値を、ドメインリストに追加するかどうか
* bindaddr -- このサーバで接続を待ち受けるIPアドレス
* bindport -- このサーバで接続を待ち受けるポート番号
* callerid -- コーラ ID の指定
* callevents -- 外部プログラムを使用するかどうか
* canreinvite --
* checkmwi
* compactheaders
* context
* defaultexpiry
* disallow
* domain -- このサーバに割り当てるドメイン
* dtmfmode
* externhost
* externip
* externrefresh
* fromdomain
* ignoreregexpire
* insecure
* language
* localnet
* localmask
* maxexpiry
* musicclass
* nat
* notifymimetype
* notifyringing
* ospauth
* outboundproxy
* outboundproxyport
* pedantic
* progressinband
* promiscredir
* realm
* recordhistory
* regcontext
* register
* registerattempts
* registertimeout
* relaxdtmf
* rtautoclear
* rtcachefriends
* rtpholdtimeout
* rtpkeepalive
* rtptimeout
* rtupdate
* sendrpid
* sipdebug -- SIPの動作部分のみのデバッグ情報を出力する
* srvlookup
* subscribecontext
* tos
* trustrpid
* useclientcode
* useragent
* usereqphone
* videosupport
* vmexten

[peer/user]

* accountcode
* allow
* allowguest
* amaflags
* auth
* call-limit
* callerid
* callgroup
* callingpres
* canreinvite
* context
* defaultip
* deny
* disallow
* dtmfmode
* fromdomain
* fromuser
* fullcontact
* host
* incominglimit
* insecure
* ipaddr
* language
* mailbox
* md5secret
* musiconhold
* name
* nat
* ospauth
* outboundproxy
* permit
* pickupgroup
* port
* progressinband
* promiscredir
* qualify
* regexten
* regseconds
* restrictcid
* rtpholdtimeout
* rtpkeepalive
* rtptimeout
* secret
* sendrpid
* setvar
* subscribecontext
* trustrpid
* useclientcode
* usereqphone
* username
* vmexten

Reference:
http://asterisk.phalanx.co.jp/index.php?sip.conf

Bridge mode for VMWare Player

This is how to set guest OS to use bridged mode (for example installing Trixbox, see http://arnold.siboro.org/blog/en/?p=41).

Guest OS is Windows 2003 Server with two NICs, one connected to global network, one to private network. The guest OS should be connected via bridged connection to private network.

Go to VMWare Player install directory and run vmnetcfg.exe. Click "自動ブリッジ" tab and see the virtual NIC that is bridged (usually, or perhaps always, VMnet0). Then click "ホスト仮想ネットワークの割当", and at VMnet0 select the host OS NIC that is connected to private network.
Then start VMWare player with the guest OS, set the player's Ethernet to Bridged. Settings are finished for host OS and player side.
Now go to guest OS and set the network connection accordingly. For example, if the host OS is CentOS (or other Linuxes), set /etc/sysconfig/network-scripts/ifcfg-eth0 to something like this:


DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:0C:29:03:7A:9D
IPADDR=172.31.31.3
NETMASK=255.255.255.0
NETWORK=172.31.31.0
BROADCAST=172.31.31.255
GATEWAY=172.31.31.1


Reference:
http://www37.tok2.com/home/nobusan/multi_boot/vmware/vmware.html