1.ntp4.2.4之前的版本都存在一个很严重的BUG,当ntp的启动参数里有同时有-g -x,并且在ntp.config中的server的校时服务器地址不可达时,会出现无论是start,stop,restart服务都会报错。报错内容:Starting ntpd: ERROR:only one pa...
分类:
系统相关 时间:
2014-10-11 16:56:25
阅读次数:
310
Remove Duplicates from Sorted List I
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3...
分类:
其他好文 时间:
2014-10-11 16:50:15
阅读次数:
206
Remove Duplicates from Sorted Array I
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for an...
分类:
其他好文 时间:
2014-10-11 16:19:56
阅读次数:
140
原文:http://blog.csdn.net/gaojinshan/article/details/14230673在AndroidManifest.xml中使用了如下的配置:就会报错:Permission is only granted to system apps原因如下:此类权限仅授予系统级...
分类:
移动开发 时间:
2014-10-11 13:44:25
阅读次数:
168
BFS:Is it possible that a solution exists using only one single queue? Yes, you bet. The single queue solution requires two extra counting variables w...
分类:
其他好文 时间:
2014-10-11 03:37:04
阅读次数:
190
Given 3 strings of only lowercase letter you have to count the number of ways you can construct the third string by combining two subsequences from the first two strings.
After deleting ...
分类:
其他好文 时间:
2014-10-10 02:06:23
阅读次数:
174
Let's dance in style让我们翩然起舞Let's dance for a while让我们尽情欢笑Heaven can wait天堂也得等著我们We're only watching the skies我们只是仰望凝视著天空Hoping for the best愿望有最好的结果But...
分类:
其他好文 时间:
2014-10-09 21:44:07
阅读次数:
178
SQLSERVER2008中BACKUPLOGWITHTRUNCATE_ONLY已不再被支持,要收缩数据库日志,首先需要通过将数据库恢复模式设置为SIMPLE来截断该文件。语句如下:USEDATABASENAME;GO--TruncatethelogbychangingthedatabaserecoverymodeltoSIMPLE.ALTERDATABASEDATABASENAMESETRECOVERYSIMPLE;G..
分类:
数据库 时间:
2014-10-09 20:29:08
阅读次数:
216
在MSDN文档里,把Visual C++接口描述如下:
Can inherit from zero or more base interfaces.Cannot inherit from a base class.Can only contain public, pure virtual methods.Cannot contain constructors, destructors, or...
分类:
其他好文 时间:
2014-10-09 18:35:07
阅读次数:
188
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2014-10-09 13:16:43
阅读次数:
179