Author: JustinB

GraphQL – The Better REST

Reading Time: 5 minutes Over the past few years, the REST has become a de-facto architecture for the web services, which emphasize to communicate through the textual data. The user is given a URI of the resource and user can perform various operations (GET, POST, DELETE etc) defined on that address, as simple as that. There are several architectural points that reflect upon the ideology of the REST. These points Continue Reading

Scraping a website with Akka and JSoup

Reading Time: 5 minutes Do you want to catch up with your opponents by looking at their product listings or generate your own content from someone else’s website or want to run some analytics or just want to scrap a website for the sake of it? Well, it’s not a rare scenario of website scraping. Though, the question is, how to scrap a website! When we Google for – Continue Reading

Config Generator In Hyperledger Fabric

Reading Time: 2 minutes Every Ledger starts with a transaction kept inside the block but what will be the first block? Well, the answer is genesis block. Now, another question how to generate this genesis block? For this part we can use the configtxgen tool to generate the initial or genesis block. The tool is primarily focused on generating the genesis block for bootstrapping the orderer, but it is Continue Reading

Crypto Generator in HyperLedger Fabric

Reading Time: 2 minutes Security is the one of the major aspect of any network. Each of the node must have some identity and on the basis of this identity corresponding accesses are granted. The same approach is follow by the Fabric network as well. Fabric CA generates the identity or artifacts file for each of the node that can be the part of the cluster but for generating Continue Reading

Creating GraphQl API with Sangria

Reading Time: 2 minutes Sangria is a library that processes the graphQL queries coming to the server and pass on the object to business layer of the application, which mostly further queries database to get information which sangria passes on as response to the query. GraphQL is a query language for the servers with which only one route can be used to give response to any query, which are Continue Reading

Test Script Execution Recording using Selenium Webdriver

Reading Time: < 1 minute Everyone has known how to take the screenshot in selenium web driver but when we ask how to take a video recording of the test script in web driver, people have no idea. So here I describe how to capture test script video in selenium web driver. When the execution time of your script is too long so you can record your script and then you Continue Reading

Testing HTTP services in Angular

Reading Time: 2 minutes Prerequisites : 1. Understanding of Angular. 2. Understanding of Component’s unit tests in Angular 3. Understanding of Karma and Jasmine Http Service Let’s consider a simple service to get data using get method of Http service. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode Continue Reading

Introduction to Perceptron: Neural Network

Reading Time: 3 minutes What is Perceptron? In machine learning, the perceptron is an algorithm for supervised learning of binary classifiers. It is a type of linear classifier, i.e. a classification algorithm that makes its predictions based on a linear predictor function combining a set of weights with the feature vector. Linear classifier defined that the training data should be classified into corresponding categories i.e. if we are applying Continue Reading

Decision Tree in Apache Spark

Reading Time: 3 minutes What is Decision Tree? A decision tree is a powerful method for classification and prediction and for facilitating decision making in sequential decision problems. A Decision tree is made up of two components:- A Decision Outcome and, A Decision tree includes three type of Nodes:- Root node: The top node of the tree comprising all the data. Splitting node: A node that assigns data to Continue Reading

Simplifying Monads in Scala

Reading Time: 2 minutes Monads are not at all a complex topic, but yes it comes under the advanced section of Scala language. So basically Monads is a structure that represents sequential computations. Monads is a structure that represents sequential computations, Monad is not a class or a trait; monad is a concept. A monad is an object that wraps another object in Scala, In Monad the output of a Continue Reading

Introduction to D3.js {Part -3}

Reading Time: 11 minutes The charts are more meaningful when they have axes around them. The axes tell the quantity of a particular datum represented on the plane. This a how-to-post to create the axes around a D3 chart. D3 provides .json() method to load the JSON data from a URL. This method takes two parameters – first, a URL that returns a JSON data and second, an anonymous Continue Reading

How data is handled between Components in React (State vs Props)

Reading Time: 3 minutes Prerequisites : Basic understanding of React. Here’s a blog you can refer to : Getting Started with React PROPS Every component in react have a property called props associated to it. This lets you make a single component that is used in many different places in your app, with slightly different properties in each place. If we write a react component in es5, it’s nothing Continue Reading

Getting Started with React

Reading Time: 3 minutes React (sometimes called React.js or ReactJS) is an open-source JavaScript library for building user interfaces. It allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React is flexible. You can create a separate project on react, or you can add it to an existing code base of Continue Reading