Thursday, March 9, 2017
Sunday, March 5, 2017
Crud operations in Express
These are the middleware needed for CRUD operations in express
//web framework for node.js var express= require('express') //Gives an instance of express var app=express(); //Used for post request and forms var bodyParser=require('body-parser'); //MongoDB Object modeling tool designed to work in asynchronous environment var mongoose = require('mongoose');
Custom middleware in Node
Middleware would inject between the call and the Route.
- When a client sends a request, it is handled by the route in the router
- This router would send a response back to the client
- When we have a middleware it would take the request process it and and then forward that request to the route. Then the route would send the response to the client
Friday, March 3, 2017
Overview of Hadoop Map Reduce
- Apache Hadoop is an open-source software framework used for distributed storage and processing of big data sets using the MapReduce programming model.
- It consists of computer clusters built from commodity hardware.
- All the modules in Hadoop are designed with a fundamental assumption that hardware failures are common occurrences and should be automatically handled by the framework.
Nested component angular 2
For creating nested component we need to create the component under the shared folder.
When we use a component as a directive, we need to tell angular how to find that directive.We do that by declaring the nested component in an angular module as shown below
In the import we need to specify the path of the file and then add it in the declarations with the ngModule
When we use a component as a directive, we need to tell angular how to find that directive.We do that by declaring the nested component in an angular module as shown below
In the import we need to specify the path of the file and then add it in the declarations with the ngModule
import { StarComponent } from './shared/star.component'; @NgModule({ imports: [ BrowserModule,FormsModule ], declarations: [ AppComponent , UserComponent, ProductListComponent, ProductFilterPipe, StarComponent], bootstrap: [ AppComponent ] })
Subscribe to:
Posts (Atom)
Labels
- Algorithms (52)
- Apache Kafka (7)
- Apache Spark (21)
- Architecture (8)
- Arrays (23)
- Big Data (98)
- Cloud services (6)
- Cognitive technologies (12)
- Data Analytics (3)
- Data Science (6)
- Design (1)
- devOps (1)
- Hadoop (26)
- Hive (11)
- Java (2)
- JavaScript (65)
- JavaScript Run-time (12)
- Machine learning (11)
- Maths (6)
- mongoDb (2)
- MySQL (1)
- Networking (3)
- No SQL (2)
- Node (20)
- Python (28)
- Security (4)
- Spark Grpahx (1)
- Spark MLlib (1)
- Spark Sql (3)
- Spark Streaming (4)
- SQL (40)
- Sqoop (2)
- ssis (3)
- Strings (13)