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...
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...
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,...
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...
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.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;
...
This custom UserControl will appear as a regular combobox, but unlike the built-in ComboBox object, it can show the user a default string of text if they have not made a selection yet.
In order to accomplish this, our UserControl will be made up of two Controls. Obviously we need an actual ComboBox...
Let we assume we have two databases "ORA1" and "ORA2". We can access the objects of "ORA2" from database "ORA1" using a database link.
Prerequisites:
For creating a private Database link you need a CREATE DATABASE LINK privilege.
For creating a private Data...
QML came with rich set of visual elements. Using only QML we can build complex applications with these elements.
Also it's very easy to build your own element based on set of standard items like Rectangle, Button, Image etc.
Moreover, we can use items like Canvas to build element with custom paint...