Tutorial by Examples: ti

Transaction using JDBC driver is used to control how and when a transaction should commit and rollback. Connection to MySQL server is created using JDBC driver JDBC driver for MySQL can be downloaded here Lets start with getting a connection to database using JDBC driver Class.forName("com.m...
/_build /cover /deps erl_crash.dump *.ez # Common additions for various operating systems: # MacOS .DS_Store # Common additions for various editors: # JetBrains IDEA, IntelliJ, PyCharm, RubyMine etc. .idea
Apache 2.4 provides the following 6 directives via the mod_rewrite module: RewriteBase RewriteCond RewriteEngine RewriteMap RewriteOptions RewriteRule The following directives, available previously in Apache 2.2 have been removed: RewriteLock RewriteLog RewriteLogLevel All the dir...
Getting Started You must do the following to get started with Pygame: import pygame This opens a window of size 640,480, and stores it in a variable called screen. Setting up a window name Setting up a name for the pygame window requires the following syntax: pygame.display.set_caption('Name...
function bubbleSort(a) { var swapped; do { swapped = false; for (var i=0; i < a.length-1; i++) { if (a[i] > a[i+1]) { var temp = a[i]; ...
The short story Whith VHDL 2008 and if the type of the clock is bit, boolean, ieee.std_logic_1164.std_ulogic or ieee.std_logic_1164.std_logic, a clock edge detection can be coded for rising edge if rising_edge(clock) then if clock'event and clock = '1' then -- type bit, std_ulogic or std_logic ...
Using the --config flag. $ /bin/mongod --config /etc/mongod.conf $ /bin/mongos --config /etc/mongos.conf Note that -f is the shorter synonym for --config.
The Compact Serialization is the most common serialization format and is designed to be used in a web context. JWS are represented into a string that contains Base64 Url Safe encoded information seperated by an dot ".". This mode does not support unprotected headers. Line breaks added f...
The Compact Serialization is the most common serialization format and is designed to be used in a web context. JWE are represented into a string that contains Base64 Url Safe encoded information seperated by an dot ".". This mode does not support unprotected headers or AAD. Line breaks ...
The JWS JSON Serialization represents digitally signed or MACed content as a JSON object. This representation is neither optimized for compactness nor URL-safe. This syntax is optimized for more than one digital signature and/or MAC operation. Line breaks added for readability { &quo...
As the General JWS JSON Serialization Syntax, the JWS JSON Serialization represents digitally signed or MACed content as a JSON object. This representation is neither optimized for compactness nor URL-safe. The flattened syntax is optimized for the single digital signature or MAC case. Line breaks...
The JWE JSON Serialization represents encrypted content as a JSON object. This representation is neither optimized for compactness nor URL safe. This syntax is optimized for more than one recipient. Line breaks added for readability { "protected":"<integrity-protect...
The flattened JWE JSON Serialization syntax is based upon the general syntax, but flattens it, optimizing it for the single-recipient case. Line breaks added for readability { "protected":"<integrity-protected header contents>", "unprotected":...
u1.relationships.create("likes", b1) u1.relationships.create("likes", b2) u2.relationships.create("likes", b1) Bi-directional relationships u1.relationships.create("friends", u2)
Warning: this is not the standard way of installing Coq. For users of Linux (and MacOS) who wish to gain access to up-to-date versions of Coq or to be able to use several versions of Coq on the same machine, without the hassle of using opam, and without having to compile from source, this is an alt...
SciPy provides basic image manipulation functions. These include functions to read images from disk into numpy arrays, to write numpy arrays to disk as images, and to resize images. In the following code, only one image is used. It is tinted, resized, and saved. Both original and resulting images a...
In the example project.json below, an assembly Microsoft.AspNet.Identity.EntityFramework was added which is mscorlib based. { "version": "1.0.0-*", "dependencies": { "Microsoft.AspNet.Identity.EntityFramework": "2.2.1", ...
CREATE DATABASE SAMPLEDB; This will create a new database called sampledb.
CONNECT TO SAMPLEDB; From the command line (db2clp, terminal, db2cmd) you can write: db2 CONNECT TO SAMPLEDB
Let's suppose we are going to insert rows in the previously created table. We can explicitly name the columns we are going to out values is and its order: INSERT INTO EMPLOYEE (EMPNO, FIRSTNME, LASTNAME, SALARY) VALUES ( '123456', 'Ali', 'Veli', 100000); If we know the order and we are going...

Page 312 of 505