//type:interface value:sturctfunc PrintStruct(t reflect.Type, v reflect.Value, pc int) { fmt.Println("") for i := 0; i < t.NumField(); i++ { ...
分类:
其他好文 时间:
2015-01-24 18:34:27
阅读次数:
436
Open Web Interface for .NET (OWIN)defines an abstraction between .NET web servers and web applications. By decoupling the web server from the applicat...
google出品 高清晰,体量小得图片格式,下面说在iOS下如何使用
添加头文件
#import "UIImage+WebP.h"
#import "ViewController.h"
#import "UIImage+WebP.h"
@interface ViewController ()
@property (nonatomic ,strong) UIImageView *webP...
分类:
移动开发 时间:
2015-01-24 15:56:59
阅读次数:
315
Hive架构
1、 用户接口
a) CLI (Command Line Interface) 命令行
在hive的bin目录下面执行./hive
b) Client 客户端
启动命令为 nohup hive –service hiveserver & (nohup … &是Linux的命令,表示该命令在后台...
分类:
其他好文 时间:
2015-01-24 15:53:06
阅读次数:
232
链路聚合分为:静态链路聚合、动态链路聚合
链路聚合的负载分担模式:对于二层数据流,系统会根据MAC地址(源
mac地址和目的mac地址来计算),而对于三层数据流则会根据ip地址
来进行负载分担计算。
静态链路聚合实验:实验环境:H3C ENSP
配置要点:
第一步:创建链路聚合端口
:(系统模式)interface eth-trunk 2(端口号)
第二步:指定聚合端口的链...
分类:
其他好文 时间:
2015-01-24 15:52:37
阅读次数:
1025
public interface IFillAreas { void FillAreas(string ids, string names); //接口中定义方法签名 } public partial class FrmPerson : Form,inter...
目的:自定义一个 Person 类,实现 copy.首先定义一个 Person 类,由于是自定义类,为了能够支持 copy 方法,需要实现协议@interface Person : NSObject@property (nonatomic, retain)NSString * name;@prope...
分类:
其他好文 时间:
2015-01-24 13:09:29
阅读次数:
191
public interface AnimalInterface { public void cry();}public class AnimalImpl implements AnimalInterface { public void cry() { // TODO Au...
分类:
编程语言 时间:
2015-01-24 13:04:53
阅读次数:
271
对于对象类型,一般在声明属性的时候,都会将属性的特性设置为 retain 或者 copy, 这与设置成 assign 有什么区别呢?下面以 Student 类和 MyClass(班级)类为例来说明为什么要设置为 retain 或 copy.Student类@interface Student : N...
分类:
其他好文 时间:
2015-01-24 13:03:13
阅读次数:
180
public interface AnimalInterface { public void cry();}public class AnimalImpl implements AnimalInterface { public void cry() { // TODO Au...
分类:
其他好文 时间:
2015-01-24 12:55:34
阅读次数:
143