要从服务器下载SOFA Statistics,我使用wget命令:
wget -c http://sourceforge.net/projects/sofastatistics/files/latest/download?source=dlp
Run Code Online (Sandbox Code Playgroud)
在这种情况下,下载文件的文件名是download?source=files.如果我将该--output-document选项添加到命令,要将输出文件重命名为sofastatistics-latest.deb,则dpkg软件包无法识别下载文件的格式.
dpkg-deb: error: `sofastatistics-latest.deb' is not a debian format archive
Run Code Online (Sandbox Code Playgroud)
如何使用wget正确重命名下载的文件?
更新 - 2015年1月8日
使用提供的链接,下载的文件将始终为*.tar.gz.要获得真实姓名,只需添加--content-disposition选项(感谢@ 6EQUJ5!):
wget --content-disposition http://sourceforge.net/projects/sofastatistics/files/latest/download?source=dlp
Run Code Online (Sandbox Code Playgroud)
但我需要一个*.deb文件,所以这里是@creaktive,我必须搜索*.deb文件链接.
感谢大家的答案!
我有一个数据框,其中一个分组因子(第一列)具有多个级别(多于两个)和几个包含数据的列.我想将wilcox.test应用于整个日期框架,以将每个组变量与其他变量进行比较.我怎样才能做到这一点?
更新:我知道wilcox.test只会测试两组之间的差异,而我的数据框包含三组.但我更感兴趣的是如何做到这一点,而不是使用什么测试.最有可能的一个组将被删除,但我还没有决定,所以我想测试所有变种.
这是一个示例:
structure(list(group = c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), var1 = c(9.3,
9.05, 7.78, 7.11, 7.14, 8.12, 7.5, 7.84, 7.8, 7.52, 8.84, 6.98,
6.1, 6.89, 6.5, 7.5, 7.8, 5.5, 6.61, 7.65, 7.68), var2 = c(11L,
11L, 10L, 1L, 3L, 7L, 11L, 11L, 11L, 11L, 4L, 1L, 1L, 1L, 2L,
2L, 1L, 4L, 8L, 8L, 1L), var3 = c(7L, 11L, …Run Code Online (Sandbox Code Playgroud) 我认为这段代码在最后放了一个空行。如果这是真的,如何避免这种情况?
$text = explode( "\n", $text );
foreach( $text as $str ) { echo $str; }
Run Code Online (Sandbox Code Playgroud) 我有一个Feedburner订阅表,有两个按钮,一个用于每日新闻,一个用于每周新闻.问题是如何在提交之前更改名为'uri'的隐藏输入字段的值?我的解决方案不起作用.
这是我尝试使用的:
<form id="feedburner" action="https://feedburner.google.com/fb/a/mailverify"
method="post" target="popupwindow">
<p>
<input autocomplete="off" value="Enter your email…"
onblur="if (this.value == '') {this.value = 'Enter your email…';}"
onfocus="if (this.value == 'Enter your email…') {this.value = '';}"
type="text" name="email"/>
<input type="hidden" name="uri"/>
<input type="hidden" name="loc" value="en_US"/>
</p>
<input type="submit" value="Daily" onsubmit="document.getElementsByName('uri').value = 'androidinfodaily'; window.open('https://feedburner.google.com/fb/a/mailverify?uri=androidinfodaily', 'popupwindow'); return true" checked>
<input type="submit" value="Weekly" onsubmit="document.getElementsByName('uri').value = 'androidinfoweekly'; window.open('https://feedburner.google.com/fb/a/mailverify?uri=androidinfoweekly', 'popupwindow'); return true">
</form>
Run Code Online (Sandbox Code Playgroud)
解决了
我修复了我的代码,现在它可以工作了.这是最终的变体:
<form id="feedburner" action="https://feedburner.google.com/fb/a/mailverify"
method="post" target="popupwindow">
<p>
<input autocomplete="off" value="Enter your email…"
onblur="if (this.value …Run Code Online (Sandbox Code Playgroud) 我在网上找到了一个代码,必须(将)生成代表美国劳工部的一些数据的图形:劳工统计局:
library(ggplot2)
df <- as.data.frame(read.csv("unemp.csv", colClasses = c("Date", "numeric")))
p <- ggplot(df,aes(x=date,y=ratio))
p + geom_point() + geom_smooth() + xlab("Year") +
ylab("Civilian Employment Population Ratio (%)") +
labs(title="Bureau of Labor Statistics Series EMRATIO
(seasonally adjusted) to 2012-10-01")
Run Code Online (Sandbox Code Playgroud)
但它不起作用并产生此错误:
Don't know how to automatically pick scale for object of type function. Defaulting to continuous
Error in eval(expr, envir, enclos) : object 'ratio' not found
Run Code Online (Sandbox Code Playgroud)
这段代码中缺少什么?
有没有一种方法可以使用 jQuery 将text类型输入字段转换为date类型输入字段,以便向用户显示日期选择器?我可以将自定义字段添加到由 Wordpress 插件创建的表单中,但它不支持date也不支持datetime-local字段类型,而我需要这样一个。
<input name="adverts_eventDate" id="adverts_eventDate" type="text">
Run Code Online (Sandbox Code Playgroud) 我希望在表单中将选中的输入单选按钮值传递给window.open方法.Bellow是我尝试使用的,但无论选择什么,总是复制第二个输入的值.这有什么不对?
onsubmit="window.open(document.getElementByName('option').value);"
Run Code Online (Sandbox Code Playgroud)
和
<input type="radio" name="option" value="http://example1.com" checked> daily
<input type="radio" name="option" value="http://example2.com"> weekly
Run Code Online (Sandbox Code Playgroud) forms ×2
html ×2
javascript ×2
jquery ×2
r ×2
explode ×1
file-rename ×1
ggplot2 ×1
input ×1
php ×1
statistics ×1
wget ×1
wordpress ×1