edg战队

Hyperledger Docker endpoint not found

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have setup a 2 node Hyperledger network using Docker images on Ubuntu 14.04 by creating 2 containers as per the steps provided @ http://hyperledger-fabric.readthedocs.io/en/latest/Setup/Network-setup/#leveraging-published-docker-images Then I tried to deploy a chaincode, which compiles without errors, by calling POST /chaincode API and got response 200 with the hash returned for the deployed chaincode. But immediately after that I got the following error in the docker logs: 08:44:26.560 [consensus/noops] processTransactions -> DEBU 053

hyperledger fabric java chaincode error

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i used peer chaincode deploy to run go src example, i got the right result, then i tried the java src example, enter image description here i got a chaincode,but when i used this chaincode for query,it showed me: Error: Error querying chaincode: rpc error: code = 2 desc = "Error:Failed to launch chaincode spec(Could not get deployment transaction a3a350ff98660bcade4570acd507d0b380f374ea9399194b39e0301135849feb0732 - LedgerError - ResourceNotFound: ledger: resource not found)" i use docker-tool box to create the envirement for hyperledger

Styling edges in Cytoscape.js for a Family Tree

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a Family Tree application that uses Django and I am trying to use http://js.cytoscape.org for the UI. I would like to style edges between romantic partners like this: http://www.eprintablecalendars.com/images/arts-and-crafts/family-tree.jpg which is what you commonly see (the square-U). I am completely new to Cytoscape.js, and haven't been able to find any answers in the docs or other threads. 回答1: What you're describing is not edges but hyperedges . A hyperedge has multiple sources and/or targets. You can simulate hyperedge with

创建基于OData的Web API - Knowledge Builder API, Part II:Project Setup

旧巷老猫 提交于 2019-12-03 10:06:05
本篇为Part II:Project Setup 第一步,准备步骤。 准备步骤一,下载.NET Core 3.0 SDK; 官方网址是: https://dot.net (貌似会redirect去 https://dotnet.microsoft.com/ ),选择Download .NET Core 3.0 SDK,并正确安装。 准备步骤二,下载SQL Server 2017 Express; SQL Server的官方网址是: https://www.microsoft.com/en-us/sql-server/ 数据库的选择因人而异,这里选择MS免费的SQL Server Express。虽然也有SQL Server 2019 Preview版本,但还不说RC版本,不建议选择。 MySQL是另外一个选择。但是选择SQL Server Express 的优点是官方指代的Library就够用了。 注意,安装数据库时候,默认安装一个instance。 准备步骤三,下载Visual Studio Community OR Visual Studio Express 个人推荐Visual Studio Code。 虽然Visual Studio Community应该更合适,但是考虑到熟悉命令行显然更便于将来切换到non-Windows平台上。 另外,Visual Studio

创建基于OData的Web API - Knowledge Builder API, Part I:Business Scenario

丶灬走出姿态 提交于 2019-12-03 10:05:31
在.NET Core 刚刚1.0 RC的时候,我就给OData团队创建过Issue让他们支持ASP.NET Core,然而没有任何有意义的答复。 Roadmap for ASP.NET Core 1.0 RC2? 接着,在.NET Core 1.0刚刚发布的时候,又给他们创建了另外一个Issue,虽然被他们列为P1,但是已经没有下文: Roadmap for OData WebAPI run on ASP.NET Core 1.0 然后在.NET Core 2.0 Preview版本发布的时候,我继续给OData 团队提Issue: [vNext] Even ASP.NET Core 2 Preview 1 announced, OData WebAPI vNext still no updates 最终,在OData 7.0的时候,OData发布了基于ASP.NET Core的支持。 经过这么长时间的测试和迭代,我想,是时候创建一个基于OData的Web API。 本篇为Part I: Business Scenario Knowledge Builder是个用来创建、维护、浏览知识点的Web App,Knowledge Builder API是服务于其需求的API。 简单来说,Knowlege Item是个复杂文本,外加一些额外的属性。 就常见的语数英而言

redis之持久化机制

亡梦爱人 提交于 2019-12-03 10:01:01
[动图演示]Redis 持久化 RDB/AOF 详解与实践 Redis 是一个开源( BSD 许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。它支持的数据类型很丰富,如字符串、链表、集 合、以及散列等,并且还支持多种排序功能。 什么叫持久化? 用一句话可以将持久化概括为:将数据(如内存中的对象)保存到可永久保存的存储设备中。持久化的主要应用是将内存中的对象存储在数据库中,或者存储在磁盘文件中、 XML 数据文件中等等。 从应用层与系统层理解持久化 同时,也可以从应用层和系统层这两个层面来理解持久化: 应用层:如果关闭( Close )你的应用然后重新启动则先前的数据依然存在。 系统层:如果关闭( Shutdown )你的系统(电脑)然后重新启动则先前的数据依然存在。 Redis 为什么要持久化? Redis 中的数据类型都支持 push/pop、add/remove 及取交集并集和差集及更丰富的操作,而且这些操作都是原子性的。在此基础上,Redis 支持各种不同方式的排序。与 Memcached 一样,为了保证效率,数据都是缓存在内存中。 对,数据都是缓存在内存中的,当你重启系统或者关闭系统后,缓存在内存中的数据都会消失殆尽,再也找不回来了。所以,为了让数据能够长期保存,就要将 Redis 放在缓存中的数据做持久化存储。 Redis 怎么实现持久化?

StaggeredGridLayoutManager dislocation

匿名 (未验证) 提交于 2019-12-03 09:52:54
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have used RecyclerView and StaggeredGridLayoutManager. When I scroll from top to the bottom, it looked well. But when I scroll from bottom to the top , the top child view appear a blank. Now, I found when I scroll from top to bottom, it looks : left1 right1 left2 right2 left3 right3 left4 right4 left5 right5 left6 right6 left7 right7 When I scroll from bottom to the top, something happened, it looks like this: right1 left1 right2 left2 right3 left3 right4 left4 left5 right5 left6 right6 left7 right7 and the height of left and right is

Create a UIView with rounded top edge

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to create an UIView with rounded top edge like this image, how can I do it please? Wanted result Not wanted result 回答1: To repost an answer I posted on a different thread: I can now confirm that this is a bug introduced after iOS 6. I have an old 4s running iOS 6.1. On that machine, this code: path = [UIBezierPath bezierPathWithRoundedRect: bounds byRoundingCorners: UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii: CGSizeMake(bounds.size.width/2, bounds.size.width/6) ]; Creates a rounded rectangle with the corners oval

Can qgraph render edge labels outside the actual edge?

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to insert edge labels outside the actual edge in my qgraph for readability purposes. I particularly don't like the option of include a white bg below the label, it screws up the edge. According to the manual, it is possible to adjust edge label position only along the line, but not on the side. Did anyone struggle with this before? Is it possible to circumvent this issue? Cheers 回答1: There does not seem to be a parameter for adjusting the across axis location of the edge label. One solution is to add the edge labels to the plot

Hyperledger SDK for Java chaincode (shim-client-1.0)

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I tried to compile chaincode sample and write my own one ( https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample ) However, I can't get a shim-client-1.0. Do you have plans to make java sdk public? 回答1: I hope that “shim-client-1.0.jar” will be added to maven repository soon, nevertheless you can try to compile it using source code in “github.com/hyperledger/fabric/core/chaincode/shim/java”. gradle build and "shim-client-1.0.jar" will be available in github.com/hyperledger/fabric/core/chaincode/shim/java