Purpose:If we get rid of cgroup and lxc when we do dump through criu, it is good for us to make migration successfullyLXC:CRIU itself doesn’t dump lxc(container) unless using lxc-checkpoint tool. So b...
分类:
其他好文 时间:
2015-02-25 23:45:34
阅读次数:
200
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).
Input
Each input file cont...
分类:
其他好文 时间:
2015-02-23 14:20:06
阅读次数:
146
http://blog.teamtreehouse.com/android-libraries-use-every-projectA good developer knows to never reinvent the wheel (“unless you planon learning more ...
分类:
移动开发 时间:
2015-02-22 11:03:29
阅读次数:
297
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).
Input
Each input file cont...
分类:
其他好文 时间:
2015-01-26 22:54:20
阅读次数:
196
Gradle has a very powerful incremental build feature. This means Gradle will not execute a task unless it is necessary. We can help Gradle and configu...
分类:
其他好文 时间:
2014-12-27 21:45:24
阅读次数:
201
1.unless/if结构 unless 条件为假的时候 才执行语句块。 eg: unless($fred =~ /^[A-Z_]\w*$/i){ print "The value of \$fred doesn't look like a Perl indentifier name.\n"; } ...
分类:
其他好文 时间:
2014-12-24 09:55:02
阅读次数:
131
values-v11?is the values of the API version 11, and?values-v14?is the values of the API version 14. It‘s worth indicating that i.e.?values-v11?will be used for API 11?and?higher, unless ther...
分类:
移动开发 时间:
2014-12-15 20:28:02
阅读次数:
223
1)perl是非常灵活的,听到有人说,看perl代码最不爽的一点就是:一个判断条件可放在一个语句后面,例如:
my $value = "value" if $needvalue;
有时,如果前面的语句很长,然后要if语句就那么短小地放在后面,若没注意看后面的if语句,就可能会理解错误,这点有时也会让审代码的头疼。
2)最近听到一位前辈说,最好是不要用unless,因为对于没有学过perl的人...
分类:
其他好文 时间:
2014-12-07 01:25:10
阅读次数:
141
何曾几时本猫还在windows下编码的时候,那时ruby的源代码的编码格式都是gbk啊!导致N多中文显示为乱码。后来无奈写了个转换代码从gbk编码转为utf-8格式的小工具:
#!/usr/bin/ruby#tool 4 gbk encoding to utf8
src_path = $*[0]
unless src_path
puts "usage #{$0[2..-1]} gbk_fi...
分类:
系统相关 时间:
2014-12-06 22:54:09
阅读次数:
370
目前在学习Socket,因为和IO关系紧密,于是顺便也学了下IO
发现有这样一句话:
The flush method is valid on any output stream,but has no effect unless the stream is buffered
这句话意思是所有的输出流都有flush方法,但是仅对缓冲流有效
看到这里,笔者想到了自己写的serversocket...
分类:
编程语言 时间:
2014-11-12 11:53:08
阅读次数:
278