最终效果图:
自定义cell的封装
BeyondCell
//
// BeyondCell.h
// 29_仿微信聊天
//
// Created by beyond on 14-9-4.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import
@class Beyo...
分类:
微信 时间:
2014-09-04 22:21:10
阅读次数:
488
校验和是经常使用的,这里简单的列了一个针对按字节计算累加和。其实,这种累加和,使用将字节翻译为无符号整数和带符号整数,结果是一样的。
使用python计算校验和时记住做截断就可以了。 这里仅仅是作为一个代码样本,权作标记,直接上代码
'''
Created on 2014年9月4日
@author: lenovo
'''
import random
'''
实际计算校验和时,解释为无符号整...
分类:
编程语言 时间:
2014-09-04 22:19:30
阅读次数:
249
相信一定有许多朋友对于QTP11.5/UFT的破解非常感兴趣,在此告诉大家,11.5目前破解貌似仍然无效。
有QTP11正版license的可以直接升级使用QTP11.5/UFT版本
而对于需要延长试用的朋友仍然可以像之前QTP11版本一样可以无限进行试用30天。
方法:
1. 删除C:\Documents and Settings\All Users\Application Da...
分类:
其他好文 时间:
2014-09-04 22:17:50
阅读次数:
489
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2014-09-04 22:17:00
阅读次数:
185
项目中要模拟openstack的swift的多路write功能。初步设想是用python的eventlet来实现多线程。比如在write的时候要同时写入两个storage,就用eventlet生成2个线程,两个线程并行的去write,各自返回。但是我刚才在查eventlet的时候发现eventlet...
分类:
其他好文 时间:
2014-09-04 22:14:10
阅读次数:
251
LeetCode: Minimum Window SubstringGiven a string S and a string T, find the minimum window in S which will contain all the characters in T in complexi...
LeetCode: Sort ColorsGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colo...
分类:
其他好文 时间:
2014-09-04 22:10:20
阅读次数:
173
Base64加密是常用的加密算法,在IOS的Des加密算法中已经使用到了Base64算法,还是单独整理出来吧。Base64.h文件//// Base64.h// Copyright (c) 2014年 grant. All rights reserved.//#import @interfa...
分类:
移动开发 时间:
2014-09-04 22:07:10
阅读次数:
383
js用来区别IE与其他浏览器及IE6-8之间的方法。1、document.all2、!!window.ActiveXObject;使用方法如下:if (document.all){ alert("IE浏览器");}else{ alert("非IE浏览器");}if (!!window.ActiveX...
分类:
编程语言 时间:
2014-09-04 22:05:50
阅读次数:
229
之前因为要使用DES加密,在网上找了好多,总于找到了,整理如下。Des.h文件//// Des.h// Copyright (c) 2014年 grant. All rights reserved.//#import #import @interface Des : NSObject//DE...
分类:
移动开发 时间:
2014-09-04 22:05:40
阅读次数:
318