这里照搬Github的Demo,其实还是很易懂的,首先,要在控制器的.h文件当中实现浏览器控件的协议:1 #import 2 3 @interface ExampleAppViewController : UINavigationController 4 5 @end在.m方法当中,WebViewJ...
分类:
编程语言 时间:
2014-06-15 23:00:33
阅读次数:
248
实现功能: 1. 视频流数据 2. 预览和拍照变焦, 所见即所得。运行环境: 1. XCODE 5.1.1 2. 真机(IPHONE5 , IOS6.1.4)#import #import //导入 - "视频流"@interface MCViewController : UI...
分类:
其他好文 时间:
2014-06-15 22:25:28
阅读次数:
360
Hadoop Pipes Exception: Illegal text protocol command对于Hadoop pipes 出现这样的错误,基本上编译代码依赖的.so和.a 版本不匹配网上也没有给出更多信息,我的同事最近回复了解决办法,可以参考https://groups.google....
分类:
其他好文 时间:
2014-06-15 14:37:31
阅读次数:
243
Java 中数组声明后不可修改 –跟C一样 ,C中往往会增加定义HASHTABLE,链表等结构来实现动态的数组 但在java中,已经有现成的,称为集合 Collection (interface,有迭代器)├List (interface)│├LinkedList (class)│├ArrayLis...
分类:
编程语言 时间:
2014-06-15 13:12:19
阅读次数:
210
个人写的一些例子:
//
// ViewController.m
// CABasicAnimationDemo
//
// Created by haotian on 14-6-13.
// Copyright (c) 2014年 Baseus. All rights reserved.
//
#import "ViewController.h"
@interface ViewCo...
分类:
其他好文 时间:
2014-06-15 11:17:24
阅读次数:
215
In most cases you will need root permission to be able to capture packets on an interface. Using tcpdump (with root) to capture the packets and saving...
分类:
其他好文 时间:
2014-06-15 06:51:22
阅读次数:
178
参考资料https://github.com/bsdnoobz/web-based-face-detecthttp://opencv-code.com/projects/web-based-interface-for-face-detection-with-opencv/http://www.cnb...
分类:
Web程序 时间:
2014-06-14 21:57:39
阅读次数:
379
Zookeeper的Client直接与用户打交道,是我们使用Zookeeper的interface。了解ZK Client的结构和工作原理有利于我们合理的使用ZK,并能在使用中更早的发现问题。本文将在研究源码的技术上讲述ZK Client的工作原理及内部工作机制。在看完ZK Client的大致架构以...
分类:
其他好文 时间:
2014-06-14 21:14:27
阅读次数:
194
区间搜索问题就是给定一系列区间,和一个待测区间,求与待测区间相交的区间。
为了解决这个问题,需要专门编写一个类,这个类的接口如下:
public interface IntervalST, Value> {
void put(Key lo, Key hi, Value value);
Value get(Key lo, Key hi)
voi...
分类:
其他好文 时间:
2014-06-14 10:36:17
阅读次数:
182
虚方法:可以重写,也可以不重写,英文名:virtual
抽象方法:必须重写,必须放在抽象类中,英文名:abstract
重写:可以重写三种方法:virtual,abstract,override,英文名:override
抽象类:可以有抽象方法,也可以有非抽象方法,英文名:abstract
接口:和抽象类相似,但是里面只有未实现的方法,英文名:interface...
分类:
其他好文 时间:
2014-06-14 09:34:42
阅读次数:
222