上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页
摘要: 因为项目需要,要求手机端加密和服务端加密解密保持一致。 感谢http://blog.csdn.net/yang3wei/article/details/7605690博主 感谢Google,无限的向往Google。 网上没有贴出完整的代码,我整理一份,分享给大家。 Objective-c代码: //// GTMDefines.h//// Copyright 2008 Goo... 阅读全文
posted @ 2013-04-13 12:03 天纯蓝 阅读(2633) 评论(0) 推荐(0) 编辑
摘要: import java.io.BufferedReader;import java.io.File;import java.io.InputStreamReader;import java.io.OutputStream;import java.net.InetAddress;import java.net.Socket;import java.net.URL;import java.uti... 阅读全文
posted @ 2013-04-11 17:30 天纯蓝 阅读(6962) 评论(0) 推荐(0) 编辑
摘要: 工作原理 自动计数(ARC)是一个编译期间工作的能够帮你管理内存的技术。 ARC在编译期间为每个Objective-C指针变量添加合适的retain, release, autorelease等函数,保存每个变量的生存周期控制在合理的范围内,以期实现代码上的自动内存管理。 In order for the compiler to generate correct code, ARC impose... 阅读全文
posted @ 2013-04-09 14:13 天纯蓝 阅读(981) 评论(0) 推荐(0) 编辑
摘要: string t = DateTime.Now.Ticks.ToString(); t = DESKey.DESEncrypt(t, DESKey.DesKeyStr); string[] strid = new string[t.Length];// for (int i = 0; i < t.Lengt... 阅读全文
posted @ 2013-03-07 17:23 天纯蓝 阅读(2788) 评论(0) 推荐(0) 编辑
摘要: 1、腾出二驱动 2、将DMG文件写入7GB分区内 替换7G安装文件OSInstall,OSInstall.mpkg OSInstall文件放到目录: /System/Library/PrivateFrameworks/Install.framework/Frameworks/OSInstall.framework/Versions/A/ OSInstall.mpkg 文件放目... 阅读全文
posted @ 2013-02-25 16:05 天纯蓝 阅读(1214) 评论(0) 推荐(0) 编辑
摘要: create or replace function FUN_GET_CUSTOMER_NAME_PERCENT(customerName varchar2,key varchar2) return NUMBER IS percent number;--返回百分数 like_num number;--相似度基数个数 str varchar2(500); len... 阅读全文
posted @ 2013-02-22 14:11 天纯蓝 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 开发环境使用Mac OSX Mountain Lion 10.8 + Xcode 4.5.1,iOS设备需要越狱并从Cydia安装AppSync。Xcode4.5.1的安装破解详细步骤如下: 第一步,创建假证书 打开Finder,左侧边栏里找到Applications,从中找到Utilities工具夹,如图1所示。打开该Utilities工具夹并找到Keychain Access(... 阅读全文
posted @ 2013-02-19 14:57 天纯蓝 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 直接执行下面的SQL语句,: --1.清空日志dump tran dbname with no_log --2.截断事务日志:backup log dbname with no_log --3.收缩数据库文件(如果不压缩,数据库的文件不会减小)dbcc shrinkdatabase(dbname) 执行过后看看日志文件是不是很小了,我一般都只有1M了。 阅读全文
posted @ 2013-02-17 09:16 天纯蓝 阅读(286) 评论(0) 推荐(0) 编辑
摘要: NSString * constr=[NSString stringWithFormat:@"<p id='p_ImgView'><img width='300' src='file:%@' /></p>%@",[[NSBundle mainBundle] pathForResource:@"icon" ofType:@"png"],self.contentStr];[self.webVie... 阅读全文
posted @ 2013-02-06 14:06 天纯蓝 阅读(171) 评论(0) 推荐(0) 编辑
摘要: -(NSString *) getHtmlToText:(NSString*) inputString{ NSString *result=[[NSString alloc] init]; result=inputString; NSRegularExpression *reg=[[[NSRegularExpression alloc] init] autorelease]... 阅读全文
posted @ 2013-02-01 16:40 天纯蓝 阅读(268) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页