MongoDB Commands Cheat Sheet for Beginners

mongodb cheat sheet for beginners

In this post, you will learn about MongoDB commands which could get you started and perform minimum database related activities such as create, update, drop a collection (table). These commands are ideally meant for MongoDB beginners and could be taken as the cheat sheet. You may want to bookmark this page for quick reference. MongoDB Commands Cheatsheet The following is the list of the commands: Start and stop the MongoDB Database Access the MongoDB database using Shell Show all databases Create a database, say, testdb; Switch to the database Until a collection is created in a database, the database name is not listed as a result of execution of the command, “show dbs” Add a …

Continue reading

Posted in MongoDB, NoSQL. Tagged with , .

Blockchain – How to Store Documents or Files

Store Documents or Files in Blockchain Network

This post represents best practices in relation to storing documents or files in the Blockchain. The need to determine best practices arises from the fact that business between two or more parties ends up exchanging documents consisting of data related to the agreement, business details etc. One often questions whether one store’s document or file in the blockchain or the hash of the document/file in the Blockchain. Store documents in Blockchain – Best Practice/Recommendation As a best practice, it is not recommended to store the document (PDF format or otherwise) or file in the Blockchain. Different blockchain frameworks limit the size of the block which can be added to the blockchain. Although in blockchain network …

Continue reading

Posted in BlockChain. Tagged with .

Bitcoin Blockchain – What is Proof of Work?

Proof of Work in Bitcoin Blockchain

In this post, you will learn about what is proof of work in a Bitcoin Blockchain.  Simply speaking, the proof of work in computing is used to validate whether the user has put enough effort (such as computing power) or done some work for solving a mathematical problem of a given complexity, before sending the request. For example, Go to any online SHA 256 calculator tool and try using a random number with the text “Hello World” as shown in the below screenshot. If the difficulty target is set as the hash value starting with one zero, you could see that the random number 10 results in hash value starting with zero. The number 10 …

Continue reading

Posted in bitcoin, BlockChain. Tagged with .

Is Blockchain a Linked List like Data Structure?

Blockchain represented as Linked List Data Structure

In this post, you will learn about similarity and differences between linked list and Blockchain. The most trivial way to understand What is Blockchain is to visualize Blockchain as a crude form of the Linked List data structure that we read in one of our engineering classes. Simply speaking, a Blockchain can be defined as a linked list of a group of transactions (block) which is connected with each other using hash pointers rather than pointers as in the case of the linked list. The following diagram represents the Linked List data structure: The following diagram represents the Blockchain. Note some of the following characteristics of a block: Each block …

Continue reading

Posted in BlockChain, Data Structure. Tagged with .

Learning Blockchain – Free Online Courses & Training – 1

learning blockchain technology

This is the first blog representing a series of posts on enabling you to learn Blockchain online. Such posts would also represent some interesting projects for you to learn the different aspects of Blockchain implementation. This post is aimed to represent some links in relation to learning Blockchain concepts vis-a-vis free online courses, training. (Learning) Center for Blockchain Research (CBR) by Stanford: The following are free textbook and Coursera course on Cryptography: Free online Cryptography course on Coursera Free online textbook on applied cryptography (Case Study) Distributed Contracting Blockchain Network by Microsoft & EY: The diagram below demonstrates the following different aspects of blockchain: Permissioned blockchain registering entertainment, gaming industry …

Continue reading

Posted in BlockChain, Career Planning, Tutorials. Tagged with .

How is Digital Signature used with a Document?

how is digital signature used

A digital signature scheme is primarily a mechanism of making sure the digital documents (such as email, contract documents etc) are not forged in between (integrity) when exchanged between two entities. In addition, it solves the problem of non-repudiation (when a person disagrees that he/she did not sign the document). A digital signature is nothing but a sequence of numbers which get generated with a document and later used to verify whether the document is signed with the appropriate private key. Creating a document with a digital signature comprises of the following: Creation of private-public key pair using key generation algorithm. The public key, as per the name, could be …

Continue reading

Posted in Cryptography. Tagged with , .

Kerala to lead Blockchain Training in India

kerala blockchain training India

Kerala becomes the first Indian state to set up a goal of providing Blockchain training creating to IT community stakeholders (primarily students) and create 25000 Blockchain professionals in 3 years time frame. They have designed a program called ABCD (Accelerated Blockchain Competency Development) Programme which comprise of courses such as following: Foundation training programme aimed to provide training in skills such as HTML, MEAN stack, GoLang etc. This programme comprises of 82 Hrs of classroom training and around 42 Hrs on self-learning activities (total of 124 hrs over a period of 6 months for students, 1 month for graduates and 6 weeks for working professionals). The course fee is Rs. …

Continue reading

Posted in BlockChain, Career Planning. Tagged with .

Blockchain & Smart Contract for Quick Insurance Payouts?

insurance payouts and blockchain

In this post, you will learn about how Blockchain and Smart Contracts could benefit Insurance Claims Payout processes resulting in faster and smoother payouts. Blockchain is already having a positive impact on insurers and reinsurers by removing frictional costs by reducing the need for manual data inputting and multiple checks and data accounting between parties. Why delay in Insurance Claim Payouts? One of the painful aspects of insurance claims is delayed payouts. There are several reasons including some of the following which results in delayed claim processing and hence, delayed payouts: Type of insurance product/program: Different types of insurances result in the different duration of payouts on an average. Structure of the insurance program Level of cover …

Continue reading

Posted in BlockChain. Tagged with , .

Lessons on Blockchain & Cryptocurrency for MBA Students

blockchain lessons for MBA students

Given that both, financial and non-financial businesses are trying to figure out how they could use Blockchain to impact their business in a positive manner, it is becoming imperative for MBA students to learn the basics of Blockchain & related technologies. The following are some of the topics which could be included in the course-curriculum for MBA courses related to Blockchain and cryptocurrency. Blockchain fundamentals Distributed ledger technology (DLT) Types of Blockchains (public, private/permissioned) Terminologies such as a unit of value, transaction, a block of transaction Consensus algorithms Authentication mechanisms for permissioned blockchain Blockchain platforms such as Ethereum, Hyperledger, Corda, EOS, Multichain etc. Smart Contracts Cryptocurrency – Bitcoin, Ether & Others Hard forks such as Bitcoin Cash Cryptocurrency exchanges Initial …

Continue reading

Posted in BlockChain, Career Planning, Cryptocurrency. Tagged with .

Why create Performance Appraisal System on Blockchain?

performance-appraisal-using-blockchain

In this post, I would discuss the need for creating a performance appraisal system by making use of Blockchain, Smart Contracts, and Cryptocurrency such as PATB (PAT on the Back) Coin. This article is in continuation to the article I posted on LinkedIn with the title as A Decentralized Performance Appraisal System using Blockchain & Smart Contracts? Performance Appraisal –  Need for Greater Trust, Transparency, and Rewarding Experience In age-old performance appraisal review system, the performance review is done by a couple of guys including the immediate manager/team leads and the reviewer. While some managers (and/or team leads) maintain the record of the all-round contribution of the employee throughout the year, most of …

Continue reading

Posted in BlockChain. Tagged with , .

AI – Three Different types of Machine Learning Algorithms

Types of machine learning (AI)

This post is aimed to help you learn different types of machine learning algorithms which forms the key to artificial intelligence (AI). Machine learning algorithms Representation or Feature learning algorithms Deep learning algorithms The following represents different types of learning algorithms in form of a Venn diagram. What are Machine Learning (ML) Algorithms? Machine learning algorithms are the most simplistic class of algorithms when talking about AI. ML algorithms are based on the idea that external entities such as business analysts and data scientists need to work together to identify the features set for building the model. The ML algorithms are, then, trained to come up with coefficients for each of the features and how are they …

Continue reading

Posted in AI, Data Science, Machine Learning. Tagged with , .

InsurWave Blockchain Platform – Technology & Other Details

insurwave blockchain platform used by Maersk

Insurwave is claimed to be world’s first marine insurance blockchain platform launched as a result of a joint venture by Ernst & Young (EY), GuardTime and insurance industry participants. This looks to be a permissioned blockchain platform requiring the member organizations (maritime companies, brokers, insurers, and reinsurers) to be authorized prior to becoming part of the Blockchain consortium. InsurWave Blockchain Platform is used to? The blockchain platform is used to achieve some of the following objectives: Store data related to assets Store data about identities, risk, and exposures Associate date to smart contracts Connects assets, transactions, and payments Integrate this information with insurance contracts. What’s the technology behind InsurWave? The following are some of the key aspects of the technology used …

Continue reading

Posted in BlockChain, corda. Tagged with , .

LuminJS – How to Highlight Text in HTML Pages

luminjs to highlight text in html page

If you have been looking for some utility which could assist in highlighting the text or paragraph on the web or HTML pages, here is a new Javascript kid in the town. It is called as LuminJS. LuminJS is a Javascript library which could help in achieving some of the following objectives: Highlight the text on the web page in an animated manner. One could configure speed and styling (color) of the highlighting. One could create typing effect by making use of colors. Control the text which needs to be highlighted. One could use the progress bar for controlling purpose. Highlight the HTML nodes along with its children nodes. One …

Continue reading

Posted in Javascript, UI, Web. Tagged with .

Blockchain & Cryptocurrency – Key Concepts to Know

blockchain concepts

The following are some of the most popular Blockchain and Cryptocurrency jargons or terminologies or concepts that are good to know when you are delving into technology landscape of Blockchain. Blockchain (What is Blockchain Technology?) Genesis block: The first block of a blockchain. Merkel’s tree algorithm: It is fundamental to blockchain technology. Simply speaking, a Merkle tree summarizes all the transactions in a block by producing a digital fingerprint of the entire set of transactions, thereby enabling a user to verify whether or not a transaction is included in a block. Cryptocurrency Cryptocurrency exchanges: These are businesses which allow users to trade cryptocurrencies for other assets. Distributed ledger: Blockchain is one type of …

Continue reading

Posted in BlockChain. Tagged with .

Angular 6 – How to Create PWA (Progressive Web App)

progressive web app using angular 6

In this post, you will learn about steps that are required to create a progressive web app (PWA) with Angular 6. Unlike Angular 4 and Angular 5, it is very easy and quick with Angular 6. Just one command and you are done. The following are the steps required to create PWA with Angular 6. Create an angular app using the following command: Go to the root folder, (ProjectName). Execute the following command: The above command does some of the following: Adds the @angular/service-worker package Enables service worker to build support in the CLI. Imports and registers the service worker in the app module. Creates the service worker configuration file …

Continue reading

Posted in AngularJS, Javascript, Web. Tagged with , , .

How to Upgrade from Angular 5 App to Angular 6

How to Migrate Angular 5 to Angular 6

In this post, you will learn about How to update or migrate your Angular 5 app (using Angular 5.1 or Angular 5.2 version) to use Angular 6.0.0. The following are some of the points covered: Pre-requisites Upgrade/Update steps for migrating Angular 5 to Angular 6.0.0 app. Pre-requisites The following needs to be done before you start on the migration: Make sure your NodeJS version is Node 8 or later. Make sure your code used HttpClientModule and the HttpClient service instead of HttpModule and Http service. Make sure to import animation services from @angular/animations rather than @angular/core. Upgrade/update Angular 5.* to Angular 6.0.0 The following commands need to be executed as part of …

Continue reading

Posted in AngularJS, Web. Tagged with , .