Tutorial by Examples: a

Persistence is created in docker containers using volumes. Let's create a Limesurvey container and persist the database, uploaded content and configuration in a named volume: docker volume create --name mysql docker volume create --name upload docker run -d --name limesurvey -v mysql:/var/lib/m...
We need to create a container to mount the volume. Then archive it and download the archive to our host. Let's create first a data volume with some data: docker volume create --name=data echo "Hello World" | docker run -i --rm=true -v data:/data ubuntu:trusty tee /data/hello.txt Let...
This document explains how to get Google Access tokens and use them to get Google Analytics data to be displayed in our websites. Example: A live example is available in https://newtonjoshua.com note: Use the same gmail account for all the below steps. STEP 1: Set Up Google Analytics Foll...
Parameters of these operators are lhs and rhs operator== tests if both elements on lhs and rhs pair are equal. The return value is true if both lhs.first == rhs.first AND lhs.second == rhs.second, otherwise false std::pair<int, int> p1 = std::make_pair(1, 2); std::pair<int, int> ...
When calling driver.Navigate().GoToUrl(url);, the code execution stops until the page is fully loaded. This is sometimes unnecessary when you just want to extract data. Note: The code samples below could be considered hacks. There is no "official" way of doing this. Create a new thread...
XML <Animal> <legs>4</legs> <eyes>2</eyes> <horns>2</horns> <tail>1</tail> </Animal> XPATH boolean(/Animal/tusks) OUTPUT false
XPATH <Animal> <legs>4</legs> <eyes>2</eyes> <horns>2</horns> <tail>1</tail> </Animal> XPATH boolean(/Animal/horns) OUTPUT true
XML <House> <LivingRoom> <plant name="rose"/> </LivingRoom> <TerraceGarden> <plant name="passion fruit"/> <plant name="lily"/> <plant name="golden duranta"/> ...
SELECT CURRENT_DATE + '1 day'::INTERVAL SELECT '1999-12-11'::TIMESTAMP + '19 days'::INTERVAL SELECT '1 month'::INTERVAL + '1 month 3 days'::INTERVAL
SELECT string_agg(<TABLE_NAME>.<COLUMN_NAME>, ',') FROM <SCHEMA_NAME>.<TABLE_NAME> T
DELETE FROM <SCHEMA_NAME>.<Table_NAME> WHERE ctid NOT IN ( SELECT MAX(ctid) FROM <SCHEMA_NAME>.<TABLE_NAME> GROUP BY <SCHEMA_NAME>.<TABLE_NAME>.* ) ;
Detailed instructions on getting architecture set up or installed.
If the Control has rows. TextBox tb = GridView1.Rows[i].FindControl("TextBox1") as TextBox; Or if it has items. TextBox tb = Repeater1.Items[i].FindControl("TextBox1") as TextBox;
Detailed instructions on getting directx-11 set up or installed.
inline int add(int x, int y) { return x + y; } int main() { int a = 1, b = 2; int c = add(a, b); } In the above code, when add is inlined, the resulting code would become something like this int main() { int a = 1, b = 2; int c = a + b; } The inline function ...
$MachinesList # Array $ResourceList # Array $MachineTags # Array pseudo code $mongoDriverPath = 'C:\Program Files (x86)\MongoDB\CSharpDriver 1.7'; Add-Type -Path "$($mongoDriverPath)\MongoDB.Bson.dll"; Add-Type -Path &qu...
A* (A star) is a search algorithm that is used for finding path from one node to another. So it can be compared with Breadth First Search, or Dijkstra’s algorithm, or Depth First Search, or Best First Search. A* algorithm is widely used in graph search for being better in efficiency and accuracy, wh...
Ember-cli first requires Node and NPM to be installed on the system. Either follow the installation instructions on nodejs.org, or use a preferred package manager (such as Homebrew on OSX.) It's recommended to install latest version of each. Once its done, run the following commands to ensure insta...
Here is the example of creating of mail message with attachments. After creating we send this message with the help of SmtpClient class. Default 25 port is used here. public class clsMail { private static bool SendMail(string mailfrom, List<string>replytos, List<string> mailtos, L...

Page 806 of 1099