docbook 配合 自訂的 css 輸出

以 ubuntu 為例:

修改

/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl

...
(define all-element-number
(external-procedure "UNREGISTERED::James Clark//Procedure::all-element-number"))
; 從這開始
(define %stylesheet%
"docbook.css")

(define %stylesheet-type%
"text/css")
; 到這結束
(root
(make sequence ...
...

撰寫 docbook.css ,放在目標文件下

參考文件 :

http://www.powermag.com.tw/docbook/book1.htm


unable to load php_ldap.dll on php5.x

php_ldap.dll needs the following dlls:

ssleay32.dll
libeay32.dll

Copy them to the system32 directory.


20 pro tips

Tips and tricks you should be using to give your work that all-important professional edge.

http://www.netmag.co.uk/zine/design-tutorials/20-pro-tips


lifetype 使用者註冊問題

lifetype 對使用者的帳號採取較嚴格的限制,僅允許 A-Z a-z 0-9 的字元做為帳號,如要增加字元範圍可修改:
class/data/validator/usernamevalidator.class.php
define( "ONLY_ALPHANUMERIC_REGEXP","^([A-Za-z0-9]*)$" );


OPENLDAP 備份與還原

backup_ldap.sh 將每日 ldap 備份出來

#!/bin/bash

the_date=`date '+%m-%d-%y'`

the_dc='dc=tcc'

the_name=/var/ldap_backup/ldap_backup_$the_date.bz2

/usr/sbin/slapcat -f /etc/openldap/slapd.conf -b "$the_dc" | bzip2 -9 > $the_name

還原:

bzip2 -d /var/ldap_backup/ldap_backup_11-07-05.bz2

slapadd -c -l /var/ldap_backup/ldap_backup_11-07-05


利用 Web Editor 寫網誌

利用 Web Editor 寫網誌,參考網址

 http://plog.yejh.tc.edu.tw/index.php?op=ViewArticle&articleId=426&blogId=1  


FortiGate-400研習教材

bubble's weblog 的 FortiGate-400研習教材


PostgreSQL Performance Tips

取自:

http://chery.axonpro.sk/pgsql/chapters/performance/index.html

 (閱讀全文)


postgresql FAQ

http://sraapowergres.com/en/newsletter/issue_01/faq.inc.html (閱讀全文)


修改 pLog 認證方式記事

pLog 是個優秀的軟體,採用 MVC 設計理念,讓網頁展現的部份可以獨立出來,符合了 BLog 個人化的特性,plugin 的功能使得 BLog 附加的功能具彈性容易擴展。

但如要對特定 user 申請限制時,目前並沒有可用的方式,因此我自已修改了 pLog 認證的程式,可以讓申請者和台中縣網既有的 LDAP 帳號做整合。

 (閱讀全文)


PHP 上傳檔案, 利用 httpd.conf 限制執行 php script 設定方式

限制 user 傳上的檔案具有執行功能,可以在 httpd.conf 中加入設定,例:

<directory>
php_flag engine off
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</directory>


Virtual Host 最簡單的做法 (含 DNS,讓你建目錄等於建虛擬主機)

from : http://www.sinsen.com.tw/callboard/schoolboard.php3?do=read_msg&board=school_board&msg_id=237&order=desc&cur_page=1

以下有部份取自原來我貼在 VBird 的文章
Apache 的 VH 其實設法相當多種,
相信大多數都是這種設法

 (閱讀全文)


CVS Server Installation on Linux

from : http://www.uta.edu/oit/how-to/docs/cvs.php

CVS 架設參考資料

 (閱讀全文)


批次轉碼工具 convmv

在 Linux 下,將所有的檔案名稱批次轉碼工具
http://j3e.de/linux/convmv/

用法
convmv -f big5 -t utf-8 -r --notest /home/user1

說明 將 /home/user1 下所有的檔案名稱由 big5 編碼轉為 utf-8


Fedora core3 自動載入 USB 設定

http://fedoranews.org/krishnan/tips/tip040.shtml

2004-02-11 Fedora Tips 40:
Reading and writing files to USB-key can be just two clicks away if you are using Gnome. No "mount" or "umount" commands. To enjoy 2-click method, you've got to follow just two easy steps.

1. as root (or through "$su -l" from a user account) with Vim, Gedit or any other text-editor add a line to your /etc/fstab file

/dev/sda1 /mnt/usbkey vfat user,iocharset=utf8,umask=0,sync,quiet,exec,codepage=866,noauto 0 0
2. as root (or through "$su -l" from a user account) create a directory in /mnt/ file
#mkdir /mnt/usbkey
In fact it doesn't matter which step goes first.

Now reboot, so that your changes take effect.

You are about to enjoy Gnome 2-click USB method.

Plug in your usb-key right click (1st click) on desktop, in dropdown menu choose "disks". Here you go - see usbkey? Choose it by left-clicking (2nd click) and on your desktop there will be a nice icon of a USB drive. Work with it, like you would do with a regular folder. To unmount USB-key, right-click on that icon again and choose "unmount". As easy as that. Now any time you want to use your flash drive - plug, right-click & left-click to choose the drive. - submitted by Sergey Samoylov