Tuesday, January 31, 2017
Event Loop in Node
- Nodes event loop is constantly listening for events on the server side.
- These events can be externally generated such as http request or tcp connections
- Other events may be triggered on the response to a request against external resource
- ex asking node for file for reading
- Each events are handled as discrete events
Saturday, January 28, 2017
Wednesday, January 25, 2017
Strongly typed Angular 2 components
Typescript, is a typed superset of the JavaScript language that is compiled to produce clean, simple cross-browser compatible JavaScript code, which can help when building and maintaining large-scale applications. Typescript has features of ES6 such as interfaces, classes and modules.
Note: To specify custom typing we can use an interface
In this example we have specified custom type for address using an interface.
Simple Angular 2 toggle function
Angular's *ngIf directive is not subject to style specificity constraints. It's always safe to use regardless of your stylesheet. However, it's worth noting that it's not functionally equivalent. Rather than toggling the display property, it works by adding and removing template elements from the DOM.
Relative paths with module Id in angular 2
import {Component, OnInit} from '@angular/core'; //Import interface import {IProduct} from './product'; //view for the component @Component({ selector:'pm-products', templateUrl:'app/products/product-list.component.html', styleUrls: ['app/products/product-list.component.css'] })
There are several downsides of using absolute path.
- Harder to adjust folder structure.
- Reuse the components
- Some tools within angular require relative path
Tuesday, January 24, 2017
Scala in a nutshell
- Functional programming language.Functions are first-class objects. Compose them with guaranteed type safety. Use them anywhere, pass them to anything.
- Built for scalability. Scala is an acronym for “Scalable Language”.
- Scala runs on the JVM, so Java and Scala stacks can be freely mixed for totally seamless integration
- Language which can be used with Apache spark
- Don’t work for the type system. Let the type system work for you
About Big data
BigData
- Term used to describe large volume of data.Both structured and unstructured data that include a business on day to day basis.
- Can be analyzed for insights that lead to better decisions and strategic business moves.
- Is in existence from many years. Due to cheap hardware and open source solution to the problem and communities it is getting popular
Monday, January 23, 2017
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)