近来做项目,需要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
install FMRadio.apk的时候一直报这个错。
原因是高通的FMRadio的jni库和apk是分开的,也就是说直接编译生成的apk中是不包含这个库的,因此install的时候会提示没有共享库。对这个apk的办法是采用push的方式。...
分类:
其他好文 时间:
2014-06-28 07:50:05
阅读次数:
240
Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./home/chenwei/.rvm/rubies/ruby-1.9.3-p547/bin/rubyextconf.rbcheckingforruby/thread.h...nocheckingforrb_thread_blocking_region()...yescheckingforrb_wait_for_single_fd()...yescheckingforrb_hash_dup()...
分类:
其他好文 时间:
2014-06-28 00:32:22
阅读次数:
296
#region 创建、跟新词库
///
/// 创建、跟新词库
///
private void CreateIndexData()
{
//索引库文件夹
FSDirectory dir = FSDirectory.Open(new DirectoryInfo(pat...
分类:
Web程序 时间:
2014-06-27 10:17:59
阅读次数:
232
本人公司电脑型号为HPfolio9740m,用windows7自带的修复工具,恢复windows标准镜像文件,出现如下错误:Thesystemp_w_picpathrestorefailed.Windowscannotrestoreasystemp_w_picpathtoacomputerthanhasdifferentfirmware.Thesystemp_w_picpathwascreatedonacomputerusingBIOSand..
某个功能不能使用,从内网访问这个API出现memorygatescheckingfailed。如下图所示,正如上图所说,激活wcf最小内存不够,加minFreeMemoryPercentageToActivateService="0"。恢复正常访问如下图所示,为了以后预防这种问题再次发生,暂时有两种解决方法可选:1、服务器增加内存..
分类:
Web程序 时间:
2014-06-27 06:16:28
阅读次数:
449