Angular 5 – How to Create Progressive Web Apps (PWA)

progressive web apps with Angular 5

This article represents steps and instructions on how to create a progressive web app (PWA) using Angular 5. In the previous article, we saw the steps to create PWA with Angular 4 and earlier versions, along with installation pre-requisites and introduction to PWA. This article will refer the previous article at various places. What are Progressive Web Apps (PWA)? Check out the details in my previous article, How to create progressive web app using Angular 4. The following are key requirements of PWA which shall be addressed in this article: Discoverable (Using manifest file) App-like offline experience (Using out-of-box Service-worker) Installation pre-requisites Install Lightspeed Chrome plugin for testing the aspects …

Continue reading

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

Angular – How to Create Progressive Web App with Angular 4

progressive web app using angular

This article represents steps required to get started with / create progressive web app (PWA) using Angular 4.* and earlier versions such as Angular 2.*. You will note that we used the sw-precache NPM module for working with a service worker for seamless offline experience when the internet is not available. This is one of the key requirements of a progressive web app.  Angular 5.* introduced the service-worker concept for providing out-of-the-box support for the App-like offline experience. We shall deal with using Angular 5 service worker for creating a progressive web app in a follow-up article. What are Progressive Web Apps (PWA)? A progressive web app has some of …

Continue reading

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

Hyperledger Fabric – Cryptogen Tool Not Found…Exiting

hyperledger fabric cryptogen tool

This error, Cryptogen Tool Not Found…Exiting occurred when I tried to build the first network by executing byfn.sh script using following commands for the first time after downloading and installing hyperledger fabric platform binaries/components and fabric samples: The following screenshot represents the error: Why the Error – Cryptogen Tool Not Found This error occurs, primarily, due to the reason that cryptogen tool can be not be found in the path. The path to cryptogen tool needs to be set to PATH variable. This can be confirmed by checking the logs of the script execution by putting the following code (set -x) in the beginning of the file, byfn.sh, as shown below. Note that the code set-x is used to expand …

Continue reading

Posted in BlockChain, Hyperledger. Tagged with , .

Angular – Top 10 Security Best Practices vis-a-vis Security Risks

angular security best practices

Are you concerned about security vulnerabilities in your angular app? Have you been wondering whether one or more of your angular apps are at security risks? Your worries regarding potential security bugs in your angular apps are well justified given security threats to web apps in general. This article would help you learn some of the top security best practices for your Angular apps. Some of these best practices may as well be applied for earlier versions of AngularJS. We shall be referring the security best practices in relation to some of the OWASP Top 10 Security Vulnerabilities. Some of the recommendations include out-of-box support from Angular Http utility such as DomSanitizer and HttpClient which is part of Angular 2, Angular 4 and Angular 5. Quick Recall …

Continue reading

Posted in AngularJS, Application Security, UI, Web. Tagged with , , , .

Kubernetes – Practice Test / Interview Q&A on Service Discovery

kubernetes service discovery

This article represents concepts, revision / quick notes, and practice or sample test/interview questions and answers on Service Discovery topic of Kubernetes. These notes, Q&A could provide to be helpful for those appearing for Kubernetes administrator certification exams (CKA). Revision Notes – Service Discovery Kubernetes supports the following two modes of service discovery: Environment variable DNS Service environment details can be set based on the following format. Service name needs to be in uppercase. {SVCNAME}_SERVICE_HOST {SVCNAME}_SERVICE_PORT When using environment variables for service discovery, it is a mandate that the services must be created prior to the pods which want to access those services. DNS server creates a set of records for each service discovered via watching Kubernetes APIs. Services of type ExternalName can only be accessed …

Continue reading

Posted in CloudNative, Interview questions, Kubernetes. Tagged with , , .

Hyperledger Fabric Transaction Flow (Interview Q&A & Notes)

hyperledger fabric transaction flow

This article represents concepts in relation to, how does a transaction flow in Hyperledger Fabric Blockchain network, in form of notes and interview questions and answers. Those appearing for Hyperledger Fabric interview would find the questions and notes very useful for quick brush-up. Hyperledger Fabric is a platform for distributed ledger solutions. The following represents key participants in Hyperledger Fabric Blockchain network who are involved in the transaction flow right from the initiation of transaction proposal to committing a transaction into the distributed ledger. Application: Gets involved in following capacity: Sends the transaction proposal to endorsing peers Receives the transaction results from endorsing peers Broadcasts the transaction message to ordering service Endorsing peers: Do some of the …

Continue reading

Posted in BlockChain, Hyperledger, Interview questions. Tagged with , , , .

Angular – How to Search or Filter Table by Column

Figure 1. Angular - Search Table by Column Filter

This article represents concepts and code samples in relation to filtering or searching table by one or more column data when working with Angular (Angular 2.*, Angular 4.* Angular 5.*). One can achieve the search/filter table by column functionality by creating custom pipes. Although Angular recommends it by handling the logic in services, one can always create custom pipes as shown in this article. The following topic is discussed later in this article: No Out-of-box support for Filter or OrderBy in Angular How to create search filter for filtering table by column The details on creating custom pipes can be read from this page, Angular Pipes. No Out-of-box support for Filter or OrderBy in Angular Unlike AngularJS, …

Continue reading

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

Spring Boot & Angular App Hello World as One Deployable War

deploying spring and angular app as deployable war

This article represents steps and related code samples to deploy an Angular app (created with Angular 2.*, Angular 4.* or Angular 5.*) with a Spring Boot / Spring Web app as one deployable unit (war file) on the web server such as Tomcat, Jetty etc. Different Deployment Strategies for Spring Boot and Angular App The following are the two different strategies which can be used for deploying web app built with Angular 5.* (and previous versions such as Angular 4.* or Angular 2.*) used for doing client side programming and Spring boot with Spring Web for server-side programming. Deploy Angular App and Spring Boot / Spring Web app as different applications running on different servers; This implies that users connect …

Continue reading

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

Hyperledger Fabric Distributed Ledger – Interview Questions / Notes

hyperledger fabric distributed ledger interview questions

This article represents practice test / interview questions and answers and revision notes on Hyperledger Fabric Distributed Ledger**. These questions and answers can prove to be very helpful to check your knowledge on Hyperledger Fabric if you are appearing for Hyperledger Fabric interview in near future. Hyperledger Fabric is an open-source framework for building distributed ledger solutions. The distributed ledger is maintained by every peer participating in the network. It is stored as a combination of a transaction logs and a world state database (key-value pairs). Revision Notes – Hyperledger Fabric Distributed Ledger Concepts The distributed ledger is a combination of following: Blockchain to store immutable ordered/sequenced records; It is stored in form of transaction logs and stored in peers’ file system (local …

Continue reading

Posted in BlockChain, Hyperledger, Interview questions. Tagged with , , .

Hyperledger Fabric – Difference between World State DB & Transaction Logs

distributed ledger world state database transaction logs

This article highlights key differences between World State Database (DB) and Transaction Logs which comprise the Hyperledger Fabric Distributed Ledger. Hyperledger Fabric Distributed Ledger can be said to be a combination of World State Database (DB) and transaction logs. It requires invocation of chaincode (smart contracts) for interacting with distributed ledgers (world state DB and transaction logs). The transactions are stored in the block in the same sequence in which they occured and this is responsibility of ordering service to ensure the ordering sequence of transactions in the block. World State Database Transaction Logs Stores the chain’s state information in form of key-value pairs Stores chain of blocks consisting of transaction details in form of sequence of transactions Stored in database such as LevelDB …

Continue reading

Posted in BlockChain, Hyperledger. Tagged with , .

Hyperledger Fabric Introduction – Interview Questions / Revision Notes

hyperledger fabric introduction

This article represents practice test and revision notes on Introduction to Hyperledger Fabric. These questions and answers can prove to be very helpful to check your knowledge of Hyperledger Fabric if you are appearing for Hyperledger Fabric interview in near future. Hyperledger Fabric is an open-source framework for building distributed ledger solutions. The unique thing about Hyperledger Fabric is that it supports pluggable implementations of different components such as identity management, consensus algorithm etc. Revision notes on Introduction to Hyperledger Fabric Hyperledger Fabric can be used for creating private and permissionless Blockchain network. Blockchain Participants – Membership Members join Hyperledger Fabric Blockchain network using Membership Service Provider (MSP) service. Hyperledger Fabric allows custom MSP to be plugged. Distributed Ledger – Data and Database Hyperledger Fabric allows ledger data to be stored …

Continue reading

Posted in BlockChain, Hyperledger, Interview questions. Tagged with , .

QISKit and IBM-QX for Running Quantum Computing Applications

GISKit and IBMQ Experience for Quantum Computing.png

IBM-Q is IBM’s initiative to build commercially available universal quantum computers for business and science. IBM-Q currently recommends using QISKit and Quantum Composer for building quantum computing experiments, programs and applications which could run on real quantum computing hardware provided by IBM cloud. The details on how to get started with building and running Quantum applications can be provided on IBM’s website, IBM Q Experience (IBM-QX). In this article, let’s look at further details in relation with QISKit SDK. QISKit SDK for building Quantum Computing applications IBM-Q recommends Python software development kit (SDK) namely Quantum Information Software Kit (QISKit) which can be used for building programs, applications that could run on IBM quantum computers (quantum computing hardware). Here are some reference links: Github page on QISKit: COnsists …

Continue reading

Posted in News, Quantum Computing. Tagged with , .

Certified Kubernetes Administrator Sample Test on Services Concept

Certified Kubernetes Administrator Practice Test on Services

This page represents practice test consisting of questions and answers on Kubernetes. This practice test covers the topic such as Kubernetes Services. The practice test can prove to be very helpful if you are preparing to take Certified Kubernetes Administrator (CKA) certification examination in near future. It covers the Networking Concepts from CKA certification exam syllabus which can comprise of 11% questions in CKA certification exam. Check out other question sets on this page, Kubernetes Certification Exam (CKA) Sample Questions Sets. Revision Notes – Kubernetes concepts on Services A Kubernetes service is an abstraction which is used to define a logical set of pods. A Kubernetes service is assigned an IP address. In service spec definition, port refers to incoming port which is mapped to targetPort on Pod. By default, the value of …

Continue reading

Posted in certifications, Interview questions. Tagged with , , .

Kubernetes Certification Exam (CKA) Sample Questions Sets

kubernetes certification CKA exams questions

This article represents a series of practice / sample tests on some of the following topics as per the Kubernetes CKA exams syllabus. Kubernetes certification expert page also provides weightage associated with different topics. Topics Weightage Application Lifecycle Management 8% Installation, Configuration & Validation 12% Core Concepts 19% Networking 11% Scheduling 5% Security 12% Cluster Maintenance 11% Logging / Monitoring 5% Storage 7% Troubleshooting 10% These questions are intended to provide you with practice tests to test your knowledge on different Kubernetes concepts before appearing for Kubernetes certification (CKA) exams. This page will be updated from time-to-time as more practice tests are added. Practice / Sample Tests on Kubernetes Topics …

Continue reading

Posted in certifications, Kubernetes. Tagged with , , .

Great Quantum Computing Tutorials from DWave System

quantum computing tutorial by DWave System

I have been watching several quantum computing tutorial videos on YouTube and Ted, and, reading multiple web pages to find out one or more videos / documents which could make it easier for anyone to understand quantum computing and related concepts. This is where I landed on this document Quantum Computing Primer by DWave Systems. The following are some of the document highlights: Explained quantum computing concepts such as qubits being in superposition of states using light switches with ON and OFF states with reference to both classical and quantum computing. The following is the most interesting part of Qubits explanation: You start with the system in its quantum superposition …

Continue reading

Posted in Quantum Computing, Tutorials. Tagged with , .

Hyperledger Fabric Platform Components & Docker Images

hyperledger fabric distributed ledger interview questions

This article represents details on installing / setting up Hyperledger Fabric Platform Components / Binaries  with emphasis on some of the following: Steps for how to install / setup Fabric platform components & docker images Details on platform components which are used for setting up the Fabric network Details on docker images which comprise Hyperledger Fabric network The installation leads to download /pull of docker images which are required to run the Blockchain network using Hyperledger Fabric. Installing Fabric Platform Components & Docker Images The following command can be used to install Platform binaries: In case Docker commands require sudo, the above command looks like following: The script which gets …

Continue reading

Posted in BlockChain, Hyperledger. Tagged with , .