目录[-]原料前提条件安装 Docker做法下载镜像启动容器安装相关软件安装 JDK安装 Tomcat设置环境变量编写运行脚本退出容器创建 Java Web 镜像启动 Java Web 容器品尝总结Docker 是 2014 年最为火爆的技术之一,几乎所有的程序员都听说过它。Docker 是一种“轻...
分类:
编程语言 时间:
2015-01-28 12:57:33
阅读次数:
206
今天查询二个db,出现这个错误,二种方法,一种是把db里的collation改成一样的;如果不方便可以直接在sql语句后面转一下: select * from table where crm_mscrm.dbo.imei.imei_no = csmrep.crmextdb.dbo.imei.imei...
分类:
其他好文 时间:
2015-01-27 23:06:28
阅读次数:
777
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:
其他好文 时间:
2015-01-27 21:34:02
阅读次数:
173
鉴于Go还很年轻,下面贴几个学习相关链接。
Go官方网站: http://golang.org
目前看来,介绍相当齐全的文档:https://github.com/wonderfo/wonderfogo/wiki
Go中文邮件组:http://groups.google.com/group/golang-china
...
分类:
编程语言 时间:
2015-01-27 18:30:57
阅读次数:
137
Golang学习笔记,便于自己后续查看。
变量
变量是几乎所有编程语言中最基本的组成元素。从根本上说,变量相当于是对一块数据存储空间的命名,程序可以通过定义一个变量来申请一块数据存储空间,之后可以通过引用变量名来使用这块存储空间。
Go语言中的变量使用方式与C语言接近,但具备更大的灵活性。
变量声明
Go语言的变量声明方式与C和C++语言有明显的不同。对于纯粹的变量声明,G...
分类:
其他好文 时间:
2015-01-27 18:26:18
阅读次数:
182
这里简单记录学习Golang之旅,方便自己回顾。
package
main
import
"fmt"// 我们需要使用fmt包中的Println()函数
func
main() {
fmt.Println("Hello, world!")
}
每个Go源代码文件的开头都是一个package声明,表示该Go代码所属的包。包是Go...
分类:
其他好文 时间:
2015-01-27 16:28:47
阅读次数:
158
TheNSOperationQueueclass regulates the execution of a set ofNSOperationobjects. After being added to a queue, an operation remains in that queue until...
分类:
其他好文 时间:
2015-01-27 14:43:59
阅读次数:
319
很多东西已经记不起来了,想到一点写一点,碰到一点写一点,慢慢累积。关于##在宏定义中用于替换传入变量的字符,例如: #define whole_operation(n) do { printf(#n "=%d\n", (n));} while(0);调用whole_operation(5*6), ....
分类:
编程语言 时间:
2015-01-26 19:14:00
阅读次数:
303
File System为了让Linux运行起来,通常需要2个file systemboot file system (bootfs)root file system (rootfs)在传统的Linux boot, kernel首先mount(挂载)rootfs, 此时为read-only模式, 然后...
分类:
其他好文 时间:
2015-01-26 19:09:35
阅读次数:
149
tty: teletype, teletypewriterpseudo-tty 伪终端-t assigns a pseudo-tty or terminal inside our new container-imake an interactive connection
分类:
其他好文 时间:
2015-01-26 18:40:47
阅读次数:
176