小编Sha*_*ero的帖子

/ usr / bin / time:没有这样的文件或目录

我正在尝试在运行64位Fedora 19的虚拟机上为文件运行time命令,并且收到消息“ / usr / bin / time:无此类文件或目录”。我尝试了谷歌搜索,但看来这是我应该已经拥有的。如何在计算机上获取此信息?

linux time command fedora

7
推荐指数
2
解决办法
6284
查看次数

Yelp API和AngularJS

我正在尝试使用AngularJS调用Yelp API,但我遇到了麻烦.我一直收到400坏请求,我不知道为什么.

Yelp API文档:

http://www.yelp.com/developers/documentation/v2/authentication http://www.yelp.com/developers/documentation/v2/search_api

包含Yelp API生成密钥的页面:

http://gyazo.com/fa918329eb0cde18a5db242d1d0b0b0e

这是我的代码执行调用的片段:

function randomString(length, chars) {
var result = '';
for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))];
return result;
}

app.factory("MyYelpAPI", function($http) {
return {
    "retrieveYelp": function(name, callback) {
        $http.jsonp("http://api.yelp.com/v2/search?term=food&location=San+Francisco&callback=JSON_CALLBACK",
            {
                params: {
                    oauth_consumer_key: /* Consumer Key */,
                    oauth_token: /* Token */,
                    oauth_signature_method: "hmac-sha1",
                    oauth_signature: /* Token Secret */,
                    oauth_timestamp: new Date().getTime(),
                    oauth_nonce: randomString(32, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')
                }
            }
        ).success(callback);
    }
}
});
Run Code Online (Sandbox Code Playgroud)

jsonp yelp angularjs

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

标签 统计

angularjs ×1

command ×1

fedora ×1

jsonp ×1

linux ×1

time ×1

yelp ×1