替代役其實是一個蠻好的職位,可以不必去軍隊裏面,又可以貢獻給國家,可是很多單位申請替代役,好像都搞錯方向,把我們當勞工在操,什麼事情都叫替代役做,然後正職公務人員很涼,天天沒事做,看報紙,泡茶?說實在替代役的義務是輔助性質,也就是說幫正職公務人員處理一些雜事,可是好像本單位『國史館台灣文獻館』不是這樣認為,單位主管除了平實請替代役幫忙修電腦之外,下班之後還叫替代役去單位主管家裡修電腦,甚至幫忙下載東西,我想這是不太對的吧?
[Read More][FreeBSD] Smokeping 安裝 架設
昨天看到 sayya 的 firedragen 個人版,看到 smokeping 的一些圖片,還蠻帥的,就想到要架設來玩看看 安裝方式如下:
[FreeBSD][root][ ~ ]# cd /usr/ports/net/smokeping/ 進去之後
make install clean 然後底下是安裝好之後的訊息
NOTE: A set of sample configuration files have been installed: /usr/local/etc/smokeping/config /usr/local/etc/smokeping/smokemail /usr/local/etc/smokeping/basepage.html /usr/local/etc/smokeping/tmail You *MUST* edit these to suit your requirements. Please read the manpages ‘smokeping_install’ and ‘smokeping_config’ for further details on installation and configuration. If you are upgrading from a previous version of Smokeping, the manpage ‘smokeping_upgrade’ may be of help. Once configured, you can start SmokePing by adding: smokeping_enable=”YES” to /etc/rc.conf, and then running, as root: /usr/local/etc/rc.d/smokeping start To enable Apache web access, add the following to your /usr/local/etc/apache/httpd.conf: ScriptAlias /smokeping.cgi /usr/local/smokeping/htdocs/smokeping.cgi Alias /smokeimg/ /usr/local/smokeping/htdocs/img/ 上面就是寫:請在 /etc/rc.conf 加入 smokeping_enable=”YES” 然後編輯 /usr/local/etc/apache/httpd.conf 在最後面加上 ScriptAlias /smokeping.cgi /usr/local/smokeping/htdocs/smokeping.cgi Alias /smokeimg/ /usr/local/smokeping/htdocs/img/ 修改 根目錄底下權限 Options Indexes FollowSymLinks ExecCGI 然後底下這段原本mark,請把他取消 AddHandler cgi-script .cgi 然後最後加上
[Read More]Options Indexes FollowSymLinks ExecCGI AllowOverride Limit Order Deny,Allow Deny from all Allow from 192.168 底下附上設定檔,DarkKiller 在 firedragen 版 的連結,不過連結已經失效,好顯自己有存檔 http://blog.wu-boy.com/wp-content/uploads/2007/04/smokeping.txt 最後 NCTU NetFlow’s somkeping demo: http://netflow.ntcu.net/smokeping/smokeping.cgi?target=Album
WordPress plugin fckeditor
其實我之前就在找這個 plugin 了,今天不小心google到了,因為 wordpress 所提供內建的,不是很好用,所以網路有一套
FCKeditor – Demo 這一套還不錯用,網路上找到plugin [必讀] 其他用的所見即所得編輯器- 【重灌狂人】
這一篇裡面有下載檔案,大家可以去下載,demo的話,就上面link
[DNS] Domain Name transfer From DreamHost to Godaddy 教學
目前我自己的Domain : wu-boy.com,已經快過期了,到2007.04.30就到了,在網路上常常看到一堆文章寫 dreamhost 的不好,底下列了幾篇 DreamHost Sucks ! 搶救 xdite.net 所用的奇技淫巧
[Read More][Mysql] 資料庫備份[big5]utf8轉換成utf-8
其實在很多opensource底下的套裝軟體,資料庫預設都是用 utf8,我想這會造成在 phpMyAdmin 底下看到亂碼,然後自己之前也有遇到問題,然後又在網路上看到這篇 搶救 xdite.net 所用的奇技淫巧 裡面所寫的備份方式跟我在轉換 phpBB2 跟自己的 wordpress 一樣 大同小異,我還在想說有更好的解法說,看來是沒有,在 wordpress 底下,只能利用後台的資料庫備份,不然用phpMyAdmin的話,我想你備份出來也是沒用。
[Read More][SQL] SQL 進階搜尋寫法~ 一個很簡單的問題
最近在幫 國史館台灣文獻館 寫館內搜尋系統,然後遇到一個問題,晚上跟 sayya裡的大大 ghost 搞了很久,也佔用 ghost 大大很多時間,在這裡先感謝他大力相助~,他還說 這是他解決最久的問題,哈哈,問題如下
我先列出3個表格的欄位跟一些值 table1 class_id, class_title 1 name1 2 name2 table2 class_id, series_name 1 000001 1 000002 1 000003 2 001001 2 001002 2 001003 table3 group_id, group_name 1 000001 1 000002 1 000003 1 000004 2 001001 2 001002 2 001003 如果想要 table1 跟 table2 結合 只要下 sql語法一
############
ex:
Select * From table1 as t1, table2 as t2 where t1.class_id = t2.class_id && SUBSRTING(series_name,1,3) = ‘000’
############
如果想要 table1 跟 table3 結合 只要下 sql語法二
使用 cwRsync 差異性備份 Windows 2003 伺服器
最近正在弄Windows的機器怎麼跟Windows的機器互相備份,linux跟windows之間怎麼備份已經搞定了,其實我差不會利用windows的每天固定跑程式,在linux底下可以使用cron的方式來用,可是winodws底下就要使用批次檔。 再來就是安裝步驟,請把2台windows的機器都裝上 cwRsync 參考文章 [Linux] cwRsync [rsync for windows] SSH 加密異地備份 假設已經安裝好 cwrsync 之後,在系統服務那邊 把他啟動之後,就可以開始使用了 底下是網路上抓好的 清除你系統中沒必要的垃圾檔案
[Read More]Lftp 使用FXP以及使用implicit mode加密傳輸
其實 lftp 是一個相當好用的文字介面ftp軟體,目前我在玩 linux,就是搭配這套軟體,這套軟體可以搭配shell script,來做到備份的工作,相當不錯,之前在網路上看到 segaa大大寫的一篇 [freebsd] lftp安裝與應用 使用起來很方便,不過我遇到的server都是利用 explicit mode 方式加密,如果利用 implicit mode方式連接,指令可能有些不同,底下來介紹一下
如果你的server端用 explicit 方式來連接,你可使用
| |
如果你用 implicit 方式的話,就用下面
[mysql] mysqlbinlog 資料庫處理二進制日誌檔案的實用工具
當初 國史館台灣文獻館 數位點藏計劃派我去台北 中研院 參加 dor系統計劃的時候,當時有介紹此指令,不過那時候聽不是很清楚,後來在我開發的系統上面惡搞了一下,早上玩自己的資料庫,不小心把他crash掉囉,所以趕緊用 mysqlbinlog 恢復了一堆資料,真是好顯,也虧自己有備份一周的資料庫。 當然,系統剛弄好是沒有開啟 mysqlbinlog 的功能,至少在 CentOS4.4 上面我還要去開啟,不過 ubuntu 系統預設就已經開啟了,不過沒關係,只要利用下面方法就可以達到了 修改 my.cnf [ CentOS: /etc/my.cnf Ubuntu: /etc/mysql/my.cnf ],加入下面語法 # Replication Master Server (default) # binary logging is required for replication log-bin=mysql-bin
[Read More]鳥哥的新書-伺服器架站第二版
最近剛買的,在 天瓏網路書局 買的,當時特價的,我看鳥哥的網站公告寫說 天瓏網路書局 有在特價如下 預購 鳥哥的 Linux 私房菜伺服器架設篇 2/e(2007-03-08)
![]() | |
| 活動內容 | |
| 活動對象 | |
| 活動日期 | |
| 預定到貨 | |
| 預購價格 | |
| 預購名額 | |
| 取貨期限 | |
