Linux 命令之 find

0. man find

1. 查找当前目录下所有.jpg文件:
find . -name "*.jpg" -type f

注1: 可以使用Shell Pattern with * ? [

用Nginx搭建Django站点 [Ubuntu 9.10]

1. 安装django, fastcgi, nginx
sudo apt-get install python-django python-flup nginx

2.根据自己的需求修改ngin

Ident authentication failed for user

运行 manage.py syncdb 时出现下面的错误:
psycopg2.OperationalError: FATAL: Ident authentication failed for us

Postgresql添加一个UTF8数据库

我的vps上用apt-get命令安装的postgreSQL不知道为什么encoding是ASCII的

这样创建的数据库也是ASCII的,这种编码当然没法用。

Google了下发现可以用这个

我的Vim配置文件

" use spaces instead of <tab>
set expandtab
colo evening

set hlsearch

" nubmer of spaces for