Category Archives: Software

Hyperledger Fabric: How to debug balance-transfer typescript app in VS Code?

How to debug typescript app in VS Code? In VS Code goto Debug -> Add Configuration… and add following configuration to launch.json 2. cd to the directory where app.ts is located and from there run $ /usr/local/bin/node –nolazy -r ts-node/register … Continue reading

Posted in Software | Leave a comment

Understanding Hyperledger Fabric Installation

Hyperledger Fabric (HL Fabric for short) provides an installation script that be found at https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh Running it like ./bootstrap.sh does 3 things: It will create a directory named bin and install Fabric binaries in it It will also create a … Continue reading

Posted in Software | Leave a comment

A day in the exciting life of a Software Developer

Woke up yesterday all excited that today I will add a nodejs sample showing how to use ABAC (Attribute Based Access Control) in Hyperledger Fabric and submit a pull request. Here is how it went. Things needed to be done: … Continue reading

Posted in Software | 1 Comment

How to specify version of docker image to be used when running hyperledger fabric?

By default Fabric will use the version tagged latest. To use another version (known as image_tag in docker parlance) edit the docker-compose.yaml like so image:hyperledger/fabric-ca-tools:1.3.0 above will tell docker to use the image tagged 1.3.0 see: https://stackoverflow.com/questions/33816456/how-to-tag-docker-image-with-docker-compose https://docs.docker.com/compose/compose-file/#image

Posted in Software | Leave a comment

Disk space becomes full when running Hyperledger Fabric

I left the balance-transfer app running on my server for a few days and now the disk space is full. $ df -h –total Filesystem Size Used Avail Use% Mounted on udev 1.7G 0 1.7G 0% /dev tmpfs 342M 36M … Continue reading

Posted in Software | Leave a comment

The Dark Side of Software Development

This post is meant to outline the sad state of software development in some big corporations. Its hard to put numbers but very roughly speaking for every changeset: Only 10% of the time is spent in coding the actual meat … Continue reading

Posted in Software | Leave a comment

Learn how to use Tmux

why use it?https://unix.stackexchange.com/questions/479/keep-ssh-sessions-running-after-disconnectionanother good alternative is to use nohup (instead of tmux esp. when you want to copy-paste) but with it remember to delete the log files. seehttps://unix.stackexchange.com/questions/45913/is-there-a-way-to-redirect-nohup-output-to-a-log-file-other-than-nohup-out for how to direct the output to a file other than nohup.out … Continue reading

Posted in Software | Leave a comment

What is a blockchain?

Best paper on blockchain: https://nvlpubs.nist.gov/nistpubs/ir/2018/NIST.IR.8202.pdf Start by watching this video. Then read these two articles: Blockchain Part I Blockchain Part II and the original bitcoin article. Stop. Do not read more – you will learn more by reading and understanding … Continue reading

Posted in Software | Leave a comment

Blockchain vs. Git – a comparison

Functional comparison of Blockchain and Git Blockchain Git Single source of truth ✔ ✔ Know who committed a change ✔ ✔ Track history of an asset ✔ ✔ (asset could be a file) Consensus ✔ ✔ (code review + unit … Continue reading

Posted in Software | Leave a comment

Notes on installing Hyperledger Fabric

ran into several issues while trying to install hyperldger fabric on a fresh mac following the instructions at https://hyperledger-fabric.readthedocs.io/en/release-1.2/install.html. writing this post to remember how to fix the errors in future. There are two issues in above: git is not installed … Continue reading

Posted in Software | Leave a comment