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.
//...
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...
[TestCase(0, 0, 0)]
[TestCase(34, 25, 59)]
[TestCase(-1250, 10000, 8750)]
public void AddNumbersTest(int a, int b, int expected)
{
// Act
int result = a + b;
// Assert
Assert.That(result, Is.EqualTo(expected));
}
A DataFrame is a distributed collection of data organized into named columns. It is conceptually equivalent to a table in a relational database. DataFrames can be constructed from a wide array of sources such as: structured data files, tables in Hive, external databases, or existing RDDs.
Reading a...
Create a folder
Create an index.html inside the new directory. Open it in the Bracket editor
Download the Phaser repository from github, then grab the phaser.js file from the build folder. Place the file inside your project directory.
Open index.html and link the phaser.js inside the header tag...
Mapreduce is a programming model to do processing on (very) large amounts of data.
Traditional 'HPC' (High Performance Computing) speeds up large calculations on relatively large amounts of data by creating a set of highly connected computers (using things like extremely quick networking, and quick...
Blackboard.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace Blackboard
{
public class BlackBoard
{
public List<KnowledgeWorker> knowledgeWorkers;
protected Dictionary<string, ControlData> data;
...
Adding a product to a shopping cart (Label item.name references the name property of the product added):
ga('send', 'event', 'Cart', 'Add', product.name);
This lets you see what people are adding to the shopping cart, even if they never complete the order, allowing more insight into where users ...
class MyClass {
private String privateField
}
def prvtClss = new MyClass(privateField: 'qwerty')
println prvtClss.privateField
will print us 'qwerty'
This issue is known since version 1.1 and there is a bug report on that: http://jira.codehaus.org/browse/GROOVY-1875. It is not reso...
This can be done in 3 steps :
You must define an elixir module which use Ecto.Repo and register your app as an otp_app.
defmodule Repo do
use Ecto.Repo, otp_app: :custom_app
end
You must also define some config for the Repo which will allow you to connect to the database. Here is an...
If you have an Ecto.Queryable, named Post, which has a title and an description.
You can fetch the Post with title: "hello" and description : "world" by performing :
MyRepo.get_by(Post, [title: "hello", description: "world"])
All of this is possible beca...