Continue reading 使用apache部署多个django项目,django项目和php项目混合部署
在刚接触Linux时最怕的就是SSH远程登录Linux VPS编译安装程序时(比如安装lnmp)网络突然断开,或者其他情况导致不得不与远程SSH服务器链接断开,远程执行的命令也被迫停止,只能重新连接,重新运行。今天就给VPSer们介绍一款远程会话管理工具 – screen命令。
Continue reading SSH远程会话管理工具 – screen使用教程
1.omxplayer
2.SSH退出后保持播放 Continue reading Play on Raspberry Pi
想在fedora上进行代码的更新编译工作,于是安装了一个svn,其实很简单
Continue reading Fedora安装svn客户端
通过sudo apt-get install nginx安装nginx
nginx 开机自启动脚本位置:/etc/init.d/nginx
Continue reading nginx 开机自启动
#coding:utf-8
#python 检测文件MD5值
#python version 2.6
Continue reading md5 python 2
#!/usr/bin/env python
#-*-coding:utf8-*-
”’
md5sum in Python
Author: Seven
Date: 2010/09/23
Support: seven.ling7@hotmail.com
”’
Continue reading md5 python
Kernighan and Plauger’s The Elements of Programming Style was an important and rightly influential book. But sometimes I feel its concise rules were taken as a cookbook approach to good style instead of the succinct expression of a philosophy they were meant to be. If the book claims that variable names should be chosen meaningfully, doesn’t it then follow that variables whose names are small essays on their use are even better? Isn’t MaximumValueUntilOverflow
a better name than maxval
? I don’t think so.
Continue reading Notes on Programming in C by Rob Pike
1. create a new directory and start a project by run: django-admin.py startproject lsite
2. Running the development server: python manage.py runserver (just local)
3. start the interactive interpreter: python manage.py shell
4. setup TEMPLATE DIR inside settings.py