Tutorial by Examples: n

$ read -r foo <<EOF > this is a line >EOF $ printf '%s\n' "$foo" this is a line
Even if third-party libraries are good, a simple way to parse the JSON is provided by protocols You can imagine you have got an object Todo as struct Todo { let comment: String } Whenever you receive the JSON, you can handle the plain NSData as shown in the other example using NSJSONSeria...
Static variables and methods are not part of an instance, There will always be a single copy of that variable no matter how many objects you create of a particular class. For example you might want to have an immutable list of constants, it would be a good idea to keep it static and initialize it j...
Instead of using the delegate pattern, that split the implementation in various part of the UIViewController class, you can even use closures to pass data back and forward. By assuming that you're using the UIStoryboardSegue, in the prepareForSegue method you can easily setup the new controller in ...
This creates a table partitioned by hash, in this example on store id. CREATE TABLE orders ( order_nr NUMBER(15), user_id VARCHAR2(2), order_value NUMBER(15), store_id NUMBER(5) ) PARTITION BY HASH(store_id) PARTITIONS 8; You should use a power of 2 for the number of hash ...
This creates a table partitioned by ranges, in this example on order values. CREATE TABLE orders ( order_nr NUMBER(15), user_id VARCHAR2(2), order_value NUMBER(15), store_id NUMBER(5) ) PARTITION BY RANGE(order_value) ( PARTITION p1 VALUES LESS THAN(10), PARTITION ...
Check existing partitions on Schema SELECT * FROM user_tab_partitions;
This creates a table partitioned by lists, in this example on store id. CREATE TABLE orders ( order_nr NUMBER(15), user_id VARCHAR2(2), order_value NUMBER(15), store_id NUMBER(5) ) PARTITION BY LIST(store_id) ( PARTITION p1 VALUES (1,2,3), PARTITION p2 VALUES(4,5,6...
ALTER TABLE table_name DROP PARTITION partition_name;
Select data from a partition SELECT * FROM orders PARTITION(partition_name);
ALTER TABLE table_name TRUNCATE PARTITION partition_name;
ALTER TABLE table_name RENAME PARTITION p3 TO p6;
ALTER TABLE table_name MOVE PARTITION partition_name TABLESPACE tablespace_name;
ALTER TABLE table_name ADD PARTITION new_partition VALUES LESS THAN(400);
Delphi has the following string types (in order of popularity): TypeMaximum lengthMinimum sizeDescriptionstring2GB16 bytesA managed string. An alias for AnsiString through Delphi 2007, and an alias for UnicodeString as of Delphi 2009.UnicodeString2GB16 bytesA managed string in UTF-16 format.AnsiStr...
Using some setters, without setting all needed properties in the constructor(s) public final class Person { // example of a bad immutability private final String name; private final String surname; public Person(String name) { this.name = name; } public String ge...
JasperSoft Studio If datasource or database connection is needed to fill report, create your Data Adapter in Repository Explorer by right clicking "Data Adapters" selecting "Create Data Adapter" Enter preview mode by selecting the Preview tab (no errors in deign need t...
Common Requirements All reports, regardless of how the data is presented, take a path to the report template and a parameter map. The variables are used in all examples that follow: // Parameters passed into the report. Map<String, Object> parameters = new HashMap<>(); // Arbitrary...
(Wikipedia) Bioinformatics is an interdisciplinary field that develops methods and software tools for understanding biological data. As an interdisciplinary field of science, bioinformatics combines computer science, statistics, mathematics, and engineering to analyze and interpret biological dat...
Classic (Service Management) mode: Add-AzureAccount This will authenticate you using Azure Active Directory, and PowerShell gets an access token that expires after about 12 hours. So you must repeat the authentication after 12 hours. An alternative is to run the following cmdlet: Get-AzurePubl...

Page 433 of 1088