2005年4月29日 星期五

In-ear

Sennheiser MX500 RC-L NT.750
http://tw.page.bid.yahoo.com/tw/auction/1135304255

Ex71 NT.1250
http://tw.page.bid.yahoo.com/tw/auction/1135226705?aucview=search

Ex81 NT.1580
http://tw.page.bid.yahoo.com/tw/auction/1135126642?aucview=search
http://tw.f2.page.bid.yahoo.com/tw/auction/b19508471?aucview=search

Etymotic ER6 NT.3500
http://tw.f3.page.bid.yahoo.com/tw/auction/c16149069?aucview=search

Etymotic ER6i NT.4200
http://tw.f4.page.bid.yahoo.com/tw/auction/d11796335?aucview=search

代買
http://tw.page.bid.yahoo.com/tw/auction/1135282002?aucview=search
E2C NT.2600
E3C NT.4800
Etymotic ER6i NT.4100

Perfume

Bvlgari
Pour homme
http://www.1976.com.tw/product/bvlgari02.htm
Aqva
http://www.1976.com.tw/product/bvlgari15.htm

Burberry
Weekend
http://www.1976.com.tw/product/burberry03.htm

Girgio Armani
Acqua Di Gio
http://www.1976.com.tw/product/giorgio05.htm

Dunhill
Fresh
http://www.1976.com.tw/product/dunhill07.htm

Kenzo
Air
http://www.1976.com.tw/product/kenzo13.htm

D&G
Light Blue
http://www.1976.com.tw/product/d&g03.htm

LDAP

http://www.teatime.com.tw/~tommy/doc/index.php?doc=openldap.txt

utf8

/etc/locale.gen
en_US.UTF-8 UTF-8
zh_TW.Big5 Big5
zh_TW.UTF-8 UTF-8
zh_TW UTF-8

~/.vimrc
set termencoding=utf-8
set encoding=utf-8
set fileencodings=big5,utf-8,gbk,euc-jp,euc-kr,utf-bom,iso8859-1
autocmd BufNewFile,BufRead w3mtmp* set fileencoding=utf-8

~/.screenrc
autodetach off
bell_msg ""meow!!""
defencoding big5
defutf8 on

screen -U telnet -8 ip

Ctrl-a :encoding big5 utf8

pietty
http://ntu.csie.org/~piaip/pietty/

scim + qooing

sudo apt-get install scim scim-dev scim-tables-zh scim-gtk2-immodule

cat << EOF | sudo tee /etc/X11/Xsession.d/80scim
export XMODIFIERS=""@im=SCIM""
export GTK_IM_MODULE=""SCIM""
export QT_IM_MODULE=""SCIM""
export XIM_PROGRAM=""scim -d""
#scim -f socket -d
#scim -f x11 -d
scim -d
EOF

cd ~/tmp
wget http://chewing.csie.net/download/libchewing/libchewing-0.2.6.tar.gz
tar zxvf libchewing-0.2.6.tar.gz
cd libchewing-0.2.6.tar.gz
./configure
make;make install

wget http://chewing.csie.net/download/scim/scim-chewing-0.2.0.tar.gz
tar zxvf scim-chewing-0.2.0.tar.gz
cd scim-chewing-0.2.0
./configure
make;make install

-------------------------------------------------------
http://chewing.csie.net/
http://xeonchen.blogspot.com/2005/03/ubuntu-scim.html

2005年4月28日 星期四

smart card

http://home.hkstar.com/~alanchan/papers/smartCardSecurity/index.html
http://www.rsasecurity.com/
http://www.cl.cam.ac.uk/users/rja14/tamper.html
http://www.tvro.com.tw/main5/maindate/web%20bbs/
fox%20in%20bbs%202%20smart_card_emulation__smart_card.htm
http://www.cryptography.com/company/Paul-Kocher.html
http://www.csie.ncu.edu.tw/~yensm/lcis.html

2005年4月27日 星期三

耳機....

ER6i

這款限量版的耳道式耳機是專門為了 iPod 所設計的。
在外觀上原本 ER6 黑色的部分都改成了跟 iPod 一樣的白色,
這樣看起來很乾淨比 ER6 的黑色又多了幾分質感,並降低原本
48歐姆的阻抗到16歐姆,所以跟 iPod 更加的適合,當然,
搭配其他的隨身器材,也會比 ER6 更容易獲得全面的發揮。

在有限的預算內,搭配iPod(或任何其他隨身訊源)的最佳耳機,
ER6i,就是最好的選擇!

Frequency response: 20 Hz to 16 kHz
Tolerance: ±3 dB to 6 kHz, ±6 dB to 16 kHz re nominal
Transducer type: Balanced armature
1 kHz sensitivity: 108 dB SPL for a 0.14 volt input
(105 dB @ 0.1 V; 107 dB @ 1mW)
Impedance: 16 Ohms
Maximum output: 120 dB SPL
Maximum continuous input: 2.5 Vrms
Weight: less than 1 oz.


定價:5350 售價:call

醜奴兒

醜奴兒 (少年不識愁滋味)
少年不識愁滋味,愛上層樓,
愛上層樓,為賦新詞強說愁。
而今識盡愁滋味,欲說還休,
欲說還休,卻道天涼好箇秋。

子曰

志於道,據於德,依於仁,游於藝

2005年4月26日 星期二

Squid (Proxy Server)

0.Environment
hostname:yuanzhen.math.ncu.edu.tw
/dev/sdb1 /usr/local/squid
eth0 inet addr:61.218.112.203 Bcast:61.218.112.255 Mask:255.255.255.0
eth1 inet addr:140.115.25.8 Bcast:140.115.25.255 Mask:255.255.255.0

1.Install Squid
# apt-get install squid

2.Setting
# vi /etc/squid/squid.conf

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
#Default:
cache_dir ufs /var/spool/squid 100 16 256

# TAG: auth_param
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

# ACCESS CONTROLS
acl all src 0.0.0.0/0.0.0.0
acl ncu src 140.115.0.0/255.255.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

#Recommended minimum configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
http_access allow ncu
# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

# And finally deny all other access to this proxy
http_access deny all

# and finally allow by default
http_reply_access allow all

# ADMINISTRATIVE PARAMETERS
#Default:
# none
visible_hostname yuanzhen

# Leave coredumps in the first cache dir
coredump_dir /usr/local/squid/cache

3.Network Setting
# vi /etc/network/interfaces
auto lo eth0 eth1
iface lo inet loopback

iface eth1 inet static
address 140.115.25.8
netmask 255.255.255.0
broadcast 140.115.25.255

iface eth0 inet static
address 61.218.112.203
netmask 255.255.255.0
broadcast 61.218.112.255
gateway 61.218.112.254

# cd /etc/init.d
# vi set_route
/sbin/route add -net 140.115.0.0/16 dev eth1
# chmod +x set_route
# cd /etc/rcS.d/
# ln -s /etc/init.d/set_route S41set_route

# /etc/init.d/squid start

NFS Server

1.Install NFS Server
#apt-get install portmap nfs-kernel-server nfs-common

2.Settings
#vi /etc/exports (adding what you want to export!)
/tmp 140.115.26.50(sync,rw,no_root_squash)

#vi /etc/default/portmap
uncomment ARGS=""-i 127.0.0.1""

#exportfs -ra

3.Restart service
#/etc/init.d/portmap restart
#/etc/init.d/nfs-kernel-server restart


Note:
Using TCP_wrappers need to edit /etc/hosts.allow to add
portmap:IP or portmap:ALL

nfs-user-server: Without kernel support but slower.

nfs-kernel-server: Need kernel support but faster. (kernel 2.2.13)