using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using Microsoft.Win32; using…
How to configure ODBC DSN to access local DB2 for Windows MA Genfeng (GuangdongUnitoll Services incorporated, Guangzhou 510300) Abstract   This article introduces how to configure ODBC DSN in Server to access local DB2 for windows in detail. Then I g…
https://code.google.com/p/busdog/ busdog is a filter driver for MS Windows (XP and above) to sniff USB traffic. https://busdog.googlecode.com/files/busdog32_v0.2.1.exe https://busdog.googlecode.com/files/busdog64_v0.2.1.exe Important Note It is a goo…
今天博主在开发一款windows phone应用时,希望实现app背景的更换,思路很简单.使用ApplicationDataContainer容器存储我的图片路径,每次载入应用时读取这个路径以决定我用什么背景,然后在更换背景时改变这个容器的值就好了.相关代码如下: ApplicationDataContainer localsetting = ApplicationData.Current.LocalSettings;             localsetting.Values["Backg…
编译环境: (1) 下载python2.7, 使用x86_32位,因为scons只有32位安装包可用: (2) 下载scons2.3.0,The current production release of SCons is 2.3.0: (3)  安装python 和 scons, 将C:\Python27\Scripts写入PATH: (4) 安装boost1.54版本的库,直接下载windows版本编译好的库,目录c:\boost (5) 在c:\boost里建立一个include目录,然后…
一.编译mongodb c driver: 需要先安装OpenSSL:(参见:http://bbs.aircheng.com/read-2222-1) 步骤:(MongoDB步) 1.下载ActivePerl  5.24.0.2400  http://www.activestate.com/activeperl/downloads 2.安装ActivePerl软件  没什么好说的,一步一步安装即可.安装成功后,设置环境变量.  例如我将ActivePerl安装在C:\Perl64\目录下,则选中…
创建Web Server实例,配置CloudWatch来收集Web Server的系统日志,当错误登录次数达到设定值时触发报警 1. 创建Web Server 1.1 创建一个IAM策略 1.2 创建一个IAM角色 1.3 创建一个安全组 1.4 创建Web Server 2. 定义CloudWatch Logs阈值 2.1 确认CloudWatch Logs agent是否正在运行 2.2 创建CloudWatch Logs指标筛选器 2.3 定义一个CloudWatch报警 用错误的密码尝试…
问题: [root@localhost ~]# systemctl status neutron-server ● neutron-server.service - OpenStack Neutron Server Loaded: loaded (/usr/lib/systemd/system/neutron-server.service; disabled; vendor preset: disabled) Active: inactive (dead) [root@localhost ~]#…
这里没有 去详细考虑neutron server怎么初始化的,而是直接从加载插件的地方开始分析.首先我们看下下面这个文件. Neutron/api/v2/router.py class APIRouter(base_wsgi.Router): @classmethod def factory(cls, global_config, **local_config): return cls(**local_config) def __init__(self, **local_config): #用来…
很明显,以下的文字来自微软MSDN 链接http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx MSDN上分成了几个部分,查起来费事,统一放在这里了. 用kernel32.dll里的FormatMessage可以得到支持多语言的返回消息 有人把这些错误代码整理成了类,供参考 http://www.cnblogs.com/Sabre/p/3929264.html Note The informat…
A file system layout apportions an underlying physical volume into one or more virtual volumes (vvols) of a storage system. The underlying physical volume is an aggregate comprising one or more groups of disks, such as RAID groups, of the storage sys…
https://github.com/joeandaverde/socket.io-csharp-client http://websocket4net.codeplex.com/ http://www.codeproject.com/Articles/463947/Working-with-Sockets-in-Csharp https://supersocket.codeplex.com/ https://github.com/rdavisau/sockets-for-pcl http://…
How to setup multimedia on CentOS-5 CentOS ships with basic sound support for audio content encoded with codecs for a variety of sound formats, including .wav and .ogg files. The alsa-utils and sox audio players are included for a TUI (CLI) environme…
This guide will walk you through connecting Microsoft Power BI to a MongoDB DataSet using our MongoDB certified ODBC driver. Microsoft Power BI enables rich data visualization of your company’s data through its suite of analytics tools, letting you e…
How To Fix Windows Errors Click here follow the steps to fix Windows and related errors. Instructions   To Fix (Windows) error you need to follow the steps below: Step 1:   Download (Windows) Repair Tool     Step 2:   Click the "Scan" button    …
timedatectl --help 的执行结果如下: timedatectl [OPTIONS...] COMMAND ... Query or change system time and date settings. -h --help Show this help message --version Show package version --no-pager Do not pipe output into a pager --no-ask-password Do not prompt…
64位机器上ODBC的操作方法与32位机器是不一样的,如果直接从控制面板上-管理员工具-ODBC进去的话会发现User DSN以及System DSN里面都为空,ADD的时候连ODBC Driver都找不到,正确的方法应该是从C:\WINDOWS\SysWOW64进入后,找到odbcad32.exe,打开之后就能看到已有的System DSN及已安装的ODBC Driver.(为什么要命名为odbcad32我实在是不太理解). 接下来要说说System DSN的移除,一般情况下是能正常移除的,可…
在验证某些关键步骤时,需要截个图来记录一下当时的情况 Webdriver截图时,需要引入 import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; 截图方法 public static void snapshot(…
selenium获取input时候,发现type=”hidden” 的input无法修改value,经牛人指点,可以使用js修改 首先html源文件如下,设置为text .hidden.submit <html> <head> <title>this is a test </title> <script type="text/javascript"> function display_alert() { alert("…
首先为eclipse添加testng插件 步骤如下:help->Install New SoftWare... 2. 添加testng链接,该链接可以在这里找到 For the Eclipse plug-in, we suggest using the update site: Select Help / Software updates / Find and Install. Search for new features to install. New remote site. For Ec…
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services.Description; using System.Web.Services.Protocols; using System.Web.Services.Discovery; using System.Web.Services; using System.Net; using S…
If you've found yourself here, I'm guessing that you're getting Assembly - CSharp - Editor - first pass.dll error message and want to find an effective solution to fix this error. You should know for sure that you have to fix this error ASAP, otherwi…
In particular, Microsoft® instituted a device driver certification process for its Windows® desktop and server operating systems to ensure the drivers are functional with their products. INF (or Information) files are scripts which tell the Windows O…
按照之前的文章讲解,都已经搭建好了,可是在刚开始运行就报错了,代码和报错如下: WebDriver driver = new ChromeDriver(); driver.get("http://www.baidu.com"); 错误如下: Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the w…
如果是:多个测试类 只使用同一个浏览器,同一个driver对象, 或者同一个页面的对象,只需要:1. 创建一个基本的测试类(BaseTest),具有一个公共静态的driver属性, public static WebDriver driver2. 给BaseTest类一个@Test(groups={"functionTests","checkinTests"})方法,3. BaseTest类中创建@beforeTest,@afterTest注解的方法, 不要创建@T…
一.下载IE浏览器驱动,然后解压到存放谷歌和火狐驱动的相同路径中(请观看前面的章节) 下载地址一:http://selenium-release.storage.googleapis.com/index.html 下载地址二: 二.使用ie打开百度网址演示 package basicweb; import org.openqa.selenium.WebDriver; import org.openqa.selenium.ie.InternetExplorerDriver; public clas…
这里摘录一些处理所需要的jar包,以及对照关系等. 参考: selenium-chrome-driver-2.22.0.jar:http://www.java2s.com/Code/Jar/s/Downloadseleniumchromedriver2220jar.htm selenium-chrome-driver-2.0a4.jar:http://www.java2s.com/Code/Jar/s/Downloadseleniumchromedriver20a4jar.htm seleniu…
chrome driver下载地址:https://npm.taobao.org/mirrors/chromedriver driver与chrome的对应关系: 1.进入最新的driver,查看notes.txt文件,即可获取到对应关系 2.使用curl命令获取对应关系 curl https://npm.taobao.org/mirrors/chromedriver/2.40/notes.txt grep -e "ChromeDriver v" -e "chrome v&q…
目录 一.前言 1. 运行环境 二.前期准备工作 1. 创建 MongoDBContext MongoDb操作上下文类 2.创建测试类 3.创建测试代码 三.内嵌数组增加元素操作 1.Update.Set()方法 替换内嵌数组(不推荐使用) 2.Update.Push()方法 直接将元素压入内嵌数组(推荐) 3. Update.PushEach()方法 将多个元素压入内嵌数组(推荐) 四.内嵌数组删除元素操作 1. Update.Set()方法 替换内嵌数组(不推荐使用) 2. Update.P…
问题点:太久没有写selenium代码,居然把driver公用的问题忘记了,即:每写一个测试类,执行过程中都会新建一个窗口,这样应该说是非常不专业的. 大概想了一个方法,虽然看起来也不怎么专业,但感觉能用就很开心了. 解决步骤: 1 创建一个获取获取driver的方法getDriver() 2 创建成员变量,将 getDriver()赋值给成员变量 3 其他业务类在使用driver时,都可以通过父类.driver的方式,获取同一个driver public class Login{ privat…