Archive

2008年5月 的Archive

[humor] apt-get install

2008年5月24日 ceciltsai 1 則評論

apt-get install wife

it’s really troublesome XD

links from:
Humor: apt-get wife

Categories: Funny Tags:

[Lighttpd] 開啟壓縮功能

2008年5月22日 ceciltsai 尚無評論

啟動壓縮功能後,對於單純文字網頁的大小,理論上可以減少 60%~70% 的大小
如此一來對於頻寬小如我家的網路不無小補…

環境:FreeBSD 7.0 Release + Lighttpd 1.4.19

1) 修改 /usr/local/etc/lighttpd.conf,uncomment 『mod_compress』
2) 設定 compress.cache-dir=』the-path-you-want-to-put-cache』
3) 指定 compress.filetype= (『text/plain』,』text/css』, 『text/xml』, 『text/javascript』 )
4) 修改 /usr/local/etc/php.ini,將zlib.out_compression 及 zlib.outpout_handler 皆設為 ON
5) 存檔,restart lighttpd

參考資料:
mod_compress: Lighttpd Gzip Compression To Improve Download and Browsing Speed

Categories: FreeBSD, Software Tags:

[Windows] 徹底關閉Windows隨插即用功能

2008年5月21日 ceciltsai 尚無評論

Windows 的隨插即用功能,很容易淪為病毒逞兇的捷徑
一般都是從 Windows 裡面關閉自動播放,但其實沒什麼用
建議從修改 Register Key 裡面下手:

1) regedit, HKEY_CURRENT_USER\Software\microsoft\Windows\CurrentVersion\Explorer\MountPoints2
2) 點選此機碼,右鍵選「使用權限」
3) 新增「Everyone」使用者
4) 將 Everyone 的權限「完全控制」設定為「拒絕」即可

這是比較直接的方法,還有利用 GroupPolicy 及 CommandLine 修改的方式
細節可以參考這個地方:
Link:小心病毒就在USB中

Categories: M$ Windows Tags:

[Firefox] 2.0.0.14 to 3.0 RC1

2008年5月17日 ceciltsai 尚無評論

升上來之後,光是找 bookmark 到底是哪個檔案就找了我好久

看來是換了儲存的方法,不是以前的 bookmarks.html 單一檔案

得用 bookmark 裡面的匯入來重新讀入才行

另外,帳號密碼回覆下面兩個檔案即可:

key3.db

sigon2.txt

Categories: Software Tags:

[MySQL] 常用管理指令(1)

2008年5月13日 ceciltsai 尚無評論

1. 資料庫修復指令:

# /usr/bin/mysqlcheck -acor –all-databases
-a: Analyize given tables
-c: Check table for errors
-o: Optimise Table
-r: Can fix almost anything except unique keys that are not unique

2. Recovery Password

# /usr/bin/mysqld_safe –skip-grant-tables&
# /usr/bin/mysql
mysql> UPDATE mysql.user SET Password=PASSWORD(‘your_new_password_here’) \
-> WHERE User=’root’;
mysql> FLUSH PRIVILEGES;
mysql> exit
# /usr/bin/mysqladmin -u root -p shutdown

Categories: MySQL, Programming Tags: