Tutorial by Examples

package com.example.domain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.repository.query.Param; import org.springframework.data.rest.core.annotation.RepositoryRestResource; import org.springframework.data.rest.core.annotation.RestResource; /...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> ...
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...
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...
// 1. Connect to the database (this example with MySQL) $host = 'localhost'; $database = 'users'; $user = 'root'; $password = ''; $dsn = "mysql:host=$host;dbname=$database"; $pdo = new PDO($dsn, $user, $password); // 2. Prepare your query // 2.1 First way $query_1 = "SELE...
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...
[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...
To set a custom row height, override UITableViewSource.GetHeightForRow(UITableView,NSIndexPath): public class ColorTableDataSource : UITableViewSource { List<DomainClass> Model { get; set; } public override nfloat GetHeightForRow(UITableView tableView, NSIndexPath indexPath) ...
import lombok.Builder; @Builder public class Email { private String to; private String from; private String subject; private String body; } Usage example: Email.builder().to("[email protected]") .from("[email protected]") .subject(...
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...
app.js var app = angular.module('myApp',['ui.router']); app.config(function($stateProvider,$urlRouterProvider) { $stateProvider .state('home', { url: '/home', templateUrl: 'home.html', controller: function($scope){ $scope.text = 'This is the ...
shopt -q login_shell && echo 'login' || echo 'not-login'

Page 892 of 1336