众所周知,我们经常在脚本中创建一些对象来实现某些特定的功能。尤其是当我们使用QTP的描述性编程时,需要创建这些对象。
下边是我们经常在QTP或VBScript中用到的对象列表:
Set objEmail = CreateObject("CDO.Message" )
Set objIE = CreateObject("InternetExplorer.Application" )...
分类:
其他好文 时间:
2014-05-15 14:54:27
阅读次数:
230
#include
#include
using namespace std;
//下面一个移位是一样的,>>相当于除去2,主要是要用right-left,否则对于大数据来说会产生溢出问题。切记
int binarySearch(int arr[],int len,int number)
{
int left=0;
int right=len-1;
in...
分类:
其他好文 时间:
2014-05-15 07:14:38
阅读次数:
272
当有重复元素的时候呢?
不用拍脑袋都会想到一种方法,也是所有有重复元素时的通用处理方法,维护一个set,如果这个元素没加入过就加入,加入过了的忽略掉。但是,在这道题上这个通用方法居然超时了!
怎么办?想一下为什么会这样,假设我们要排列的数字是1111112,当当前的排列中没有1时,取哪个1生成一遍,都是一样的。只有当前面的1都用过了,必须轮到这个1出场的时候,它才会有价值。更明确一点说,假设我...
分类:
其他好文 时间:
2014-05-15 05:36:25
阅读次数:
198
出现这个问题的原因主要有两个
1、如果项目没有使用Spring,则struts.xml配置文件中,这个action的class属性的路径没有写完整,应该是包名.类名
2、如果项目使用了Spring,那就是applicationContext.xml里面没有为这个action定义bean。这样strus.xml中的对应action的class属性的值就是Spring配置文件中bean的id,比如...
分类:
其他好文 时间:
2014-05-15 05:24:51
阅读次数:
229
用select实现的并发服务器,能达到的并发数,受两方面限制
一个进程能打开的最大文件描述符限制。这可以通过调整内核参数。
select中的fd_set集合容量的限制(FD_SETSIZE) ,这需要重新编译内核。...
分类:
其他好文 时间:
2014-05-15 05:19:35
阅读次数:
390
Launch Eclipse and click Help > Install New Software....
Click Add.... In the Add Repository dialog, set the Name to "Force.com IDE" and the
Location to "http://media.developerforce.com/...
分类:
系统相关 时间:
2014-05-15 02:51:11
阅读次数:
480
用rvm安装ruby错误缺少对于的库文件[root@localhost~]#rvminstall2.0.0Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:redhat/6/i386/ruby-2.0.0-p451.Continuingwithcompilation.Pleaseread‘rvmhelpmount‘togetmoreinformationonbinaryrubies.Ch..
分类:
其他好文 时间:
2014-05-14 16:42:26
阅读次数:
620
ERROR1045(28000):Accessdeniedforuser‘root‘@‘localhost‘(usingpassword:YES)解决:1、先停止mysql服务,命令如下:#/etc/init.d/mysqlstop2、重新启动服务,命令如下:#/etc/init.d/mysqlstop#mysqld_safe--user=mysql--skip-grant-tables--skip-networking&3、登入mysql..
分类:
数据库 时间:
2014-05-14 16:36:13
阅读次数:
368
右键选择Options...
左栏选项选择Text,右栏Character set 选择GBK,Locale选择zh_CN
选择OK,乱码成功变中文。...