|
2010年6月2日
摘要:
sudo taskselchoice lamp suiteconfigurate apache port to 8080,because we use nginx as reverse proxy on 80 portso we need configure apache2 port to 8080http://hi.baidu.com/marshluca/blog/item/258a52dec1... 阅读全文
摘要:
when you use some third part library,you want to print out these libraries debug info may help you dailogous,code as follows:import loggingfrom urllib3.connectionpool import logconsole = logging.Strea... 阅读全文
摘要:
suod apt-get install evolutionsudo apt-get install evolution-mapi 阅读全文
摘要:
http://www.7788sky.cn/post/asp_php_301_head_redirect.htmlreference link as abovePHP:在 index.php 的最顶部加入以下几行:<?phpheader("HTTP/1.1 301 Moved Permanently");header("Location: http://www.7788sky.cn/");e... 阅读全文
摘要:
<font><font size="3"><span style="font-weight: bold;"> <span style="color: rgb(255, 0, 0);">每次修改.bashrc后,使用source ~/.bashrc(或者 . ~/.bashrc)</span><br style="color: rgb... 阅读全文
摘要:
sudo tasksel这个命令真是踏破铁鞋无觅处,之前只在安装的时候见过,一直想之后想调,总算是找到了,haha 阅读全文
摘要:
<code><span class="pun">>>></span><span class="pln"> </span><span class="kwd">import</span><span class="pln"> urllib2
</span><span cla... 阅读全文
摘要:
又学习了,呵呵,昨天下雨,深夜洗个澡在小区溜达,想和心灵对对话,未果,好久没有这么安逸了,回去玩了会电脑睡觉. 阅读全文
2010年5月31日
摘要:
when you use break jump out from for or while statement,if has else caluse,it will not exec,for example:>>> for i in xrange(0,11): print ielse: print "haha,%s"%i 012345678910haha,10>>&g... 阅读全文
摘要:
cat 1.txt|sort|uniqreference:http://zhangyuexing.7ta.cn/Article/12289/1444/ 阅读全文
摘要:
www.netcraft.com 阅读全文
摘要:
1.wget 2.tar -zxvf ...tar.gz3.sudo rm -rvf /data/db4.sudo mkdir -p /data/db5.sudo ./mongod --dbpath /var/lib/mongodb/ --port 12345 or ./mongod6.reference:http://www.mongodb.org/display/DOCS/Starting+a... 阅读全文
摘要:
如果只是在终端上进行日常维护,没有必要用中文 export LANG=en_US export LC_ALL=en_US 再做操作就会显示英文了 Ubuntu的server版本,支持中文意义不是很大,折腾console中文支持,还比较麻烦 referencehttp://ubuntuforums.org/showthread.php?t=934357 阅读全文
摘要:
安装ubuntu server版本全记录 1、下载ubuntu 6.06 server http://mirror.lupaworld.com/ubuntu/releases/6.06/ubuntu-6.06-server-i386.iso 刻盘 2、从光驱启动后,选择install LAMP。为了方便,最好将语言选择为英文,不然在命令行模式(tty)底下将会将汉字显示为方块,设置完毕再将语言设置... 阅读全文
摘要:
Ubuntu Server 9.10安装时除非特殊原因,一定要选English,这样默认的语言就是English,到后面的控制台界面上显示时就不会有问题。如果选了中文,安装 完重启后在console上会显示小方块,根本没法看命令的提示。网上分析说问题的原因是console下缺少中文字体的支持,看来中国的Linux开发 者要加油呀。reference:http://blog.csdn.net/or... 阅读全文
摘要:
http://www.linuxidc.com/Linux/2007-05/4065.htmcat<=>tactac 1.txt >tac1.txttail 1.txt == head tac1.txt 阅读全文
摘要:
split -l 310000 inputfile outputprefixcat a.txt,b.txt > c.txt 阅读全文
2010年5月30日
摘要:
http://www.codercaste.com/2009/10/20/5-reasons-why-you-should-learn-python-programming/ 阅读全文
2010年5月29日
摘要:
reference:http://blog.csdn.net/flynetcn/archive/2009/01/08/3733574.aspxcost time:24s('202.108.33.94', 0) 625('202.108.33.77', 0) 625('202.108.33.70', 0) 625('202.108.33.95', 0) 625('202.108.33.74', 0)... 阅读全文
摘要:
socket.getaddrinfo("http://www.news.com",None)when you try to parser dns,can not start with http://,belows is the right waysocket.getaddrinfo("www.xx.com",None) 阅读全文
|