Featured post

Blockchain Smart Contract Theory Behind

The smart contract in Blockchain is a kind of software application that works without human intervention based on the transaction logs and provide a solution to the user request. 
I want to share the back end mechanism in the Smart Contract of Blockchain.

Smart Contract Mechanism What is Smart ContractA smart contract is a protocol which can auto-execute, facilitate, verify, or enforce the negotiation of a contract.Agreement between two parties you can say as a contract.Incorporating the rules of the physical contract into the computing world, you can say as a smart contractBlockchain supports you to create smart contracts.Smart Contracts are self-executing programs which run on the blockchain and are capable of enforcing rulesUsing Blockchain as a platform and making an agreement or contract between more than two parties, you can say as Smart Contract.Traditional Markets  4 Top Benefits of Smart ContractCurrently, smart contracts are being used only in Crypto CurrenciesNow Smart Contra…

Python Dictionary Vs List Both Not The Same Why

Dictionary and List we use interchangeably in Python to store values. For beginners, both look the same. In reality, they both differ. I want to share some key differences between Dictionary and List.

👉 Dictionary Vs List Top Differences
Values in lists are accessed by means of integers called indices, which indicate where in the list a given value is found.
Dictionaries access values by means of integers, strings, or other Python objects called keys, which indicate where in the dictionary a given value is found. 
In other words, both lists and dictionaries provide indexed access to arbitrary values, but the set of items that can be used as dictionary indices is much larger than, and contains, the set of items that can be used as list indices. 
Also, the mechanism that dictionaries use to provide indexed access is quite different from that used by lists.
Both lists and dictionaries can store objects of any type.
Values stored in a list are implicitly ordered by their positions in the list b…

Hadoop fs (File System) Commands List

List of basic Hadoop fs File system commands given in this post. These are handy commands. Basically, you always need to remember. 👍

The Syntax for Command and the List and Usage.
Hadoop fs -cmd <args>

👉 cmd is a specific command and arg is the variable name. 


Hadoop fs –cat FILE [FILE …]

👉 Displays the files' content. For reading compressed files.


Hadoop fs –chgrp [-R] GROUP PATH [PATH …]

👉 Changes the group association for files and directories. The – R option applies the change recursively. The user must be the files' owner or a superuser.


Hadoop fs –chmod [-R] MODE[,MODE …] PATH [PATH …]

👉 Changes the permissions of files and directories. Like, its Unix equivalent, MODE can be a 3-digit octal mode, or {augo}+/-{rwxX}. The -R option applies the change recursively. The user must be the files' owner or a superuser.


Hadoop fs –chown [-R] [OWNER][:[GROUP]] PATH [PATH…] 
👉 Changes the ownership of files and directories. The –R option applies th…

AWS Vs Azure Load Balancers Top Insights

Amazon Web Services has three types of load balancers. And Azure is having two types of load balancers. This post tells you the top comparison between these two load balancers.

Amazon Web Services Load Balancer Types
Application Load balancer Network Load balancer Classic Load balancers.
Application Load Balancer

Balancing of HTTP and HTTPS traffic and provides advanced request routing targeted at the delivery of modern application architectures, including microservices and containers. 

Operating at the individual request level (Layer 7), Application Load Balancer routes traffic to targets within Amazon Virtual Private Cloud (Amazon VPC) based on the content of the request.

Network Load Balancer
Network Load Balancer is best suited for load balancing of Transmission Control Protocol (TCP), User Datagram Protocol (UDP), and Transport Layer Security (TLS) traffic where extreme performance is required.

Classic Load BalancerClassic Load Balancer provides basic load balancing across multiple Amazo…

JavaScript Vs JSON Top Differences

Today I woke up after my night sleep, and quickly I completed my daily routines. I thought a few minutes to write useful posts to my readers. I decided to write the differences between Javascript and JSON.
JSON Quick InsightsJSON is simply a data-interchange format and, therefore, does not directly require immediate knowledge of the JavaScript language.JSON a subset of the JavaScript language. Since JSON is made from JavaScript.Data exchange can occur between both browser and server and even server to server, for that matter. Of course, these are not the only possible means to exchange JSON, and to leave it at those two would be rather limiting.The file extension is .json.JSON can be structured:A collection of name/value pairs.An ordered list of values.An introduction to JSON read here.
JavaScript Quick InsightsJavaScript is a text-based scripting language, whereby sequences of Unicode characters are strung togetherJavaScript supports two different types of data types.Primitive and non-…

Kafka Stream Processing Quick Flow Chart for Dummies

The difference between Stream processing Vs Batch processing and role of Kafka I can tell you using simple example.  I have used Mainframe and Youtube for this.

In Mainframe, you remember the data processing majority of it is based on Batch processing. That means the whole collected data processed by some scheduled jobs. 

The streaming data on the other hand is different (Youtube Live). When the data comes into Queue the data will be processed. So, organizations no need to wait until the batch is completed. The organizations will get results Quickly.

Stream Data Flow Before You Move on to Kafka

*Here are the key points to remember:  If you need to report on or take action immediately as data arrives, stream processing is a good approach.

*If you want to Carry detailed analysis If you need to perform in-depth analysis or are compiling a large repository of data for later analysis, a stream-processing approach may not be a good fit.

The Real-time Uses of Stream Data
Credit card fraud—A credit ca…

10 Best Visualization Charts to Present data

I am going to share with you top data visualization charts examples in this post. The data growing up year to year giving a problem for users to understand. 

So data visualization is the best way to present data. The given examples of top data visualization charts help you understand the visualization concept quickly.

10 Types of Top Visualization Charts ExamplesPie chartsHistogramsScatter plotsTimetable chartsVenn diagramsSteam graphsStacked area graphsStacked bar graphsParallel setsMulti-set bar charts
Pie Charts

Best Example: The real usage of Pie-charts is to find information about different groups.The complete data to draw Pie chart.

Best Example The purpose of the Histogram is to know the frequency distribution.The complete data to draw Histogram Scatter Plots

Best Example: The best example is to find the data scattering and to study the patterns. Useful in the study of medical data.The complete data to draw a Scatter plot. Time Table Charts

Best Example The best example is Scho…

How to Use Python Try and Except Logic Correctly

In Python, using the Try and Except logic, you can avoid exceptions. Error-free programs save a lot of time. So it reduces defects in the production.  

In Python what to do if specific errors occur is handled by using TRY and EXCEPT.  For this, you need to write some logic to handle this. If the programmer did not do this, then the default is for Python to print an error message and stops execution. 

So the responsibility of a programmer is upfront he/she has to find errors and to handle them correctly. This is possible if you use the TRY and EXCEPT.

Python Syntax for Try and Except.
try:       c = a/b except:       c = 1000000
How 'Try' works here. The above syntax says that the Try ends with ':'. That means, in Python, that is the block of Try. The programmer's logic comes in the Try block.The Except: is another block. That means in this block programmer can specify some value. And that value populates when any error happens.
So far so good.

Try and Except Examples.Examp…

Popular posts from this blog

Hyperledger Fabric: 20 Real Interview Questions

Hadoop fs (File System) Commands List

My 4 best ultimate books that change your life

How to use Blockchain on Cloud