No architectures to compile for
(ONLY_ACTIVE_ARCH=YES, active arch=armv7, VA运行报错出现的原因:armv7s是应用在iPhone 5/5c/5s
A6 的架构上的解决的方式:1,在Project target里“Archit...
分类:
其他好文 时间:
2014-05-08 23:06:49
阅读次数:
439
题目链接附上代码: 1 #include 2 #include 3 #include 4 using
namespace std; 5 6 class Solution { 7 public: 8 vector twoSum(vector
&numbers, int target) ...
分类:
其他好文 时间:
2014-05-08 17:50:11
阅读次数:
253
mangle表:可以对数据包进行修改,此表中的链与其它表中的关系如下:数据包从网卡接口进来后,最先经过的就是mangle表中的prerouting链。此表中有五条链:iptables-tmangle-L-n
ChainPREROUTING(policyACCEPT)
targetprotoptsourcedestination
ChainINPUT(policyACCEPT)
target..
分类:
其他好文 时间:
2014-05-08 16:52:26
阅读次数:
467
这个 bug 在 xcode 4.3 以下会出现,4.3 以后已经修正了。解决方法为:找到
target 的图标,更改其 Other Linker Flags 为: -all_load 或
-force_load-force_load,后跟随一个文件位置,可以更精确地加载所需文件。苹果的解释为 :h...
分类:
其他好文 时间:
2014-05-08 14:27:40
阅读次数:
243
定义:
将一个类(Adaptee)的接口转换成客户(Client)希望的另外一个接口(Target)。
目标接口(Target):客户所期待的接口。目标可以是具体的或抽象的类,也可以是接口。需要适配的类(Adaptee):需要适配的类或适配者类。适配器(Adapter):使得一个东西适合另一个东西的东西。百度中定义为:接口转换器。通过包装一个需要适配的对象,把源接口转换成目标接口。
...
分类:
其他好文 时间:
2014-05-08 11:10:01
阅读次数:
224
Given 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
it were inserted in or...
分类:
其他好文 时间:
2014-05-08 07:29:02
阅读次数:
285
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-05-08 06:33:29
阅读次数:
339
ubootkerneluboot1、根据include/configs/$(target).h可以生成include/autoconf.mk。kernel1、由.config生成的autoconf.h的位置:
include/generated/autoconf.h 或者 include/linux...
分类:
其他好文 时间:
2014-05-08 05:20:40
阅读次数:
275
当我们修改了frameworks后可能出现:
make: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp] 错误 38
解决办法:make update-api
在Android中添加物理按键:KEYCODE_HELP
1、Android 增加按键:
ScanCode -> KeyCodeLabel ...
分类:
移动开发 时间:
2014-05-08 04:43:52
阅读次数:
468
TARGET_IPHONE_SIMULATOR和TARGET_OS_IPHONE 是苹果的两个宏定义,
在真机sdk中位于ios->usr/include/targetconditionals.h中,
在模拟器sdk中位于simulator->usr/include/targetconditionals.h中
(笔者此时使用的xcode版本为5.1,sdk版本是7.1)
仔细看其模...
分类:
移动开发 时间:
2014-05-07 23:02:07
阅读次数:
450