Monthly Archive for September, 2009

Page 2 of 3

Windows 上 Apache Webdav 问题

配置好了webdav,可以删除,可以覆盖,不能上传、建新目录。再这里找到的答案,原来是由于 mod_rewrite 引起的。如果你的目录下有 .htaccess 规则,在dav的location下加上 RewriteEngine off 来屏蔽掉。

YII 数据库连接(MySQL)

1
2
3
4
5
6
<?php
'class'=>'CDbConnection',
                'connectionString'=>'mysql:host=localhost;dbname=yiiblog;unix_socket=/opt/lampp/var/mysql/mysql.sock',
                'username'=>'root',
                'password'=>'password',
                'charset'=>'utf8',

links for 2009-09-19

再听“一起吃苦的幸福”

一起吃苦的幸福

毫无疑问,华健的这样专辑是现在都市人在忙碌生活中最好的舒缓
01
一起吃苦的幸福

02
Morning Call

03
在云端

04
好想哭

05

06
Boring Day

07
借来的安慰

08
意外的旅客

09
幸福到想哭 (Demo)

10
Love Hotel 秋的别馆

11
别傻了 – 周华健/任贤齐

links for 2009-09-17

Don’t cache this, squid !

http://ramadhan.opensuse-id.org/2009/03/09/dont-cache-this-squid/

I’m using squid. And for some specific reason, I don’t want squid to cache specific servers. So I put these on my squid.conf :

1
2
acl NOT-TO-CACHE dstdomain "/etc/squid/list/not-to-cache.conf"
no_cache deny NOT-TO-CACHE

and put this domains in /etc/squid/list/not-to-cache.conf

1
2
3
4
5
6
7
planet.terasi.net
blogsome.com
wordcodess.com
blogger.com
dagdigdug.com
opensuse-id.org
technorati.com

Using the same method, I don’t want my squid to cache *.css. So I put these on my squid.conf :

1
2
3
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \? \.css
no_cache deny QUERY

Simply, then I executed “# squid -k reconfigure

links for 2009-09-15

Install DBD::mysql with CPAN

1
2
3
4
5
6
7
8
perl -MCPAN -e shell
#Open a subshell in the DBD::mysql directory (will download the module if not already downloaded):
look DBD::mysql
#Execute any command as you would installing the module "manually":
perl Makefile.PL --testdb=test --testuser=root --testpassword=supersecret --testhost=localhost
make
make test
make install

自动回答CPAN安装

1
cpan> o conf coderequisites_policy follow

links for 2009-09-07