原创 深圳電信的ubuntu的快速源
deb http://mirror.cs.umn.edu/ubuntu/ hardy main restricted universe multiversedeb http://mirror.cs.umn.edu/ubuntu/ hard
原创 js刪除table一列
function h(colIndex){ var tb = document.getElementById("table1"); for(var i=0; i<tb.getElementsByTagName("tr").len
原创 red hat as5下apache2.2的簡單配置方法
# ./configure --enable-mods-shared=all --with-mpm=prefork # /usr/local/apache2/bin/apxs -c -i mod_proxy.c proxy_util.
原创 linux下啓動oracle要點
使用oracle賬號登錄。 編輯 .bash_profile 加入 export ORACLE_SID=orclexport ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1/PATH
原创 apache,rewrite + proxy
AddType image/x-icon .ico <VirtualHost *> ServerName cms.***.com ServerAlias cms.***.com ProxyPas
原创 發現tomcat6.0.20佈署的一個變化.
以前tomcat的發佈虛擬目錄,起作用的是 conf/Catalina/localhost/***.xml中的path值. 發現6.0.20是以xml文件名爲虛擬目錄名的. 如果想替換 http://localhost:8080的話, 就
原创 hibernate,import.sql
在classpath里加 import.sql
原创 tomcat,url中奇數個漢字亂碼的解決辦法
除了 urlEncodeing="utf8"外, 還要 在漢字的最後面加上一個 全角的空格. OK搞定
原创 完整的apache2配置. [虛擬主機,rewrite二級域名,proxy轉發]
<VirtualHost *> ServerName cms.xxxx.com ServerAlias cms.xxxx.com ProxyPass / http://10.101.2.145:
原创 struts2,去掉煩人的warn
<!--l version="1.0" encoding="UTF-8"--><!--CTYPE log4j:configuration SYSTEM
原创 prototype,ajax請求用get時的緩存問題
new Ajax.Request( targetUrl, { method:'get', requestHeaders: ['Cache-Control','no-cach
原创 struts2項目,使用get方法提交的漢字參數亂碼
我的JAVA文件, 模板文件均爲 utf-8編碼. get取到的漢字亂碼 解決辦法: 修改tocmat的server.xml, 修改connector爲: <Connector port="8081" protocol="HTTP/
原创 將個性化數據保存到其它位置
namespace Wingtip.Providers { public class FileBasedPersonalizationProvider : PersonalizationProvider { pub
原创 div置頂的效果
<script type="text/javascript">var t_DiglogX,t_DiglogY,t_DiglogW,t_DiglogH;function DialogShow(showdata,ow,oh,w,h){ //
原创 配置dns服務器時,debug
今天用 ubuntu9 + bind9裝 dns服務器 寫錯了好些地方 服務就是起不來. 後來使用named -g 就出現詳細的錯誤信息. 相當有用..贊一個先`~ $TTL 1h@ IN SOA dns.xxx.cc. root.