body { background-color: #F2F2F2; text-align: center;}.container { position: relative; width: 500px; height: 500px; margin: 0 auto;}...
分类:
Web程序 时间:
2015-02-06 00:42:27
阅读次数:
188
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-02-05 21:41:14
阅读次数:
160
官方文档对‘overflow’属性的描述:This property specifies whether content of a block container element is clipped when it overflows the element’s box. It affects t...
分类:
其他好文 时间:
2015-02-05 17:57:44
阅读次数:
111
Go语言的OOP,接口,接口的组合,基础库的函数及接口如何抽象设计,
这些东西在Go的Heap源码及演示例子处理中,都有很好的展示.
在"container/heap"中,它的接口是如下定义的:
type Interface interface {
sort.Interface
Push(x interface{}) // add x as element Len()
Pop() interface{} // remove and return eleme...
分类:
编程语言 时间:
2015-02-05 16:22:40
阅读次数:
262
题目描述:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ...
分类:
其他好文 时间:
2015-02-05 10:56:24
阅读次数:
173
privileged参数
$ docker help run
...
--privileged=false Give extended privileges to this container
...
大约在0.6版,privileged被引入docker。使用该参数,container内的root拥有真正的root权限。否则,container内的root只是外部的一个普通用户...
分类:
其他好文 时间:
2015-02-04 23:26:31
阅读次数:
253
HTML5 canvas 做画板画图 可以做电子白板
HTML5 canvas 做画板画图 可以做电子白板
<!--
#container { position: relative;}
#imageView { border: 1px solid #000; }
...
分类:
Web程序 时间:
2015-02-04 21:57:20
阅读次数:
317
目前docker主要应用于单机环境,使用网桥模式,但如果想把多台主机网络互相,让多台主机内部的container互相通信,就得使用其他的软件来帮忙,可以使用Weave、Kubernetes、Flannel、SocketPlane或者openvswitch等,我这里就使用openvswitch来介绍docker多台主机网络互通。先看..
分类:
其他好文 时间:
2015-02-04 16:54:06
阅读次数:
359
add by zhj: 可以简单的认为docker是对LXC(Linux Container)封装,它提供一种比LXC高级的API。Docker使用Go语言开发,利用了Linux提供的LXC,AUFS,namespace和cgroup技术。实现了文件系统,资源和网络的隔离,最终目标是实现类似PaaS...
分类:
其他好文 时间:
2015-02-04 02:01:42
阅读次数:
280
首先,新建一个继承了fragment类的类,在oncreateview方法中,使用方法的参数inflater,用其inflater.inflate(R.layout.fragment1,container,false);来新建一个view并在此方法中返回该VIEW,这就是我们的fragment的界面...
分类:
其他好文 时间:
2015-02-03 22:37:10
阅读次数:
156