##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.
#import <UIKit/UIKit.h> | |
@interface NumberPadDoneBtn : UIView | |
@end | |
@interface NumberPadButton : UIButton | |
@end |
#include <stdint.h> | |
#define CRC16 0x8005 | |
uint16_t gen_crc16(const uint8_t *data, uint16_t size) | |
{ | |
uint16_t out = 0; | |
int bits_read = 0, bit_flag; | |
/* Sanity check: */ |
1. | |
mSampleRate = 16000; | |
mFormatID = kAudioFormatLinearPCM; | |
mFramesPerPacket = 1; | |
mChannelsPerFrame = 1; | |
mBytesPerFrame = 2; | |
mBytesPerPacket = 2; | |
mBitsPerChannel = 16; | |
mReserved = 0; | |
mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked; |
[label setPreferredMaxLayoutWidth:mywidth]; |
@interface MyCell : UITableViewCell | |
@end | |
@implementation MyCell | |
-(void)layoutSubviews | |
{ | |
[super layoutSubviews]; | |
self.imageView.contentMode = UIViewContentModeScaleAspectFill; | |
self.imageView.frame = CGRectMake(self.imageView.frame.origin.x, self.imageView.frame.origin.y, 50, 50); |