casperjs的选择器可以在dom下工作,他既支持css也支持xpath.下面所有的例子都基于这段html代码: My page Hello one two three ©2012 myselfCSS3默认情况下,...
分类:
Web程序 时间:
2014-07-03 09:10:37
阅读次数:
235
AUTH_MAD=AUTHN=ssh,x509,ldap,server_cipher,server_x509,EXECUTABLE=one_auth_madDATASTORE_BASE_PATH=/app/opennebula/var//datastoresDATASTORE_CAPACITY_CH...
分类:
其他好文 时间:
2014-07-03 06:35:48
阅读次数:
288
题目:输入一个英文句子,翻转句子中单词的顺序,但单词内字符的顺序不变。句子中单词以空格符隔开。为简单起见,标点符号和普通字母一样处理。例如输入“It's a good day.”,则输出“day. good a It's”思路1:先翻转整个字符串,然后从首字母开始,每扫描一个单词(遇到空格),翻转一...
分类:
其他好文 时间:
2014-07-02 21:57:07
阅读次数:
236
原题: ZOJ 3785http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3785题意:当天是星期六,问经过1^1+2^2+3^3....+n^n天后是星期几?这题开始以为是这种式子的求和问题,翻了半天没翻到公式。结果没搞出来。...
分类:
其他好文 时间:
2014-07-02 21:31:21
阅读次数:
186
Given two sorted integer arrays A and B, merge B into A as one sorted array.
分类:
其他好文 时间:
2014-07-02 21:07:20
阅读次数:
149
ERROR 1665 (HY000): Cannot executestatement: impossible to write to binary log since BINLOG_FORMAT = STATEMENTand at least one table uses a storage engine limited to row-based logging.InnoDB is limited to row-logging when transaction isolation level is REA...
分类:
数据库 时间:
2014-07-02 07:46:46
阅读次数:
322
structDemo1# include # include enum EType{ One = 1,Tow,Three };struct S1{ int id ; char name [111]; long version ;};int main(void){ ET...
分类:
其他好文 时间:
2014-07-01 17:16:06
阅读次数:
151
2014年07月01号TODAY IS A GOOD DAY, I AM IN A GOOD MOOD.ONETWOTHREEFOUR
分类:
其他好文 时间:
2014-07-01 17:14:08
阅读次数:
121
CountDownLatch,api 文档:http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CountDownLatch.html A synchronization aid that allows one or more ...
分类:
编程语言 时间:
2014-07-01 13:56:08
阅读次数:
427
一道数学水题,找找规律。首先要判断给的数在第几层,比如说在第n层。然后判断(n * n - n + 1)(其坐标也就是(n,n)) 之间的关系。还要注意n的奇偶。Problem A.Ant on a ChessboardBackgroundOne day, an ant called Alice c...
分类:
其他好文 时间:
2014-07-01 10:19:10
阅读次数:
251