Fork me on GitHub

07 2018 档案

摘要:npm show grpc # 返回版本号 # 安装旧版本: npm install grpc@1.2.0 阅读全文
posted @ 2018-07-31 17:21 stardsd 阅读(334) 评论(0) 推荐(0) 编辑
摘要:错误描述: 现象: 解决方案: i do as the following steps and it works for me: input "docker network ls" to figure out the name of the network( it is "buildblockcha 阅读全文
posted @ 2018-07-31 12:35 stardsd 阅读(1965) 评论(0) 推荐(0) 编辑
摘要:If I run a server with the port 80, and I try to use xmlHTTPrequest i get this error: Error: listen EADDRINUSE Why is it problem for nodejs, if I want 阅读全文
posted @ 2018-07-30 00:04 stardsd 阅读(244) 评论(0) 推荐(0) 编辑
摘要:I try to run sample application as stated here : http://hyperledger-fabric.readthedocs.io/en/release/write_first_app.html I try to run sample applicat 阅读全文
posted @ 2018-07-29 23:50 stardsd 阅读(2319) 评论(0) 推荐(0) 编辑
摘要:因为npm连接的数据源网站太慢,可以使用淘宝提供的npm数据源, npm config set registry https://registry.npm.taobao.org 使用NPM(Node.js包管理工具)安装依赖时速度特别慢,为了安装Express,执行命令后两个多小时都没安装成功,最后 阅读全文
posted @ 2018-07-29 23:38 stardsd 阅读(30311) 评论(0) 推荐(1) 编辑
摘要:前言 使用git+pycharm有一段时间了,算是稍有点心得,这边整理一下,可能有的方法不是最优,欢迎交流,可能还是习惯敲命令去使用git,不过其实pycharm已经帮忙做了很多了,我们可以不用记住那么多的命令的。 通过pycharm初始化git环境 因为之前内网搭建了gitlab,参考此文章cen 阅读全文
posted @ 2018-07-29 16:09 stardsd 阅读(4699) 评论(0) 推荐(0) 编辑
摘要:多次尝试才正常启动了Fabric,如遇到各种莫名错误,请参考如下一步步严格安装,特别用户权限需要注意。 一、安装Ubuntu16 虚拟机或双系统,虚拟机有VirtualBox或者VMware,Ubuntu 16.04镜像安装好。 打开系统设置,选择软件和更新 , 然后在下载自:中选择aliyun 二 阅读全文
posted @ 2018-07-26 19:23 stardsd 阅读(1463) 评论(0) 推荐(0) 编辑
摘要:I have a docker-compose.yaml file defining 5 services: I have a docker-compose.yaml file defining 5 services: orderer.example.com peer0.org1.example.c 阅读全文
posted @ 2018-07-25 09:59 stardsd 阅读(5327) 评论(1) 推荐(1) 编辑
摘要:通过resolvconf实现配置 resolvconfig应用可以实现DNS信息管理,可以通过下面的应用来安装此组件: sudo apt-get install resolvconf 创建/etc/default/resolvconf缺省配置文件,添加相关环境变量 bob@ubuntu:/etc/r 阅读全文
posted @ 2018-07-25 09:35 stardsd 阅读(6110) 评论(2) 推荐(0) 编辑
摘要:This entire tutorial is the second part of the installation of Hyperledger Fabric v1.1. In the previous article, we installed all the dependencies req 阅读全文
posted @ 2018-07-23 20:57 stardsd 阅读(421) 评论(0) 推荐(0) 编辑
摘要:There is an entire library of Blockchain APIs which you can select according to the needs that suffice your application. Some libraries are open-sourc 阅读全文
posted @ 2018-07-23 20:54 stardsd 阅读(311) 评论(0) 推荐(0) 编辑
摘要:错误情况: 解决方案: are you sure you have Calibri bold installed on your machine? Also, you may go to "Devices and Printers" right click on Adobe PDF printer 阅读全文
posted @ 2018-07-20 22:27 stardsd 阅读(1068) 评论(0) 推荐(0) 编辑
摘要:我们知道,如果直接对密码进行散列,那么黑客可以对通过获得这个密码散列值,然后通过查散列值字典(例如MD5密码破解网站),得到某用户的密码。 加Salt可以一定程度上解决这一问题。所谓加Salt方法,就是加点“佐料”。其基本想法是这样的:当用户首次提供密码时(通常是注册时),由系统自动往这个密码里撒一 阅读全文
posted @ 2018-07-20 19:25 stardsd 阅读(11419) 评论(0) 推荐(0) 编辑
摘要:什么是帕累托分布 帕累托分布是以意大利经济学家维弗雷多·帕雷托命名的。 是从大量真实世界的现象中发现的幂次定律分布。这个分布在经济学以外,也被称为布拉德福分布。 帕累托因对意大利20%的人口拥有80%的财产的观察而著名,后来被约瑟夫·朱兰和其他人概括为帕累托法则(80/20法则),后来进一步概括为帕 阅读全文
posted @ 2018-07-10 20:53 stardsd 阅读(12570) 评论(0) 推荐(0) 编辑
摘要:Density Function The Generalized Gaussian density has the following form: where (rho) is the "shape parameter". The density is plotted in the followin 阅读全文
posted @ 2018-07-09 11:37 stardsd 阅读(2596) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/xh16319/article/details/31375197 https://blog.csdn.net/xh16319/article/details/31375197 很多人都认为,Secondary NameNode是NameNode的备份,是为 阅读全文
posted @ 2018-07-08 20:53 stardsd 阅读(3737) 评论(0) 推荐(0) 编辑
摘要:在进行网络编程时,会将服务器的IP地址设置为127.0.0.1。然后绑定端口,开始监听。但是对于服务器来说,除了127.0.0.1,还有内网IP和公网IP,绑定本地的话只能局域网传输,所以,应该怎么绑定? 先复习一下IP类型: A类地址:网络号占1个字节。网络号的第一位固定为0。 B类地址:网络号占 阅读全文
posted @ 2018-07-08 20:39 stardsd 阅读(23901) 评论(0) 推荐(2) 编辑
摘要:问题描述: 集群启动正常,无法从其他节点访问50070端口和8088端口。 解决方案: 改/etc/hosts 另:主机名不要命名为localhost,会混淆 如果是Virtualbox,要进行端口映射(设置-网络-高级-端口转发) 阅读全文
posted @ 2018-07-08 20:26 stardsd 阅读(604) 评论(0) 推荐(0) 编辑
摘要:主要原因1.term类型不对,不支持彩色.在secureCRT上设置Options->SessionOptions ->Emulation,然后把Terminal类型改成xterm,并点中ANSI Color复选框。然后ls看看,发现文件名和目录已经是彩色了.但是可能vi打开某些文件依然不是彩色按: 阅读全文
posted @ 2018-07-08 19:13 stardsd 阅读(1313) 评论(0) 推荐(0) 编辑
摘要:VMware虚拟机的上网方式有三种:NAT、桥接、仅主机模式,本篇介绍桥接模式和NAT模式。 1.实验环境 博主的实验环境如下: 宿主机操作系统:Windows 7 VMware Workstation版本:12.5.2 build-4638234 虚拟机操作系统:CentOS 6.5 虚拟机操作系 阅读全文
posted @ 2018-07-08 15:23 stardsd 阅读(13548) 评论(5) 推荐(6) 编辑
摘要:查看Centos7的IP 我们输入ip查询命名 ip addr 也可以输入 ifconfig查看ip,但此命令会出现3个条目,centos的ip地址是ens33条目中的inet值。 发现 ens33 没有 inet 这个属性,那么就没法通过IP地址连接虚拟机。 接着来查看ens33网卡的配置: vi 阅读全文
posted @ 2018-07-07 14:46 stardsd 阅读(603) 评论(0) 推荐(0) 编辑
摘要:一、光口 1、基本概念 光口是光纤接口的简称。 也可称之为:G口 (意思是G光纤口) 光口:所应用于机房,机柜等大型设备的一个光纤带宽接口。 光纤可以用于音频(声卡有光输出的),网络(光纤作为传输介质),磁盘(光纤代替电缆传输数据)等等。 光纤又可分为单模光纤和多模光纤 区别如下: 单模光纤和多模光 阅读全文
posted @ 2018-07-05 16:28 stardsd 阅读(22977) 评论(0) 推荐(0) 编辑
摘要:ECC的全称是 Error Checking and Correction or Error correction Coding,是一种用于差错检测和修正的算法。NAND闪存在生产和使用中都会产生坏块,BBM就是坏块的管理机制,而要有效管理坏块的首要前提就是有可靠的坏块检测手段。如果操作时序和电路稳 阅读全文
posted @ 2018-07-05 15:33 stardsd 阅读(2607) 评论(0) 推荐(0) 编辑