Operation Queuesoperation object是 NSOperation class实例用来封装想要执行的任务。nsoperation class是抽象类必须子类化。Creating an NSInvocationOperation Object
分类:
移动开发 时间:
2014-09-22 19:34:53
阅读次数:
159
下面是一些在使用过程中经常遇到的问题和一些建议(持续更新):
1、尽量在开启一个容器的时候就规划好容器的名字、硬盘容量大小(使用-v 将宿主主机硬盘映射到容器中)、端口映射等,因为在使用过程中再调整这些参数在目前的docker版本中非常麻烦。设定好参数后,每次就可以根据docker start/stop + 容器名字来启动和关闭容器了,也方便写启动和停止脚本。...
分类:
其他好文 时间:
2014-09-22 14:07:32
阅读次数:
169
In the last blog, there are three query condition to be described. In the blog, we wil...
分类:
数据库 时间:
2014-09-22 03:37:02
阅读次数:
255
In the last blog, we talked about the basic operation of MongoDB, including insert, query, remove and update. Now in this blog, we will further hava a good understanding of querying operation.
At f...
分类:
数据库 时间:
2014-09-22 01:35:41
阅读次数:
233
1, Insert
MongoDB is database storing document object, the type of which is called Bson.(like JSON);
Example: // document defination
Now after using command[db.posts.insert(doc)], you will...
分类:
数据库 时间:
2014-09-21 01:19:39
阅读次数:
380
一、key与primary key区别CREATE TABLE wh_logrecord (logrecord_id int(11) NOT NULL auto_increment,user_name varchar(100) default NULL,operation_time datetime...
分类:
数据库 时间:
2014-09-21 00:08:09
阅读次数:
311
以下内容均出自Vagrant作者(MitchellHashimoto)与Docker作者(Solomon Hykes)在stackoverflow上面一个问题讨论。在这个问题中,双方阐述了vagrant和docker的特点和使用范围,对于深入理解vagrant和docker很有意义,因此笔者翻译.....
分类:
其他好文 时间:
2014-09-20 13:56:37
阅读次数:
245
摘自https://major.io/2014/05/13/coreos-vs-project-atomic-a-review/。
【部署】
coreOS:
通过云上的镜像或者PXE部署。在云上可以使用cloud-config进行配置。
提供了etcd这个key-value系统,提供类似于zookeeper的能力。而且可以用于放置node信息。
提供fleet进行docker容器生命...
分类:
其他好文 时间:
2014-09-19 22:35:26
阅读次数:
321
今天同事跟我说,他之前在mysql上建的视图没办法更改,更改的时候报如下错误:SQLError1227:Accessdenied;youneedtheSUPERprivilegeforthisoperation起初,我以为是权限的问题,查了半天,权限明明是有的,新增了如下两条授权条件,还是不行:grant操作MySQL视图、查看视图源代..
分类:
数据库 时间:
2014-09-19 19:33:26
阅读次数:
295
官方已经提供了很多版本的 Linux 镜像,直接从官方仓库(Public Repositories)下载就可以了。如果考虑到安全性和速度,我们可能会想在自己局域网里架设一个私有仓库(Private Repositories)来放我们自己的镜像,Docker-Registry正是我们需要的工具。git...
分类:
其他好文 时间:
2014-09-19 19:09:55
阅读次数:
264