n!的近似值 (stirling approximation)与 大O记法(big -O- notation)...
分类:
移动开发 时间:
2014-10-10 13:00:34
阅读次数:
195
Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters arranged in following way:
qwertyuiop
asdfghjkl;
zxcvbnm,./
Unfortunately Mole is blind, ...
分类:
其他好文 时间:
2014-10-10 02:36:33
阅读次数:
315
Just a JokeDescription Here is just a joke, and do not take it too seriously. Guizeyanhua is the president of ACMM, and people call him Presid...
分类:
其他好文 时间:
2014-10-10 00:34:21
阅读次数:
408
android触碰消息传递机制
用户的每次触碰(onClick,onLongClick,onScroll,etc.)都是由一个ACTION_DOWN+n个ACTION_MOVE+1个ACTION_UP组成的,用户触碰必先有个ACTION_DOWN响应,用户触碰结束必然会有个ACTION_UP。(当然如果在途中被拦截,就可能不会有了!)那么View是如何分发消息和拦截消息呢?
1...
分类:
移动开发 时间:
2014-10-09 16:03:28
阅读次数:
334
代码一:联合体union的存放顺序是所有成员都从低地址开始存放,若处理器是Big_endian(从高字节到低字节存放数据)的,则返回0;若是Little_endian(从低字节到高字节存放数据)的,则返回1。 int checkCPU() { union w {...
分类:
其他好文 时间:
2014-10-09 01:01:17
阅读次数:
223
转自:http://blog.csdn.net/syhost/article/details/14448899完整的报错为:system/core/include/cutils/properties.h:64:39: error: call to '__property_get_too_smal.....
分类:
移动开发 时间:
2014-10-07 13:44:23
阅读次数:
215
Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:
其他好文 时间:
2014-10-06 22:05:10
阅读次数:
287
Code Path:
https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_escape/script.clj
Extract Story to TXT
In order to move the story from .clj into .txt, I lever...
分类:
Web程序 时间:
2014-10-05 17:36:38
阅读次数:
214
1.现象在命令行中,执行sql语句如果包含中问题,提示“Data too long for column '列名' at row 1” 或者在命令行中查询出的结果中,中文乱码2.分析a.查看命令行的默认编码方式:右击命令行标题栏--属性--当前代码页b.查看mysql中客户端与结果集的编码方式 sh...
分类:
数据库 时间:
2014-10-04 22:20:27
阅读次数:
303
dofile读入文件编译并执行,真正完成功能的函数是loadfile;与dofile不同,loadfile仅仅是编译代码成中间码,并且把编译后的chunk作为函数返回。如果发生错误,返回nil和错误信息。我们可以这么定义dofile:
function dofile(filename)
local f = assert(loadfile(filename))
return...
分类:
其他好文 时间:
2014-10-04 14:49:46
阅读次数:
162