使用环境:Dockerversion1.6.1,build97cd0731.下载基础镜像docker pull ubuntu:14.042.运行镜像docker run -t -i ubuntu:14.04 /bin/bash3,安装sshapt-get update -yapt-get inst....
分类:
系统相关 时间:
2015-08-20 12:54:44
阅读次数:
226
本文目录一.打开Xcode,新建Xcode项目二.选择最简单的命令行项目三.输入项目名称,选择Foundation框架进行创建项目四、点击Run,运行项目说明:这个Objective-C专题,是学习iOS开发的前奏,也为了让有面向对象语言开发经验的程序员,能够快速上手Objective-C。如果你还...
分类:
其他好文 时间:
2015-08-20 10:23:12
阅读次数:
175
运行之前还需配置 Run Configuration:
分类:
Web程序 时间:
2015-08-20 01:21:35
阅读次数:
186
1 题目
There are two sorted arrays nums1 and nums2 of size m and
n respectively. Find themedian of the two sorted arrays. The overall run time complexity should beO(log (m+n)).
2 分析
若m+n为奇数则中位数(med...
分类:
编程语言 时间:
2015-08-19 20:29:16
阅读次数:
169
Person.h#import @interface Person : NSObject-(void)eat;@end//2.第二种方法//分类的声明//创建分类@interface ()@interface Person (MyCategory)-(void)run;@endPerson.m#i....
分类:
移动开发 时间:
2015-08-19 20:21:47
阅读次数:
128
原题为: There are two sorted arrays?nums1?and?nums2?of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 好吧,我是普...
分类:
其他好文 时间:
2015-08-19 17:54:35
阅读次数:
119
Java 多线程
在Java中,线程类Thread创建方式有两种:一是继承Thread类,重写run方法;二是,实现Runnable接口。大多数情况下,推荐使用第二种方式,实现runnable接口,这样可以很好的将任务与执行单元分离,更加突出面向对象的思想。
在JDK1.5之前,线程间互斥主依靠内置锁(监视器),而线程间通信则采用Object实例的wait,notify等方法。在JDK1.5之...
分类:
编程语言 时间:
2015-08-19 16:51:23
阅读次数:
141
网络线程NetWorkDispather 的run 方法里有一行代码:NetworkResponse networkResponse = mNetwork.performRequest(request);意思开始请求服务端,直到返回响应,进performRequest方法看看: ??public?Network...
分类:
其他好文 时间:
2015-08-19 13:46:20
阅读次数:
607
对于异步操作的原理我就不讲了,在这我着重讲怎么使用异步操作的doinbackground onProgressUpdate onCancelled onPostExecute这四个方法doinbackground 我的理解效果相当于Thread里面的run,这样理解就容易多了,因为大家可能对Thread都很熟悉,你可以把你想要首先处理的事物放在这里,但是有很多人就会在这里更新ui操作,这是不可以的...
分类:
其他好文 时间:
2015-08-19 09:28:52
阅读次数:
134
我运行cocos run的时候提示:jni/../../Classes/AppDelegate.cpp:67: error: undefined reference to 'GameMain::c
reateScene()', 最后出现错误提示:Ndk build failed!,其中GameMain是我自己写的代码,。
后来找到了原因,有两种解决办法:
第一种方法:在\pr...
分类:
其他好文 时间:
2015-08-19 00:41:28
阅读次数:
156