正向代理httpserver {listen 81; location / { resolver 8.8.8.8; proxy_pass http://$http_host$request_uri; }...
分类:
Web程序 时间:
2014-10-23 19:10:54
阅读次数:
157
./install_packages --enhanced_reporting
katello-configure --deployment=sam --user-pass=redhat
chkconfig mongod on
service mongod start
su - splice -s /bin/sh -c 'ssh-keygen -t rsa -f /var/lib/spli...
分类:
其他好文 时间:
2014-10-22 22:02:48
阅读次数:
253
Student Valera is an undergraduate student at the University. His end of term exams are approaching and he is to pass exactly n exams. Valera
is a smart guy, so he will be able to pass any exam he t...
分类:
其他好文 时间:
2014-10-22 01:09:15
阅读次数:
273
gyp?ERR!?configure?error
gyp?ERR!?stack?Error:?Python?executable?"python"?is?v2.4.3,?which?is?not?supported?by?gyp.gyp?ERR!?stack?You?can?pass?the?--python?switch?to?poi...
分类:
编程语言 时间:
2014-10-21 23:21:37
阅读次数:
776
DM8168新板在没有做PCI接口的情况下,可以把PCI模块注释,直接尝试:
make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm menuconfig
在BUS Support下注释掉PCI Support,但是DM8168自动加载模块的时候发生了冲突
会出现fatal error:类似 pvrsrvkm: Unknown symbol p...
分类:
其他好文 时间:
2014-10-21 23:17:35
阅读次数:
366
Effective C++之‘宁以pass-by-reference-to-const替换pass-by-value’
缺省情况下C++以by value 方式(一个继承自C的方式)传递对象至函数。除非你另外指定,否则函数参数都是以实际实参的复件(副本)为初值,而调用端所获得的亦是函数返回值的一个复件。这些复件(副本)由对象的copy构造函数产出,这可能使得pass-by-value成为费时...
分类:
编程语言 时间:
2014-10-21 17:49:03
阅读次数:
135
详细讲解Shadow Volume的Z-pass和Z-fail算法的原理,并且给出异常shadow出现的原因...
分类:
其他好文 时间:
2014-10-20 23:28:25
阅读次数:
341
1. 最基本的读文件方法:file = open("sample.txt") while 1: line = file.readline() if not line: break pass # do something 一行一行得从文件读数据,显然比较慢;不过很省内...
分类:
编程语言 时间:
2014-10-20 19:20:00
阅读次数:
182
centos6.x 添加新硬盘 不重启识别 #yum?install?sg3_utils
#rescan-scsi-bus.sh 识别新添加硬盘中的卷组 lvscan
vgchange?-ay 挂载新卷组 mount??/dev/mapper/lv-xxx?/mnt...
分类:
其他好文 时间:
2014-10-20 15:30:18
阅读次数:
171
MD5 密码加密算法 1 public static String md(String md, String pass) { 2 MessageDigest m; 3 String passok = ""; 4 try { 5 ...
分类:
编程语言 时间:
2014-10-20 15:07:28
阅读次数:
246