ibm-cloud

Bluemix Spark with Java

二次信任 提交于 2019-12-05 19:41:28
I have a Bluemix trial and I want to use it with a Java application that I have developed using Spark framework using swift storage. This application uses Maven for its build process.I know there is a Spark service in BlueMix. I have several questions: Should I use Jave liberty and then bind Spark and Object storage to it? What is the the proper way to declare spark imports? What is the proper way to authorize against Object storage in my Java program as Softlayer doesn't support keystone? Are there any examples that I can look at for deploying such app into Bluemix? The Bluemix Apache Spark

Activating PHP extensions in Bluemix

对着背影说爱祢 提交于 2019-12-05 15:08:24
This is a purely Bluemix question! I've got code running smoothly on a localhost but when I migrated it to Bluemix my DB connection failed me. Checking the logs I found the issue "Call to undefined function mysqli_init()" HTTP response 500. I have found out that extension have been disabled to make it smaller and have found some details about it: Buildpack options . Unfortunately I have tried that and failed. Maybe I have misunderstood the solution. Any Help would be greatly appreciated. EDIT: bgconfig --> bp-config solved the "undefined function error" It seems that some extension have been

How to manage multiple components with IBM Bluemix Track & Plan

笑着哭i 提交于 2019-12-05 13:31:13
We have an application that is comprised of multiple distinct components (different functions / languages). Is it possible in IBM Bluemix to use a single Track & Plan feature to manage the work items for the components but keep the source code in separate git repositories? For example, I would like to have one backlog for the overall application which is then backed by 5 separate git repos which house the individual components (project-frontend, project-backend, project-queue etc..). If this is not possible does anybody have a pattern that has worked in streamlining the overall Track & Plan

Uploading a file via pyCurl

可紊 提交于 2019-12-05 13:09:25
I am trying to convert the following curl code into pycurl. I do not want to use requests. I need to use pycurl because requests is not fully working in my old python version. curl -X POST -H "Accept-Language: en" -F "images_file=@fruitbowl.jpg" -F "parameters=@myparams.json" "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={api-key}&version=2016-05-20" Can someone please show me how to write it out in PyCurl? import pycurl c = pycurl.Curl() c.setopt(c.URL, 'https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={api-key}&version=2016-05

I am having trouble starting my node app in Bluemix

北城以北 提交于 2019-12-05 08:34:44
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 Creating route myapp.mybluemix.net... OK Binding myapp.mybluemix.net to myapp... OK Uploading myapp...

Is there an npm module to modify a pdf file in node.js?

随声附和 提交于 2019-12-05 07:55:36
I'm building a node.js app on Bluemix that should take a pdf file as request and then grey out (blank) some part of the pdf file. And also here the pdf file is the same for all, and the area we need to blank out will be fixed. So can anybody suggest an npm module that can perform this kind of functionality? I suggest you to try HummusPDF . Specifically take a look at the Hummus - Modification page, that explains how to edit existing PDF documents. In your case you could try to use the feature that allows to draw shapes . 来源: https://stackoverflow.com/questions/39362845/is-there-an-npm-module

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

馋奶兔 提交于 2019-12-05 07:47:01
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 WorkloadService(credentials); var wp = new WAProcess("MyProcessName", "DescriptionProcess"); wp.addStep(new

“500 Error: Failed to establish a backside connection” - Bluemix Selenium Tests

偶尔善良 提交于 2019-12-04 20:09:59
I have deployed a simple web based project which runs basic test automation on browserstack (test environment) via IBM Cloud. URL : https://gaiaautomation0.au-syd.mybluemix.net/ The tests are executed by a call from the web page and an overlay is displayed when the tests are executing (Ajax call). During execution, IBM Cloud times out randomly at different test steps with the console error below however the tests are still getting executed. Is there a way to stop the 500 error shown below. Error in browser: 500 Error: Failed to establish a backside connection Error on console : 2018-02-08T22

How to fetch asset modification history in hyperledger fabric

亡梦爱人 提交于 2019-12-04 19:39:26
I am using IBM bluemix blockchain service to tryout some smart contract logic for my asset sharing demo. Is there anyway to query the asset modified history in hyperledger fabric network. I have checked with documentations for both fabric 0.6 and 1.0 versions, but I can find only the stub.pushState(key,value_json) and stub.getState(key) to interact width the ledger. But using stub.getState(key) , I can fetch only the latest entry of the key, but how can I fetch and display the series of changes/modification written for the same key. I have iterated through the block using {peeraddress}/Block

Node-RED, IOT Foundation Out Node Not Sending Commands

扶醉桌前 提交于 2019-12-04 12:06:40
I have a Node-RED application that is bound to an IOT Foundation (iotf) service. I can receive events from devices and handle them appropriately. However, I am now interested in sending commands back to my devices and am having some problems. Nothing is showing up at the device, but by creating an IOTF in node, I can confirm that the command is passing through iotf. I can definitely get commands to pass through iotf using pure python, as the follow code works well: Client code: #!/usr/bin/python import ibmiotf.device from time import sleep options = { "org": "cgmncc", "type": "table", "id":