近来做项目,需要jboss定期重新启动。不想再看到jboss启动那个黑洞洞的窗口,就想着把它注册为服务,然后在net start。恰好objectweb上有个open source的javaservice,能够实现将jboss,tomcat注册为服务的功能,呵呵,得来全不费功夫,以下是配置步骤。有需...
分类:
编程语言 时间:
2014-07-16 23:26:05
阅读次数:
285
搜索了一圈, 发现没有比较全面且简单的介绍如何在C#项目中使用redis的, 大部分都是零碎的文章,稍微组织了一下,希望对要用redis的人有帮助.前提1.Redis is an open source, BSD licensed, advancedkey-value store, 简单说用来缓存数...
分类:
其他好文 时间:
2014-06-28 09:52:23
阅读次数:
245
问题:
I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands
export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.5 ...
#include "my_file.h"
//将文件内容拷贝到指定文件
int mycopy(const char *filename)
{
ifstream infile(filename, ios::binary);
ofstream outfile("TRACE.txt", ios::binary);
if (!infile.is_open() || !outfile...
分类:
其他好文 时间:
2014-06-28 08:46:56
阅读次数:
199
《大教堂与集市》基本信息原书名:The Cathedral & the Bazaar: Musings on Linux and Open Source by an Accidental Revolutionary原出版社: O'Reilly Media作者: (美)Eric S. Raymond译...
分类:
其他好文 时间:
2014-06-27 18:04:25
阅读次数:
177
使用fstream读取文件,什么时候读到文件结束呢。首先想到的是,将现在的位置与文件的长度对比,然后再fstream中无法直接获取文件长度。可以采用如下方法fstream in;in.open("path",ios::in);in.seekg(0,ios::end);int length=in.te...
分类:
其他好文 时间:
2014-06-27 17:01:50
阅读次数:
939
微软近期Open的职位:Role Based in Shanghai, ChinaTitle: ProducerWe are seeking a Senior Producer to lead Production & Operations in the China region based in ...
分类:
其他好文 时间:
2014-06-27 16:28:42
阅读次数:
201
#region 创建、跟新词库
///
/// 创建、跟新词库
///
private void CreateIndexData()
{
//索引库文件夹
FSDirectory dir = FSDirectory.Open(new DirectoryInfo(pat...
分类:
Web程序 时间:
2014-06-27 10:17:59
阅读次数:
232
使用Capture CIS 生成网表时,出现错误:
Unable to open ...\tools\capture\allegro.cfg for reading. Please correct the above error(s) to proceed
根据提示的信息可以判断,是allegro.cfg文件的打开出现了问题,导致出错。
解决办法:
①选中工程,选择Tools->Cre...
分类:
其他好文 时间:
2014-06-27 08:12:14
阅读次数:
631