Archive for 10月, 2009

Google Chrome 禁用Flash、图片或脚本的方法

使用 -disable-plugins 参数启动Chrome就会禁用Flash。
-disable-images 参数是禁用图片,-disable-javascript是禁用脚本。

在提供chromium最新版的地址
http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/?O=D

Comments (1) »

为 Django 生成本地文档。

sudo aptitude install python-sphinx

在docs 目录下执行make help。

执行完毕后_build/html目录会生成html格式的文档。

No comment »

记下两个开源的国内镜像(163和sohu)。

http://mirrors.163.com/
http://mirrors.sohu.com/

ubuntu 10.04 源(网易):

deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted

No comment »

Windows 下 Nginx + PHP5 的安装与配置

Windows 下 Nginx + PHP5 的安装与配置

short_open_tag boolean
决定是否允许使用 PHP 代码开始标志的缩写形式( )。如果要和 XML 结合使用 PHP,可以禁用此选项以便于嵌入使用 。否则还可以通过 PHP 来输出,例如:<?php echo ‘ 。如果禁用了,必须使用 PHP 代码开始标志的完整形式( )。

Note: 本指令也会影响到缩写形式 <?= ,它和 <? echo 等价。使用此缩写需要 short_open_tag 的值为 On。

No comment »

windows 下安装 RSync 。

RSync软件地址:http://sourceforge.net/projects/sereds/files/
这是个Windows安装程序。

D:\Program Files\ICW\Bin>cygrunsrv.exe -Q RsyncServer
Service : RsyncServer
Description : Rsync – open source utility that provides fast incremental
file transfer
Current State : Running
Controls Accepted : Stop, Shutdown
Command : d:\Program Files\ICW\bin\rsync.exe –config rsyncd.conf —
daemon –no-detach

No comment »