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...
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...
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...
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...
Goto - http://www.jorambarrez.be/blog/2010/08/02/tutorial-a-bpmn-2-0-hello-world-with-activiti-5-0-alpha4-in-5-steps/
A very Good and detailed tutorial by Joram Barrez (one of the core Developer of Activiti)
Plugins are a way for a developer to modify a chart as it is being created. Chart.js calls all plugins at the following chart states:
Start of initialization
End of initialization
Start of update
After the chart scales have calculated
Start of datasets update
End of datasets update
End of u...
Create horizontal lines with a label. This could be used to show notable values in the chart data (e.g. min, max, average). JSFiddle Demo
var horizonalLinePlugin = {
afterDraw: function(chartInstance) {
var yScale = chartInstance.scales["y-axis-0"];
var canvas = chartInstance...
Denormalization and a flat database structure is neccessary to efficiently download separate calls. With the following structure, it is also possible to maintain two-way relationships. The disadvantage of this approach is, that you always need to update the data in multiple places.
For an example, ...
You can use the COUNT() function to return the number of records that match a query. The following 'Employee' table contains employee ID numbers and their associated manager's ID number.
Employee_IDManager_ID123722373763424545635745594563
A COUNT() statement can be used to find out how many employ...