该分手的八大征兆Relationships are important – to each other, to our families, to our friends, to the people we care about. There comes a point in romantic rel...
分类:
其他好文 时间:
2014-06-26 23:29:21
阅读次数:
355
想在 windows 下使用 glog,使用类似FLAGS_max_log_size 来设置参数,结果编译报错。解决办法是在 项目属性 -> C/C++ -> Preprocessor -> Preprocessor Definitions 加入GOOGLE_GLOG_DLL_DECL=。
分类:
其他好文 时间:
2014-06-26 00:32:21
阅读次数:
814
首先来看一个Activity当中启动另一个Activity,直接上代码说吧: (1)首先要多个Activity,那么首先在res-layout下新建一个 Other.xml,用来充当第二个Activity的布局文件 (2)加入一个 src 下加入一个类文件(java里...
分类:
移动开发 时间:
2014-06-25 12:19:41
阅读次数:
224
原题:
钱币兑换问题
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 2 Accepted Submission(s) : 2
Font: Times New Roman | Verdana | Georgia
Fo...
分类:
其他好文 时间:
2014-06-25 08:35:15
阅读次数:
174
我们在用pthread创建线程时,可以指定调度策略policy——SCHED_OTHER(默认)、SCHED_RR和SCHED_FIFO。这里TALK一下两个实时策略——SCHED_RR和SCHED_FIFO。
先看一下效果,我们创建了四个子线程,指定最高优先级(针对特定策略):
SCHED_RR
SCHED_FIFO
对相同优先级的任务...
分类:
其他好文 时间:
2014-06-24 21:34:56
阅读次数:
193
一:勘误
classifier类中: def fprob(self, f, cat):
if self.catcount(cat) == 0:
return 0
#notice: rember change int to double or float
# + 0.0 or *1.0 is ok, other wise, may get 0.
return self.fc...
分类:
其他好文 时间:
2014-06-24 17:49:42
阅读次数:
211
Manifest和TypeTag是要解决什么问题?As with other JVM languages, Scala’s types are erased at compile time. This means that if you were to inspect the runtime typ...
分类:
其他好文 时间:
2014-06-24 12:49:07
阅读次数:
187
http://www.h3c.com.cn/Products___Technology/Technology/Security_Encrypt/Other_technology/Representative_collocate_enchiridion/201010/697325_30003_0.ht...
分类:
Web程序 时间:
2014-06-24 11:32:01
阅读次数:
318
N-QueensThe n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, retu...
分类:
其他好文 时间:
2014-06-22 13:10:11
阅读次数:
188
Inflate() method can find out a layout defined by xml,as like the findViewById() method,but there have some different between them.
The different are:
If your Activity used other layout,such as...
分类:
移动开发 时间:
2014-06-22 06:41:43
阅读次数:
362