- 浏览: 45133 次
- 性别:
- 来自: 北京
最新评论
-
漫步蜗牛:
console终端乱码 在/etc/profile文件的 ...
linux终端 字符界面 显示乱码
文章列表
ImageMagic
- 博客分类:
- Others
convert -resize %dx%d %s %s
convert -composite -geometry +14+0 white_80.gif src.jpg target.jpgcomposite -gravity center src.jpg white_120.gif target.jpg
composite -gravity center src.jpg white_120.gif src.jpg
- 2009-12-04 17:54
- 浏览 1420
- 评论(0)
mod_python安装
./configure --with-apxs=/home/apache/bin/apxs --with-python=/usr/local/bin/python2.5
make
make install
安装mod_python错误:
apxs:Error: Command failed with rc=65536
重新安装python :
./configure --enable-shared
make
make install
[/usr/local/lib/libpython2.5.so.1.0]
vi /etc/l ...
- 2009-09-01 15:23
- 浏览 1072
- 评论(0)
Nginx 配置:
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 0;
gzip on;
server {
listen 80;
server_name localhost;
location /static/ {
root /data/pywww;
...
- 2009-09-01 15:13
- 浏览 3449
- 评论(0)
http://sandbox.leigeber.com/tinybox/
- 2009-05-27 09:07
- 浏览 1181
- 评论(0)
resin:http://www.caucho.com/resin-3.0/security/authorization.xtptomcat:http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
- 2009-05-05 09:54
- 浏览 2721
- 评论(0)
方法一:配置SSH工具
SecureCRT中文版配置
[全局选项]→[默认会话]→[编辑默认设置]→[终端]→[外观]→[字体]→[新宋体 10pt CHINESE_GB2312]→[字符编码 UTF-8]
putty配置
[window]→[Appearance]→[Font settings]→[Change]→[Fixedsys CHINESE_GB2312]
[window]→[Appearance]→[Translation]→[Received data assumed to be in which character set]→[Use font encoding U ...
- 2009-04-14 18:22
- 浏览 9694
- 评论(1)
1, 服务器启动,loading Servlet class <load-on-startup>正数</load-on-startup>,服务器启动时创建 Servlet 实例,默认不创建2, 客户端发送请求,创建 Servlet 实例 获取 config,调用 inint (ServletConfig config) 设置 config,调用 init () 继续初始化3, 调用 service (),service () 调用 doGet () 或 doPost (),并返回4, 服务器挂掉,所有 Serlvet 实例自动销毁5, 服务器正常退出,或者内存 ...
- 2009-03-15 16:08
- 浏览 1165
- 评论(0)
http://topic.csdn.net/t/20020606/17/784070.html
- 2009-02-23 16:03
- 浏览 784
- 评论(0)
http://jiaren.org/2009/02/20/chinese-traditional-medicine-health-preserving/
- 2009-02-23 09:21
- 浏览 764
- 评论(0)
f = open("mm.jpg", "rb")
data = f.read()
f.close()
response = HttpResponse(data,mimetype='application/octet-stream')
response['Content-Disposition'] = 'attachment; filename=mm.jpg'
return response
- 2009-02-19 17:29
- 浏览 1629
- 评论(0)
每天喝龙眼茶,一千度近视降到只有两百度!
此方的提供者是一名执业中的中医师兼教授,他的爸爸也是中医师。
有一天一起泡茶聊天时,聊到了这一道药方。
他的外甥曾经近视一千度,他就叫他煮用以上这道药方,每天喝。八个月后外甥的近视降到只有两百度。
这也许这是一个经过亲身体验而成功过的药方。
药方:龙眼肉+龙眼核(即带核的龙眼)、枸杞
煮法:以上叁味适量,加水煮成茶,龙眼核不必打碎。
服法:就当一般茶来喝就好,每天喝,至少连喝两个月。 (没效可放弃不再喝,有效而还不满意,则应续喝。)
疗效:一切跟眼睛的水晶体不正常有关的眼睛问题 ...
- 2009-02-18 13:09
- 浏览 996
- 评论(0)
竖着的横起来
select distinct sid,
(select score from sc as sc2 where sc.sid=sc2.sid and sc2.cid=1) as score1,
(select score from sc as sc2 where sc.sid=sc2.sid and sc2.cid=2) as score2,
(select score from sc as sc2 where sc.sid=sc2.sid and sc2.cid=3) as score3
from sc
- 2009-02-04 21:22
- 浏览 696
- 评论(0)
1 上传Windows文件到Linux,出现 bad interpreter: No such file or directory
执行 dos2unix
-o stop.sh
设置默认python
sudo ln -sf /usr/local/bin/python2.5 /usr/bin/python
- 2009-01-20 11:33
- 浏览 837
- 评论(0)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style>
* {
margin: 0; padding: 0;
}
#room div {
height: 15px; width: 100px; overflow: hidden;
background: green; pad ...
- 2009-01-15 13:22
- 浏览 828
- 评论(0)
1.Flex+PyAmf+Django+MySQL
http://blog.eshangrao.com/2008/02/16/447/
- 2009-01-06 15:31
- 浏览 818
- 评论(0)