博客园 - BradyChenuuid:7d267088-5232-4821-9010-8cd5fdd6cd4f;id=10758212015-10-28T09:44:54ZBradyChenhttps://www.cnblogs.com/chen1987lei/feed.cnblogs.comhttps://www.cnblogs.com/chen1987lei/p/4918058.html看上去很美 国内CDN现状与美国对比 - BradyChenCDN的理想与现实多年以前,当《KingdomofHeaven》这部史诗电影发行的时候,中国的影迷使用电驴和BT来寻找种子,而那个时候,高清也才刚刚进入电影领域,我的同事不惜用自家的电脑花费一个星期的时间去下载高清的版本。而现在,中国的影迷在使用迅雷去下载《越狱》,而每一集越狱播出以后,在20小时之...2015-10-28T09:44:00Z2015-10-28T09:44:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】CDN的理想与现实多年以前,当《KingdomofHeaven》这部史诗电影发行的时候,中国的影迷使用电驴和BT来寻找种子,而那个时候,高清也才刚刚进入电影领域,我的同事不惜用自家的电脑花费一个星期的时间去下载高清的版本。而现在,中国的影迷在使用迅雷去下载《越狱》,而每一集越狱播出以后,在20小时之... <a href="https://www.cnblogs.com/chen1987lei/p/4918058.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4917743.html优酷、YouTube、Twitter及JustinTV视频网站架构设计笔记 - BradyChen本文是整理的关于优酷、YouTube、Twitter及JustinTV几个视频网站的架构或笔记,对于不管是视频网站、门户网站或者其它的网站,在架构上都有一定的参考意义,毕竟成功者的背后总有值得学习的地方,虽然有些文章的发表时间有点久了,但是看看对开阔视野还是有帮助的。优酷视频网站架构一、网站基本数据...2015-10-28T08:28:00Z2015-10-28T08:28:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】本文是整理的关于优酷、YouTube、Twitter及JustinTV几个视频网站的架构或笔记,对于不管是视频网站、门户网站或者其它的网站,在架构上都有一定的参考意义,毕竟成功者的背后总有值得学习的地方,虽然有些文章的发表时间有点久了,但是看看对开阔视野还是有帮助的。优酷视频网站架构一、网站基本数据... <a href="https://www.cnblogs.com/chen1987lei/p/4917743.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4898946.htmliOS 企业证书发布app 流程 - BradyChen企业发布app的 过程比app store 发布的简单多了,没那么多的要求,哈但是整个工程的要求还是一样,比如各种像素的icon啊 命名规范啊等等。下面是具体的流程1、修改你的 bundle identifier 为你的企业的app id :2、修改Edit scheme3、修改为 Release4...2015-10-21T12:11:00Z2015-10-21T12:11:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】企业发布app的 过程比app store 发布的简单多了,没那么多的要求,哈但是整个工程的要求还是一样,比如各种像素的icon啊 命名规范啊等等。下面是具体的流程1、修改你的 bundle identifier 为你的企业的app id :2、修改Edit scheme3、修改为 Release4... <a href="https://www.cnblogs.com/chen1987lei/p/4898946.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4868284.html在多线程环境中使用CoreData - BradyChen在多线程环境中使用CoreDataBY子非鱼· 2014 年 10 月 13 日上回书说道,其实CoreData学起来也没有很复杂,我们其实增删改查都和别的ORM大同小异。但是世界总是很复杂的,一根筋的去考虑问题很容易卡到蛋,默认情况下我们的代码都在Main Thread中执行,数据库操作一旦量多了...2015-10-10T12:55:00Z2015-10-10T12:55:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】在多线程环境中使用CoreDataBY子非鱼· 2014 年 10 月 13 日上回书说道,其实CoreData学起来也没有很复杂,我们其实增删改查都和别的ORM大同小异。但是世界总是很复杂的,一根筋的去考虑问题很容易卡到蛋,默认情况下我们的代码都在Main Thread中执行,数据库操作一旦量多了... <a href="https://www.cnblogs.com/chen1987lei/p/4868284.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4868283.htmlcoreData 深入理解4 --总结 (线程安全与同步--iOS5 前后对比) - BradyChenCore Data是iOS中很重要的一个部分,可以理解为基于SQLite(当然也可以是其他的Storage,如In-memory,只是SQLite比较常见)的一个ORM实现,所以有关系数据库的特性,又不用写SQL。顺便吐一下槽,官方说法是使用Core Data能减少50%-70%的代码量,但相信用过...2015-10-10T12:54:00Z2015-10-10T12:54:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】Core Data是iOS中很重要的一个部分,可以理解为基于SQLite(当然也可以是其他的Storage,如In-memory,只是SQLite比较常见)的一个ORM实现,所以有关系数据库的特性,又不用写SQL。顺便吐一下槽,官方说法是使用Core Data能减少50%-70%的代码量,但相信用过... <a href="https://www.cnblogs.com/chen1987lei/p/4868283.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4868173.htmliOS开发中一些常见的并行处理 - BradyChen本文主要探讨一些常用多任务的最佳实践。包括Core Data的多线程访问,UI的并行绘制,异步网络请求以及一些在运行态内存吃紧的情况下处理大文件的方案等。??其实编写异步处理的程序有很多坑!所以,本文所涉及的样例都尽量采用简洁直观的处理方式。因为越是简单的逻辑结构,越能彰显代码的脉络清晰,越易于理解...2015-10-10T12:09:00Z2015-10-10T12:09:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】本文主要探讨一些常用多任务的最佳实践。包括Core Data的多线程访问,UI的并行绘制,异步网络请求以及一些在运行态内存吃紧的情况下处理大文件的方案等。??其实编写异步处理的程序有很多坑!所以,本文所涉及的样例都尽量采用简洁直观的处理方式。因为越是简单的逻辑结构,越能彰显代码的脉络清晰,越易于理解... <a href="https://www.cnblogs.com/chen1987lei/p/4868173.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4867829.htmlIOS 开发之 Method Swizzling + Category - BradyChenios 分类中如果增加的方法与被扩展的类方法名重复,则原方法就没法被调用….看以下例子例如:@interface ClassA : NSObject- (NSString *) myMethod;@end@implementation ClassA- (NSString*) myMethod {re...2015-10-10T09:53:00Z2015-10-10T09:53:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】ios 分类中如果增加的方法与被扩展的类方法名重复,则原方法就没法被调用….看以下例子例如:@interface ClassA : NSObject- (NSString *) myMethod;@end@implementation ClassA- (NSString*) myMethod {re... <a href="https://www.cnblogs.com/chen1987lei/p/4867829.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4861097.htmlios 关于文件操作 获取 文件大小 - BradyChen分类:Apple IPhone2012-06-28 11:314664人阅读评论(0)收藏举报ios语言manager测试cc语言实现#include"sys/stat.h"-(longlong)fileSizeAtPath:(NSString*)filePath{structstatst;if(l...2015-10-08T07:02:00Z2015-10-08T07:02:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】分类:Apple IPhone2012-06-28 11:314664人阅读评论(0)收藏举报ios语言manager测试cc语言实现#include"sys/stat.h"-(longlong)fileSizeAtPath:(NSString*)filePath{structstatst;if(l... <a href="https://www.cnblogs.com/chen1987lei/p/4861097.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4861061.htmliOS SDK Release Notes for iOS 9 iOS9 SDK 版本更新说明 - BradyChenImportant:This is a preliminary document for an API or technology in development. Apple is supplying this information to help you plan for the adoptio...2015-10-08T06:51:00Z2015-10-08T06:51:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】Important:This is a preliminary document for an API or technology in development. Apple is supplying this information to help you plan for the adoptio... <a href="https://www.cnblogs.com/chen1987lei/p/4861061.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4861055.htmlWhat's New in iOS9 iOS9功能改进 - BradyChenWhat's New in iOS9This article summarizes the key developer-related features introduced in iOS 9, which runs on currently shipping iOS devices. The ar...2015-10-08T06:50:00Z2015-10-08T06:50:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】What's New in iOS9This article summarizes the key developer-related features introduced in iOS 9, which runs on currently shipping iOS devices. The ar... <a href="https://www.cnblogs.com/chen1987lei/p/4861055.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4861049.htmliOS9 Https技术预研 - BradyChen一、服务器需要做的事情:1、要注意 App Transport Security 要求 TLS 1.2,2、而且它要求站点使用支持forward secrecy协议的密码。3、证书也要求是符合ATS规格的,ATS只信任知名CA颁发的证书,小公司所使用的 self signed certificate...2015-10-08T06:49:00Z2015-10-08T06:49:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】一、服务器需要做的事情:1、要注意 App Transport Security 要求 TLS 1.2,2、而且它要求站点使用支持forward secrecy协议的密码。3、证书也要求是符合ATS规格的,ATS只信任知名CA颁发的证书,小公司所使用的 self signed certificate... <a href="https://www.cnblogs.com/chen1987lei/p/4861049.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4240001.htmlTweak和app交互方案【进程通信】 - BradyChenCore Foundation DEMO:Tweak端: CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, &Notificati...2015-01-21T12:36:00Z2015-01-21T12:36:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】Core Foundation DEMO:Tweak端: CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, &Notificati... <a href="https://www.cnblogs.com/chen1987lei/p/4240001.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4239934.htmliOS设备抓包终极解决方案(支持https) - BradyChenhttp://bbs.chinapyg.com/forum.php?mod=viewthread&tid=74423&extra=page%3D1%26filter%3Dtypeid%26typeid%3D358材料:越狱设备一台sslkillswitch插件Fiddler2--->www.fidd...2015-01-21T12:02:00Z2015-01-21T12:02:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】http://bbs.chinapyg.com/forum.php?mod=viewthread&tid=74423&extra=page%3D1%26filter%3Dtypeid%26typeid%3D358材料:越狱设备一台sslkillswitch插件Fiddler2--->www.fidd... <a href="https://www.cnblogs.com/chen1987lei/p/4239934.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4239901.htmlAnti-Anti dylib(反 反-dylib钩子(Anti-tweak)) - BradyChen版主提供了 anti dylib 的文章,http://bbs.chinapyg.com/thread-76158-1-1.html原理很简单,看下面源代码即可~ 在Build Settings中找到“Other Linker Flags”在其中加上-Wl,-sectcreate,__REST...2015-01-21T11:50:00Z2015-01-21T11:50:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】版主提供了 anti dylib 的文章,http://bbs.chinapyg.com/thread-76158-1-1.html原理很简单,看下面源代码即可~ 在Build Settings中找到“Other Linker Flags”在其中加上-Wl,-sectcreate,__REST... <a href="https://www.cnblogs.com/chen1987lei/p/4239901.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4239666.htmlHook ptrace 调试加入了ptrace函数的程序 - BradyChenHook ptrace 调试加入了ptrace函数的程序#import #if !defined(PT_DENY_ATTACH)#define PT_DENY_ATTACH 31#endifstatic int (*_ptraceHook)(int request, pid_t pid, caddr...2015-01-21T10:00:00Z2015-01-21T10:00:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】Hook ptrace 调试加入了ptrace函数的程序#import #if !defined(PT_DENY_ATTACH)#define PT_DENY_ATTACH 31#endifstatic int (*_ptraceHook)(int request, pid_t pid, caddr... <a href="https://www.cnblogs.com/chen1987lei/p/4239666.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4239639.htmlHow do I determine if I'm being run under the debugger? - BradyChen#include #include #include #include #include static bool AmIBeingDebugged(void) // Returns true if the current process is being debugged (either ...2015-01-21T09:53:00Z2015-01-21T09:53:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】#include #include #include #include #include static bool AmIBeingDebugged(void) // Returns true if the current process is being debugged (either ... <a href="https://www.cnblogs.com/chen1987lei/p/4239639.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4239624.html个人整理的一些iOS Entitlements - BradyChen收集了不少Entitlement,当然也肯定有遗漏。有的就是key的字面意思,就不多做解释。不过有的虽然字面意思好理解,不过具体的用处不太清楚,就写的Unknown use。在替换entitlement的时候,只换上自己所需要的权限就行。原文在此。CanInheritApplicationState...2015-01-21T09:48:00Z2015-01-21T09:48:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】收集了不少Entitlement,当然也肯定有遗漏。有的就是key的字面意思,就不多做解释。不过有的虽然字面意思好理解,不过具体的用处不太清楚,就写的Unknown use。在替换entitlement的时候,只换上自己所需要的权限就行。原文在此。CanInheritApplicationState... <a href="https://www.cnblogs.com/chen1987lei/p/4239624.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4239602.htmlIOS Application Security Testing Cheat Sheet - BradyChenIOS Application Security Testing Cheat Sheet[hide]1DRAFT CHEAT SHEET - WORK IN PROGRESS2Introduction3Information gathering4Application traffic analysi...2015-01-21T09:43:00Z2015-01-21T09:43:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】IOS Application Security Testing Cheat Sheet[hide]1DRAFT CHEAT SHEET - WORK IN PROGRESS2Introduction3Information gathering4Application traffic analysi... <a href="https://www.cnblogs.com/chen1987lei/p/4239602.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/4027387.htmlSQLite在多线程环境下的应用 - BradyChen这几天研究了一下SQLite这个嵌入式数据库在多线程环境下的应用,感觉里面的学问还挺多,于是就在此分享一下。AD:2014WOT全球软件技术峰会北京站 课程视频发布先说下初衷吧,实际上我经常看到有人抱怨SQLite不支持多线程。而在iOS开发时,为了不阻塞主线程,数据库访问必须移到子线程中。为了解决...2014-10-15T13:24:00Z2014-10-15T13:24:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】这几天研究了一下SQLite这个嵌入式数据库在多线程环境下的应用,感觉里面的学问还挺多,于是就在此分享一下。AD:2014WOT全球软件技术峰会北京站 课程视频发布先说下初衷吧,实际上我经常看到有人抱怨SQLite不支持多线程。而在iOS开发时,为了不阻塞主线程,数据库访问必须移到子线程中。为了解决... <a href="https://www.cnblogs.com/chen1987lei/p/4027387.html" target="_blank">阅读全文</a>https://www.cnblogs.com/chen1987lei/p/3829431.html别的程序员是怎么读你的简历的 - BradyChen下面这个图片来源国外,是一个关于程序员面试时的简历,被人事部门和程序员本身评审的角度不同的图片。当然,这是一个从国外面试的视角制作的图片,不过,可以看出,其中很多东西都是和国内是相同的。让我们通过这个图片也来了解一下自身吧。下面是我对其做的翻译,翻译水平有限,请大家指正。人事部门是这样阅读简历的(+...2014-07-07T04:32:00Z2014-07-07T04:32:00ZBradyChenhttps://www.cnblogs.com/chen1987lei/【摘要】下面这个图片来源国外,是一个关于程序员面试时的简历,被人事部门和程序员本身评审的角度不同的图片。当然,这是一个从国外面试的视角制作的图片,不过,可以看出,其中很多东西都是和国内是相同的。让我们通过这个图片也来了解一下自身吧。下面是我对其做的翻译,翻译水平有限,请大家指正。人事部门是这样阅读简历的(+... <a href="https://www.cnblogs.com/chen1987lei/p/3829431.html" target="_blank">阅读全文</a>