今天发现项目代码加入了findbugs的依赖包,简单的搜索了下:
官方说明:
FindBugs is a defect detection tool for Java that uses static analysis to look for more than 200 bug patterns, such as null pointer dereferences, infinite recu...
分类:
数据库 时间:
2014-06-07 01:19:07
阅读次数:
250
Problem Description:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transa...
分类:
其他好文 时间:
2014-06-05 09:33:52
阅读次数:
342
1.找到设备的identifier
2.进入https://developer.apple.com
3.点击devices
4.把identifier加入并注册
5.打开xcode,按command+,
6.点击你的证书,进入view details
7.刷新即可...
分类:
移动开发 时间:
2014-06-05 08:31:16
阅读次数:
282
近日在写一个简易的操作系统,经常受到bug的偷袭,由于开发OS的特殊性,一些常规的debug手段用不上,于是打算记录下自己的debug过程,用于交流。
Problem:
在做图层叠加时,引入结构体SHTCTL进行各个图层的管理,但遭遇了黑屏,原因可能来自于图层管理模块、内存管理模块或其他未知原因。
Solution:
恢复到上次不黑屏的版本(即去掉图层管理模块),果然可以进行显示。在此基础...
分类:
其他好文 时间:
2014-06-05 07:16:45
阅读次数:
199
最近使用NDK进行项目开发过程中,debug模式下logcat输出以下错误(PS:正常run没有任何错误,JNI方法执行没有问题):
05-28 13:48:10.422: W/dalvikvm(15024): JNI WARNING: input is not valid Modified UTF-8: illegal start byte 0xa5
05-28 1...
分类:
其他好文 时间:
2014-06-05 06:58:36
阅读次数:
1128
注意:
1 判断一个节点是否平衡的方法
2 平衡一个节点的方法 :
我这里比原文改进一点,独立出一个平衡节点的函数balanceNode(),这样一个函数可以用来平衡插入和删除操作,使得代码更加简洁了。
这样修改之后就使得平衡二叉树好像和一般二叉树的操作比较,就是多了一个平衡操作。
3 删除操作情况很多,很困难,一定要理清思路。十分容易出bug的地方。
这里是查找后继节点的值,填补上到...
分类:
其他好文 时间:
2014-06-05 05:16:45
阅读次数:
261
【题目】
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.
【题意】
给定一个非负整数,这个表示为一个数字数组。计算这个整数加1后的值。
【思路】
从低位到高位依次相加,注意处理进...
分类:
其他好文 时间:
2014-06-05 01:24:44
阅读次数:
250
仲裁寄存器default值:
The default values of CPUARB, IDMAARB, SDMAARB, and UCARB are sufficient for most applications. These registers define priorities that are internal to the C66x CorePac. The MDMAARBU...
分类:
其他好文 时间:
2014-06-03 03:53:28
阅读次数:
239
Phonegap 解决错误:Alert[ERROR]Error initializing
Cordova:Class not found发现bug后找原因网上说是 因为找不到 res/xml文件夹下的 config.xml
文件;但我有这个config.xml我想了一下 是不是因为没有找到指定的co...
分类:
移动开发 时间:
2014-05-31 20:21:27
阅读次数:
245
在windows系统下,library
project必须和project处于相同的盘符中,因为如果在不同盘符,project.properties中的android.library.reference.1值变成绝对路径而ADT推荐是在ubuntu下使用的,对windows绝对路径有支持bug。在w...
分类:
移动开发 时间:
2014-05-31 20:09:17
阅读次数:
376