November 30, 2004

Gaim buddy icon

Gaim 的個人大頭貼已在 1.0.1 版支援, 只是設定的地方不明顯, 到今天才發現!
工具 / 帳號清單 / 選擇MSN帳號 / 修改 / 好友圖示

ref. Gaim ChangeLog

Posted by pank at 04:49 PM | Comments (3)

crontab run rsync: Host key verification failed

在 FreeBSD 下用 root 直接跑下面的指令(已和 host 建好 authorized_keys)
rsync -avz -e ssh host:/remotedir /localdir
正常

放到 crontab 使用 root 執行, 卻會出現如下錯誤
WARNING: RSA key found for host somehost.com
in /root/.ssh/known_hosts:16
RSA key fingerprint 12:34:56:78:90:92:02:5d:e5:bb:9b:c2:0e:cb:00:ff.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(348)

查了許久, 終於找到答案: console 下用的 ssh 和 crontab 下用的 ssh 不一樣

由於我有另外裝 OpenSSH
在 console 下 /usr/local/bin 的 path 排前面, 使用 /usr/local/bin
crontab 下 /usr/local/bin 的 path 排前面, 使用 /usr/bin
在我的環境下
freebsd 內建的 /usr/bin/ssh 會使用 DSA key fingerprint
OpenSSH 會使用 /usr/local/bin/ssh 會使用 RSA key fingerprint
所以才會產生 Host key verification failed. 的問題

Posted by pank at 02:39 PM | Comments (0)

SCO.com Defaced

原圖
被換掉的圖
反諷 SCO 要對 Linux user 要錢. I like this logo!

Posted by pank at 09:40 AM | Comments (0)

November 29, 2004

awstats

許久之前有用過這套, 今天又裝來玩玩, 功能已經變得滿強的了, 還有多國語系
安裝也很容易.
參照 安裝說明 , 手動或用 awstats_configure.pl 改好, 再把更新的指令加入 crontab 即可

pank.org awstats

Posted by pank at 11:59 PM | Comments (0)

Blog comment spam fighting

這兩個 MT plugin 不錯
bayesian 用 bayesian 的方式訓練, 使 MT 能識別 comment spam
scode 在 post comment 時, 會出現一張被干擾的數字圖片, 必須輸入輸入裡面的數字才能 post

剛裝了 bayesian plugin, 步驟如下面的 script
最後再用 http://your.host/path_to_mt/bayesian-init-db.cgi 設定一下即可, 設完後刪除 bayesian-init-db.cgi
使用 http://your.blog.com/path_to_mt/mt-bayesian.cgi 來 train MT

#!/bin/sh
MTDIR=/home/pank/public_html/mt
cp mt-bayesian.cgi bayesian-init-db.cgi cleandb* $MTDIR
cp mt-bayesian.pl $MTDIR/plugins
cp Bayesian.pm BayesianBlog.pm BayesianToken.pm $MTDIR/lib/MT
cp BayesianTrain.pm $MTDIR/lib/MT/App
cp bayesian_menu.tmpl bayesian_list_blog.tmpl bayesian_list_comments.tmpl bayesian_list_pings.tmpl $MTDIR/tmpl/cms

ref.
http://mt-plugins.org/

Posted by pank at 11:44 PM | Comments (0)

November 26, 2004

sed edit files in place

sed -i s/aaa/bbb/ file
=
perl -pi -e s/aaa/bbb file

backup as .bak
sed -i.bak s/aaa/bbb/ file

PS.
-i [suffix] is wrong under Linux (space not allowed between -i and [suffix])
sed in Solaris not support this parameter

Posted by pank at 03:30 PM | Comments (1)

An Analysis of the Skype Peer-to-Peer Internet Telephony

http://www.cs.columbia.edu/~library/TR-repository/reports/reports-2004/cucs-039-04.pdf

Posted by pank at 11:19 AM | Comments (0)

samba 3.x charset

samba 3.x default charset=utf-8
add following settings to smb.conf to change charset to big5
display charset = big5
unix charset = big5
dos charset = big5

Posted by pank at 01:50 AM | Comments (0)

FreeBSD: All mbuf clusters exhausted

All mbuf clusters exhausted
出現這個訊息時, 表示 network mbuf 用完了, 會造成網路不通
若常常出現這個, 要調整 kern.ipc.nmbclusters 這個參數,
此參數只能在開機時設定, 開機後就無法用 sysctl 設定,
開機時的 sysctl 參數寫在 /boot/loader.conf
如 kern.ipc.nmbclusters=10000

ref. man 7 tuning

LOADER TUNABLES
Some aspects of the system behavior may not be tunable at runtime because
memory allocations they perform must occur early in the boot process. To
change loader tunables, you must set their values in loader.conf(5) and
reboot the system.

kern.maxusers controls the scaling of a number of static system tables,
including defaults for the maximum number of open files, sizing of net-
work memory resources, etc. As of FreeBSD 4.5, kern.maxusers is automat-
ically sized at boot based on the amount of memory available in the sys-
tem, and may be determined at run-time by inspecting the value of the
read-only kern.maxusers sysctl. Some sites will require larger or
smaller values of kern.maxusers and may set it as a loader tunable; val-
ues of 64, 128, and 256 are not uncommon. We do not recommend going
above 256 unless you need a huge number of file descriptors; many of the
tunable values set to their defaults by kern.maxusers may be individually
overridden at boot-time or run-time as described elsewhere in this docu-
ment. Systems older than FreeBSD 4.4 must set this value via the kernel
config(8) option maxusers instead.

kern.ipc.nmbclusters may be adjusted to increase the number of network
mbufs the system is willing to allocate. Each cluster represents approx-
imately 2K of memory, so a value of 1024 represents 2M of kernel memory
reserved for network buffers. You can do a simple calculation to figure
out how many you need. If you have a web server which maxes out at 1000
simultaneous connections, and each connection eats a 16K receive and 16K
send buffer, you need approximately 32MB worth of network buffers to deal
with it. A good rule of thumb is to multiply by 2, so 32MBx2 = 64MB/2K =
32768. So for this case you would want to set kern.ipc.nmbclusters to
32768. We recommend values between 1024 and 4096 for machines with mod-
erates amount of memory, and between 4096 and 32768 for machines with
greater amounts of memory. Under no circumstances should you specify an
arbitrarily high value for this parameter, it could lead to a boot-time
crash. The -m option to netstat(1) may be used to observe network clus-
ter use. Older versions of FreeBSD do not have this tunable and require
that the kernel config(8) option NMBCLUSTERS be set instead.

More and more programs are using the sendfile(2) system call to transmit
files over the network. The kern.ipc.nsfbufs sysctl controls the number
of filesystem buffers sendfile(2) is allowed to use to perform its work.
This parameter nominally scales with kern.maxusers so you should not need
to modify this parameter except under extreme circumstances.

Posted by pank at 12:18 AM | Comments (0)

November 25, 2004

man page to ps or pdf file

man -t bash > bash.ps
man -t bash | ps2pdf - bash.pdf

ref.
-t Use /usr/bin/groff -Tps -mandoc -c to format the manual page,
passing the output to stdout. The output from /usr/bin/groff
-Tps -mandoc -c may need to be passed through some filter or
another before being printed.

Posted by pank at 05:03 PM | Comments (0)

PXE Server

只要使用 dhcp server 及 tftp server, 就可以架 PXE Server
環境: pxelinux.0(from the SYSLINUX distribution), kernel, initrd file, image 等檔案放在 /tftpboot, tftp server 目錄指向這裡

使用 dhcp 3.0, dhcp.conf 範例

ddns-update-style none;
default-lease-time 86400;
max-lease-time 86400;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.11 192.168.1.50;
filename "pxelinux.0";
next-server 192.168.1.233;
option time-offset 3600;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.253,168.95.1.1;
option domain-name "i";
}


若沒有指定 next-server, 會以 option routers 當作 tftp server

使用 udhcp 0.98, udhcpd.conf 範例

start 10.1.1.10
end 10.1.10.254
interface eth0
lease_file /var/dhcpd/udhcpd.leases
option dns 168.95.1.1 139.175.55.244
option subnet 255.255.0.0
option router 10.1.1.1
option lease 600
siaddr 10.1.1.1
boot_file pxelinux.0

使用 inetd, /etc/ined.conf 範例

tftp dgram tcp wait root /usr/sbin/tftpd tftpd -s /tftpboot

使用 xinetd, /etc/xinetd.d/tftp 範例

service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}

/tftpboot/pxelinux.cfg/default 範例

default dos
timeout 50
prompt 2

label linux
kernel systemk
append initrd=systemz ramdisk_size=65535 root=/dev/ram0

label dos
kernel memdisk
append initrd=psetup.img

ref.
PXE Spec
PXE daemon
http://phorum.study-area.org/viewtopic.php?t=19192

Posted by pank at 11:31 AM | Comments (2)

November 19, 2004

Replace files in msi package

我不曉得有什麼好用的工具可以做到類似的動作,
以下的例子算是土法煉鋼 (以 MSN 7.0.0425 為例)

執行 Install_MSN_Messenger.exe, 在 %TEMP% 目錄可找到 msi 檔,
copy 出來成 msn7.0.0425.msi

然後用 msi2xml 轉換成 xml 檔

msi2xml msn7.0.0425.msi (在 windows 下執行)
會產生 msn7.0.0425.xml

傳到 linux 下, 使用 base64 來解檔

MSN 的檔案大都存在 MsgrCore.cab 裡

tail +$((`grep -n MsgrCore.cab msn7.0.0425.xml | tail -1 | cut -d: -f1`+2)) msn7.0.0425.xml > MsgrCore.cab.b64
抽出 MsgrCore.cab 的 base64 編碼部分, 存到 MsgrCore.cab.b64

base64 -d MsgrCore.cab.b64 MsgrCore.cab
將 MsgrCore.cab 解出

找一套能處理 cab 的壓縮程式, 例如 zipzag,
將修正過的 msnmsgr.exe 及中文化的 msgslang.dll (由 March Fun 製作),
覆蓋裡面的
msnmsgrexe.ADEB440D_7847_4F65_80BD_899870ED2EC9
msgslangdll.ADEB440D_7847_4F65_80BD_899870ED2EC9
(不清楚為什麼是這種檔名)

接下來要把 msn7.0.0425.xml 後半的 MsgrCore.cab md5 及 base64 部分, 用新的取代
XML=msn7.0.0425.xml
NEWXML=msn7.0.0425cht.xml
CAB=MsgrCore.cab
NEWCAB=new.cab
N=`grep -n $CAB $XML | tail -1 | cut -d: -f1`
head -$N $XML > $NEWXML
let N++
OLDMD5=`sed -n "$N"p $XML | cut -d\" -f4`
NEWMD5=`md5sum $NEWCAB | cut -d' ' -f1`
sed -n "$N"p $XML | sed s/$OLDMD5/$NEWMD5/ >> $NEWXML
mimencode $NEWCAB >> $NEWXML
tail -4 $XML >> $NEWXML

上面這段 script 會產生新的 xml 檔, 再回到 windows 用 xml2msi 轉
xml2msi msn7.0.0425cht.xml

最後產生 msn7.0.0425cht.msi, 直接安裝就是中文版!

簡單地說, 先用 msi2xml 轉成 xml 檔, 再把裡面檔案的 md5 及 base64 編碼部分置換,
再用 xml2msi, 轉回 msi 檔

Posted by pank at 12:05 AM | Comments (2)

November 18, 2004

pidof for FreeBSD

pidof -- find the process ID of a running program.
a standard tool under Linux, but not exist in FreeBSD

FreeBSD user can get pidof by install port /usr/ports/sysutils/psmisc
A port of the Linux pstree, killall and pidof commands.

Posted by pank at 10:24 AM | Comments (0)

77delegate

http://ftp.77bbs.com/bbs/77delegate.exe

  • 程式功能: 提供 TCP relay 方式連線至 77bbs.com (我架的 BBS)
  • 使用時機: A 電腦無法連到 77, 但是可以連到 B 電腦
    B 電腦可以連到 77, 在 B 電腦裝 77delegate,
    A 電腦就可以 telnet B 電腦, 透過 B 電腦連上 77
  • 安裝: 直接執行即可, 安裝後會成為系統的一個服務, 若要停止該服務,
    可以到 控制台/系統管理工具/服務 裡面設定
  • 注意事項: 若有使用防火牆, 需將 tcp port 23 打開或設為例外連接埠
  • 進階用法: 若要修改安裝參數, 請用 WinRAR 開啟 77delegate.exe,
    修改 註解 裡面的 Setup= 參數
    預設是 Setup=setup.bat 23 77bbs.com 23
    表示使用 port 23, 對應到 77bbs.com port 23
    例如: 某公司網路限制嚴苛, 只能看網頁, 此時找一台有 public IP 的電腦,
    (假設 IP 是 100.1.1.1)
    參數改成 Setup=setup.bat 80 77bbs.com 23, Save 後, 再安裝
    即可使用 telnet 100.1.1.1 80 的方式連上 77

    77delegate 是使用 delegate 8.10.2版, 再加以包裝設定而成

    Posted by pank at 12:58 AM | Comments (0)
  • November 17, 2004

    Firefox 中文版

    Firefox 1.0 出來了幾天, 都沒看到中文版, 原來中文版並沒有放在 release 目錄
    可以在 這裡 下載

    Posted by pank at 12:25 AM | Comments (0)

    November 16, 2004

    達人

    最近在媒體常見"達人"這個詞, 什麼是達人?
    查了 Google, 大部分都是日文網站, 可見這個詞源自於日文
    在日文字典裡, 達人, 是經過長年的鍛鍊、累積豐富的經驗, 而得到某個專精領域真髓的人
    中文相當於"大師"、"專家"
    英文 master, expert, specialist

    Posted by pank at 10:37 PM | Comments (0)

    remote control of unix mozilla

    http://www.mozilla.org/unix/remote.html

    可以應用在 Kiosk 方面

    Example usage:
    mozilla -remote "openurl(http://www.mozilla.org)"

    Posted by pank at 10:17 AM | Comments (0)

    November 15, 2004

    Windows XP 常用命令

    轉載自 http://blog.csdn.net/laojievip/archive/2004/10/08/127696.aspx

    appwiz.cpl 添加刪除程序
    calc 啟動計算器
    chkdsk Chkdsk 磁盤檢查
    cleanmgr 垃圾整理
    CMD 命令提示符可以當作是 Windows 的一個附件,Ping,Convert 這些不能在圖形環境下 使用的功能要借助它來完成。
    command.com 調用的則是系統內置的 NTVDM,一個 DOS虛擬机。它完全是一個類似 Virtual PC 的 虛擬環境,和系統本身聯系不大。當我們在命令提示符下運行 DOS 程序時,實際上也 是自動轉移到 NTVDM虛擬机下,和 CMD 本身沒什麼關系。
    compmgmt.msc 計算机管理
    conf 啟動 netmeeting
    control userpasswords2 用戶帳戶設置
    control userpasswords2 User Account 權限設置
    devmgmt.msc 設備管理器
    dfrg.msc 磁盤碎片整理程序
    diskmgmt.msc 磁盤管理實用程序
    drwtsn32 系統醫生
    dvdplay 啟動Media Player
    dxdiag DirectX Diagnostic Tool
    eventvwr.exe 事件查看器
    explorer 打開資源管理器
    gpedit.msc 組策略編輯器
    gpupdate /target:computer /force 強制刷新組策略
    logoff 注銷命令
    lusrmgr.msc 本机用戶和組
    msconfig 系統配置實用程序
    msinfo32 系統信息
    net start (servicename) 啟動該服務
    net stop (servicename) 停止該服務
    notepad 打開記事本
    Nslookup IP地址偵測器
    nusrmgr.cpl 同 control userpasswords,打開用戶帳戶控制面板
    msoobe /a 檢查XP是否激活
    perfmon.msc 計算机性能監測程序
    progman 程序管理器
    regedit 注冊表編輯器
    regedt32 注冊表編輯器
    regsvr32 /u *.dll 停止dll文件運行
    rononce -p 15秒關机
    route print 查看路由表
    rsop.msc 組策略結果集
    rundll32.exe rundll32.exe %Systemroot%\System32\shimgvw.dll,ImageView_Fullscreen 啟動一個空白的Windows 圖片和傳真查看器
    secpol.msc 本地安全策略
    services.msc 本地服務設置
    sfc /scannow 啟動系統文件檢查器
    sndrec32 錄音机
    taskmgr 任務管理器(適用于2000/xp/2003)
    tsshutdn 60秒倒計時關机命令
    winchat XP自帶局域網聊天
    winmsd 系統信息
    winver 顯示About Windows 窗口
    wupdmgr Windows Update

    Posted by pank at 10:39 PM | Comments (0)

    November 12, 2004

    Sonoma - Centrino 的接班人

    預定於明年初問市的 Sonoma 是英特爾針對行動娛樂型筆記型電腦
    所推出的最佳解決方案,配合 Intel® Stable Image Platform Program 計
    畫,協助企業妥善管理其電腦軟體的影像傳輸(transitions)作
    業。Sonoma 將包含一款支援533MHz前端匯流排的新型 Intel® Pentium®M
    處理器、一款代號為“Alviso”的晶片組、以及最近剛
    發表的 Intel® PRO/Wireless2915ABG 網路連結方案。

    ref. http://www.intel.com/cd/business/enterprise/apac/zht/newstech/178894.htm

    Posted by pank at 09:49 PM | Comments (0)

    November 11, 2004

    WinXP 使用 shutdown 預約關機

    有時利用晚上時間下載東西, 又不想讓電腦開整晚, 可以用 shutdown 來預約關機

    -i 顯示 GUI 介面,必須是第一個選項
    -l 登出 (不能和 -m 選項一起使用)
    -s 電腦關機
    -r 關機並重新啟動電腦
    -a 中止系統關機
    -m \\\\computername 從遠端進行關機/重新啟動/中止
    -t xx 將關機等候時間設定成 xx 秒
    -c "comment" 關機註解 (最多 127 個字元)
    -f 強制關閉執行中的應用程式,不顯示警告
    -d [u][p]:xx:yy 關機原因代碼

    範例:
    shutdown -s -t 3600 -f (一小時鐘後關機)
    shutdown -a (取消關機)

    Posted by pank at 01:27 AM | Comments (0)

    P2P Age

    SourceForge Top 5 Downloads all P2P program

    1 Azureus - BitTorrent Client
    2 eMule
    3 BitTorrent
    4 DC++
    5 Shareaza

    Posted by pank at 01:20 AM | Comments (0)

    November 10, 2004

    ddcxinfo

    ddcxinfo 或 ddcxinfos 這個工具可以列出顯示卡的一些 X 參數資訊, ModeLine 等

    KNOPPIX 裡有功能類似的程式, 參數更完整
    # ddcxinfo
    syntax: ddcxinfo [-hsync] [-vsync] [-modelines]
    # ddcxinfo-knoppix
    syntax: ddcxinfo-knoppix [-hsync] [-vsync] [-modelines] [-monitor] [-modes] [-firstmode 1024x768]

    Posted by pank at 09:49 PM | Comments (0)

    Linux open consoles without login

    Only 1 console
    edit /etc/inittab
    1:2345:respawn:/bin/bash
    (this way only work for 1 console, 2 or more consoles not work)

    Multi-consoles (reference from KNOPPIX)
    edit /etc/inittab
    1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
    2:2345:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2
    3:2345:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3
    .
    .
    .

    Posted by pank at 09:36 PM | Comments (0)

    GNUPG

    GnuPG is a complete and free replacement for PGP

    一開始先要造公/私金鑰
    gpg --gen-key

    對文件加簽
    gpg --clearsign file.txt
    會產生 file.txt.asc
    範例: (Mandrake Linux Community ISO MD5)
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    1ea7433e24eb6a3d9491128708a8e0e3 Mandrakelinux-10.1-Community-Download-CD1.i586.iso
    5b66d05d03ed2830ce6d09a7e4930b24 Mandrakelinux-10.1-Community-Download-CD2.i586.iso
    4815820ca0ff6a5c91525363889bc7bb Mandrakelinux-10.1-Community-Download-CD3.i586.iso
    d41d8cd98f00b204e9800998ecf8427e Mandrakelinux-10.1-Community-Download.md5
    9bbc6e07fcfc75dfef935e8673d3a5b1 Mandrakelinux-10.1-Community-Download.md5.asc
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.3 (GNU/Linux)

    iD8DBQFBUaXK54mK4HB3H/MRAgwWAKC1UYRdMR1XDt19/tk850KDnRENKQCeO1k4
    hjWxIi4FZoc5h8df4Z4xKEk=
    =RFQ2
    -----END PGP SIGNATURE-----

    檢查已加簽文件
    gpg --verify test.asc
    gpg: 由 西元2004年11月10日 (週三) 10時19分38秒 CST 建立的簽章,使用 DSA 金鑰 ID A8C4CEBC
    gpg: 完好的簽章來自於 "Henry Pan "

    Posted by pank at 10:36 AM | Comments (0)

    November 09, 2004

    Firefox 1.0 Released

    http://www.mozilla.org/products/firefox/

    Firefox 在瀏覽器中的佔有率正逐漸上升中

    Posted by pank at 11:44 PM | Comments (0)

    Skype 費率表

    SkypeOut 費率表(PChome)
    打台灣手機一分鐘 3.444, 有便宜一點, 但還不足以吸引人使用

    Posted by pank at 11:29 PM | Comments (0)

    November 08, 2004

    isc dhcp fixed-address

    ISC DHCPD 的 IP pool (range) 並不會自動排除已 fixed-address 的 IP
    舉個例子:
    subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.10 192.168.0.200;
    option routers 192.168.0.1;
    option domain-name-servers 168.95.1.1,168.95.192.1;
    }
    host test { hardware ethernet 00:90:dc:02:45:88; fixed-address 192.168.0.10; }
    這就是有問題的設定, 有可能有其他電腦會佔了 192.168.0.10 這個 IP,
    而 00:90:dc:02:45:88 這台電腦就無法取得 IP.

    正確的做法應該要把固定 IP 區段畫開,
    如:
    192.168.0.10 ~ 192.168.0.20 為固定分配 IP
    192.168.0.21 ~ 192.168.0.200 為動態分配 IP
    subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.21 192.168.0.200;
    option routers 192.168.0.1;
    option domain-name-servers 168.95.1.1,168.95.192.1;
    }
    host test { hardware ethernet 00:90:dc:02:45:88; fixed-address 192.168.0.10; }

    Posted by pank at 03:03 PM | Comments (0)

    November 05, 2004

    bash substitution

    #!/bin/bash
    STRING=aaa.bbb
    echo ${STRING/bbb/ccc}

    result is aaa.ccc

    Posted by pank at 12:05 AM | Comments (0)

    November 04, 2004

    WinTasks Process Library

    http://www.liutilities.com/products/wintaskspro/processlibrary/

    WinTasks Process Library
    The WinTasks Process Library contains information about all common Windows processes and is continously updated with new information.
    On this page you can find a subset of the most popular processes listed in WinTasks Process Library.
    The categories available online are: Security Risks, System Processes, and Applications.

    Posted by pank at 09:12 AM | Comments (0)

    November 03, 2004

    Pank 常用軟體 Top 20 (Linux 版)

    本列表不包含 /bin 或 /usr/bin 下的基本工具、及 Server 程式 (如 Apache)
    大致上是以使用頻率高低排列

    1. Joe http://sourceforge.net/projects/joe-editor/

    最每天必用編輯器, 3.0 後新增許多不錯的功能
    使用版本: 3.1

    2. RXVT http://sourceforge.net/projects/rxvt/

    X 下最常用的 console 軟體
    使用版本: 2.7.10

    3. OpenSSH http://www.openssh.org

    使用 ssh 來連各個主機
    使用版本 3.9p1

    4. Firefox http://www.mozilla.org/products/firefox/

    Mozilla 系列的瀏覽器, 功能與支援標準已超越 IE 許多
    使用版本: 1.0PR1 中文版 http://moztw.org/firefox

    5. Thunderbird http://www.mozilla.org/products/thunderbird/

    Mozilla 系列的 Email 軟體, 它會自動分析你的郵件,並判斷哪些是廣告
    使用版本: 0.8 中文版 http://moztw.org/thunderbird

    6. Gnome Terminal http://www.gnome.org


    玩 BBS 用, BBS 表現比 RXVT 好, 我是用舊版本
    使用版本: 1.4.0.6

    7. StarDict http://stardict.sourceforge.net

    多國語系翻譯軟體, 有支援 highlight 即時翻譯的功能
    使用版本: 2.4.2

    8. Gaim http://gaim.sourceforge.net

    可同時使用 ICQ, MSN, Yahoo Messenger 的 IM 軟體
    使用版本: 1.0.0

    9. WGET http://www.gnu.org/software/wget/wget.html

    抓檔好用, 支援 ftp, http
    使用版本: 1.9.1

    10. NCFTP http://www.ncftp.org

    Console FTP Client, 支援 bookmark
    使用版本: 3.1.7

    11. KCalc http://www.kde.org

    KDE 的計算機, 有 BIN/OCT/DEC/HEX 計算功能
    使用版本: 3.2

    12. Rdesktop http://www.rdesktop.org

    RDP Client, 用來連 2000 的終端機或 XP 的遠端桌面
    使用版本: 1.3.1

    13. OpenOffice http://www.openoffice.org

    Office 軟體, 拿來 View MS Office 的檔案, 格式和 MS 還是有些差距
    使用版本: 1.1

    14. VI or VIM http://www.vim.org

    不見得每台機器(環境)都有 Joe, VI 還是滿常用的
    使用版本: 不一定, 通常是使用 busybox 裡的 vi

    15. Acrobat Reader http://www.adobe.com/products/acrobat/readstep2.html

    PDF 檢視工具
    使用版本: Acrobat Reader 5.0.9

    16. QIV http://www.klografx.net/qiv/index2.html

    看圖工具
    使用版本: 1.9

    17. RAR http://www.rarlab.com

    RAR 壓縮/解壓縮工具
    使用版本: 3.40

    18. UNZip http://www.info-zip.org/pub/infozip/unzip.html

    ZIP 解壓縮工具
    使用版本: 5.50

    19. TightVNC http://www.tightvnc.com

    使用版本: 1.2.7

    20. Curse HexEdit http://www.rogoyski.com/adam/programs/hexedit/

    編輯 binary 檔
    使用版本: 0.9.7

    Posted by pank at 11:49 PM | Comments (0)

    Pank 常用軟體 Top 20 (Windows 版)

    本列表不包含 Windows 的附屬應用程式, 大致上是依使用頻率高低排列

    1. MyIE2 http://www.myie2.com

    大陸同胞寫的 IE base 瀏覽器, 用了 MyIE2, 才知道什麼叫"網際衝浪"
    MyIE2 後來改名叫 Maxthon http://www.maxthon.com
    Maxthon 感覺還不太穩, 推薦使用 MyIE2
    使用版本: MyIE2 0.9.27.68

    2. Eudora http://www.eudora.com

    老牌的電子郵件軟體, 從開用 Email 開始就用它, 雖然不怎麼長進, 倒也用習慣了
    (Outlook, Outlook Express 算是後起之秀, 算年資, Eudora 早了許多年)
    使用版本: 6.1.03 beta 加 Cpatch 果糖的中文相容修正
    安裝檔 http://ftp.pank.org/eudora/eudora_6.1.0.3_beta.exe
    中文修正 http://ftp.pank.org/eudora/fix_eudora6103_b5.exe

    3. 4NT http://www.jpsoft.com

    大概只有老頭子才會用這種 command line 的 tool, 對我而言, 可是必要工具呢,
    它的兄弟是 4DOS
    使用版本: 5.00U

    4. POPFile http://popfile.sourceforge.net

    郵件自動分類軟體, 具學習功能
    使用版本: 0.22.1

    5. Putty http://www.chiark.greenend.org.uk/~sgtatham/putty/

    小而美的 TELNET SSH 軟體, 經常連 console 作業的人, 必備
    使用版本: 0.55

    6. KKMan http://www.kkman.com.tw

    玩 BBS 用, 推薦使用 77 版 KKMan 2.1.401
    使用版本: 2.1.401 + 77 Logo 修改
    安裝檔 http://ftp.77bbs.com/bbs/telnet/kkman2.1401/setup.exe
    77 Logo http://ftp.77bbs.com/bbs/telnet/kkman2.1401/77kkman21401.rar

    7 Norton Antivirus http://www.symantec.com

    應該是最多人用的防毒軟體, 推薦使用 NAV2003, NAV2004 和 Windows XP SP2
    有相容性問題. 目前最新 NAV2005, SP2 可偵測到
    使用版本: NAV2003

    8. SecondCopy http://www.centered.com

    備份檔案工具, 在您指定的時間內, 自動幫您做 "SecondCopy"
    使用版本: 6.2.0.37

    9. 漢書XP http://www.stone.com.tw

    用習慣 PE2 的人, 就會喜歡漢書XP
    使用版本: 8.0

    10. MSN Messenger http://messenger.msn.com

    愈來愈多用人 MSN 了
    使用版本: 7.0.0332 + 去廣告修正
    去廣告修正 http://ftp.pank.org/im/msnnoad.exe

    11. 21世紀字典

    這套電子字典是 Windows 3.1 時代就有的經典軟體, 收錄字多, 還有例句
    使用版本: 4.1

    12. 地球村點點通 http://www.samlight.com

    大陸同胞寫的字典軟體, 收錄字也很多, 通常和上面那一套交替使用
    使用版本: 2.1

    13. Flashget http://www.amazesoft.com

    下載工具, 新版還支援 stream 格式檔案
    使用版本: 1.65

    14. CuteFTP http://www.globalscape.com

    CuteFTP 4.x 版最好用, 若要下載 2G 以上檔案或使用 SFTP, 就要使用 Pro 版,
    Pro 版中文支援性也較佳
    使用版本: CuteFTP 4.2.3 Build 2.14.1、CuteFTP Pro 6.0

    15. WinRAR http://www.rarlab.com

    不可或缺的軟體, 支援多種壓縮格式
    使用版本: 3.4

    16. Acrobat Reader http://www.adobe.com

    讀 PDF 檔的必要工具
    使用版本: 6.0.1

    17. Daemon Tools http://www.daemon-tools.cc

    虛擬光碟工具, 小而美, 支援光碟保護
    使用版本: 3.47

    18. Nero http://www.nero.com


    Nero 似乎成了燒錄軟體的代名詞, 6.x 版太肥大, 所以我用 5.x 版
    使用版本: 5.5.10.56 (5.x 最新版)

    19 UltraEdit http://www.ultraedit.com

    改 Hex Code 就用它
    使用版本: 10.10c

    20. PaPaGo 地圖 http://www.papago.com.tw

    有了這套國產的地圖軟體, 找路很方便
    使用版本: 7.3

    Posted by pank at 11:17 PM | Comments (0)

    Workaround

    這個字在大部分的字典都查不到, 但是在技術文件滿常見的.
    我是查了 Google 網上論壇 workaround group:tw.bbs.lang.english 得到結果, 整理如下:

    中文解釋

  • 雖不能根本解決, 但能避開問題的替代方法。
  • 避免問題或困難而旁道而行達到目的。
  • 權宜之計; 應急之策。
  • 原本是電腦術語, 相對於「Fix」而言. 當一個程式有了問題, 找出問題所在然後直接解決它叫做「Fix」; 當問題始終無法解決, 於是想個方法忽略這個問題並使這個問題不致於影響你要用這程式達到的目的, 這樣的方法就叫 Workaround。

    英文解釋

  • workaround means a manner of bypassing a problem caused by a bug without correcting the bug itself.
  • workaround is similar to "stopgap solution". If there is a problem, a "workaround" doesn't eliminate the problem, but it does bypass the problem.

    ref.
    http://en.wikipedia.org/wiki/Workaround
    http://whatis.techtarget.com/definition/0,,sid9_gci868091,00.html

    2006-07-17 Update: 把上述中文解釋加到中文維基百科

    Posted by pank at 12:20 AM | Comments (10)
  • November 02, 2004

    EXIF

    EXIF is EXchangeable Image File, about 2K header in jpeg file
    0xFF+Marker Number(1 byte)+Data size(2 bytes)+Data(n bytes)
    Example
    File date : 2004:11:01 21:30:49
    Camera make : NIKON
    Camera model : E4500
    Date/Time : 2004:10:31 15:11:21
    Resolution : 1024 x 768
    Flash used : No
    Focal length : 14.4mm
    Exposure time: 0.0034 s (1/298)
    Aperture : f/4.7
    ISO equiv. : 100
    Metering Mode: matrix
    Exposure : program (auto)

    How to read EXIF?
    UNIX-like OS: use jhead
    Windows XP: right click image file, select property, in 2nd label, click advanced

    Posted by pank at 09:52 AM | Comments (0)

    November 01, 2004

    Resize Image

    Use ImageMagick (this way keep EXIF data)

    convert DSCN0001.JPG -resize 800x600 small.jpg

    Use netpbm (this way lose EXIF data)

    jpegtopnm DSCN0001.JPG | pnmscale -width=800 -height=600 | pnmtojpeg > small.jpg

    ref. EXIF

    Posted by pank at 09:48 PM | Comments (0)

    Apache 1.3.33 Released

    http://httpd.apache.org/
    Changes with Apache 1.3.33

    *) SECURITY: CAN-2004-0940 (cve.mitre.org)
    mod_include: Fix potential buffer overflow with escaped characters
    in SSI tag string. [Martin Kraemer, Jim Jagielski]
    Download

    Posted by pank at 01:30 AM | Comments (0)

    OS that Include Optimizations for HT Technology

    並不是所有 OS 都可以發揮 HT 的效能, MS 的 OS 只有 XP 系列支援
    http://www.intel.com/support/platform/ht/os.htm
    Hyper-Threading Technology

    Posted by pank at 12:42 AM | Comments (0)