我正在尝试为litecoins配置cpuminer而且我得到了
checking whether the C compiler works... no
configure: error: in `/home/username/cpuminer-2.2.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
Run Code Online (Sandbox Code Playgroud)
这是在Ubuntu 12.04 x64上.
我不确定会发生什么,但我已经运行更新,我已经安装了gcc.我读了很多文章,但他们似乎指的是不同的东西.
config.log的输出是
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cpuminer configure 2.2.3, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure CFLAGS=-03
## --------- ##
## Platform. ##
## --------- ##
hostname = …Run Code Online (Sandbox Code Playgroud) 我正在研究流星教程:https : //www.meteor.com/tutorials/blaze/collections
我定义了一个收藏集
Tasks = new Mongo.Collection("tasks");
Run Code Online (Sandbox Code Playgroud)
我在其中添加了两项,一项直接从流星mongo命令行使用,另一项使用:
Tasks.insert({ text: "Testing JS", createdAt: new Date() });
Run Code Online (Sandbox Code Playgroud)
以下是在后端运行db.tasks.find()的结果:
{ "_id" : ObjectId("559e9569abbb64fe1d5fd89a"), "text" : "Hello world!", "createdAt" : ISODate("2015-07-09T15:38:17.742Z") }
{ "_id" : "obRN8Rcssa9yJqXzA", "text" : "Testing JS", "createdAt" : ISODate("2015-07-09T17:00:13.285Z") }
Run Code Online (Sandbox Code Playgroud)
但是当我运行Tasks.find({});时 在前端,我得到的结果是空的。它只是给了我很长的JSON,但没有数据库中的数据。
我正在进行一些研究并需要获得mtgox历史深度数据,他们的api没有给出很多好的信息,它提供了约6k的出价并且在过去的3-4个月中提出了大部分,而所有的数据集从2010年左右开始.我一直在寻找具有更高粒度的出价询问数据,最好是更多的货币而不仅仅是btc到usd.
任何帮助将非常感激.
我有一个结构的json数组:
{ data : [ { "num" : val , "time" : val } , ... ] }
Run Code Online (Sandbox Code Playgroud)
我需要找到num的最大值,最小/最大时间,以及将对象移动到元组数组中:
[[time,num]...]
Run Code Online (Sandbox Code Playgroud)
为了做到这一点,我使用以下结构(它是一个成功的回调回调,输出是json字符串):
var json = $.parseJSON(output);
var xmin = json.data[0].time ;
var xmax = json.data[0].time ;
var ymax = json.data[0].num ;
var data = [];
//console.log(Math.max.apply(Math,json.data.num));
for( i = 0 ; i < json.data.length ; i++){
if( json.data[i].time < xmin){
xmin = json.data[i].time;
}
if( json.data[i].time > xmax){
xmax = json.data[i].time;
}
if( ymax < json.data[i].num ){
console.log(ymax + " " …Run Code Online (Sandbox Code Playgroud)