官方地址:http://dojotoolkit.org/reference-guide/1.10/dojo/_base/lang.html#dojo-base-lang应用加载声明:require(["dojo/_base/lang"], function(lang){ // lang now c....
分类:
其他好文 时间:
2014-07-09 22:09:00
阅读次数:
431
官方地址:http://dojotoolkit.org/reference-guide/1.10/dojo/json.html#dojo-jsonrequire(["dojo/json", "dojo/dom", "dojo/on", "dojo/domReady!"],function(JSON,...
分类:
Web程序 时间:
2014-07-09 21:51:12
阅读次数:
276
typedef void (^dd)(void);@property (strong) dd a ;@property (copy) dd a ;__weak id b=self; self.a=^{ NSLog(@"%@",self); };编译器都会有警告:循环引用造成的内存泄露---...
分类:
其他好文 时间:
2014-07-07 09:17:36
阅读次数:
221
前言 前两天学习了weak_ptr以后还是不甚明了,一则需要实际应用去锤炼,二来就是不懂观察者模式。 正文 观察者模式又叫发布-订阅模式,定义了一种一对多的依赖关系,让多个观察者对象同时监听某一主题对象,这个主题对象在状态发生改变时,会通知所有的观察者对象,使他们能够自动更新自己。通过一张visi....
分类:
编程语言 时间:
2014-07-06 20:37:57
阅读次数:
260
本文摘自:http://adamcavendish.is-programmer.com/posts/38190.htm 引言众所周知,C++11 的新特性中有一个非常重要的特性,那就是 rvalue reference ,右值引用。 引入它的一个非常重要的原因是因为在 C++ 中,常常右值,通俗地讲...
分类:
编程语言 时间:
2014-07-06 16:12:12
阅读次数:
293
一、智能指针
tr1::shared_ptr和tr1::weak_ptr。前者的作用有如内置指针,但会记录有多少个tr::shared_ptrs共同指向同一个对象,这便是所谓的引用计数。一旦最后一个这样的指针被销毁,也就是一旦某一个对象的引用计数为0,这个对象会被自动删除。这在非环形数据结构中防止资源泄露很有帮助,但如果两个或多个对象内含tr1::shared_ptrs并形成环状,...
分类:
其他好文 时间:
2014-07-06 11:43:58
阅读次数:
186
错误:Error msg: A reference was created to embedded interop assembly. because of an indirect reference to that assembly created by assembly. Consider ch...
分类:
其他好文 时间:
2014-07-05 21:05:45
阅读次数:
1107
一.apk之间共享Class
在eclipse中的一个androoid工程想要使用另外一个工程的class,可以在工程的project.properties文件中添加:
android.library.reference.1= project path
reference.1 表示library的序号,有多个的话依次增加,
project path 代表目标工程的路径,可以是绝对路径或者相对路径...
分类:
移动开发 时间:
2014-07-05 10:52:21
阅读次数:
184
使用原生态的api上传文件的实现:
#import "MainViewController.h"
@interface MainViewController ()
@property (weak, nonatomic) UIImageView *imageView;
@end
@implementation MainViewController
- (void)viewDidLoad
{...
分类:
移动开发 时间:
2014-07-03 17:11:43
阅读次数:
279
一、Solr学习相关资料
1、官方材料
(1)快速入门:http://lucene.apache.org/solr/4_9_0/tutorial.html,以自带的example项目快速介绍发Solr的基础使用。
(2)API:http://lucene.apache.org/solr/4_9_0/index.html
(3)reference:PDF格式,apache-solr-ref-...
分类:
其他好文 时间:
2014-07-03 16:56:58
阅读次数:
245