Tutorial by Examples: c

<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...
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)); }
shopt -q login_shell && echo 'login' || echo 'not-login'
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; ...
#!/usr/bin/env node var fs = require('fs'); var path = require('path'); var jshint = require('jshint').JSHINT; var async = require('async'); var foldersToProcess = [ 'js' ]; foldersToProcess.forEach(function(folder) { processFiles("www/" + folder); }); function proce...
Insert the following function call within your JavaScript when searching within your website to track how visitors are using your internal search features. In this example, the Event Action filters is a comma-delimited list of search filter name/value pairs, and the Event Label orderedBy is a strin...
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 ...
To be able to create a server, you need to have the spigot or the bukkit jar file. Reefer to the versions topic to select your jar First, create a new folder. In that folder, put the spigot/bukkit jar file. Right click in the folder, and choose New > Text Document. Name the new document star...
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...

Page 554 of 826