本文主要分析的是web.py库的 application.py 这个模块中的代码。总的来说, 这个模块主要实现了WSGI兼容的接口,以便应用程序能够被WSGI应用服务器调用 。WSGI是 Web Server Gateway Interface 的缩写,具体细节可以查看WSGI的WIKI页面接口的使...
分类:
移动开发 时间:
2015-03-20 12:42:47
阅读次数:
197
__VERSION__ = '1.0'import xlrd as rd;import xlwt as wt;import os;class ExcelOperation(): def readExcel(self): excelDir=os.getcwd()+"...
分类:
编程语言 时间:
2015-03-19 17:56:58
阅读次数:
179
';echo $_SERVER['GATEWAY_INTERFACE'];//返回服务器使用的 CGI 规范的版本echo '';echo $_SERVER['SERVER_ADDR'];//返回当前运行脚本所在的服务器的 IP 地址echo '';echo $_SERVER['SERVER_NAM...
分类:
Web程序 时间:
2015-03-18 15:47:05
阅读次数:
228
private void TestTest() { int maxValue = 10000; Random rd = new Random(Guid.NewGuid().GetHashCode()); int avg ...
分类:
其他好文 时间:
2015-03-18 12:01:06
阅读次数:
111
strophe + nginx + openfire got 504 (Gateway Time-out) then 404 (Invalid SID.)modify nginx.conf , add 3 red lines belowlocation /http-bind/ { pr...
分类:
其他好文 时间:
2015-03-17 19:45:11
阅读次数:
330
昨晚无意中发现的东西,分享给各位使用,google搜索技术方面的东西还是很准确的,可惜被墙了,但是上有政策下有对策……谷歌地址:http://74.125.224.18/http://91.213.30.151/https://www.sssis.com/?gws_rd=sslhttp://61.2...
分类:
其他好文 时间:
2015-03-17 11:50:19
阅读次数:
126
Ubuntu修改网卡配置文件:
vim /etc/network/interfacescat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.41
gateway 192.168.1.1
netmask 255.255.255.0
...
分类:
系统相关 时间:
2015-03-16 16:23:35
阅读次数:
132
#include #include #include struct seg { int count; char color[20];};struct seg rd[1100]; int mcolor;int cmp(const void *a, const void *b) { ...
分类:
其他好文 时间:
2015-03-13 20:34:55
阅读次数:
149
第一种实现方法: <jsp:forward page="include.jsp" />可实现转向include.jsp页面的功能 与Servlet中的页面转向等价: RequestDispacher rd = request.getRequestDispacher("include.jsp");
rd.forward(request, ...
分类:
其他好文 时间:
2015-03-12 15:32:54
阅读次数:
131
设置IP、DNS、网关 >netsh?interface?ip?set?address?name="本地连接"?source=static?addr=192.168.132.5?mask=255.255.255.0
>netsh?interface?ip?set?address?name="本地连接"?gateway=192...
分类:
其他好文 时间:
2015-03-12 01:13:31
阅读次数:
243