ibm-cloud

Fabric composer integration with Bluemix blockchain service

浪尽此生 提交于 2019-11-28 08:50:55
Can a composer fabric business network, .bna file, be deployed to the bluemix blockchain service today? If so, is there a connection profile example that someone can share? Thanks. You can use Composer with the Bluemix Blockchain service today. However, you must be running a local copy of the Composer Playground as the version of Composer running on Bluemix (fabric-composer.mybluemix.net) only supports the web connection profile at the moment. You can set up a local copy of the Composer Playground by following the instructions here: https://fabric-composer.github.io/start/getting-started

Bluemix spark-submit — How to secure credentials needed by my Scala jar

放肆的年华 提交于 2019-11-28 05:28:20
问题 I have a Spark application that I am submitting to the Bluemix Spark Cluster. It reads from a DASHDB database and writes the results to Cloudant. The code accesses the DASHDB using both Spark and JDBC. The userid & password for the DASHDB database are passed as arguments to the program. I can pass these parameters via spark-submit but I don't think that would be secure. In the code I need to know the credentials of the DASHDB database because I am using JDBC to connect to various tables. I am

How to remove a context variable in Watson Assistant service on IBM Cloud

﹥>﹥吖頭↗ 提交于 2019-11-28 02:10:35
I am using this, but this only sets it to empty, { "context": { "time": "", "place": "", "things": "", "transport": "" }, "output": {} } I also tried "time": "null" and "time": "$time.remove" For those using Watson Assistant on an older API version: The best is to use context.remove() in the output section . I usually have an extra child node for cleanup. { "output": { "text": {}, "deleted": "<? context.remove('eventName') ?> <? context.remove('queryPredicate') ?>" } } Because deleted is not part of the context section it won't be carried forward. For those on recent API versions of Watson

Can I change owner of directory that is mounted on volume in IBM containers?

前提是你 提交于 2019-11-28 01:05:55
I'm trying to launch postgres in IBM containers. I have just created volume by: $ cf ic volume create pgdata Then mount it: $ cf ic run --volume pgdata:/var/pgsql -p 22 registry.ng.bluemix.net/ruimo/pgsql944-cli After logging into container through ssh, I found the mounted directory is owned by root: drwxr-xr-x 3 root root 4096 Jul 8 08:20 pgsql Since postgres does not permit to run by root, I want to change the owner of this directory. But I cannot change the owner of this directory: # chown postgres:postgres pgsql chown: changing ownership of 'pgsql': Permission denied Is it possible to

Best practices for creating intents/entities with IBM Conversation Service

こ雲淡風輕ζ 提交于 2019-11-27 16:39:57
问题 I am currently working with the IBM Conversation Service. Does there exist any best practices for creating intents other than the information in the official docs or the ones documented here: https://github.com/watson-developer-cloud/text-bot#best-practices? Are there other demos out there I could look at? I have seen the car dashboard and the Weather bot from IBM. Regards, Kjetil 回答1: INTENTS Intents are the machine learning component of conversation. They work best when you train the system

CSRF validation does not work on Django using HTTPS

随声附和 提交于 2019-11-27 16:30:18
问题 I am developing an application which the frontend is an AngularJS API that makes requests to the backend API developed in Django Rest Framework. The frontend is on the domain: https://front.bluemix.net And my backend is on the domain: https://back.bluemix.net I am having problems making requests from the frontend API to the backend API. The error is this: Error: CSRF Failed: Referer checking failed - https://front.bluemix.net does not match any trusted origins. I am using CORS and I have

How to make Watson Conversation Api Invoke a web Application Url when User Enters an Input?

血红的双手。 提交于 2019-11-27 14:53:33
I have a spring mvc application and I would like to make my user call a bot and the bot based on user input should access a url and based on the response provide an answer.How could I achieve this in Java? There is no direct way to do it. However, Watson Conversation does provide a mechanism to handle such requests. You will need to tell the calling Java app that a url needs to be invoked. This is done by using two features: Context.request skip_user_input A request is a special context variable that has args, name and result. It is used to tell the calling app that it should do some action

How do I move my existing WebSphere application to Liberty on Bluemix?

五迷三道 提交于 2019-11-27 08:37:05
问题 I have an existing WebSphere Application Server v7 application and I would like to run it on the Liberty runtime in Bluemix. Can I simply take the app as-is and try importing it into one of the starter apps I see in Bluemix? 回答1: The short answer, yes, you can take your existing WebSphere Application Server v7 application, create a Java Cache Web starter application and download the starter code, modify the code with your existing application, bind any appropriate services and push the

Add certificate to truststore to enable SSL communication

大城市里の小女人 提交于 2019-11-27 08:36:42
问题 How do I add a certificate to the trust store when application is running in bluemix. Is there any way to update cacert, either programmatically or using cli? Any documentation or link on the same will be greatly appreciated. 回答1: You can push a packaged server to the Liberty buildpack. With the packaged server, you can package the cert and configure the server.xml accordingly (see https://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae

Can I run my Tomcat app on Bluemix?

拜拜、爱过 提交于 2019-11-27 07:58:55
问题 We have a simple app that runs on tomcat7 and has been working for about a year. We're planning to kick the tires on Bluemix and we would like to know if there's any information that can assist us in this effort. I saw a post that discussed migrating apps from WebSphere Application Server v7 to the Liberty profile but I didn't see any reference to Tomcat. Any documentation or samples you could provide would be appreciated. 回答1: Yes, you can run your application on Bluemix, however, due to