activity_main.xml<?xmlversion="1.0"encoding="utf-8"?><TableLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"><TableLayout><TextViewandroid:id="@+id/te..
分类:
移动开发 时间:
2014-09-09 13:48:19
阅读次数:
327
match函数很特别, 就是用两个list比较的时候,后一个list中如果有符合前一个list的通配符的描述,则挑出来,作为独立的list返回。简单的例子如下:> (match '(a ? c) '(a b c))
(b)
注意通配符只有三种: * ? 和 +* 表示任何多个元素? 表示可以有元素,也可以没有+ 表示至少有一个元素(match '(a ? c) '(a (x y z) c)) →...
分类:
其他好文 时间:
2014-09-09 13:17:38
阅读次数:
492
oracle数据库不支持主键自增如果用的是mysql出现这种错误 就去检查application里spring中配置数据源的地方 sessionFactory里的 里的org.hibernate.dialect.OracleDialect //要换成mysql的dialectoracle不支持ide...
分类:
其他好文 时间:
2014-09-09 10:29:18
阅读次数:
354
官方链接:http://storm.incubator.apache.org/documentation/Guaranteeing-message-processing.htmlWhat does it mean for a message to be “fully processed”?A tup...
分类:
其他好文 时间:
2014-09-08 00:59:26
阅读次数:
482
1 function checkbrowser(){ 2 var Sys = {}; 3 var ua = navigator.userAgent.toLowerCase(); 4 var s; 5 var scan; 6 (s = ua.match(/ms...
分类:
其他好文 时间:
2014-09-07 22:23:15
阅读次数:
218
问题描述:
11G RAC安装时,GI已经安装完成,各服务状态正常,运行ASMCA时出错(ASM实例状态都是正常的)。
提示是:ASMCA detected pre 11gR2 ASM, but it does not have a local instance configure on this node;具体信息看下图。
解决办法是:重新注册资源,,我是重启了OS,或者也可能重启CR...
分类:
其他好文 时间:
2014-09-07 16:03:45
阅读次数:
403
dfs+剪枝*4(通过得很勉强):1、只枚举一半的比赛,另一半直接得出。2、处理前缀和,若大于目标得分则剪枝3、前缀和加上若接下来全胜的得分 仍小于 目标得分,则剪枝。4、枚举到每个人的最后一场比赛时直接用 目标得分-前缀和 计算出最后一场的应得分。Code还是很简单的:#includeusing ...
分类:
其他好文 时间:
2014-09-06 16:05:33
阅读次数:
220
A lot of interviewers like to ask the candidates the difference between set and multiset(map and multimap).What does multi actually mean?Multi-conta.....
分类:
其他好文 时间:
2014-09-06 16:04:23
阅读次数:
285
String类型1.字符串的模式匹配方法 1) match(),与RegExp的exec()方法相同,也只接受一个参数,要么是一个正则表达式,要么是一个RegExp对象。var text = "cat,bat,fat,sat";var pattern = /.at/;var matches = t....
分类:
编程语言 时间:
2014-09-05 21:05:42
阅读次数:
200
http://regexpal.com/上面这个网站可以用于在线检测JS的正则表达式语法除了熟知的几个固定字符表示位置:^ :Match the beginning of the string and, in multiline searches, the beginning of a line.$...
分类:
Web程序 时间:
2014-09-05 14:22:21
阅读次数:
228