I use the Elicpse IDE to develope the ansdroid app.Sometime encounter the messy code in the Elicpse
One solve method is that to fix the Ecicpse's enCoding setting:
click "Windows->Preference...
分类:
其他好文 时间:
2014-06-19 09:57:22
阅读次数:
211
一个基本上纯粹的Joseph环问题,不过第一步额外多了一个m。
那么可以利用递推得出公式:
Win(n) 代表有n个人的时候胜出的号码,
那么Win(n)必然等于Win(n-1),当去掉下一个出队列的人的时候。
下一个出队列的人是谁呢? 如果模是mod的话,那么下一个出队号码计算为:
Lose(n) = mod % n;
if (Lose(n) == 0) Lose(n) = n;...
分类:
其他好文 时间:
2014-06-16 12:24:41
阅读次数:
174
用java开发的socket.io,用户node.js作为服务器端,作用就是同步同步,比如开发网站的时候,当用户登录之后,可以实现当前浏览器多个窗口的页面都是登录后的效果。首先需要安装socket.io,以及所需要的模块, 在项目里引用socket.io的js包, java代码构建socket.io...
分类:
编程语言 时间:
2014-06-15 23:54:11
阅读次数:
637
1个字节等于8位二进制。 在ASCII码中,一个英文字母(不分大小写)占一个字节的空间,一个中文汉字占两个字节的空间VARCHAR2(size) size 单位为字节, 即size 为2 才能存储一个汉字 1个数字占1个字节NVARCHAR2(size) size 单位为字符, 即size为1 可以...
分类:
数据库 时间:
2014-06-15 23:19:20
阅读次数:
276
题目
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one
1" or 11.
11 is read off as "two
1s" or 21.
21 i...
分类:
其他好文 时间:
2014-06-15 18:51:33
阅读次数:
220
笔者在调用Google Calendar APIs的GetColors过程当中(具体关于Google Calendar API已经Google API的介绍请见我其他的博文,当前我们只是拿Google Calendar API返回的结果举一个例子),JSON返回的数据中,出现了以数字作为键(key)的数据;但是因为我们在企业应用集成中,有时候需要把JSON数据转换成XML数据;那么这个时候,JSON数据中的键(key)映射到XML数据中将成为XML数据的节点名字(Node Name),如果JSON中的键(k...
分类:
编程语言 时间:
2014-06-15 18:43:27
阅读次数:
294
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
思路:原有数组需要多出一位的唯一条件是数组所...
分类:
其他好文 时间:
2014-06-15 18:42:43
阅读次数:
162
linux下Oracle11g RAC搭建(四)
三、配置共享存储
配置ASM管理准备
1)OCRDISK :存储CRS资源配置信息
2)VOTEDISK:仲裁盘,记录节点状态
3)DataDisk:存放datafile、controlfile、redologfile、spfile等
4)RecoveryArea:存放flashbackdatabase log、archiv...
分类:
数据库 时间:
2014-06-15 17:11:39
阅读次数:
401
java.lang.VerifyError:Stack map does not match the one at exception handler 385 in method ... at offset 377
我使用的 jar包( 下面是认为跟这个问题有关系的jar包)如下:
antrl-3.3-complete.jar
cglib-2.2.jar
cglib-nodep-2.2.2...
分类:
编程语言 时间:
2014-06-15 16:56:08
阅读次数:
476
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
此题和求二叉树的最短路径几乎一模一样。
public int...
分类:
其他好文 时间:
2014-06-15 16:36:40
阅读次数:
209