安装graphviz地址:http://www.graphviz.org/pub/graphviz/ARCHIVE/下载安装1234567wget http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.28.0.tar.gz tar xzvf...
分类:
其他好文 时间:
2015-05-16 20:33:38
阅读次数:
217
有时候在进行自动化测试时需要在页面上执行一段js 脚本, 这个时候就需要用到 execute_script 方法了。 from selenium import webdriver BrowserObj_dirver = webdriver.Ie() BrowserObj_dirver.get( "http://www...
分类:
编程语言 时间:
2015-05-16 00:18:54
阅读次数:
158
/** * 异步任务的三个泛型参数: * 1、调用execute方法时传入的参数类型,输入参数 * 2、progressUpdate的方法入参 * 3、异步任务的返回结果类型 doInBackground的返回类型,doPostExecute的方法入参 * * 使用异步任务的一些注意事项 * 1、一...
分类:
移动开发 时间:
2015-05-16 00:04:15
阅读次数:
169
第六章Asynctask异步加载1.好处:不需要创建线程就可管理线程缺点:步骤多2.步骤:(1)创建一个类继承Asynctask<xxx,xxx,xxx>;三个泛型参数:第一个:决定了execute()方法的传入值类型,决定了doInBackground()方法的传入值类型第二个:决定了publishProgress()方法的传..
分类:
移动开发 时间:
2015-05-15 15:56:11
阅读次数:
143
1、简单实例
package main
import (
"os"
"text/template"
)
func main() {
const xichen = `Hello World {{.}}`
M := template.New("")
M.Parse(di)
M.Execute(os.Stdout, "曦晨")
}
2、循环使用
package main
imp...
分类:
编程语言 时间:
2015-05-15 10:51:46
阅读次数:
153
1.先安装composer
(The recommended path, not needed.)
cd /usr/local/bin
(install)
sudo curl -s https://getcomposer.org/installer | sudo php
(Add execute permissions.)
sudo chmod a+x compose...
分类:
系统相关 时间:
2015-05-15 10:41:41
阅读次数:
160
1. 单个的查询:语法:execute sp_executesql sql语句,参数,变量=@count output例:declare @exec_sqlCount nvarchar(1000)declare @count intset @exec_sqlCount= 'select @count...
分类:
数据库 时间:
2015-05-14 00:41:37
阅读次数:
194
http://stackoverflow.com/questions/412562/execute-a-terminal-command-from-a-cocoa-appin the spirit of sharing... this is a method I use frequently to ...
分类:
移动开发 时间:
2015-05-13 12:23:38
阅读次数:
133
1.cmd="someunixcommand"
retcode=subprocess.call(cmd,shell=True)2.ssh=paramiko.SSHClient()
ssh.connect(server,username=username,password=password)
ssh_stdin,ssh_stdout,ssh_stderr=ssh.exec_command(cmd_to_execute)3.importcommands
command="nslookup"+node+"|grep..
分类:
编程语言 时间:
2015-05-12 19:06:53
阅读次数:
159
Delphi中的线程类 转贴于 华夏黑客同盟 http://www.77169.orgDelphi中有一个线程类TThread是用来实现多线程编程的,这个绝大多数Delphi书藉都有说到,但基本上都是对TThread类的几个成员作一简单介绍,再说明一下Execute的实现和Synchronize的....
分类:
其他好文 时间:
2015-05-12 01:34:27
阅读次数:
217