近来做项目,需要jboss定期重新启动。不想再看到jboss启动那个黑洞洞的窗口,就想着把它注册为服务,然后在net start。恰好objectweb上有个open source的javaservice,能够实现将jboss,tomcat注册为服务的功能,呵呵,得来全不费功夫,以下是配置步骤。有需...
分类:
编程语言 时间:
2014-07-16 23:26:05
阅读次数:
285
1,设置A机时间服务器: a,修改 /etc/ntp.conf,如下: # Undisciplined Local Clock. This is a fake driver intended for backup# and when no outside source of synchroniz.....
分类:
系统相关 时间:
2014-07-10 12:15:56
阅读次数:
253
IntersectRect 两矩形相交形成的新矩形The IntersectRect function calculates the intersection of two source rectangles and places the coordinates of the intersecti....
分类:
其他好文 时间:
2014-07-10 10:33:52
阅读次数:
272
// 产生连接字符串 string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=student.xls;" + "Extended Properties=...
分类:
其他好文 时间:
2014-07-07 23:50:13
阅读次数:
228
source命令用法:source FileName作用:在当前bash环境下读取并执行FileName中的命令。注:该命令通常用命令“.”来替代。如:source .bash_rc 与 . .bash_rc 是等效的。source命令(从 C Shell 而来)是bash shell的内置命令。点...
分类:
系统相关 时间:
2014-07-07 22:15:15
阅读次数:
293
iOS下做和UIImage相关功能有段时间,这里总结列下相关经验。1. 基本框架image IO image IO可以通过URL或者dataProvider来生成CGImageSourceRef,然后可以在source上获取第几张图片或者缩略图;根据http://www.mindsea.com/2....
分类:
移动开发 时间:
2014-06-30 13:00:30
阅读次数:
389
GNU Autotools can not only handle making (compiling and linking), distributing, transplanting source code for different platforms, but can also track ...
分类:
其他好文 时间:
2014-06-30 12:33:53
阅读次数:
400
We must have already been familiar with proprietary Fortran programming environments, for example,Compaq Visual Fortran IDE (which is actually a combi...
搜索了一圈, 发现没有比较全面且简单的介绍如何在C#项目中使用redis的, 大部分都是零碎的文章,稍微组织了一下,希望对要用redis的人有帮助.前提1.Redis is an open source, BSD licensed, advancedkey-value store, 简单说用来缓存数...
分类:
其他好文 时间:
2014-06-28 09:52:23
阅读次数:
245
学习了scala的基本知识后,发现了scala是集函数式和指令式结合为一体的一种语言,代码更加简洁,但是对于用习惯了java的人来说,还真的不是一件易事~~今天学习scala脚本读取文本文件列子如下:importscala.io.Sourceif(args.length>0){for(line<-Source.fromFile(args(0)..
分类:
其他好文 时间:
2014-06-28 00:09:26
阅读次数:
281