Due to IE10 published, I’ll conclude the methods that how to add trust sites in to IE of the version before IE10. General, there are three methods to ...
分类:
其他好文 时间:
2014-06-28 21:33:51
阅读次数:
1028
// draw callback that will tweak the far clipping plane just // before rendering a drawable. struct OverrideNearFarValuesCallback : public osg::Drawa....
分类:
其他好文 时间:
2014-06-28 10:38:52
阅读次数:
258
今天做一个Android的刮刮乐项目,里面用到很多的地方用到了getResources。
// 获得图片
//参数1:res是资源的引用,参数2:id是图片的id
after = BitmapFactory.decodeResource(getResources(), R.drawable.b);
before = BitmapFactory.decodeResource(get...
分类:
移动开发 时间:
2014-06-22 22:15:06
阅读次数:
278
1、触发器:
CREATE TRIGGER trigger_name trigger_time trigger_event
ON tbl_name FOR EACH ROW trigger_stmt
其中trigger_name标识触发器名称,用户自行指定;trigger_time标识触发时机,用before和after替换;trigger_event标识触发事件,用insert,updat...
分类:
数据库 时间:
2014-06-22 17:30:09
阅读次数:
350
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
Have you thought about this?
Here are some good questions to ask before coding. Bonus points for y...
分类:
其他好文 时间:
2014-06-22 09:31:16
阅读次数:
220
JMM规范:The rules for happens-before are:Program order rule. Each action in a thread happens-before every action in that thread that comes later in the ...
分类:
其他好文 时间:
2014-06-21 06:49:15
阅读次数:
350
6.4.5 配合counter-increment属性添加编号 代码示范: //为该元素定义了一个计数器 元素{counter-increment:mycounter} //在该元素的前端插入定义的计数器 元素:before{con...
分类:
其他好文 时间:
2014-06-18 22:13:01
阅读次数:
179
#includevoid change_1(int a, int b);void change_2(int *a, int *b);int main(){ int a = 10; int b = 20; printf("changed before:"); printf("a=%d\tb=%d\n....
分类:
其他好文 时间:
2014-06-15 11:55:24
阅读次数:
249
Description:Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preser...
分类:
其他好文 时间:
2014-06-14 19:11:15
阅读次数:
173
Mock的使用有很多方式,我们常用的有以下几种,看示例代码
public class TestMock {
@Mock
A a;//生成一个A的Mock
@Spy
A a1 = new A();//生成一个A的Spy, Spy或是InjectMocks必需自己初始化对象,Mock可以不用初始化
@Before
public void init...
分类:
其他好文 时间:
2014-06-14 10:16:42
阅读次数:
230