解决办法:
mysql> SET PASSWORD = PASSWORD('123456');
Query OK, 0 rows affected (0.03 sec)
mysql> create database roger;
Query OK, 1 row affected (0.00 sec)
也就是用mysql> SET PASSWORD = PASSWORD('123456...
分类:
数据库 时间:
2014-06-05 00:19:53
阅读次数:
294
【题目】
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before imple...
分类:
其他好文 时间:
2014-06-04 23:45:09
阅读次数:
388
Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the origi...
分类:
其他好文 时间:
2014-06-03 14:12:24
阅读次数:
306
jQuery - 添加元素
append() - 在被选元素的结尾插入内容
prepend() - 在被选元素的开头插入内容
after() - 在被选元素之后插入内容
before() - 在被选元素之前插入内容
这四个方法有什么区别呢。。。
jQuery - 删除元素
remove() - 删除被选元素(及其子元素)
empty() - 从被选元素中删除子元素...
分类:
编程语言 时间:
2014-06-03 04:58:37
阅读次数:
366
确保所有测试都完全自动化,让它们检查自己的测试结果。
通常使用Junit测试框架
准备好测试夹具,setUp() 创建 tearDown() 删除
Tip 现在使用注解@Before @After @BeforeClass @AfterClass
频繁地运行测试。每次编译请把测试也考虑进去--每天至少执行每个测试一次。
编写测试代码时,往往一开始让它们失败,为了确保测...
分类:
其他好文 时间:
2014-06-03 04:10:07
阅读次数:
256
两种方式:a) 使用Annotationb) 使用xmlAnnotationa)
加上对应的xsd文件spring-aop.xsdb) beans.xml c) 此时就可以解析对应的Annotation了d) 建立我们的拦截类e)
用@Aspect注解这个类f) 建立处理方法g) 用@Before来...
分类:
编程语言 时间:
2014-05-31 20:20:48
阅读次数:
265
2014-05-21 BaoXinjian In Capgemini1. Trigger(1).
Override模式:默认模式不再触发高级别事件(2). Before模式:触发完本级别事件后再触发高级别事件(3).
After模式:触发高级别事件后再触发本级别事件 2. 常用form trigge...
分类:
其他好文 时间:
2014-05-31 19:15:59
阅读次数:
368
NameNumericDescriptionHexISO in CSS
contentOctal no-break space%A0p:before { content:"\00a0";
}alert("\240");¡?¡inverted exclamation m...
分类:
Web程序 时间:
2014-05-31 11:26:22
阅读次数:
881
JUnit 4 使用 Java 5 中的注解(annotation),以下是JUnit 4
常用的几个 annotation
介绍@Before:初始化方法@After:释放资源@Test:测试方法,在这里可以测试期望异常和超时时间@Ignore:忽略的测试方法@BeforeClass:针对所有测试...
分类:
编程语言 时间:
2014-05-26 09:32:04
阅读次数:
302
触发器是特定事件出现的时候,自动执行的代码块。类似于存储过程,但是用户不能直接调用他们。功能:1、允许/限制对表的修改2、自动生成派生列,比如自增字段3、强制数据一致性4、提供审计和日志记录5、防止无效的事务处理6、启用复杂的业务逻辑开始createtriggerbiufer_employ..
分类:
数据库 时间:
2014-05-24 15:46:01
阅读次数:
376