edg战队

Hyperledger Composer: Error: failed to request identity. Error trying to enroll user and return certificates

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following a hyperledger composer tutorial . I am not able to execute step 15. while executing command : composer identity request -c PeerAdmin@byfn-network-org1-only -u admin -s adminpw -d alice I am getting the following error: Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] When I checked the running containers, CA is not running.. If this is the case then i don't understand why there isn't a

Hyperledger Composer - multi host installation

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been experimenting with Hyperledger Fabric, deployed over 2 VirtualBox Ubuntu images with docker swarm. But I have some issues when it comes to the Composer installation. Network Setup: Host1: Orderer, Peer1.Org1, Peer2.Org1, CLI Host2: Peer1.Org2, Peer2.Org2 When it comes to the Fabric setup everything appears to be ok. I'm able to start the network, join the peers from the second host, and update the anchor peers (one for each organisation). The Composer installation starts with creating and importing the business network card and

Formatting JGraphX edges

匿名 (未验证) 提交于 2019-12-03 01:07:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using the JGraphX mxCompactTreeLayout which by default gives me the layout as shown by (A) on the image below. I would like to know if it's possible to achieve what's shown by (B) with JGraphX. The reason for such requirement is that the graph looks clutted if there are many edges from the same source. 回答1: Using the EDGESTYLE_ELBOW is not a bad option but if you want to use the layout you can probably adapt the following. The CompactTreeLayout creates a edge of three points. If you extend the layout, you can edit the first 2 points of

Chaincode for Developers - Hyperledger Fabric Tutorial

匿名 (未验证) 提交于 2019-12-03 01:07:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm doing the Chaincode Tutorial and I have problems to compile the given chaincode ("Building Chaincode"). If I try to compile the sacc.go with go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim I get package plugin: unrecognized import path "plugin" (import path does not begin with hostname) package context: unrecognized import path "context" (import path does not begin with hostname) I was thinking about $GOPATH and $GOROOT as problems, so go env gives me GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64"

Prolog - Reduce the knowledge base by deduction

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to create a rule that will search for the facts that matches my_rule. These facts will be use to change the knowledge base. ( my_rule (Conclusion, Premise) ). I have this knowledge base to start with : :- dynamic( is/2 ). is( m1, house ). is( m1, thing ). is( m2, house ). is( m2, thing ). is( m3, niche ). is( m3, house ). is( m3, thing ). is( m4, car ). is( m4, mobile ). is( m4, house ). is( m4, thing ). my_rule( is( X, thing ), is( X, house ) ). my_rule( is( X, house ), is( X, niche ) ). When a rule is found, the code will search if

Forced Directed graph multiple edges using d3 canvas

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have created forced directed graph which has multiple edges , but after rending it shows only , other one overlaps on one another . I want to create something like https://bl.ocks.org/mattkohl/146d301c0fc20d89d85880df537de7b0#index.html My Code : JSBIN <!DOCTYPE html> <html> <head> <title> Sample Graph Rendring Using Canvas </title> <script src = "https://rawgit.com/gka/randomgraph.js/master/randomgraph.js" ></script> <script src = "https://d3js.org/d3.v4.min.js" ></script> </head> <body> <script> var graph = {} //randomgraph

Detecting edges of an image doesn't work in Matlab

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm working on a script detecting edges of an image. Here is the script: clear all ; close all ; clc ; c = rgb2gray ( imread ( 'image_S004_I0004.jpg' )); c = double ( c ); k = imnoise ( c , 'salt & pepper' , 0.01 ); gg = [- 1 0 1 ;- 2 0 2 ; - 1 0 1 ]; gh = gg '; grad_g = conv2(k, gg); grad_h = conv2(k, gh); grad = sqrt(grad_g.^2 + grad_h.^2); [r s] = size(grad); T = 80; for ii = 1:r for jj = 1:s if grad(ii, jj) < T thresh_grad(ii, jj) = 0; else thresh_grad(ii, jj) = 1; end end end figure() subplot(121); imshow(uint8(c)); subplot

Animate drawing networkx edges

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a networkx spring layout that represents a network topology Key nodes are color as red and the other are blue The routes to the key nodes edges are indicated with dashes How can I animate the drawing the networkx edges with a specified time interval? #!/usr/bin/env python import matplotlib.pyplot as plt import networkx as nx import matplotlib as mpl G=nx.Graph() G.add_edge('a','b',weight=0.6) G.add_edge('a','c',weight=0.2) G.add_edge('c','d',weight=0.1) G.add_edge('c','e',weight=0.7) G.add_edge('c','f',weight=0.9) G.add_edge('a','d'

Cannot add edges, Invalid vertex ID in IGraph

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was trying to write the code in python using igraph and when i tried to add edges using a while loop this error came up while(i<k) g.add_vertices(theInts[i]) i=i+1 g.add_edges([(theInts[i-1],theInts[i])]) I thought that indexing might be a problem so i also included a if statement but that doesnt seems to be the problem. Please Help!!! 回答1: I think this all depends on what g has for vertices. If you start off with an empty g , you only have the vertex 0 , so if you're trying to call add_edges with two different vertices, it's just not

hyperledger fabric fabcar error

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I tried to run fabcar example from hyperledger-fabric tutorial https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html . when I run ./startFabric.sh I got the error : //Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2017-08-06 08:05:59.338 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-06 08:05:59.338 UTC [msp]