edg战队

Instantiating Chaincode in Hyperledger Composer with local npm registry

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to instantiate a chaincode in an environment without any Internet connection. As the chaincode container will issue npm install upon instantiation, I added a new container called npmregistry in the docker-composer.yml so that it is provisioned alongside the rest of the Fabric containers and belongs to the same docker network (composer_default). Note I'm using the fabric-tools downloaded from https://hyperledger.github.io/composer/latest/installing/development-tools.html ) npmregistry: container_name: npmregistry image: verdaccio

hyperledger fabric first_network example create channel got BAD_REQUEST

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been following tutorial on hyper ledger website: https://hyperledger-fabric.readthedocs.io/en/release/build_network.html#behind-scenes . I was able to run ./byfn.sh -m generate ./byfn.sh -m up This setup run all the way through of showning the end. like: ===================== All GOOD, BYFN execution completed ===================== _____ _ _ ____ | ____| | \ | | | _ \ | _| | \| | | | | | | |___ | |\ | | |_| | |_____| |_| \_| |____/ ./byfn.sh -m down Then I begun to follow the tutorial further to execute each line manually. I have

OrientDB ETL Edge transformer 2 joinFieldName(s)

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: with one joinFieldName and lookup the Edge transformer works perfect. However, now two keys is required, i.e. compound index in the lookup. How can two joinFieldNames be specified? This is the scripted(post processing) version: Create edge Expands from (select from MC where sample=1 and mkey=6) to (select from Event where sample=1 and mcl=6) . This works, but is not suitable for production. Can anyone help? 回答1: you can simply add 2 joinFieldName(s) like { "edge": { "class": "Conn", "joinFieldName": "b1", "lookup": "A.a1", "joinFieldName":

OrientDB GraphED - SQL insert edge between two (select vertex RID)s? Or alternative approach for very large import

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For example, two simple vertices in an OrientDB Graph: orientdb> CREATE DATABASE local:/databases/test admin admin local graph; Creating database [local:/databases/test] using the storage type [local]... Database created successfully. Current database is: local:/graph1/databases/test orientdb> INSERT INTO V (label,in,out) VALUES ('vertexOne',[],[]); Inserted record 'V#6:0{label:vertexOne,in:[0],out:[0]} v0' in 0.001000 sec(s). orientdb> INSERT INTO V (label,in,out) VALUES ('vertexTwo',[],[]); Inserted record 'V#6:1{label:vertexTwo,in:[0],out

Hyperledger fabric first network not working with kafka and using TLS

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to run First network sample Building Your First Network from official docs. I need to run this sample with kafka orderer type. For this case I edit configtx.yaml file (changed OrdererType to kafka and added Brokers) ... # Orderer Type: The orderer implementation to start # Available types are "solo" and "kafka" OrdererType: kafka ... Kafka: # Brokers: A list of Kafka brokers to which the orderer connects # NOTE: Use IP:port notation Brokers: - kafka:9093 ... And added kafka and zookeeper containers to base/docker-compose-base.yaml ....

Hyperledger fabric: No script

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following the tutorial on http://hyperledger-fabric.readthedocs.io to setup my own hyperledger. I am building the first network using "first-network" in the fabric-samples. The ./byfn -m generate is OK, but after using ./byfn -m up I receive the below error: /bin/bash: ./scripts/script.sh: No such file or directory The script.sh file is available in: \fabric-samples\first-network\scripts After running 'docker ps -a' I get: My OS is Windows 10. Does anyone know what is causing this and how to resolve this? 回答1: Check out http:/

Python/NetworkX: Add Weights to Edges by Frequency of Edge Occurance

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a MultiDiGraph created in networkx for which I am trying to add weights to the edges, after which I assign a new weight based on the frequency/count of the edge occurance. I used the following code to create the graph and add weights, but I'm not sure how to tackle reassigning weights based on count: g = nx.MultiDiGraph() df = pd.read_csv('G:\cluster_centroids.csv', delimiter=',') df['pos'] = list(zip(df.longitude,df.latitude)) dict_pos = dict(zip(df.cluster_label,df.pos)) #print dict_pos for row in csv.reader(open('G:\edges.csv', 'r'

ZedGraph custom graph

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to make wtih ZedGraph following dynamically chart: How to make ZedGraph axes reverse and and time axis? Thanks UPD 1 : I have to try with following code: GraphPane myPane = zg1.GraphPane; myPane.YAxis.Type = AxisType.Date; myPane.YAxis.Scale.MajorUnit = DateUnit.Minute; myPane.YAxis.Scale.MinorUnit = DateUnit.Second; myPane.XAxis.IsVisible = false; myPane.X2Axis.IsVisible = true; myPane.X2Axis.MajorGrid.IsVisible = true; myPane.X2Axis.Scale.Min = 0; myPane.X2Axis.Scale.Max = 600; myPane.YAxis.Scale.Format = "HH:mm:ss"; PointPairList

Python networkx : edge contraction

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a NetworkX graph. I would like to know how to do edge contraction between multiple nodes. For example, if I wanted to contract X, Y and Z: _ node A _ _/ | \_ node X --- node Y --- node Z Would become node A | node XYZ (or whatever X/Y/Z) Graph creation is not the problem. It works. I want to reduce the graph by merging nodes that have the same "meanings": nodes that I call "end lvl" (node name length is equal to 7) and that are linked together. I have found the condensation function in NetworkX so I tried to use it: # edge contraction

networkx draw_networkx_edges capstyle

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Does anyone know if it is possible to have fine-grained control over line properties when drawing networkx edges via (for example) draw_networkx_edges ? I would like to control the line solid_capstyle and solid_joinstyle , which are (matplotlib) Line2D properties. >>> import networkx as nx >>> import matplotlib.pyplot as plt >>> G = nx.dodecahedral_graph() >>> edges = nx.draw_networkx_edges(G, pos=nx.spring_layout(G), width=7) >>> plt.show() In the example above, there are 'gaps' between the edges which I'd like to hide by controlling the