翻译自:http://www.sebastien-han.fr/blog/2014/01/27/access-a-container-without-ssh/
先运行一个简单的memcache容器:
$
sudo docker run -d -p 11211 bacongobbler/memcached memcached
/usr/bin/memcached -m 64 -p 112...
分类:
其他好文 时间:
2014-09-15 16:02:19
阅读次数:
182
题目: There are two sorted arrays A and B of size m and n respectively.Find the Median of two sorted arrays.The overall run time complexity should be O(...
分类:
其他好文 时间:
2014-09-15 14:19:58
阅读次数:
170
from:www.penlug.org/twiki/bin/view/Main/TightVNCUsing VNCThe toolvncserverallows you to run additional X servers on a single machine. These X servers ...
分类:
其他好文 时间:
2014-09-15 12:35:18
阅读次数:
762
HowtoBuildanAndroidProjectwithEclipse前面介绍过ubuntu下安装cocos2d-x,请确保正确安装。英文链接:https://github.com/chukong/cocos-docs/blob/master/manual/framework/native/v3/getting-started/how-to-run-cpp-tests-on-android/en.md简单说明:1、下载Cocos2D-X2、下..
分类:
移动开发 时间:
2014-09-15 11:27:58
阅读次数:
323
一、前言
java.lang.Thread类是java的线程类。当生成一个Thread类的对象后,一个新的线程就产生了。Java中每一个线程都是通过某个特定的Thread对象的方法run()来完成其操作的,方法run()称为线程体。
下面简单介绍Thread类的几种构造方法:
public Thread()
public Thread(Runnable target)
public Thre...
分类:
编程语言 时间:
2014-09-14 22:10:37
阅读次数:
376
1. #apt-get install python-pip #pip install?? flask vi?? run.py from?flask?import?Flask
app?=?Flask(__name__)
@app.route(‘/‘)
def?hello_world():
????return?‘Hello?World!‘if?__name_...
分类:
其他好文 时间:
2014-09-14 16:46:57
阅读次数:
169
public static void main(String[] args) {
final LeftRightDeadLock lock = new LeftRightDeadLock();
new Thread(){
@Override
public void run() {
lock.leftRight();
}
}.start();
new ...
分类:
编程语言 时间:
2014-09-14 15:25:01
阅读次数:
177
Failed to get the adb version: Cannot run program "/home/jayhomzhou/android/android-sdk/platform-tools/adb": error=2, 没有那个文件或目录64位系统,Ubuntu11.04,搭建JDK...
分类:
移动开发 时间:
2014-09-14 13:59:27
阅读次数:
197
1.简单:相对c/c++ 底层的工作省去了(垃圾回收,空间分配)。2.跨平台(源码)可移植:Write Once,Run Anywhere。 C++ 源码---目标(机器码)---exe可执行文件 Java 源码---字节码(平台无关 结构中立class,字节码传播更安全...
分类:
编程语言 时间:
2014-09-13 09:21:44
阅读次数:
355
工厂模式:public interface Cookie { public abstract void run ();}public abstract class CookieFactory { abstract Cookie create();}public class Bea...
分类:
编程语言 时间:
2014-09-12 23:21:34
阅读次数:
198