本文内容取材于http://blog.csdn.net/haizimin/article/details/7734184以OpenCV安装到如下目录为例:
C:\Program Files\OpenCV(在安装时选择"将\OpenCV\bin加入系统变量Add\OpenCV\bin to the s...
分类:
其他好文 时间:
2014-05-16 03:52:28
阅读次数:
234
[intrinsic column flags] (基本字段类型标识)- PK:
primary key (column is part of a pk) 主键- NN: not null (column is nullable) 非空-
UQ: unique (column is part of ...
分类:
数据库 时间:
2014-05-15 14:27:20
阅读次数:
301
//将字符串转化为type型.privateobjectparse(strings,Typet){//如果字符串是一个string,直接返回.if(t.IsAssignableFrom(typeof(string)))returns;//如果字符串是一个数组,那么将其解析为数组并返回.if(t.Is...
分类:
其他好文 时间:
2014-05-15 13:40:45
阅读次数:
210
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings....
分类:
其他好文 时间:
2014-05-15 13:27:07
阅读次数:
233
经过几天的学习,pexpect模块对于linux下运维脚本编写属实有用,下面写个脚本检验下学习效果。#!/usr/bin/envpython
#coding=utf-8
#远程执行服务器上的脚本
importsys,time,os,multiprocessing
try:
importpexpect
exceptImportError:
print"""
Youmustinstallpexpectmodule
"..
分类:
其他好文 时间:
2014-05-15 12:55:28
阅读次数:
260
for变量in列表;do语句1语句2done列表的生成逐个给出如/etc/inittab/etc/使用通配符如forfilein/var/*使用命令如forfilein`ls/var`数字序列{起始数字..结束数字}如{1..100}或者`seq起始步长步长结束步长`使用for循环遍历目录#!/bin/bash
#version:0.1
#author:ml
#pragram:this..
分类:
其他好文 时间:
2014-05-15 12:40:38
阅读次数:
280
(1)cd
/usr/local/php-5.2.17/ext/mysqli(2)输入/usr/local/php/bin/phpize 回车(3)./configure
--prefix=/usr/local/mysqli --with-php-config=/usr/local/php/bin....
分类:
其他好文 时间:
2014-05-15 09:34:06
阅读次数:
292
初学者一枚,代码都是模仿网上的。亲测可用~运行脚本的前提是本机安装了httplib2模块#!/usr/bin/python
importos
importre
importstring
importurllib
#author:reed
#date:2014-05-14
defGetWebPictures():
url=raw_input(‘pleaseinputthewebsiteyouwanttodownload:‘)
imgconte..
分类:
编程语言 时间:
2014-05-15 09:03:42
阅读次数:
385
由于现网有时候要测试很多端口的连通性,所以就写了个小脚本,实现批量测试将telnet成功的写入到telnet_alive.txt中,失败则写入telnet_die.txt中#!/bin/bash#thisscripttestUPtootherhost.#Iplist=/opt/script_test/iplist.dataPortnumber=7001foripin$(catiplist.data)do(slee..
分类:
Web程序 时间:
2014-05-15 08:46:11
阅读次数:
385
命令:chkconfig catlstaillnfindwctarcutgrepegrep一、如何过滤出已知当前目录下的所有一级目录如何区分目录和文件: 1、利用颜色(这个依赖与CRT等工具) 2、利用开头字母·ls–l|grep^d(正则表达式中一个字符在[]中是非,在[]外面就是以什么开头)·ls–lF|gr..
分类:
其他好文 时间:
2014-05-15 08:42:55
阅读次数:
269