web.py1.安装:wgethttp://webpy.org/static/web.py-0.37.tar.gztarxvfzweb.py-0.37.tar.gzcdweb.py-0.37sudopythonsetup.pyinstall2.需求:先说下需求,http://10.75.7.237:8080/?ipaddress=10.75.7.29&count=100,最终得到这个ip的日志的前100行3.讲解:#!/usr/bin/pytho..
分类:
编程语言 时间:
2014-07-23 00:23:18
阅读次数:
242
如何实现商品列表页属性筛选区品牌筛选以LOGO形式展示,最模板总结ecshop/'>ecshop教程入下:1、修改 category.php 文件,将(大概215行)$sql = "SELECT b.brand_id,b.brand_logo, b.brand_name, COUNT(*) AS g...
分类:
其他好文 时间:
2014-07-22 22:52:32
阅读次数:
161
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他好文 时间:
2014-07-22 22:43:14
阅读次数:
198
对一个数据可以使用“引用”(reference),这是C++对C的一个重要扩充,引用是一种新的变量类型,它的作用是为一个变量起一个别名。假如有一个变量a,想给它起一个别名b,可以这样写:int a; //定义a是整型变量 int &b=a; //声明b是a的引用注意: 在上述声明中,&是引用声明符,...
分类:
编程语言 时间:
2014-07-22 22:42:55
阅读次数:
229
SELECT -- ' select * from `',TABLE_SCHEMA,'`.`',TABLE_NAME,'` into outfile ''/work/opdir/repair'''
-- concat('union all
-- select count(1) as count_, ''`',TABLE_SCHEMA,'`.`',TABLE_NAME, '`'' as tbna...
分类:
数据库 时间:
2014-07-22 22:39:35
阅读次数:
288
import java.util.Scanner;
public class bigLetterCount {
public static int CalcCapital(String str){
int count=0;
for(int i=0;i<str.length();i++){
if('A'<=str.charAt(i)&&str.charAt(i)<='Z')count...
分类:
其他好文 时间:
2014-07-22 22:34:12
阅读次数:
204
nginx的代码非常的优秀,之前已经介绍了sendfile的使用来实现“内存零拷贝”,今天我又理解了一下writev函数的使用,以nginx-1.6.0为例,在src/os/unix/ngx_writev_chain.c的113行,如下图:可以man2writev看下函数的概念(与writev相对应的还有一个readv)writev是读取多个不..
分类:
其他好文 时间:
2014-07-22 18:31:21
阅读次数:
313
nginx的代码非常的优秀,之前已经介绍了sendfile的使用来实现“内存零拷贝”,今天我又理解了一下writev函数的使用,以nginx-1.6.0为例,在src/os/unix/ngx_writev_chain.c的113行,如下图:可以man2writev看下函数的概念(与writev相对应的还有一个readv)writev是读取多个不..
分类:
其他好文 时间:
2014-07-22 18:31:12
阅读次数:
267
微软开放了.NET 4.5.1的源代码.NET Reference Source发布了beta版,可以在线浏览.NET Framework 4.5.1的源代码,并且可以通过配置,在Visual Studio 2013中调试.NET Framework。.NET Framework团队的项目经理Alo...
分类:
Web程序 时间:
2014-07-21 23:30:20
阅读次数:
297
Unix系统性能监控工具之--SAR系统环境:操作系统:AIX5.3.9Oracle:Oracle10gR2SAR可用于监控Unix系统性能,帮助我们分析性能瓶颈。sar工具的使用方式为”sar[选项]intervar[count]”,其中interval为统计信息采样时间,count为采样次数。下文将说明如何使用sar获取以下性能分析..
分类:
其他好文 时间:
2014-07-21 19:44:52
阅读次数:
469