Introspector 是一个专门处理bean的工具类.用来获取Bean体系里的 propertiesDescriptor,methodDescriptor.
要理解这个,就要理解下面几个议题.
*bean是啥?
普通的class 可能有 computerAges(){ }等方法.
Bean是 一个field ,有 get 或者set. 除了这些别无其他.
...
分类:
其他好文 时间:
2014-11-21 18:44:59
阅读次数:
231
哇哦,感觉有点难哦,三个骰子,分别具有k1,k2,k3个面,抛骰子,若向上的一面分别对应为a,b,c,那么得分归0,否则得分加上三个骰子向上那一面数字之和,求得分超过n的时候抛骰子的次数的期望
一开始很容易想到常规的做法,以目标状态为边界,当前状态到目标状态所需要的期望为方程,dp[i]代表 当前到目标分数的期望,这是发现状态转移是这个样子的
dp[i] = dp[0] * p0 + ...
分类:
其他好文 时间:
2014-11-21 18:44:49
阅读次数:
203
Introspector 是一个专门处理bean的工具类.用来获取Bean体系里的 propertiesDescriptor,methodDescriptor.
要理解这个,就要理解下面几个议题.
*bean是啥?
普通的class 可能有 computerAges(){ }等方法.
Bean是 一个field ,有 get 或者set. 除了这些别无其他.
...
分类:
其他好文 时间:
2014-11-21 18:45:38
阅读次数:
320
哇哦,感觉有点难哦,三个骰子,分别具有k1,k2,k3个面,抛骰子,若向上的一面分别对应为a,b,c,那么得分归0,否则得分加上三个骰子向上那一面数字之和,求得分超过n的时候抛骰子的次数的期望
一开始很容易想到常规的做法,以目标状态为边界,当前状态到目标状态所需要的期望为方程,dp[i]代表 当前到目标分数的期望,这是发现状态转移是这个样子的
dp[i] = dp[0] * p0 + ...
分类:
其他好文 时间:
2014-11-21 18:43:27
阅读次数:
232
Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the largest ...
分类:
其他好文 时间:
2014-11-21 18:43:17
阅读次数:
196
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:44:59
阅读次数:
230
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:42:40
阅读次数:
205
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:43:13
阅读次数:
205
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:44:20
阅读次数:
288
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:41:13
阅读次数:
240
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:42:59
阅读次数:
324
Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the largest ...
分类:
其他好文 时间:
2014-11-21 18:41:59
阅读次数:
174
awk是Unix环境下一种非常好的语言,适合于文本处理和报表生成,它还有许多精心设计的特性,允许进行特殊技巧程序设计。对于短消息来说,比如处理话单文件,使用awk就非常方便,鉴于测试组大部分人对awk并不熟悉,因此仅以本文作一个提纲挈领的介绍,希望对初学者迅速掌握awk有所帮助。
2 第一部分:入门 2.1 第一个awk程序
所有的编程书籍都是通过一个“Hello wo...
分类:
其他好文 时间:
2014-11-21 18:42:10
阅读次数:
130
编译一个能在 arm 平台上用的动态库,结果报错如下:
relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
./obj/xxx.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
其实错误信息已经给出解决办法了,加...
分类:
其他好文 时间:
2014-11-21 18:40:09
阅读次数:
3187
还有另一种写法,但是IE对它的支持不够好:其中sizes是H5新增的属性,用于设置图标尺寸
分类:
其他好文 时间:
2014-11-21 18:40:09
阅读次数:
135
安装与配置authpuppy:源码包:#wget https://launchpad.net/authpuppy/trunk/1.0.0-stable/+download/authpuppy-1.0.0-stable.tgz#cd /hometar -xvf authpuppy-1.0.0-stab...
分类:
其他好文 时间:
2014-11-21 18:38:55
阅读次数:
1632
前言在Firefox下可用的npapi插件,在chrome下调用时遇到问题,于是尝试研究chrome下的ppapi插件,一路上真是磕磕碰碰,波折不断啊。阶段一、复用npapi尝试将npapi直接用在chrome中,结果在chrome://plugins页下能看到npapi的插件,调试时看到插件对象被...
分类:
其他好文 时间:
2014-11-21 18:37:33
阅读次数:
133