stm32固件库V3.0以上的版本,main等源文件中不再直接包含stm32f10x_conf.h,而是stm32f10x.h,stm32f10x.h则定义了启动设置,以及所有寄存器宏定义,此文件中需要注意的有:使用V3.0以上版本固件库的方法如下:1.选择device(配置函数STM32F10x....
分类:
其他好文 时间:
2014-11-26 13:38:35
阅读次数:
224
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th...
分类:
其他好文 时间:
2014-11-26 13:37:24
阅读次数:
123
// 自定义导航栏"返回按钮"- (void)initNaviBackBtn{ UIButton *backBtn = [UIButtonbuttonWithType:UIButtonTypeCustom]; backBtn.frame = CGRectMake(0, 0, 50, 22); ...
分类:
其他好文 时间:
2014-11-26 13:37:31
阅读次数:
172
例如:class a{public:int aa};class b:public a{public: int bb;}从内存的来看如a---------||占一个int数据大小--||----(aa数据)------||---------而b则是---------|---------|占一个int数...
分类:
其他好文 时间:
2014-11-26 13:37:49
阅读次数:
145
1 //NSData转换为UIImage2 NSData *imageData = [NSData dataWithContentsOfFile: imagePath];3 UIImage *image = [UIImage imageWithData: imageData];4 5 //UIIma...
分类:
其他好文 时间:
2014-11-26 13:35:48
阅读次数:
123
转载:http://www.cnblogs.com/cfantaisie/archive/2011/06/14/2080917.html 主要步骤 1)、尺度空间的生成; 2)、检测尺度空间极值点; 3)、精确定位极值点; 4)、为每个关键点指定方向参数; 5)、关键点描述子的生...
分类:
其他好文 时间:
2014-11-26 13:36:38
阅读次数:
316
Heli tracker. #1,2,3 as Gen Ace Battery. #4,5,6 as Nano Battery11/25/2014 Lightly crashed, servo arm brake. Too dark to see heli level. #4,5,...
分类:
其他好文 时间:
2014-11-26 13:36:38
阅读次数:
224
// 检查更新- (void)updateVersion{ // 获取app版本 NSDictionary *infoDictionary = [[NSBundlemainBundle] infoDictionary]; NSString *currentVersion = [infoDict...
分类:
其他好文 时间:
2014-11-26 13:34:27
阅读次数:
143
安装环境:windows 7 64位python 3.4.2 64位(自带pip)安装好后在环境变量上加上:C:\Python34;C:\Python34\Scripts;说明:网上说改写什么pip.ini文件,哪找的到啊,都是扯蛋,自己建,更扯蛋。search.py#default='https:...
分类:
其他好文 时间:
2014-11-26 13:36:24
阅读次数:
239
本节简单做了一个透明的产品介绍页,主要是打造“透明玻璃”的感觉。效果图:知识点:1、背景图用了滤镜——高斯模糊,这种方法在制作模糊图片很有用。2、主题部分主要调节图层混合模式选项,透明度,填充等等,其中柔光,叠加,减淡等选项在打造细节上,非常有用,以后应该多尝试。3、好的纹理图片添加为图片,用来填充...
分类:
其他好文 时间:
2014-11-26 13:33:23
阅读次数:
265
// 1. 核心代码 CGSize constraint = CGSizeMake(290, 20000.0f); NSAttributedString *attributedText = [[NSAttributedStringalloc]initWithString:_contentLabe.....
分类:
其他好文 时间:
2014-11-26 13:34:37
阅读次数:
199
获取摄像机参数是为了来处理图像失真或者实现图像度量 ~~ Unfortunately, this cheapness comes with its price: significant distortion. Luckily, these are constants and with a calib...
分类:
其他好文 时间:
2014-11-26 13:33:20
阅读次数:
489
#import "UINavigationBar+CustomImage.h"@implementation UINavigationBar (CustomImage)-(UIImage *)drawImage:(NSString *)imageName{ UIImage *image = [U.....
分类:
其他好文 时间:
2014-11-26 13:31:37
阅读次数:
271
在查看内存泄露以及对内存问题中,要dump出当前内存堆存储快照,便于分析。有几种方法可以做,简介如下一、intellij IDEA 由于我用的是intellij IDEA,所以没有介绍Eclipse的配置,当然网上有很多种。1、run->E...
分类:
其他好文 时间:
2014-11-26 13:32:17
阅读次数:
255
1.类型的判断:js五种简单数据类型有:null,undefined,boolean,number,string。还有复杂的数据类型:Object,Function,RegExp,Date,自定义的对象,比如:Person等。typeof一般用来判断boolean,number,string,ins...
分类:
其他好文 时间:
2014-11-26 13:31:12
阅读次数:
164
select { float:left; } 设置后并没有左对齐!? 换一种思路解决了问题(但是为什么float:left有问题还不清楚) select { display:inline-block; }
分类:
其他好文 时间:
2014-11-26 13:29:02
阅读次数:
169
nodeName、nodeValue 以及 nodeType 包含有关于节点的信息。nodeName 属性含有某个节点的名称。元素节点的 nodeName 是标签名称属性节点的 nodeName 是属性名称文本节点的 nodeName 永远是 #text文档节点的 nodeName 永远是 #doc...
分类:
其他好文 时间:
2014-11-26 13:30:58
阅读次数:
147