Monday, August 27, 2018

ECOMMERCE TOOLS or VENDORS

Tealium
Monetate
Strongview
Coremetrics
Border Free
Hawk Search
Moxie

Bazaarvoice
Reflektion
Arroweye

Conductor
OpinionLab
Telapart
Bluecore

Extole
Curalate
Tealeaf
Qualtrix
Foresee
Offer Pop

Saturday, August 18, 2018

Angular 6 - Material Module Usage

1) @angular/material is one of the new feature in Angular 6.

  • Add "@angular/material": "^6.3.0", in package.json and run npm install
  • after npm install run ng add @angular/material
  • generates Navigation component using 
    • ng generate @angular/material:material-nav
  • Add below import to app.component.ts 

import { BreakpointObserver, Breakpoints, BreakpointState } from '@angular/cdk/layout';
import { Observable } from 'rxjs';

  • Add below variable after an existing variable in app.component.ts file
isHandset: Observable<BreakpointState> = this.breakpointObserver.observe(Breakpoints.Handset);

  • Add the constructor after that variable.
constructor(private breakpointObserver: BreakpointObserver) {}

  • open and edit `src/app/app.component.html` then replace all HTML tags with this tags.

<mat-sidenav-container class="sidenav-container">
  <mat-sidenav
    #drawer
    class="sidenav"
    fixedInViewport="true"
    [attr.role]="isHandset ? 'dialog' : 'navigation'"
    [mode]="(isHandset | async)!.matches ? 'over' : 'side'"
    [opened]="!(isHandset | async)!.matches">
    <mat-toolbar color="primary">Menu</mat-toolbar>
    <mat-nav-list>
      <a mat-list-item href="#">Link 1</a>
      <a mat-list-item href="#">Link 2</a>
      <a mat-list-item href="#">Link 3</a>
    </mat-nav-list>
  </mat-sidenav>
  <mat-sidenav-content>
    <mat-toolbar color="primary">
      <button
        type="button"
        aria-label="Toggle sidenav"
        mat-icon-button
        (click)="drawer.toggle()"
        *ngIf="(isHandset | async)!.matches">
        <mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
      </button>
      <span>Application Title</span>
    </mat-toolbar>
  </mat-sidenav-content>
</mat-sidenav-container>
Next, give it a style by open and edit `src/app/app.component.css` then add this lines of CSS syntax.
.sidenav-container {
  height: 100%;
}

.sidenav {
  width: 200px;
  box-shadow: 3px 0 6px rgba(0,0,0,.24);
}

IBM Blockchain platform

IBM Blockchain Platform makes use of the most prevalent and popular open source Blockchain technologies, and is big supporter and contributor to OS projects.



https://ibm-blockchain.github.io/develop/

Hyperledger is the Open Source platform for Blockchain technology managed by Linux Foundation.

 






IBM Blockchain Typical Solution Architecture





High Level Components

  • Execution Runtimes 
    • Hyperledger Fabric, Web, Embedded Node JS, Connection Profiles
  • JavaScript SDK 
    • Node JS npm modules like composer-client, composer-admin 
  • CLI 
  • REST Server
  • LoopBack Connector
  • Playground Web User Interface
  • Yeoman Code generator 
    • Angular Web App, Node JS app, Skeleton business network
  • VSCode and Atom editor plugins

Installation Steps

Step-1: CLI Tools


    • npm install --global --production windows-build-tools
    • npm config set PYTHON "C:\Users\stalam0\Python\python.exe"
    • npm install -g composer-cli@0.20

    • npm install -g composer-cli
    • npm install -g composer-rest-server
    • npm install -g generator-hyperledger-composer
    • npm install -g yo



      Step-2: Install Playground

      • npm install -g composer-playgound

        Step-3: Setup IDE

        • install VSCode and install Hyperledger composer extension



          Step-4: Install Hyperledge Fabric

          • mkdir ~/fabric-dev-servers 
          • cd ~/fabric-dev-servers
          • curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz
          • tar -xvf fabric-dev-servers.tar.gz

          • cd ~/fabric-dev-servers
          • ./downloadFabric.sh

          Starting and stopping Hyperledger Fabric


          •  cd ~/fabric-dev-servers
          •  ./startFabric.sh
          •  ./createPeerAdminCard.sh
          • ~/fabric-dev-servers/stopFabric.sh, and start it again with 
          • ~/fabric-dev-servers/startFabric.sh.

          Start the web app ("Playground")

          •     composer-playground
           

          http://localhost:8080/login

          Thursday, August 16, 2018

          Bitcoin

          Bitcoin

          https://bitcoin.org/bitcoin.pdf

          It is A Peer - to - Peer Electronic Cash System

          1) Transaction

          We define an electronic coin as chain of digital signatures. Each owner transfers the coin to the next by digitally signing a hash of the previous transaction and the public key of the next owner and adding these to the end of coin. A Payee can verify the signatures to verify the chain of ownenrship

          2) Timestamp Server
          3) Proof-Of-Work
          4) Network
          5) Incentive
          6) Reclaiming Diskspace
          7) Simplified Payment Verification
          8) Combining and Splitting Value
          9) Privacy
          10) Calcualtions

          Wednesday, August 15, 2018

          Blockchain

          Blockchain 

          Blockchain is chain of BLOCKs where each Block contains value data without any central super vision. It is cryptographically secure and immutable.


          Blockchain is an incorruptible digital ledger of economic transactions that can be programmed to record not just financial transactions but virtually everything of value.



          Blockchain Technology is a decentralized database that stores the registry of
          assets and transactions across Peer to Peer Network and these transactions are secured through cryptography.


          Decentralized:

          It is said that Blockchain is decentralized because there is no central authority to supervise anything


          Consensus Mechanism

          Mechanism by which decentralized red reaches on over certain matters specific


          Miners

          Users who use their computational power to extract blocks



          Facts about Blockchain

          Transaction history is locked in the blocks of data that are then photographically linked together and secured.

          This creates an immutable and unforgeable record of all of the transactions across this network

          This Record is replicated on every computer that uses the network.

          Its not an app, Its not a company, I think its closest in description to Wikipedia.
          We can see everything in Wikipedia.Its composite view that constantly changing and being updated.We can also track those changes over time on Wikipedia and we can created our own wikis,


          On Blockchain, we can think of it as open infrastructure that stores many kinds of assets.

          It stores the history of custodianship, ownership and location for assets like the digital Currency Bitcoin, title of owner ship like IP.

          With all this, How Blockchain lower Uncertainty and how they therefore promise to transform our economic systems in radical ways ?

          Uncertainties in economics are like 

          1) not knowing who we are dealing with ( Identity Management) 

          2) not having visibility into a transaction ( Asset Tracking) 

          3) not having recourse if things go wrong. (Reneging on deals )

          Using Blockchain, we can create shared reality across non-trusting entities.

          All of these nodes in the network do not need to know each other or trust each other, because all of those have ability to monitor and validate the chain for themselves.

          Blockchain is persistent, transparent, public append only ledger.

          It does this through mechanism creating consensus between different parties that need not to trust.


          Industries that are using Blockchain

          • Supply Chain
          • Trade Finance
          • Healthcare
          • Identify Access Management
          • Banking