上一页 1 ··· 5 6 7 8 9 10 下一页

Machine Learning

摘要: A computer program is said to learn from experience E with respect to some task T and some performance measure P,if its performance on T, as measured by P, improves with experience E. 阅读全文
posted @ 2012-04-24 20:29 grep 阅读(168) 评论(0) 推荐(0) 编辑

Core Data

摘要: ctrl-drag to create relationship between entities.key-value coding is implemented in cocoa's foundation framework as an "informal protocol". An informal protocol is a category, that adds methods to the NSObject base class so that all objects can be safely assumed to implement the metho 阅读全文
posted @ 2012-04-22 20:41 grep 阅读(152) 评论(0) 推荐(0) 编辑

View

摘要: A view(UIView subclass) represents a rectangular area.a view has only one superview - (UIView *) superview;But can have many(or zero) subviews -(NSArray *) subviews;subview order matters.UIWindowthe UIView at the top of the view hierarchy.Only have one UIWindow in an iOS application.It is all about 阅读全文
posted @ 2012-04-22 10:29 grep 阅读(540) 评论(0) 推荐(0) 编辑

objective-c

摘要: why propertiesinstance variablesit is not required to have an instance variable backing up a @property(just skip @synthesize).some @property might be calculated(usually readonly) rather than stored.Note:Historically, the interface required declarations of a class’sinstance variables, the data struct 阅读全文
posted @ 2012-04-21 18:17 grep 阅读(326) 评论(0) 推荐(0) 编辑

my iphone apps

摘要: ctrl-drag objects into your view to code in your controller(outlets and actions)option click to get help in your code.@interface .h@implementation .madd a private @interface to .mpointers to an object, type id or a static type(eg UIButton *)invoke a method, using square bracket [] notationdot notati 阅读全文
posted @ 2012-04-21 11:59 grep 阅读(199) 评论(0) 推荐(0) 编辑

Dymanic programming

摘要: Local vs Global considerationWe are able to make local observations and choices, but it is hard to see the global consequences.Sometimes a local initial sacrifice can globally lead to a better overall solution.recursive backtracking always has the basic structure as 8-queen problemOptimal substructu 阅读全文
posted @ 2012-04-19 23:29 grep 阅读(171) 评论(0) 推荐(0) 编辑

c lang codesnippets

摘要: strcpy#include <stdio.h>#include <stdlib.h>#include <string.h> int main (){ char base_str[]="Erik was here."; // Add the + 1 for the null terminator '\0' char *cpy_str = (char *)malloc(strlen(base_str) + 1 * sizeof(char)); if(cpy_str == NULL){ fprintf(stderr, &quo 阅读全文
posted @ 2012-03-30 16:39 grep 阅读(201) 评论(0) 推荐(0) 编辑

Anatomy of Sync

摘要: The purpose of most (if not all) synchronizers is to guard some area of the code (critical section) from concurrent access by threads. To do this the following parts are often needed in a synchronizer:StateAccess ControlState changesNotification strategyStatepublic class Lock{ //state is kept here . 阅读全文
posted @ 2012-03-27 10:32 grep 阅读(194) 评论(0) 推荐(0) 编辑

Java Concurrency reloaded

摘要: Informally, an object's state is its data, stored in state variables such as instance or static fields.By shared, we mean that a variable could be accessed by multiple threads;By mutable, we mean that its value could change during its lifetime.If multiple threads access the same mutable state va 阅读全文
posted @ 2012-03-26 11:02 grep 阅读(235) 评论(0) 推荐(0) 编辑

GC Process with reference

摘要: 1. Start at a root.2. Trace and mark strongly-referenced objects.3. Optionally clear soft references.4. Trace and mark softly-referenced objects.5. Clear weak references.6. Enqueue finalizable objects.7. Repeat steps 1 through 5 for the queue.8. Possibly enqueue phantom references.9. The remaining o 阅读全文
posted @ 2012-03-23 10:04 grep 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页