自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (33)
  • 收藏
  • 关注

翻译 关于 Objective-C iVar 的一点说明

Class A:@interface ClassA : NSObject{}@property(nonatomic, retain) Foo* foo;@endClass B:@interface ClassB : NSObject{ Foo* foo;}@property(nonatomic, retain) Foo* foo;@end上面两个类

2012-08-30 12:12:15 3287

原创 lua 1.0 源代码的类图

如果读最新版的代码有问题,可以选一个早期的代码读读。另外,一开始不要淹没在细节中,可以从类图上鸟瞰下实现。类图的PDF文件:http://files.cnblogs.com/Proteas/lua-1-uml.pdf类图如下:

2012-08-29 11:09:57 1858 2

原创 iOS 中的单元测试与持续集成

Unit Test 工具1、OCUnit:从 xcode 2.1 开始集成到开发环境中,使用方便,不需要引入额外的库。并可以配置 xcodebuild,实现在命令行测试,从而在 CI 中进行测试与报告。2、GTM 的单元测试部分:对 OCUnit 进行了扩展,增加了一些宏。地址:https://code.google.com/p/google-toolbox-for-mac/wik

2012-08-21 16:41:01 1460

原创 在 iOS 或者 Mac OS X 中将 NSDictionary 映射为本地对象的方法

在进行 iOS 时一般会遇到从网络上获取 JSON 格式数据的情况,现在有很多框架可以将 JSON 格式的字符串解析成 NSDictionary。但是解析成 NSDictionary 后就直接使用吗?每次读取值,都要知道类型;都要用 objectForKey? 这样我们用起来也太麻烦了。这时我们一般会定义一些业务数据的本地对象封装,我们从这些业务对象中读取需要的值,就方便多

2012-08-09 15:05:58 1248

原创 iOS 中 Lua 脚本的应用

1、为什么要在应用中引入脚本?2、为什么是 Lua ?3、使用 Lua 开发应用的几种模式4、Hello Lua5、Meta-*: Lua 与 Objective-C 集成的原理6、wax 框架及其本身的一些问题7、Demos8、其它9、目前没有解决的问题PDF:http://files.cnblogs.com/Proteas/iOS%E4%B8%ADL

2012-08-02 11:25:42 1144

原创 常用缓存算法收集

1、Belady's algorithms2、random replacement3、first in first out4、least frequent used (LFU)5、simple time-based6、least recently used (LRU)7、adaptive replacement cache (ACR)先记录下来,随后展开了解下。

2012-08-02 11:25:18 736

原创 在 Objective-C 中对 Block 应用 property 时的注意事项

应当使用:@property (nonatomic, copy)今天在这个问题上犯错误了,找了好久才知道原因。另外,简单的进行反汇编看了下,Block 被存储在静态变量区,运行时构造出一个运行栈,进行调用。retain 并不会改变 Block 的引用计数,因此对 Block 应用 retain 相当于 assign。但是既然在静态存储区,为什么会出现 EXC_BAD_ACC

2012-08-02 11:24:55 2016

原创 2D & 3D Engine Resource

http://isgl3d.com/downloadhttp://maniacdev.com/2009/08/the-open-source-iphone-game-engine-comparison/http://maniacdev.com/2011/01/open-source-and-commercial-ios-game-engine-listings-updated/http

2012-08-02 11:24:33 729

原创 关于为什么要使用脚本引擎与脚本的一点思考

目前在做 iOS 应用开发,并在应用中使用了 Lua 脚本引擎。但是有的同事不理解为什么要引入脚本。在应用中引入脚本主要有下面两个原因:1、脚本的表达能力比原生语言强:      这个道理比较简单,比如:一个冒泡排序,用C来实现比用汇编实现,代码行数要少。      这样,用脚本就可以更简练得处理程序中易变部分。2、脚本语言本身的扩展能力强:      这个能力可以以

2012-08-02 11:24:06 726

原创 iOS 应用的签名分两步

第一步:生成 .app 时,只是对代码进行签名,资源会做拷贝输出。这时可以自己写脚本将相关资源拷贝到 .app 的目录,因为利用 xcode 的资源输出,有目录的限制。第二步:将 .app 生成 .ipa 时,会对资源进行签名。

2012-08-02 11:23:21 1180

原创 处理 NSOpertion 间依赖关系的一种方式

我们知道 NSOperationQueue 可以调度 NSOpertion 间的依赖,虽然可以为 NSOperation 增加 Depends,但是框架并没有提供方法,让你可以直接判断依赖关系是否成立。框架这么设计主要是考虑通用性,Operation 执行的成功与否是业务相关的。但是在实际应用中,只有 Opration 依赖的所有操作都执行成功了,当前的 Operati

2012-08-02 11:22:54 708

转载 Understanding the Objective-C Runtime

The Objective-C Runtime is one of the overlooked features of Objective-C initially when people are generally introduced to Cocoa/Objective-C. The reason for this is that while Objective-C (the langu

2012-08-02 11:22:32 1134

转载 Inside the Objective-C Runtime

Inside the Objective-C Runtimeby Ezra Epstein05/24/2002 IntroductionOnce upon a time dynamism in languages (especially OO languages) was a point of debate. Essentially dynamism won: Java added

2012-08-02 11:22:06 1308

原创 关于批量化生产 iOS 应用的一点想法

目标:通过代码,编译,打包生成 IPA 后,然后通过修改 IPA,再签名,打包生成更多的 IPA。前提:iOS 应用程序是可配置的,不管是通过配置文件,还是暴露出来的 SDK(比如:以Lua 方式向外暴露)。相关工具与资料:https://code.google.com/p/iresign/http://www.ketzler.de/2011/01/resign-an-iphone

2012-08-02 11:21:41 1105

原创 在 iOS 应用中使用 Lua 作为模块粘合剂的方法

iOS 中应用的变化主要集中在三个方面:界面,业务逻辑,数据源。下面是自己做的一个技术实验,可以用来处理业务逻辑的变化。大概说一下,具体见代码。使用Lua作为类的粘合剂,主要应用在什么场景呢?比如:点击一个按钮后,程序跳转到什么类或者控制器。思路:向 Lua 提供完备的信息,通过在 Lua 中的配置,实现业务逻辑的整合。推理下去,用 ObjC 代码写模块,模块间的粘合用 Lua

2012-08-02 11:21:07 1013

转载 iOS 应用中对视频进行抽帧的方法

You can do this in one of two ways. The first way is to use the MPMoviePlayerController to grab the thumbnail:MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc]

2012-08-02 11:20:40 3586

原创 安装 Mac OS X 时不要使用大小写敏感的日志文件系统

安装 Mac OS X 时不要使用大小写敏感的日志文件系统,因为这样子很多历史比较久的软件都用不了,比如:Adobe 系列的软件。原因是:早期的 Mac 文件系统并不是大小写敏感的。今天被这个问题折腾惨了。如果已经错了,可以使用 iPartition 处理这个问题。

2012-08-02 11:19:29 3241

原创 在 iOS 应用中直接跳转到 AppStore 的方法

找到应用程序的描述链接,比如:http://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8然后将 http:// 替换为 itms:// 或者 itms-apps://: itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8 itms-apps

2012-08-02 11:19:07 1840

原创 iOS 下取消 OAuth 绑定的问题

最近遇到一个问题:在一次程序运行期间,无法取消新浪微博的绑定。原因:新浪微博OAuth绑定时使用了 SSO,并且会在此次程序运行期间保留 Cookie,造成无法取消绑定。处理方法:删除 Cookie。

2012-08-02 11:18:43 945

转载 Common Lisp Style Guide

ref:Common Lisp Style Guide - Ariel Networks LabsPackageOne package per one fileStrangely enough, in case of legacy CL programs, their packages are declared in one file (maybe named "pac

2012-08-02 11:18:22 765

原创 Slime 无法无法加载 asdf 的解决办法

环境:      OS:Ubuntu-v11.10 x64      Emacs: 23.3.1使用 apt 安装了 sbcl 与 slime,但是启动时会出现:     "/usr/share/common-lisp/source/slime/swank-loader.lisp" there is no package with name "ASDF"解决这个问题可以通过安装

2012-08-02 11:17:48 774

翻译 在 Mac OS X 下编译 Objective-C 运行时

原文地址:http://www.mulle-kybernetik.com/weblog/2011/10/how_to_build_libobjc_for_os_x.htmlMax OS X 版本:10.6.8待编译运行时版本:437.3刚刚自己试了一下,可以编译。另:文章中提到头文件的包含路径为绝对路径,这样不好,可以改为相对路径,比如:以 $(SRCROOT) 为参考。附

2012-08-02 11:17:14 1296

原创 iOS 下一维码与二维码识别相关资料

一维码:barcode二维码:two-dimensional barcode在 iOS 下主要有两个开源库可以用来处理条码:1、Zxing:http://code.google.com/p/zxing2、ZBar:http://zbar.sourceforge.net/两个库都有相应的 demo 程序。其中,zxing 对 Android 支持更好。

2012-08-01 13:20:42 2161

原创 Classic C and C++ Book List

C:1. The C Programming Language (Second edition) - Brian W. Kernighan and Dennis M. Ritchie2. C: A Reference Manual - Samuel P. Harbison and Guy R. Steele3. C Pocket Reference (O'Reilly) - Peter

2012-08-01 13:19:50 1846

原创 在 Windows Server 2008 R2 下用 Visual Studio 2010 编译 Chrome 与 WebKit Chromium Port

Ref: http://www.chromium.org/developers/how-tos/build-instructions-windowsRef:http://trac.webkit.org/wiki/Chromium 环境搭建:1、安装 VS2010 SP1,下载地址:http://go.microsoft.com/fwlink/?LinkId=2107

2012-08-01 13:19:06 1233

Processor Microarchitecture An Implementation Perspective.pdf

Processor Microarchitecture: An Implementation Perspective

2021-04-13

Optimizing Compilers for Modern Architectures

Optimizing Compilers for Modern Architectures

2017-03-07

Data Flow Analysis Theory and Practice

Data flow analysis is used to discover information for a wide variety of useful applications, ranging from compiler optimizations to software engineering and verification. Modern compilers apply it to produce performance-maximizing code, and software engineers use it to re-engineer or reverse engineer programs and verify the integrity of their programs.

2016-11-01

Zero Configuration Networking: The Definitive Guide

It used to be that two laptops, sitting side by side, couldn't communicate with each other; they may as well have been a thousand miles apart. But that was then, before the advent of Zero Configuration Networking technology. This amazing cross-platform open source technology automatically connects electronic devices on a network, allowing them to interoperate seamlessly-without any user configuration. So now you don't have to lift a finger! Needless to say, it has completely changed the way people connect to devices and programs for printing, file sharing, and other activities. Zero Configuration Networking: The Definitive Guide walks you through this groundbreaking network technology, with a complete description of the protocols and ways to implement network-aware applications and devices. Written by two Zero Configuration Networking experts, including one of Apple's own computer scientists, the book covers more than just file sharing and printing. Zero Configuration Networking also enables activities such as music and photo sharing and automatic buddy discovery on Instant Messaging applications. In fact, Zero Configuration Networking can be used for virtually any device that can be controlled by a computer. And this handy guide has the inside scoop on all of its capabilities-and how you can easily apply them in your own environment. For the technically advanced, Zero Configuration Networking: The Definitive Guide examines the three core technologies that make up Zero Configuration Networking: Link-Local Addressing, Multicast DNS, and DNS Service Discovery. It also reviews a series of APIs, including C-API, Java API, CFNetServices, and Cocoa's NSNetServices. Whether you want to understand how iTunes works, or you want to network a series of laptops and other devices at your office for maximum efficiency, you'll find all the answers in this authoritative guide.

2015-11-09

Open Source Fuzzing Tools

Product Details Paperback: 210 pages Publisher: Syngress; 1 edition (December 28, 2007) Language: English ISBN-10: 1597491950 ISBN-13: 978-1597491952 Product Dimensions: 7.5 x 0.5 x 9.2 inches

2015-09-09

MachOView-build-2013-05-22

MachOView 是一个查看 MachO 格式文件信息的开源工具。官方编译的程序在运行时经常会崩溃,这里是个人修改后的程序,目测没遇到崩溃问题。

2013-07-28

Programming with Quartz 2D and PDF Graphics in Mac OS X

Programming with Quartz 2D and PDF Graphics in Mac OS X Written by members of the development team at Apple, Programming with Quartz is the first book to describe the sophisticated graphics system of Mac OS X. By using the methods described in this book, developers will be able to fully exploit the state-of-the-art graphics capabilities of Mac OS X in their applications, whether for Cocoa or Carbon development. This book also serves as an introduction to 2D graphics concepts, including how images are drawn and how color is rendered. It includes guidance for working with PDF documents, drawing bitmap graphics, using Quartz built-in color management, and drawing text. Programming with Quartz is a rich resource for new and experienced Mac OS X developers, Cocoa and Carbon programmers, UNIX developers who are migrating to Mac OS X, and anyone interested in powerful 2D graphics systems. * This is the definitive guide to the revolutionary graphics system of Mac OS X that uses the Portable Document Format (PDF) as the basis of its imaging model. * It contains the latest on programming with Quartz for Mac OS X version 10.4. * Carefully crafted and extensive code examples show how to accomplish most of the drawing tasks possible with Quartz.

2013-01-09

CHM_To_PDF_Converter_Pro_v3.6.2

CHM_To_PDF_Converter_Pro_v3.6.2

2012-11-14

Hack the Stack

Hack the Stack Using Snort and Ethereal to Master the Layers of an Insecure Network

2012-02-03

Protected Mode Software Architecture

Protected Mode Software Architecture

2010-11-02

The Indispensable PC Hardware Book - Third Edition

The Indispensable PC Hardware Book - Third Edition

2010-10-09

ASP.NET MVC 2 in Action 2nd

ASP.NET MVC 2 in Action 2nd,不是最终的版本,是通过作者手稿整理,并且手工添加了索引,便于了解内容的概貌,便于阅读定为。随书源码作者放在了 GitHub 上,可以搜索下载。

2010-06-23

iPhone开发需要看的3本书

iPhone.Development.Guide.pdf iPhone.Human.Interface.Guidelines Learning.iPhone.Programming.Mar.2010 最近在看,收集了下,与大家分享,省的东找西找了.

2010-03-30

个人网站作业 风格3

这是个人收集的个人网站源代码,希望可以帮助需要完成作业的同学,重要的是不要资源分。

2009-06-06

个人网站作业 风格2

这是个人收集的个人网站源代码,希望可以帮助需要完成作业的同学,重要的是不要资源分。

2009-06-06

个人网站作业 风格1

这是个人收集的个人网站源代码,希望可以帮助需要完成作业的同学,重要的是不要资源分。

2009-06-06

MFC应用程序在.NET框架下的扩展

MFC应用程序在.NET框架下的扩展的英文版.

2009-01-14

DOS操作系统源代码

DOS操作系统源代码,希望大家下载.

2007-12-03

BoundsChecker6.5_VC++.part2.rar

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共两部分,这是第二部分.

2007-11-29

BoundsChecker6.5_VC++.part1.rar

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共两部分,这是第一部分.

2007-11-29

BoundsChecker 6.5 VC++ -----------(6)

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共六部分,这是第六部分.

2007-11-29

BoundsChecker 6.5 VC++ -----------(5)

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共六部分,这是第五部分.

2007-11-29

BoundsChecker 6.5 VC++ -----------(4)

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共六部分,这是第四部分.

2007-11-29

BoundsChecker 6.5 VC++ -----------(3)

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共六部分,这是第三部分.

2007-11-29

BoundsChecker 6.5 VC++ -----------(2)

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共六部分,这是第二部分.

2007-11-29

BoundsChecker 6.5 VC++ -----------(1)

BoundsChecker 6.5 VC++,在VC 6.0 +SP6 下可以使用.共六部分,这是第一部分.

2007-11-29

Bounds Checker 6.01 for VC

Bounds Checker 6.01 for VC,可以在vc 6 下使用,欢迎大家下载,这是part3,一共三部分。

2007-10-17

Bounds Checker 6.01 for VC

Bounds Checker 6.01 for VC,可以在vc 6 下使用,欢迎大家下载,这是part2,一共三部分。

2007-10-17

Bounds Checker 6.01 for VC

Bounds Checker 6.01 for VC,可以在vc 6 下使用,欢迎大家下载,这是part1,一共三部分。

2007-10-17

Windows环境下32位汇编语言程序设计源码

Windows环境下32位汇编语言程序设计源码,老罗那本书的。

2007-10-16

COM技术内幕源码(COM技术内幕源码)

COM技术内幕源码,com入门书籍的源代码,希望对大家有帮助。

2007-10-15

InstallShield6简明教程

安装脚本介绍,与工具软件使用与介绍。

2007-10-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除