WHAT IS THE DIFFERENCE BETWEEN FLUX AND REDUX ?

What is the difference between Flux and Redux?

Redux does not have a dispatcher. It relies on pure functions called reducers. It does not need a dispatcher. Each action is handled by one or more reducers to update the single store. Since data is immutable, reducers return a new updated state that updates the store Flux makes it unnatural to reuse functionality across stores in Flux, stores are flat, but in Redux, reducers can be nested via functional composition, just like React components can be nested. Redux store your state at only one place. While you can have many in Flux

WHAT IS THE DIFFERENCE BETWEEN SUPERVISED LEARNING AN UNSUPERVISED LEARNING?

What is the difference between Supervised Learning an Unsupervised Learning?

If an algorithm learns something from the training data so that the knowledge can be applied to the test data, then it is referred to as Supervised Learning. Classification is an example for Supervised Learning. If the algorithm does not learn anything beforehand because there is no response variable or any training data, then it is referred to as unsupervised learning. Clustering is an example for unsupervised learning.

 
 
 
 
 
 
 
 
 
 
 
 

WHY DATA CLEANING PLAYS A VITAL ROLE IN ANALYSIS?

Why data cleaning plays a vital role in analysis?

Cleaning data from multiple sources to transform it into a format that data analysts or data scientists can work with is a cumbersome process because – as the number of data sources increases, the time take to clean the data increases exponentially due to the number of sources and the volume of data generated in these sources. It might take up to 80% of the time for just cleaning data making it a critical part of analysis task.
 
 
 
 
 
 
 
 
 
 
 

WHAT’S NEW IN ANGULAR 6

What’s New in Angular 6

65
As many of you know Angular 6 is already out. At outset, this release of Angular 6 is lighter, faster, and easier. Developers will start loving it more as it makes their development future much easier. In this article we are going to cover the latest major release, Angular 6, which focuses on making Angular smaller and faster to use.

Let’s go through the major changes in Angular 6.

IMPROVED SERVICE WORKER SUPPORT

Angular 6 now supports the configuration of navigation URLs in Service Workers. The service worker will readdress navigation requests that don’t match any asset or data group to the specified index file.

By default, a navigation request can have any URL and URLs containing a file extension in the last path segment. Sometimes it is great to be able to configure different rules for the URLs of navigation requests (e.g. ignore specific URLs and pass them through to the server).

Now, the developer can specify an optional navigationUrls list in ngsw-config.json. Before that, the service worker would enter a degrade mode where only current clients would be served if either the client or server was offline while trying to fetch ngsw.json. In Angular 6, the service worker remains in the current mode till connectivity to the server is restored.

NG UPDATE

The new CLI command analyzes your package.json and uses its knowledge of Angular to recommend updates to users application. It will help the developers to adopt the right version of dependencies, and keep dependencies in sync. In addition to updating dependencies and earl dependencies, ng update will apply needed transforms to your project.

CLI WORKSPACES

CLI v6 now offers support for workspaces containing various projects, such as numerous applications or libraries. CLI projects will now use angular.json instead of .angular-cli.json for build and project configuration. Each CLI workspace will have projects, each project will have targets, and each target can have configurations.

FORMS VALIDATION IN ANGULAR 6

Before, ngModelChange was always emitted, earlier the underlying form control was updated.

If the user had a handler for the ngModelChange event that checked the value through the control, the old value would be logged instead of the simplified value. This is not the case if the user passes the value through the $event keyword directly.

TOKEN MARKING FOR RUNTIME ANIMATION CONTEXT

In Angular 6, it’s now possible to define which animation context is used for a component at runtime. A token is provided as a marker to determine whether the component is running a BrowserAnimationsModule or NoopAnimationsModule context at runtime.

SCHEMATICS

Schematics is a new shell that is used by Angular CLI to create custom templates. The Angular team has always been keen on improving developer productivity which explains the birth of schematics. With schematics the developer can easily create Angular libraries.

First, install the necessary schematic tools:

npm i -g ng-lib-schematics @angular-devkit/core @angular-devkit/schematics-cli

Next, create a new angular-cli project:

ng new avengers –skip-install // avengers is the name of the new library I’m trying to create

Finally, the developer can just run schematics like so:

schematics ng-lib-schematics:lib-standalone –name avengers

A new lib directory will be generated inside the src folder. The lib directory ships with a sample demo and then build tools necessary for a typical Angular package.

THE VERDICT

Angular 6 came full with new features and significant improvements. Thanks to the Angular team on making Angular faster and better to use.

Have you upgraded to Angular 6 yet? What are your opinions? Did you notice any major improvement? Let us know!

HOW TO USE SONARQUBE WITH JENKINS

How to Use SonarQube with Jenkins

SonarQube is an open source static code analysis tool that is gaining great popularity among software developers. It allows software developers to measure code quality and fix code quality issues. The SonarQube community is active and provides continuous upgrade, plug-ins, and customization information on regular intervals. Further, it is a healthy practice to intermittently run SonarQube on the source code to fix code quality violations and reduce the technical obligation.

SonarQube allows the developers to track code quality which helps the developers to determine if a project is ready to be deployed in production. It also allows the developers to continuously review and perform automatic reviews and run analysis to find code quality issues. SonarQube provides a lot of other features, including the ability to record metrics, progress graphs and much more. It has inherent options to perform automated analysis and continuous integration utilizing tools such as Jenkins, Hudson, etc.

55

STEP BY STEP INSTALLATION OF SONARQUBE ON UBUNTU 16.04

Step1 : System update
Step2 : Install jdk
Step3 : Install postgresql
Step 4 : Download and configure SonarQube
Step 5 : Configure Systemd service

TO INTEGRATE JENKINS WITH SONARQUBE

Firstly, in the Jenkins server install the SonarQube plugins on Jenkins.

1. Go to manage plugins and install SonarQube plugin.

2. Go to global tool configuration and install Sonarscanner and save it.
SonarQube Scanner used to start code analysis. Project configuration is read from a
sonarproject.properties or passed on command line.

3. Configure system.
33

Token can be generated from the sonar browser.

Go to administration >security>user>generate token

Create a new item in Jenkins and update the configure.
33
35
45

AZURE KEY VAULT – THE CLOUD BASED HSM

Azure Key Vault – The Cloud Based HSM

Azure Key Vault

A hardware security module (HSM) is a physical computing device that protects and manages digital keys for strong authentication and provides crypto processing. These modules usually come in the form of a plug-in card or an external device that attaches directly to a computer or network server.Azure Key Vault first became available as a public screening in January 2015 and became generally available in same year of June. It is available in Standard and Premium service levels. There is no set up fee and users are billed for operations and keys. So, let’s dive deep in and know more about AKV and its benefits of HSM.

To help you out of this hardware misery, Microsoft offers you Azure Key Vault (AKV) in the cloud. It offers the benefits of HSM and managing it.

HOW SAFE IS STORING DELICATE DATA IN AKV?

Storing data in a database and an HSM is not the same. The data does not simply stay in a file on user’s server. This information is stored in hardware device and the device offers the user many features such as auditing, tamper-proofing, encryption, etc. What Microsoft provides in the form of AKV is an interface using which the user can access the HSM device in a safe way.

If the user wants further assurance about the integrity of the key, the user can generate it right inside of the HSM. Isn’t it cool? Microsoft processes keys in FIPS 140-2 Level 2 validated HSMs and even Microsoft cannot see or extract the user’s keys. With logging enabled, you can pipe the logs to Azure HD Insight or SIEM solutions for threat detection.

PATCHING, PROVISIONING, AND OTHER INFRASTRUCTURE ISSUES

Microsoft does, just like other Azure IaaS resources. They provide an SLA of 99.9% effective processing for Key Vault transactions within 5 seconds.

WHAT KIND OF DATA SHOULD BE STORED?

The user can store PFX files and manage your SSL certificates using AKV. Database Connection strings, Social Network client keys, Subscription Keys, License Keys, and many more keys could be stored and managed easily using AKV.

CREATING AND MANAGING KEY VAULTS

Azure Key Vault offers a way to securely store credentials and other keys and secrets, but the user code needs to authenticate to Key Vault to recover them. Managed Service Identity (MSI) makes resolving this problem simpler by giving Azure services an automatically managed identity in Azure Active Directory (Azure AD). The user can use this identity to authenticate to any service that supports Azure AD authentication, including Key Vault, without having any credentials in the user’s code.

TOP 5 REASONS WHY EVERY PROGRAMMER SHOULD LEARN PYTHON

Top 5 Reasons Why Every Programmer Should Learn Python

Python is one the finest programming languages ever developed. It involves simple English that makes it easy to remember as well as write commands. The codes are easy to read and it can be used in very complex tasks such as AI development. In this article, we are going to mention 5 reasons why every Programmer should learn python.

Python
SIMPLE AND EASY TO LEARN

Python is very simple and easy to learn. It is a very powerful language and it closely bear a resemblance to the English language! Python is just like Javascript, Java, C#, C++, Ruby and other main-programming languages, it is an objected-oriented language. Therefore, if you want to become software developer then learning Python language will assist you to adapt to other environments easily. By learning Python code, you can establish a solid base for learning programming.

AI DEVELOPMENT AND MACHINE LEARNING

Programmers are using Python to enhance scientific programming. Researchers can use now numerical computation engines for python. They can now unravel complex calculations by single-import statements which are then followed by a function call. Python language is flexible, it is faster and provides many functions for machine learning. Researchers progressively preferring using Python and shortly it will control the machine-learning landscape.

DATE SCIENCE IN PYTHON

Data science and python skills are increasingly in demand as businesses advance in fields of artificial intelligence, automation, and advanced data analytics, whether its forecasting budgets or teaching machines to recognize images using sophisticated algorithms.

FINEST FOR WEB DEVELOPMENT

Python offers numerous choices to choose from while web programming. Python has a line-up of the framework set for developing websites. They include Pylons, Zope2, web.py, Django, and TurboGears though Django is the most chosen and popular framework for python development. What makes Python exceptional is that the coding program takes the shortest time when you use Python not like in the case of PHP that takes hours to get completed.

A PERFECT ROUTE FOR START-UPS

Python is the perfect choice for start-ups. With Python, you will be able to code quicker and build complex applications using minimal code lines. When it comes to start-ups world, it is important to move fast from idea to implement. Therefore, it is suggested to learn Python. In addition, it can be useful as a supporting service or partly as a core product.