以前一直都是用ndroid自带的属性,突然发现自定义xml属性也是非常重要,于是总结了一下。
在values文件夹下新建的attr.xml文件,该文件为自定义属性。
//attr.xml
//布...
分类:
其他好文 时间:
2014-06-05 08:46:15
阅读次数:
244
1、为已存在表创建分区ALTER TABLE `tb_xxx` PARTITION BY LIST
COLUMNS(col_id)(PARTITION p0 VALUES IN (1),PARTITION p1 VALUES IN (4),PARTITION
p2 VALUES IN (5));分区...
分类:
其他好文 时间:
2014-06-03 09:17:37
阅读次数:
246
仲裁寄存器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
Given a singly linked list
L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, r...
分类:
其他好文 时间:
2014-06-03 03:12:46
阅读次数:
222
当一个组件tree在一个postbacks请求中被恢复之后其中每个组件从request的参数中取得各自的值,这里使用的是processDecodes方法。这个值会保存在本地的每个组件中,在源码中此过程的代码较为简单,因为实现者将取值这个操作全部封装在processDecodes方法中。不过说实话JSF的这部分的实现非常失败,因为在UIViewRoot中有将近两千行代码,这,这,这……...
分类:
移动开发 时间:
2014-06-02 23:05:34
阅读次数:
363
【题目】
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 1
\ / / / \ 3 2 1 ...
分类:
其他好文 时间:
2014-06-01 15:34:24
阅读次数:
231
【题目】
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
1 3 3 2 1
\ / / / \ ...
分类:
其他好文 时间:
2014-06-01 15:33:45
阅读次数:
297
在整个JSF生命周期中经历了取值、验证的阶段最终从request中拿到合理的值,下面就是在本阶段给相应的服务端对象(ManageBean)赋值了。JSF实现只是去更新和input组件中value属性对应的bean的属性的值,也就是说如果在界面上没有讲ManageBean的属性“绑定”到Input类的组件中那么这个Bean的属性是不会更新的。这里需要留意的是如果本地的数据不能转化为对应Bean的属性...
分类:
Web程序 时间:
2014-06-01 09:48:58
阅读次数:
300
【题目】
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0.
...
分类:
其他好文 时间:
2014-06-01 09:16:29
阅读次数:
242
DescriptionAn ascending sorted sequence of
distinct values is one in which some form of a less-than operator is used to
order the elements from smalle...
分类:
其他好文 时间:
2014-05-30 14:31:10
阅读次数:
297