我无法启动GlassFish,因为它一直显示此错误消息:
SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@ed7d1
Run Code Online (Sandbox Code Playgroud)
如何找到哪些应用程序正在使用Windows Vista上的哪些端口?我尝试使用以下目标使用nmap zenmap:
但我得到的只是:
Starting Nmap 5.51 ( http://nmap.org ) at 2011-08-05 12:05 Central Daylight Time
NSE: Loaded 57 scripts for scanning.
Read data files from: C:\Program Files\Nmap
Nmap done: 0 IP addresses (0 hosts up) scanned in 4.55 seconds
Raw packets sent: 0 (0B) | Rcvd: 0 (0B)
WARNING: No targets were specified, so 0 hosts scanned.
Run Code Online (Sandbox Code Playgroud) 我正在尝试按照此指令运行嵌入式门
它说:"系统属性gate.home应该设置为门安装目录." (http://gate.ac.uk/wiki/code-repository/)
我该怎么做呢?
此外,当我尝试运行EmbeddedAnnie的示例代码时,我收到以下错误:(我不知道它是否相关).
Initialising GATE...
GATE home system property ("gate.home") not set.
Attempting to guess...
Using "C:\Program Files (x86)\GATE-6.0" as GATE Home.
If this is not correct please set it manually using the -Dgate.home option in yo
ur start-up script
Using C:\Program Files (x86)\GATE-6.0 as GATE home
Using C:\Program Files (x86)\GATE-6.0\plugins as installed plug-ins directory.
Using C:\Program Files (x86)\GATE-6.0\gate.xml as site configuration file.
Using C:\Users\UNST\gate.xml as user configuration file
Using C:\Users\UNST\gate.session as user session file
Exception in thread …
Run Code Online (Sandbox Code Playgroud) 我需要在日志的末尾创建一个汇总表,其中包含一些在类中获得的值.该表需要以固定宽度格式打印.我已经有了这样做的代码,但我需要将字符串,双精度和整数限制为在代码中硬编码的固定宽度大小.
所以,假设我想打印一个固定宽度的表
int,string,double,string
int,string,double,string
int,string,double,string
int,string,double,string
and the fixed widths are: 4, 5, 6, 6.
Run Code Online (Sandbox Code Playgroud)
如果值超过此宽度,则需要切断最后一个字符.例如:
124891, difference, 22.348, montreal
Run Code Online (Sandbox Code Playgroud)
需要打印的字符串应该是:
1248 diffe 22.348 montre
Run Code Online (Sandbox Code Playgroud)
我想我需要在构造函数中做一些强制字符串不超过一定数量字符的东西.我可能会将双打和整数转换为字符串,因此我可以强制执行最大宽度要求.
我不知道哪个方法可以做到这一点,或者是否可以实例化一个字符串以表现出来.使用格式化程序只能使用固定格式来打印字符串,但它实际上并不会切断超过最大长度的字符.
有没有一个工具可以让我编译Ruby代码,以便它运行得更快?
例如,我听说有一个名为"pyc"的Python工具允许我们编译代码,因此运行速度提高了10倍.
我想将一个对象保存到一个文件,然后轻松地从文件中读取它.举个简单的例子,假设我有以下3d数组:
m = [[[0, 0, 0],
[0, 0, 0],
[0, 0, 0]],
[[0, 0, 0],
[0, 0, 0],
[0, 0, 0]]]
Run Code Online (Sandbox Code Playgroud)
是否有一个简单的Ruby API,我可以使用它来实现这一点,而无需编写解析器来解释文件中的数据?在示例中,我给它很简单,但随着对象变得更加复杂,使对象持久化变得很烦人.
我需要训练一个网络来增加或增加2个输入,但是在20000次迭代之后,它似乎并不适合所有点.更具体地说,我在整个数据集上训练它并且它在最后几点很接近,但似乎对第一个端点没有任何好处.我规范化数据,使其介于-0.8和0.8之间.网络本身由2个输入3个隐藏神经元和1个输出神经元组成.我还将网络的学习率设置为0.25,并将其用作学习函数tanh(x).
对于在数据集中最后训练的点,它非常接近,但对于第一点,它似乎不能很好地近似.我不知道它是什么,它无法帮助它调整好,无论是我正在使用的拓扑还是其他什么?
此网络的隐藏层中有多少神经元适合?
我可以在我的主目录中成功安装gsl库,但是当我尝试安装gsl gem时,我得到了一个我不理解的大错误列表.我想知道是否有人可以告诉我为什么我会得到这些错误.我可以说我有:
成功安装gsl; 至少那是它的样子.我指出了gsl-config的路径
这是错误日志的样子:
Building native extensions. This could take a while...
ERROR: Error installing gsl:
ERROR: Failed to build gem native extension.
/home/ted/ruby-1.9.1/bin/ruby extconf.rb install gsl
checking gsl version... 1.15
checking gsl cflags... -I/home/ted/gsl-1.15/include
checking for main() in -lcblas... no
checking gsl libs... -L/home/ted/gsl-1.15/lib -lgsl -lgslcblas -lm
checking for round()... no
checking for rngextra/rngextra.h... no
checking for qrngextra/qrngextra.h... no
checking for ool/ool_version.h... no
checking for tensor/tensor.h... no
checking for jacobi.h... no
checking for gsl/gsl_cqp.h... no
checking for gsl/gsl_multimin_fsdf.h... …
Run Code Online (Sandbox Code Playgroud) 我知道如何删除文件的扩展名,当我知道它时:
nameis=$(basename $dataset .csv)
Run Code Online (Sandbox Code Playgroud)
但是我想在不事先知道的情况下删除任何扩展名,任何人都知道如何做到这一点?
任何帮助,Ted
我需要在一行中查找所有出现的单词,但搜索必须不区分大小写.我还需要在正则表达式中添加什么?
arr = line.scan(/\s+#{word}\s+/)
Run Code Online (Sandbox Code Playgroud) 我想用固定的种子对文件的行进行随机排列,以便我总是得到相同的随机顺序.我使用的命令如下:
sort -R file.txt | head -200 > file.sff
Run Code Online (Sandbox Code Playgroud)
我可以做出什么改变,以便用固定的随机种子进行分类?