ibm-cloud

Where is the application secret?

社会主义新天地 提交于 2019-12-11 09:58:43
问题 I can't find my Application Secret key in the Mobile Options tab. I went to look into the Mobile Application Security I found out that it is no more. It is replaces by Mobile Client Access. So where is it ? 回答1: If you have Mobile Client Access instead of Mobile Application Security then it sounds like you created a MobileFirst Starter Boilerplate (the newest release) rather than a Mobile Cloud Boilerplate (deprecated as of December 15th). The new services within the MobileFirst Starter

matplotlib - ImportError: No module named _tkinter

我的未来我决定 提交于 2019-12-11 08:45:13
问题 I have a simple notebook with the following code: %matplotlib inline However, when running it I get the following error: ImportError: No module named _tkinter I have another notebook in the same project, and that one is able to run the statement without issue. The data science experience is a managed service so you don't have root access to install _tkinter. Full stacktrace: ImportErrorTraceback (most recent call last) <ipython-input-43-5f9c00ae8c2d> in <module>() ----> 1 get_ipython().magic

How to deploy a Go application to Bluemix?

不问归期 提交于 2019-12-11 08:25:30
问题 I am using Bluemix to run app, I can deploy Java app to Bluemix, does anyone know how to deploy a Go App to Bluemix? 回答1: You can deploy a Go application to Bluemix, but need to supply -b with the Go Buildpack URL. There is a sample application you can take a look: https://github.com/acostry/Go-on-Bluemix 回答2: You need to use a custom buildpack to deploy a Go web application. So, login to your cloud and run the cf command below from the root folder of your application: cf push appname -b

Watson Speech-to-Text register_callback returns only 400s

杀马特。学长 韩版系。学妹 提交于 2019-12-11 07:34:32
问题 The Watson Speech-to-Text asynchronous HTTP interface allows one to register a callback url through a call to register_callback . This call is clearly not working; for illustration, please see these six lines of code. # Illustration of how I can't get the Watson Speech-to-Text # register_callback call to work. r = requests.post( "https://stream.watsonplatform.net/speech-to-text/api/v1/register_callback?{0}".format( urllib.urlencode({ "callback_url": callback_url })), auth=(watson_username,

IBM Blockchain (Hyperledger) - “Error when deploying chaincode”

喜夏-厌秋 提交于 2019-12-11 07:34:00
问题 I'm following the instructions to deploy some chaincode to the IBM Hyperledger Blockchain, using the swagger API on the IBM Bluemix dashboard. In order to deploy some chaincode, I need to submit a JSON request, which contains the path to the chaincode repository: { "jsonrpc": "2.0", "method": "deploy", "params": { "type": 1, "chaincodeID": { "path": "https://github.com/series0ne/learn-chaincode/tree/master/finished" }, "ctorMsg": { "function": "init", "args": [ "Hello, world" ] },

IBM Watson Visual recognition{“code”:400,“error”:“Cannot execute learning task. : no classifier name given”}

北慕城南 提交于 2019-12-11 07:32:16
问题 When I try to train a classifier with two positive classes and with the API key (each class contains around 1200 images) in Watson Visual Recognition, it returns that "no classifier name is given" - but that I have already provided. This is the code: $ curl -X POST -F "blank_positive_examples=@C:\Users\rahansen\Desktop\Altmuligt\training\no_ocd\no_ocd.zip" -F "OCD_positive_examples=@C:\Users\rahansen\Desktop\Altmuligt\training\ocd\ocd.zip" -F "name=disease" "https://gateway-a.watsonplatform

npm ERR! Cannot read property 'pause' of undefined --Bluemix

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 07:18:51
问题 I am trying to deploy a Sails.js app to Bluemix and we are getting the following error during the deploy stage in the toolchain on Bluemix (When the CF PUSH command is called): npm ERR! Cannot read property 'pause' of undefined I understand the trace goes to the npm-error.log file, however, I haven't been able to get to it as we cannot ssh in to see whats in the file as the application is in its "off" state after a bad deploy. This same code was successfully deployed with both Cf push {app

iOS/IBM Cloud/Swift: Post to Watson API using AlamoFire

核能气质少年 提交于 2019-12-11 06:47:54
问题 I am trying to post to the Watson tone analyzer API using AlamoFire with the following code. It keeps getting a 401 error which apparently means failed authorization. The same userid/password info, however, works find with a curl request. So the problem does not seem to be with the userid/password but rather with how I am forming the AlamoFire request. func postToWatson () { print("post to watson called") let url: String = "https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version

Difference in word confidence in IBM Watson Speech to text

南笙酒味 提交于 2019-12-11 06:26:23
问题 I am using the node sdk to use the IBM watson speech-to-text module. After sending the audio sample and receiving a response, the confidence factor looks weird. { "results": [ { "word_alternatives": [ { "start_time": 3.31, "alternatives": [ { "confidence": 0.7563, "word": "you" }, { "confidence": 0.0254, "word": "look" }, { "confidence": 0.0142, "word": "Lou" }, { "confidence": 0.0118, "word": "we" } ], "end_time": 3.43 }, ... and ... ], "alternatives": [ { "word_confidence": [ [ "you", 0

Run ng (Angular) commands from bluemix console

旧时模样 提交于 2019-12-11 06:17:04
问题 I want to build my Angular project on the bluemix deploy pipeline. I have tried to create a new build order with a shell script but it just fails. What is the best practice for building the project on Bluemix? Ex. "ng build --base-href /.../" 回答1: From the project directory, Add manifest.yml file. Check for the buildpack below. applications: - path: . memory: 128M instances: 1 domain: mybluemix.net name: your_project_name host: your_host_name disk_quota: 128M buildpack: staticfile_buildpack