Installation of HyperLedger Fabric on Ubuntu

Posted on Updated on

Installation of Hyperledger Fabric is a few steps process. follow following set of commands for its smooth installation. For detailed description click the link below…

Installing Hyperledger Fabric on Ubuntu

sudo apt-get install curl

sudo apt-get install golang-go

export GOPATH=$HOME/go

export PATH=$PATH:$GOPATH/bin

sudo apt-get install nodejs

sudo apt-get install npm

sudo apt-get install python

sudo apt-get install docker

curl -fsSL | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"

sudo apt-get update

apt-cache policy docker-ce

sudo apt-get install -y docker-ce

sudo apt-get install docker-compose

sudo apt-get upgrade

sudo curl -sSL | sudo bash -s 1.1.0
sudo chmod 777 -R fabric-samples

cd fabric-samples/first-network
sudo ./ generate

sudo ./ up

sudo ./ down

Read description about these command in my post: Installing Hyperledger Fabric on Ubuntu Step by Step

Return String as ActionResult in ASP.Net MVC

Posted on

You can simply just use the ContentResult to return a plain text string:

public ActionResult Temp() {
return Content("Hi there!");

Check if jQuery UI is loaded ?

Posted on Updated on

Question: How to check if jQuery UI is loaded on web page ?

First make sure you put any code that calls it in $(document).ready(). At that point, everything should be loaded on the page.

One better way is to check by writing Read the rest of this entry »

Blockchain in Health Insurance Industry

Posted on Updated on

Blockchain is reshaping DNAs of almost all businesses, Health Insurance industry is one of them. No doubt insurance industry is already very mature enough but still stakeholders face day to day issues due to lack of connectivity between computerized systems of Insurance Vendors, Hospitals and other Healthcare Services Providers. Read the rest of this entry »

Drop system-versioned temporal table in SQL Server

Posted on Updated on

To Drop a Temporal Table you first need to turn System_Versioning OFF. Then Delete your required temporal table. Finally you can also choose to delete History table associated with your Temporal Table.

DROP TABLE [dbo].[TemporalTest]
DROP TABLE [dbo].[TemporalTestHistory]

Install UBUNTU 18.04 on VirtualBox Virtual Machine on Windows

Posted on

Platform: Windows 10

Virtualization through: VirtualBox

Installing SQL Server on Linux (Ubuntu 18.04)

Posted on Updated on

Installation of SQL Server on Linux (in Ubuntu) is a few steps process. We will first update and upgrade our OS then we will start our installation process.
Read the rest of this entry »

Difference between update and upgrade in Ubuntu

Posted on

apt-get update updates the list of available packages and their versions, but it does not install or upgrade any packages.

apt-get upgrade actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed. This is why you first want to update.

Important: You should first run update, then upgrade. Neither of them automatically runs the other.

Know version of NodeJS on Ubuntu

Posted on Updated on

you can get the version of your nodejs by issuing command:

node --version

Permissions error while installing Hyperledger Fabric Composer-Cli

Posted on Updated on

On Ubuntu (the supported Linux development environment) using sudo to install composer is not recommended.

Problem is the npm prefix which can get set to /usr/local to which the user doesn’t have write access. Issuing an npm config set prefix /home/[user]/ will solve the problem.

For example if username is “abcd” then try issuing following command:

npm config set prefix /home/abcd/

You may have an old version of Composer or one of the components installed. Try using npm ls -g –depth=0 to see if you have some composer code already installed, and if so remove it with npm uninstall -g composer- where might be cli, or playground etc. Then retry with the install -g command.