ibm-cloud

Watson Assistant API V2 “manages the context automatically” - more details?

眉间皱痕 提交于 2019-12-23 09:43:10
问题 This is a question about Watson Assistant API V1/V2 difference. The doc says like this: Note that if your app uses the v1 API, it communicates directly with the dialog skill, bypassing the orchestration and state-management capabilities of the assistant. This means that your application is responsible for maintaining state information. This is done using the context, an object that is passed back and forth between your application and the Watson Assistant service. Your application must

Detect the version of CloudFoundry/Bluemix

六眼飞鱼酱① 提交于 2019-12-23 08:07:35
问题 I am trying to detect the version of Bluemix/Cloud Foundry. Is there a command I can use to do this? cf -version tells you the version of the commandline interface, but not the version of the server you are "push"ing to. thanks anthony 回答1: You can get the version of CloudFoundry that Bluemix is running on via the CloudFoundry info endpoint. US South Datacenter - https://api.ng.bluemix.net/info (currently 226 as of this posting) EU UK Datacenter - https://api.eu-gb.bluemix.net/info (currently

Detect the version of CloudFoundry/Bluemix

烂漫一生 提交于 2019-12-23 08:07:11
问题 I am trying to detect the version of Bluemix/Cloud Foundry. Is there a command I can use to do this? cf -version tells you the version of the commandline interface, but not the version of the server you are "push"ing to. thanks anthony 回答1: You can get the version of CloudFoundry that Bluemix is running on via the CloudFoundry info endpoint. US South Datacenter - https://api.ng.bluemix.net/info (currently 226 as of this posting) EU UK Datacenter - https://api.eu-gb.bluemix.net/info (currently

How to generate the configuration to connect to a remote Kubernetes host

烈酒焚心 提交于 2019-12-23 05:34:07
问题 I have finished setting up a test Kubernets host running on a bare metal Centos 7. This will be used as a test system as we will be deploying everything in IBM Bluemix Kubernetes service. Getting the configuration from Bluemix is easy... and while our Kubernetes on Centos works OK I don't know how to generate the configuration to access it from our workstations. It is explained at https://kubernetes.io/docs/tasks/administer-cluster/share-configuration/ but I am new to setting up a Kubernetes

How to access files in container in Object Storage Service in Bluemix?

谁说我不能喝 提交于 2019-12-23 05:10:06
问题 How can I access files by url in Bluemix Object Storage? Is there a way to make the container public? How can I access the file in Object Storage just by typing the url in the browser? How can I retrieve an image by url to display it in html? 回答1: You can create a temporary URLs using the swift command line to provide public access to your Object Storage files. First you have to set the swift CLI, you can find steps on this link. After you have swift cli configured for your environment you

Download Application files from Bluemix

半城伤御伤魂 提交于 2019-12-22 22:25:14
问题 Is there a way to download the content of an application running on Bluemix after staging it? 回答1: Bluemix uses cloud foundry (CF) to manage the platform. By default the CF CLI does not have the capability to download the Application files from Bluemix. On CF CLI version 6.10.0 or higher, we can install a download plugin to retrieve these files from Bluemix locally. To install the plugin follow the below commands: $ cf add-plugin-repo CF-Community http://plugins.cloudfoundry.org/ $ cf install

Visual Recognition error 400: Cannot execute learning task no classifier name given

為{幸葍}努か 提交于 2019-12-22 16:59:28
问题 I am using Visual Recognition curl command to add a classification to an image: curl -u "user":"password" \ -X POST \ -F "images_file=@image0.jpg" \ -F "classifier_ids=classifierlist.json" \ "https://gateway.watsonplatform.net/visual-recognition-beta/api/v2/classifiers?version=2015-12-02" json file: { "classifiers": [ { "name": "tomato", "classifier_id": "tomato_1", "created": "2016-03-23T17:43:11+00:00", "owner": "xyz" } ] } (Also tried without the classifiers array. Got the same error) and

Visual Recognition error 400: Cannot execute learning task no classifier name given

守給你的承諾、 提交于 2019-12-22 16:58:01
问题 I am using Visual Recognition curl command to add a classification to an image: curl -u "user":"password" \ -X POST \ -F "images_file=@image0.jpg" \ -F "classifier_ids=classifierlist.json" \ "https://gateway.watsonplatform.net/visual-recognition-beta/api/v2/classifiers?version=2015-12-02" json file: { "classifiers": [ { "name": "tomato", "classifier_id": "tomato_1", "created": "2016-03-23T17:43:11+00:00", "owner": "xyz" } ] } (Also tried without the classifiers array. Got the same error) and

I am having trouble starting my node app in Bluemix

与世无争的帅哥 提交于 2019-12-22 06:37:46
问题 I am trying to start my node app in Bluemix and getting a weird error. My app works locally. I have copied a snippet out of my app below. var express = require("express"), app = express(); app.get("/", function (request, response) { response.render("index"); }); app.listen(8080); My app never starts in Bluemix. The error I am getting on Bluemix is below. [11:07 AM] jsloyer@Jeffs-MacBook-Pro [testapp]>cf push myapp Creating app myapp in org myemail@co.com / space demos as myemail@co.com... OK

Workload Scheduler for Node.js script - is it equivalent to cron jobs in Bluemix?

不想你离开。 提交于 2019-12-22 05:41:05
问题 I'm trying to call node file.js with Bluemix Workload Scheduler every morning; file.js is in the root of my node.js project; file.js is not my server file. I used to use cron but it seems like "BlueMix doesn't have a concept of cron jobs." As result for the (only) step of my process, I got "node : command not found" I think I missed something. Is it even possible to do this with Workload Scheduler or should I find alternative options? MORE INFORMATION I'm trying to do : var wls = new