Today, performance is one of the most important metrics we need to evaluate when developing a web service/Application. Keeping customers engaged is critical to any product and for this reason, it is extremely important to improve the performances and reduce page load times.
When running a web serve...
As the first step, we’ll build a basic web server that stores data in MongoDB. For this demonstration, we’ll name it “fast Library”. The server will have two basic operations:
POST /book: This endpoint will receive the title, the author, and the content of the book, and create a book entry in the d...
During a review, user has the possibility to add comments to explain his point of view. There is several kind of comments
Comment a file : The yellow symbol allow user to add comment on entire file
Line comment : Click the line number to comment it
Word selection : The last option i...
Prerequisites
Java8 (1.8.0_91)
Eclipse neon (JavaScript and Web Developer)
Play Framework 2.5.4
Installing Scala in Eclipse
Launch the Eclipse
Open Help > Eclipse Marketplace
Type Scala in Find
Install Scala IDE
Setup sbteclipse
Open play project .\project\ plugins.sbt
Add f...
Installing typescript, typings and webpack globally
npm install -g typescript typings webpack
Installing loaders and linking typescript
npm install --save-dev ts-loader source-map-loader npm link typescript
Linking TypeScript allows ts-loader to use your global installation of TypeScript inste...
1.Download font-awesome from here.
2.Copy the font-awesome directory into your project.
3.In the of your html, reference the location to your font-awesome.min.css.
<link rel="stylesheet" href="path/to/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"...
Suppose we want to have the following behaviour - We have a heading (say h3 element) and on clicking it, we want it to become an input box so that we can modify heading name. React makes this highly simple and intuitive using component states and if else statements. (Code explanation below)
// I ha...
ElasticSearch has a well-documented JSON API, but you'll probably want to use some libraries that handle that for you:
Elasticsearch - the official low level wrapper for the HTTP API
Elasticsearch-rails - the official high level Rails integration that helps you to connect your Rails models...
FOR XML PATH and STUFF to concatenate the multiple rows into a single row:
select distinct t1.id,
STUFF(
(SELECT ', ' + convert(varchar(10), t2.date, 120)
FROM yourtable t2
where t1.id = t2.id
FOR XML PATH (''))
, 1,...
ML Transformers now generates org.apache.spark.ml.linalg.VectorUDT instead of org.apache.spark.mllib.linalg.VectorUDT.
They are also mapped locally to subclasses of org.apache.spark.ml.linalg.Vector. These are not compatible with old MLLib API which is moving towards deprecation in Spark 2.0.0.
//...
The Firebase auth system is the source of a users uid, displayName, photoURL, and maybe email. Password based accounts set these persistent values in the auth system via the .updateProfile method. Storing these values in the Realtime Database, rDB, users node poses the issue of stale data. Displa...
package com.example.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
//simple person object with JPA annotations
@Entity
public class Person {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
...