May 5th, 2008
假裝忙了一陣子,現在終於比較有空做自己想做的事情了… 不過看了一下累積沒做的事情,還真是多到嚇人…
前一陣子幫忙指導專題生,其實比較關鍵的事情還是我自己做的,比較雜項的事情才是被指導的人做的。雖然是蠻希望她們能夠自己完成這些事情,不過是有點強人所難啦。總之是一個經驗,雖然跟自己被指導的時候差的非常多,不過也稍微讓自己更認清了事實。
現在又開始著手帶人了,是蠻希望這次的結果能夠好一點啦,因為這次是要把自己的工作交接出去。三年多來我幫系上弄了蠻多的東西,有些東西的架構還要再調整,有些是應該要砍掉重練。現階段先重新規劃架構,接下來再看看是要自己弄還是學弟妹要接手…
Posted in Chat | 1 Comment »
September 13th, 2007
停電沒通知我,虛擬主機群 + 備援機器全部掛點
非常非常剛好的是,幹你娘的虛擬主機資料是寫在隨機存取記憶體裡面的,記憶體沒電是要存在哪?!
Powered by ScribeFire.
Posted in Chat | No Comments »
August 26th, 2007
hemidemi_bf4d4ceff1788b9d213557075b271dc3bb63c350
這篇單純是認證用的…
Powered by ScribeFire.
Posted in Chat | No Comments »
July 29th, 2007
這在網路上大概已經戰了十幾天了,稍微寫一下我個人的看法…
其實我早就知道凡走過必留下痕跡,一直以來也沒有覺得 BBS 有特別保密到,不想改人看的東西就丟在隱藏或是私人板,寫出來的東西一定掛上簽名檔,暱稱也已經幾年沒有換過,不怕人認錯。
自己學資訊的就知道,其實做這個東西的技術門檻已經不是很高了,若是有人三學期的資訊專題開個 “for M3 的站內搜尋引擎” 我還覺得沒什麼,畢竟只是做給單一站台使用的,更何況同校資管系那邊都有人做更複雜的東西了。
既然是現有技術可以做的東西,人的觀念跟不跟得上技術就是另外一回事情了。
Powered by ScribeFire.
Posted in BBS, Search Engine, Web | No Comments »
June 19th, 2007
Vecosys - Firefox 3 to support SQLite for offline storage
我才在想說有沒有人要寫 WordPress + Google Gear 的 plugins,就剛好看到這篇了…不過印象中之前就看過有地方說過這件事情?
好吧,剛好在一個網路很不方便的地方,就會特別想到這件事情…
Powered by ScribeFire.
Posted in Chat, Firefox, Internet | No Comments »
June 17th, 2007
因為自己手賤的關係,不小心刪掉自己管理的機器上的設定檔,所以改了一下別的 script 來備份設定檔
#!/bin/sh
# system_backup.sh: backup system files and keep newest 5 days backup.
#
# Last updated: 2 June 2007 by yrchen (yrchen@ATCity.org)
# ----------------------------------------------------------------------
# This is a free shell script under GNU GPL version 2.0 or above
# Copyright (C) 2007 Chen Yu-Ren
# Feedback/comment/suggestions : http://yrchen.ATCity.org/
# ----------------------------------------------------------------------
# the directory for story your backup file.
backup_dir="備份用的目錄"
kernel_config="Kernel 設定檔的位置"
# date format for backup file (yyyy-mm-dd)
time="$(date +"%d-%m-%Y")"
time="$(date +"%Y-%m-%d")"
# mysql, mysqldump and some other bin's path
CP="$(which cp)"
MKDIR="$(which mkdir)"
RM="$(which rm)"
MV="$(which mv)"
TAR="$(which tar)"
GZIP="$(which gzip)"
# check the directory for store backup is writeable
test ! -w $backup_dir && echo "Error: $backup_dir is un-writeable." && exit 0
# the directory for story the newest backup
test ! -d "$backup_dir/backup.0/" && $MKDIR "$backup_dir/backup.0/"
$CP $kernel_config $backup_dir/backup.0/$time.kernel_config
$TAR czfpP $backup_dir/backup.0/$time.etc.tgz /etc
$TAR czfpP $backup_dir/backup.0/$time.local_etc.tgz /usr/local/etc
# delete the oldest backup
test -d "$backup_dir/backup.5/" && $RM -rf "$backup_dir/backup.5"
# rotate backup directory
for int in 4 3 2 1 0
do
if(test -d "$backup_dir"/backup."$int")
then
next_int=`expr $int + 1`
$MV "$backup_dir"/backup."$int" "$backup_dir"/backup."$next_int"
fi
done
exit 0;
Posted in FreeBSD | No Comments »
May 26th, 2007
在 4.0.3 Build 178 這個版本,解決了浮動視窗會因為視窗切換或是待命等原因,無法維持浮動在最上層的 bug,終於可以正常使用了
Powered by ScribeFire.
Posted in Chat | No Comments »
May 6th, 2007
最近在測試 WordPress MU,發現它每建立一個新站台就多開八個 tables,我預估系統大約會有 100~150 人左右在使用,所以 tables 數會飆到將近 1K 左右…
或許這樣可以加速資料庫的處理,不過想像未來看到上千個 tables 時感覺就很怪…
Powered by ScribeFire.
Posted in Blog, Chat | No Comments »
April 29th, 2007
現在地點是台北捷運車站地下街七號出口附近,誠品書店外面。這邊附近對 Wifly 的收訊是 100%,上網算是蠻方便的,柱子上面有插頭,不過那個應該是不提供非公務使用的 :p
這學期開學以來,Wilfy 每月實用時數不到十小時,大部分的時間不是在學校就是在家,假日又要上課 (話說寫這篇的時候我應該在上課 XD)。不過現在期中考試考完了,差不多該把之前擱置的計畫努力完成了…
Powered by ScribeFire.
Posted in Chat | No Comments »
April 28th, 2007
SSHGUARD 預設支援了 iptables, pf, ipfw 幾種防火牆,不過在 FreeBSD 上面搭配 ipfw 使用的時候可能會遇到一點小麻煩,因為預設的規則編號從 55000 開始起跳,若是前面的規則已經 match 而放行了,那 SSHGUARD 擋再多次都沒有用
修改的方式很簡單,建議先透過 ports 安裝完,然後再去 /usr/ports/distfiles/ 執行下面指令:
sudo tar zvxf sshguard-0.91.tar.bz2
cd sshguard-0.91/fwalls/
sudo ee ipfw.c
找到開頭的
#define IPFW_RULERANGE_MIN 55000
#define IPFW_RULERANGE_MAX 55050
把數值改成較前面的編號就可以了,請視自己機器上的環境而決定。修改完以後請記得回到 sshguard-0.91 的根目錄編譯跟安裝:
cd ../
sudo ./configure –with-firewall=ipfw
sudo make all install clean
找台機器測試一下,應該會在 /var/log/auth.log 看到下面的字樣:
Apr 28 18:58:05 Ithica sshd[22626]: error: PAM: authentication error for illegal user 3 from xxx.xxx.xxx.xxx
Apr 28 18:58:05 Ithica sshd[22626]: Failed keyboard-interactive/pam for invalid user 3 from xxx.xxx.xxx.xxx port 58193 ssh2
Apr 28 18:58:05 Ithica sshd[22626]: error: PAM: authentication error for illegal user 3 from xxx.xxx.xxx.xxx
Apr 28 18:58:05 Ithica sshd[22626]: Failed keyboard-interactive/pam for invalid user 3 from xxx.xxx.xxx.xxx port 58193 ssh2
Apr 28 18:58:05 Ithica sshd[22626]: error: PAM: authentication error for illegal user 3 from xxx.xxx.xxx.xxx
Apr 28 18:58:05 Ithica sshd[22626]: Failed keyboard-interactive/pam for invalid user 3 from xxx.xxx.xxx.xxx port 58193 ssh2
Apr 28 18:58:06 Ithica sshguard[83302]: Blocking xxx.xxx.xxx.xxx: 4 failures over 1 seconds.
用 ipfw list 可以看到結果,收工
Powered by ScribeFire.
Posted in FreeBSD, Security | No Comments »