碰到需要调用操作系统shell命令的时候,Ruby为我们提供了六种完成任务的方法:1.Exec方法:Kernel#exec方法通过调用指定的命令取代当前进程: 例子: $ irb >> exec 'echo "hello $HOSTNAME"' hello nate.local $值得注意的是,ex...
分类:
其他好文 时间:
2014-06-18 16:00:48
阅读次数:
214
??
Common Divisions
In modeling object-oriented systems, the world often gets divided in several ways.
First, there is the division of class and object. A class is an abstraction; an object is one ...
分类:
其他好文 时间:
2014-06-17 16:25:38
阅读次数:
322
The following are the Windows API (and former DOS) IO errors, which are also the IO errors often returned by Delphi programs, and which are generally ...
分类:
其他好文 时间:
2014-06-17 15:22:35
阅读次数:
266
Sublime 2 如何配置Java运行环境
第一步:配置JDK
之前玩过Java的都应该知道,在这里我就不赘述了。
第二步:创建runJava.bat 批处理文件
用记事本创建一个文件命名为runJava.bat
将下面的内容粘贴进记事本即可:
@ECHO OFF
cd %~dp1
ECHO Compiling %~nx1.......
IF EX...
分类:
编程语言 时间:
2014-06-16 12:20:32
阅读次数:
449
总结1打开appserv的安装目录,找到httpd.conf文件,分别去掉下面两行文字前面的#号。 #LoadModule vhost_alias_module
modules/mod_vhost_alias.so 去掉#意思是启用apache的虚拟主机功能。2#Include conf/ex...
分类:
移动开发 时间:
2014-06-16 00:19:32
阅读次数:
422
BACKGROUND OF THE INVENTION The present invention relates to the field of data storage devices. Computers often store large quantities of data, includ...
分类:
其他好文 时间:
2014-06-15 17:43:23
阅读次数:
298
通常通过继承某个类或实现某个接口的方式来编写代码,但是有时候某一些代码只使用一次,就没有必要写专门写一个子类或实现类了,可以采用匿名内部类的写法。最常用的场景是线程方面的应用。
一、不使用匿名内部类
①继承
abstract class Player
{
public abstract void play();
}
public class FootBallPlayer ex...
分类:
编程语言 时间:
2014-06-15 15:19:06
阅读次数:
286
给定一个矩阵,寻找连通域个数:前后左右相同为连通ex:0 1 0 10 1 1 10 0 1 00 1 0 0输出2利用深度搜索思路: 1 public static int getCount(int[][] A) { 2 int result = 0; 3 ...
分类:
编程语言 时间:
2014-06-15 12:23:22
阅读次数:
758
坦克大战
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now.
What we are dis...
分类:
其他好文 时间:
2014-06-14 14:30:01
阅读次数:
274
《Excel效率手册:早做完,不加班》基本信息作者: 陈锡卢
杨明辉出版社:清华大学出版社ISBN:9787302350743上架时间:2014-5-8出版日期:2014
年4月开本:16开页码:258版次:1-1所属分类:计算机 > 办公软件 > OFFICE > Excel更多关于》》》 《Ex...
分类:
其他好文 时间:
2014-06-12 10:52:02
阅读次数:
349