题目: Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letter...
分类:
其他好文 时间:
2014-04-30 21:15:32
阅读次数:
511
1、jQuery获取Select元素,并选择的Text和Value: 1.
$("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var
checkText=$("#select_id").find(.....
分类:
Web程序 时间:
2014-04-30 19:27:58
阅读次数:
555
1.目的:为了将元素的find方法和业务逻辑分开来。如果元素的页面位置发生了变化,只需改动一个文件,而不影响业务的实现。2.原理:一般一个页面对应一个class,在class里描述所有要用到的webelement。通过PageFactory.initWebElement(Webdriver
d,th...
分类:
其他好文 时间:
2014-04-30 17:58:23
阅读次数:
337
Monkey是一个工程,生成伟随机事件流(在一段时间内完全不重复的事件流),由种子生成。可以模拟用户,点击,触屏等。最好用来做压力测试。无法做功能测试。adb
shell monkey -p -v -s -throttle 延时 --pct-touch 某个事件百分比 --pct-trackball...
分类:
其他好文 时间:
2014-04-30 13:15:29
阅读次数:
374
未命名#!/bin/bash#======================================================#文件:var_test.sh#作者:daojoo,
daojoo@qq.com#作用:测试变量设置时的不同模式#版本:1.0#日期:2012年03月09日 星期...
分类:
其他好文 时间:
2014-04-29 11:45:46
阅读次数:
272
1.setuid的作用我们知道当给一个命令赋予了setuid权限之后,那么用户在执行这个命令时便暂时拥有了该命令所有者的权限,也就是说,不管是谁执行的此命令,都是以该命令所有者的身份执行的。在Linux系统中,最明显的一个例子就是passwd这个命令。我们查看/etc/shadow这个文件的权限如下...
分类:
其他好文 时间:
2014-04-29 11:43:45
阅读次数:
428
1. 使用 makefile 的原因假如每次都手动输入, 可能会写出这样的编译命令gcc -c
main.cgcc -c mytool1.cgcc -c mytool2.cgcc -o main main.o mytool1.o mytool2.o那么,
可不可以将这个命令写成 shell 脚本呢,...
分类:
其他好文 时间:
2014-04-29 10:48:46
阅读次数:
326
题目: There are two sorted arrays A and B of size m
and n respectively. Find the median of the two sorted arrays. The overall run
time complexity should...
分类:
其他好文 时间:
2014-04-29 10:32:46
阅读次数:
359
List的几个方法List=>List.Find()List.FindAll()List.Contains()
List.ForEach()List.ConvertAll() 1. 先比较Find()跟FindAll()。 这个两个函数都是 遍历List的集合,只是
区别在于FindAll()返回的...
分类:
Web程序 时间:
2014-04-29 10:32:46
阅读次数:
443
crontab运行脚本存在两大问题:环境变量和路径,从而导致单独运行脚本没问题,但用crontab运行就报错。1、环境变量
描述问题:crontab: usage error: no arguments permitted after this option
因为crontab不提供环境,所...
分类:
其他好文 时间:
2014-04-29 10:23:47
阅读次数:
370