1 //use this to implement platform-cross
new-line.2 StringBuilder sb = new StringBuilder();3
sb.append(System.getProperty("line.separator"));
分类:
其他好文 时间:
2014-06-09 00:35:09
阅读次数:
213
关于+ - ~有意思的一段C代码
问题是钟哥几天前在automation的群里面抛出来的。
code:
#include
int main(int argc,char* argv[])
{
int a = 7;
int b = 1;
printf("before process,a = %d,b = %d\n",a,b);...
分类:
其他好文 时间:
2014-06-08 16:29:03
阅读次数:
215
Definition
Let be "0" and
be "01". Now (the concatenation of the previous sequence and the one before that).
The infinite Fibonacci word is the limit
We have:
0
01
010
01...
分类:
其他好文 时间:
2014-06-08 09:19:42
阅读次数:
273
原文链接: What to tune in MySQL 5.6 after installation原文日期: 2013年09月17日翻译日期: 2014年06月01日翻译人员: 铁锚随着 大量默认选项的改进, MySQL 5.6比以前版本需要调优的选项大为减少. 在本文中我将讲述需要优化的配置项.InnoDB设置innodb_buffer_pool_size —— 默认值为 128M. 这是最...
分类:
数据库 时间:
2014-06-08 03:57:40
阅读次数:
365
上上周的事情了,端午小长假将近,还是按往常一样,最后一天一定要搞一个“课题”,场面不大,一天就能搞定的东西,如果说系统学习vim或者Emacs之类的,那就算了...还好,问题呼之即来,那就是write系统调用是不是原子的,答案很显然,不是!但大师说带有APPEND标志的write是原子的,很多软件的日志都是O_APPEND打开,然后在不加锁的情况下直接write的,不会出现问题,此事如何证实?本文...
分类:
移动开发 时间:
2014-06-08 02:19:57
阅读次数:
309
上上周的事情了,端午小长假将近,还是按往常一样,最后一天一定要搞一个“课题”,场面不大,一天就能搞定的东西,如果说系统学习vim或者Emacs之类的,那就算了...还好,问题呼之即来,那就是write系统调用是不是原子的,答案很显然,不是!但大师说带有APPEND标志的write是原子的,很多软件的日志都是O_APPEND打开,然后在不加锁的情况下直接write的,不会出现问题,此事如何证实?本文...
分类:
移动开发 时间:
2014-06-08 02:13:25
阅读次数:
339
Python一维数组初始化:>>> list=[]>>>
type(list)>>> list[]Python二维数组初始化:>>> lists = [[]] *
3>>> lists[[], [], []]>>> lists[0].append(3)>>>
lists[[3], [3], [3]]...
分类:
编程语言 时间:
2014-06-07 23:49:56
阅读次数:
563
@Test@Before@After测试方法运行前执行Before动作(比如创建资源),运行后执行After动作(比如销毁资源)@BeforeClass@AfterClass测试类运行前执行Before动作(比如创建资源),运行后执行After动作(比如销毁资源)Assert对方法结果进行判断,是否...
分类:
编程语言 时间:
2014-06-07 23:08:14
阅读次数:
319
题目: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 or...
分类:
其他好文 时间:
2014-06-07 20:35:55
阅读次数:
236
Given a linked list, remove thenthnode from the
end of list and return its head.For example, Given linked list:
1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-06-07 16:54:26
阅读次数:
221