Tutorial by Examples: c

Shows a very basic schema. Note: by convention elementFormDefault is set to 'qualified', in the really world you will be hard pressed to find a schema that does not set this (so just include it in your schemas!). <?xml version="1.0" encoding="utf-8" ?> <!--Created wit...
By convention elementFormDefault is always set to qualified, but lets look at what it actually does. First with elementFormDefault set to qualified. <?xml version="1.0" encoding="utf-8" ?> <!--Created with Liquid Studio 2017 (https://www.liquid-technologies.com)--&g...
The easiest way to run a local JIRA instance, is to install the SDK and run atlas-run-standalone For further details see Starting a local JIRA test instance Please note that this runs a local test instance and is not meant for production.
Consider the following code to copy one file to another: import java.io.*; public class FileCopy { public static void main(String[] args) throws Exception { try (InputStream is = new FileInputStream(args[0]); OutputStream os = new FileOutputStream(args[1])) { ...
The COMPILER system handle let's you look at information regarding a recent compile. Assuming ok-program.p is a program without any errors or warning: COMPILE ok-program.p SAVE NO-ERROR. DEFINE VARIABLE iError AS INTEGER NO-UNDO. MESSAGE "Errors: " COMPILER:ERROR SKIP ...
Any declaration (variable, const, function, class, etc.) can be exported from module to be imported in other module. Typescript offer two export types: named and default. Named export // adams.ts export function hello(name: string){ console.log(`Hello ${name}!`); } export const answerToLi...
The only place where you can safely use async void is in event handlers. Consider the following code: private async Task<bool> SomeFuncAsync() { ... await ... } public void button1_Click(object sender, EventArgs e) { var result = SomeFuncAsync().Result; SomeOtherFunc(); } ...
Executes a OS-command. OS-COMMAND without any options will start a new shell and not exit it - thus you will on graphical OS:es leave a window "hanging". DEFINE VARIABLE cmd AS CHARACTER NO-UNDO. cmd = "dir". OS-COMMAND VALUE(cmd). There are three options: SILENT, NO...
Generate a random letter between a and z by using the Next() overload for a given range of numbers, then converting the resulting int to a char Random rnd = new Random(); char randomChar = (char)rnd.Next('a','z'); //'a' and 'z' are interpreted as ints for parameters for Next()
Add this text to appsettings.json { "key1": "value1", "key2": 2, "subsectionKey": { "suboption1": "subvalue1" } } Now you can use this configuration in your app, in the way like this public class Program { sta...
Create class like a class below public class MyOptions { public MyOptions() { // Set default value, if you need it. Key1 = "value1_from_ctor"; } public string Key1 { get; set; } public int Key2 { get; set; } } Then you need to add this code ...
The underlying example is just the one given in the official pyspark documentation. Please click here to reach this example. # the first step involves reading the source text file from HDFS text_file = sc.textFile("hdfs://...") # this step involves the actual computation for reading...
public class Program { public static void Main(string[] args) { Console.WriteLine("\nWhat is your name? "); var name = Console.ReadLine(); var date = DateTime.Now; Console.WriteLine("\nHello, {0}, on {1:d} at {1:t}", name, date); ...
Based on a question. The following snippets Does not cache the expected emission and prevents further calls. Instead it re-subscribes to the realSource for every subscription. var state = 5 var realSource = Rx.Observable.create(observer => { console.log("creating expensive HTTP-based emis...
#include <string.h> #include <gst/gst.h> #include <gst/app/gstappsrc.h> /* * an example application of using appsrc in push mode to create a file. * from buffers we push into the pipeline. */ /* S16LE 10ms frame audio */ #define BUFFER_SIZE 160 /* 300 frames =...
Executable C++ program code is usually produced by a compiler. A compiler is a program that translates code from a programming language into another form which is (more) directly executable for a computer. Using a compiler to translate code is called compilation. C++ inherits the form of its compi...
Selection of a Version Control System Of course many organisations or projects already have a preferred or selected version control system if this is the case for you just skip to client installation. There are a number of things to consider when selecting the version control system to use, given ...
/** * NetSuite will loop through each record in your search * and pass the record type and id for deletion * Try / Catch is useful if you wish to handle potential errors */ function MassDelete(record_type, record_id) { try { nlapiDeleteRecord(record_type, record_id...
1. Scrolling to target element ("BROWSE TEMPLATES" button at the bottom of page) with Actions from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains driver = webdriver.Chrome() driver.get('http://www.w3schools.com/') target = driver.find_elem...
RTE { classes { btn-lg { name = Button (large) requires = btn btn-default } btn-default { name = Button (default) requires = btn } } default { buttons.link.properties.class.allowedClas...

Page 707 of 826