1 CUR_DIR = $(shell pwd) 2 3 CFLAGS = -g -Wall 4 GCC = gcc 5 GXX = g++ 6 7 TARGET = exe.out 8 9 SRC_FILES += $(shell find $(CUR_DIR) -name *.cc) \...
分类:
其他好文 时间:
2014-07-12 00:57:34
阅读次数:
216
1.ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture原因:不支持低版本的系统如3.0解决:Deployment Target was 3.0. C...
分类:
移动开发 时间:
2014-07-11 21:02:11
阅读次数:
222
1.event.srcElement 复制代码 代码如下: //srcElement只能在IE下使用target是FireFox使用的,下面是兼容性写法 var obj = e.srcElement ? e.srcElement : e.target; 2.e.originalEvent.x 复制....
分类:
Web程序 时间:
2014-07-11 18:38:56
阅读次数:
244
背景:很多时候,我们需要在一个工程中创立多个target,也就是说我们希望同一份代码可以创建两个应用,放到模拟器或者真机上,或者是,我们平时有N多人合作开发,当测试的时候,在A这里装了一遍测A写的那块,当需要测试B写的代码时,我们需要到B那里去装一遍,如果只有一个target的话,那么A的将会被覆盖...
分类:
其他好文 时间:
2014-07-11 12:23:53
阅读次数:
339
自定义Annotation1.声明一个annotation,类型是@interface//声明注解@Target(ElementType.FIELD)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface ValueBind {...
分类:
编程语言 时间:
2014-07-11 11:27:04
阅读次数:
202
Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ...
分类:
其他好文 时间:
2014-07-11 09:09:33
阅读次数:
211
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sum...
分类:
其他好文 时间:
2014-07-11 08:41:13
阅读次数:
156
function repeat(target,n){ return Array.prototype.join.call({length: n + 1} , target); }repeat('str',2);//输出strstr
分类:
其他好文 时间:
2014-07-10 16:39:06
阅读次数:
185
//返回数组中的最小值function min(target){ return Math.min.apply(0,target); }//返回数组中的最大值 function max(target){ return Math.max.apply(0,target); ...
分类:
其他好文 时间:
2014-07-10 16:29:52
阅读次数:
163
定义存储池目录[root@ddd-s-8kvmimg]#virshpool-define-asvmdisk--typedir--target/data/kvmimg/
Poolvmdiskdefined
2.创建已定义的存储池
[root@ddd-s-8kvmimg]#virshpool-buildvmdisk
Poolvmdiskbuilt3.查看已定义的存储池,存储池不激活无法使用[root@ddd-s-8kvmimg]#virsh..
分类:
其他好文 时间:
2014-07-09 08:58:57
阅读次数:
195