ibm-cloud

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

你说的曾经没有我的故事 提交于 2019-12-22 05:27:15
问题 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? 回答1: 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

Context routing for two different apps

夙愿已清 提交于 2019-12-22 00:27:05
问题 I deploy two different apps to CF and I want to be able to use the context path routing for those two apps e.g. lets say I've two apps that deployed and I was able to consume it with the following URL. 1. app1.domain.com 2. app2.domain.com Now I want somehow to use the context path routing of CF to be able to use this apps like following 1. something.domain.com/app1 2. something.domain.com/app2 My question are: I missing the "something", what should I put in the apps manifest to be able to

How to fetch asset modification history in hyperledger fabric

旧街凉风 提交于 2019-12-21 23:22:55
问题 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

Node-RED, IOT Foundation Out Node Not Sending Commands

放肆的年华 提交于 2019-12-21 20:34:02
问题 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

Can't access IBM Watson API locally due to CORS on a Rails/AJAX App

ε祈祈猫儿з 提交于 2019-12-20 05:21:30
问题 There doesn't seem to be a lot of answers (but lots of questions) out there on how to handle this, so I'm going to add my name to the chorus and pray for an answer that doesn't involve Node. My error via Chrome console: 1. POST https://gateway.watsonplatform.net/visual-recognition-beta/api 2. XMLHttpRequest cannot load https://gateway.watsonplatform.net/visual-recognition-beta/api. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is

Can't access IBM Watson API locally due to CORS on a Rails/AJAX App

大憨熊 提交于 2019-12-20 05:21:09
问题 There doesn't seem to be a lot of answers (but lots of questions) out there on how to handle this, so I'm going to add my name to the chorus and pray for an answer that doesn't involve Node. My error via Chrome console: 1. POST https://gateway.watsonplatform.net/visual-recognition-beta/api 2. XMLHttpRequest cannot load https://gateway.watsonplatform.net/visual-recognition-beta/api. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is

MobileFirst Starter - Bluemix Push Notification failure in Production mode

感情迁移 提交于 2019-12-20 04:56:13
问题 I am building an iOS app that can receive remote notification through Bluemix. I have the app Bundle Identifier in Xcode matches the AppId in Apple Portal which also match the APN certificate (xxx-sandbox.p12 and xxx-production.p12). During development I have tested using Push Notification with Bluemix Sandbox (under MobileFirst Starter boilerplate). All work fine. I can receive notification in my iPhone. However when I tested in Production mode, I keep getting error messages: "Internal

Bluemix build pipeline set node and npm version

六月ゝ 毕业季﹏ 提交于 2019-12-20 03:07:17
问题 I want to deploy an angular 2 app on bluemix. The code is located at github and i want to deploy my app when i push something. So i created a pipeline. First the build pipeline: to build the angular app i need angularCLI, so i want to install it. Unfortunately the default node version is 4.2 but the cli needs at least 6.9. Here is my build-shell-command: #!/bin/bash # The default Node.js version is 0.10.40 # To use Node.js 0.12.7, uncomment the following line: #export PATH=/opt/IBM/node-v0.12

New To Bluemix, getting error “The host is taken” for new app

牧云@^-^@ 提交于 2019-12-19 17:14:14
问题 I am new to Bluemix as part creating an app following the steps below: Log in to Bluemix with your Bluemix account. Open the Catalog menu. From the Runtimes section, click Liberty for Java. In the App field, specify the name of your app [entered name] Click the Create button I am getting the error below: BXNUI2032E: An error occurred when contacting Cloud Foundry to create a resource. Resource: routes. Cloud Foundry message: "The host is taken: vTest." See the Troubleshooting topics in the

Use REST API support in local development environment for Hyperledger Fabric V1.0

只谈情不闲聊 提交于 2019-12-19 11:28:12
问题 I have setup a HyperLedger Fabric V1.0 network with 4 organisations each having 1 peer by following the steps Building Your First Network. Now I have org1.example.com - with peer : peer0.org1.example.com and msp : Org1MSP org2.example.com - with peer : peer0.org2.example.com and msp : Org2MSP org3.example.com - with peer : peer0.org3.example.com and msp : Org3MSP org4.example.com - with peer : peer0.org4.example.com and msp : Org4MSP And now I can install the chaincode to peers and