小编Tim*_*kiy的帖子

C编译器无法在Ubuntu 12.04中创建可执行文件

我正在尝试为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)

c compiler-construction ubuntu-12.04

6
推荐指数
2
解决办法
1万
查看次数

流星集合find()不检索任何数据

我正在研究流星教程: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,但没有数据库中的数据。

javascript mongodb meteor

5
推荐指数
1
解决办法
2970
查看次数

历史深度数据MtGox具有更高的粒度

我正在进行一些研究并需要获得mtgox历史深度数据,他们的api没有给出很多好的信息,它提供了约6k的出价并且在过去的3-4个月中提出了大部分,而所有的数据集从2010年左右开始.我一直在寻找具有更高粒度的出价询问数据,最好是更多的货币而不仅仅是btc到usd.

任何帮助将非常感激.

bitcoin

4
推荐指数
1
解决办法
2876
查看次数

JS声称656 <7是真的

我有一个结构的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)

javascript jquery json

0
推荐指数
1
解决办法
99
查看次数