Tutorial by Examples

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&quot...
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...
The first thing you want to do for local development is install ElasticSearch in your machine and test it to see if it is running. It requires Java to be installed. The installation is pretty straightforward: Mac OS X: brew install elasticsearch Ubuntu: sudo apt-get install elasticsearch Then...
When you are getting started with ElasticSearch (ES) it might be good to have a graphical tool that helps you explore your data. A plugin called elasticsearch-head does just that. To install it, do the following: Find out in which folder ES is installed: ls -l $(which elasticsearch) cd into this...
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,...
Ubuntu binaries are available for both 32-bit and 64-bit architectures source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo a...
Downloading Prerequisites: We provide native 64-bit binaries for Windows 7 and above. A 64-bit version of Windows is required. Download the ZIP archive and unpack it in a directory of your choice. The Windows port of RethinkDB is a recent addition and hasn't received as much tuning as the Linux a...
C source file gcc -Wall -Wextra -o main main.c C++ source file g++ -Wall -Wextra -Wconversion -Woverloaded-virtual -o main main.cpp
User defined table functions represented by org.apache.hadoop.hive.ql.udf.generic.GenericUDTF interface. This function allows to output multiple rows and multiple columns for a single input. We have to overwrite below methods : 1.we specify input and output parameters abstract StructObjectInspe...
Sample XML <Students> <Student> <Name> <First>Ashley</First> <Last>Smith</Last> </Name> <Grades> <Exam1>A</Exam1> <Exam2>B</Exam2> ...
Sample XML <Students> <Student> <Name> <First>Ashley</First> <Last>Smith</Last> </Name> <Grades> <Exam1>A</Exam1> <Exam2>B</Exam2> ...
Navs available in Bootstrap have shared markup, starting with the base .nav class, as well as shared states. Swap modifier classes to switch between each style. Tabs <ul class="nav nav-tabs"> <li role="presentation" class="active"><a href="#&quo...
Update build.sbt with : scalaVersion := "2.11.8" // Make sure to have installed Scala 11 sparkVersion := "2.0.0" // Make sure to have installed Spark 2.0 Note that when compiling with sbt package, the .jar will now be created in target/scala-2.11/, and the .jar name will al...
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; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { //main entry point public static void main(String[] args) { SpringApplication.run...
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; ...

Page 891 of 1336