人脸识别比较成熟,OpenCV也已经把目前主流的人脸识别算法(PCA,Haar,LBP)集成到算法库,并且附带例程和文档。文档链接http://docs.opencv.org/modules/contrib/doc/facerec/facerec_tutorial.html...
分类:
其他好文 时间:
2015-03-13 18:44:41
阅读次数:
221
题目地址:http://hackinglab.cn/index_2.php
---------------------------------------------------------------------------------
1、key在哪里?(http://lab1.xseclab.com/base1_4a4d993ed7bd7d467b27af52d2aaa800/ind...
分类:
其他好文 时间:
2015-03-13 18:42:57
阅读次数:
8420
看了一天的KVC、KVO,我就把网上的资料整理一下吧,如有雷同的地方,勿惊。
1、 KVC
KVC :NSKeyValueCoding的简称,它提供了一种在运行时而非编译时动态访问对象属性与成员变量的方式,也就是说,我们可以用字符串的内容作为属性名称或者成员变量名 称进行访问。这种特性有些类似于其他高级编程语言中的反射。
主要的方法
(setValue...
分类:
其他好文 时间:
2015-03-13 18:43:50
阅读次数:
180
最近使用vs2010编程出现以下问题,在网上收集了大家的意见之后,整理了一下
导致出现这样的原因有:
1.非法指针访问和内存泄漏
2.大家再查查吧,一定是指针出现问题了。设置的指针范围跟你运行的不对
3.指针访问内存越界出现问题。
4.是因为不支持中文。
5.内存不够分配
6.当时后来检查发现的问题应该是多线程访问资源出的问题。
7.检查一下exe和dll是否混用的不同...
分类:
其他好文 时间:
2015-03-13 18:42:26
阅读次数:
177
给要侧滑的View添加UIPanGestureRecognizer
#pragma mark 手势识别器回调方法
- (void)dragView:(UIPanGestureRecognizer *)gesture{
switch (gesture.state) {
case
UIGestureRecognizerStateBegan:
...
分类:
其他好文 时间:
2015-03-13 18:42:54
阅读次数:
204
AIX下面0,2,4,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,58 * * * * /usr/sap/trans/copydevcr.sh只能用这种格式来定时,不能用* */1 * * * /usr...
分类:
其他好文 时间:
2015-03-13 18:40:08
阅读次数:
190
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Spe...
分类:
其他好文 时间:
2015-03-13 18:39:26
阅读次数:
142
做SharePoint过程中,我觉得最恶心的就是环境了。吐槽 前两天我的SharePoint workflow发布上去后不能自己启动,也没有报错。如果是因为我没有在发布前选择添加新选项时启动,那我自认我脑残。 我在list中选中工作流,手动启动时它扔给我一个“something went w...
分类:
其他好文 时间:
2015-03-13 18:41:26
阅读次数:
177
最近在做项目的时候遇到一个内存泄漏,最后通过MAT定位了问题, 先介绍一下MAT的一些基本概念: Shallow Heap:对象本身占用内存的大小,不包含对其他对象的引用,也就是对象头加成员变量(不是成员变量的值)的总和 Retained Heap:是该对象自己的shallow size...
分类:
其他好文 时间:
2015-03-13 18:39:15
阅读次数:
292
1、匹配两个字符串之间的内容NSString *startStr = @"aaaa";NSString *endStr = @"bbb";NSString *str = @"aaaa8888999bbbkdkdkdkd";NSString *regex = [NSString stringByFor...
分类:
其他好文 时间:
2015-03-13 18:39:50
阅读次数:
134
缘起:想获取字符串中指定的字符,考虑用正则表达式,遂写了如下的代码:[cpp]view plaincopyNSString*htmlStr=@"oauth_token=1a1de4ed4fca40599c5e5cfe0f4fba97&oauth_token_secret=3118a84ad91096...
分类:
其他好文 时间:
2015-03-13 18:38:00
阅读次数:
205
声明类型为泛型。说明传递的参数为泛型,而不仅仅是一种类型。 public void aa(T a) { Console.WriteLine(a); }调用时可写:this.aa(5);this.aa(string)("aaaa");C#变量类型后面加...
分类:
其他好文 时间:
2015-03-13 18:39:01
阅读次数:
174
According to Wikipedia:Insertion sortiterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertio...
分类:
其他好文 时间:
2015-03-13 18:37:50
阅读次数:
130
http://blog.sina.com.cn/s/blog_4d276ac901011ee7.html——TCM项目所得一、看图说话1、基于套接字的TCP服务器/客户端程序流程2、TCP三次握手建立连接3、TCP四次交互断开连接4、TCP状态转移图这张图看不懂的话解释在计算机网络第四版P274。解...
分类:
其他好文 时间:
2015-03-13 18:37:18
阅读次数:
193
Convert Sorted List to Binary Search Tree问题:Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced B...
分类:
其他好文 时间:
2015-03-13 18:38:57
阅读次数:
140
public class ReflectTester { public Object copy(Object object) throws Exception { // 获得对象的类型 Class classType = object.getClass(); System.out.printl...
分类:
其他好文 时间:
2015-03-13 18:36:36
阅读次数:
139