Tutorial by Examples

Dialog dlg; DialogGroup dGrp; DialogField dfCustomer; dlg = new Dialog("Simple Dialog"); dGrp = dlg.addGroup("A Group"); dfCustomer = dlg.addField(extendedTypeStr(CustAccount)); if (dlg.run()) { info(dfCustomer.value()); } Because CustAccount is linked to the ...
Dialog dlg; DialogGroup dGrp; DialogField dfGender; dlg = new Dialog("Enum Dialog"); dGrp = dlg.addGroup("A Group"); dfGender = dlg.addField(enumStr(Gender), "Your Gender"); if (dlg.run()) { info(dfGender.value()); } Enums have to be wrapped inside a...
Dialog dlg; DialogGroup dGrp; DialogField dialogField; dlg = new Dialog("Evil Dialog"); dGrp = dlg.addGroup("A Group"); dialogField = dlg.addFieldValue(extendedTypeStr(NoYesId), NoYes::Yes, "I hereby sell my soul"); if (dlg.run()) { info(dialogField.valu...
Required package structure XML activity_login <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_vertical" android...
Analysis in elasticsearch comes into context when you are willing to analyze the data in your index. Analyzers allow us to perform following: Abbreviations Stemming Typo Handling We will be looking at each of them now. Abbreviations: Using analyzers, we can tell elasticsearch how to t...
The first example are keywords that have a special purpose in C++: the following is legal in C, but not C++. int class = 5 These errors are easy to fix: just rename the variable.
In C, pointers can be cast to a void*, which needs an explicit cast in C++. The following is illegal in C++, but legal in C: void* ptr; int* intptr = ptr; Adding an explicit cast makes this work, but can cause further issues.
In C++, you may not skip initializations with goto or switch. The following is valid in C, but not C++: goto foo; int skipped = 1; foo; These bugs may require redesign.
Detailed instructions on getting DotNetNuke set up or installed.
The Manifest file in DNN provides the framework with the information necessary to install and register a module. Here's a sample Manifest file for the dnnSimpleArticle module. <dotnetnuke type="Package" version="5.0"> <packages> <package name="dnnsimp...
// db.js const mysql = require('mysql'); const pool = mysql.createPool({ connectionLimit : 10, host : 'example.org', user : 'bob', password : 'secret', database : 'my_db' }); module.export = { getConnection: (callback) => { retu...
Elixir allows you to add aliases for your mix commands. Cool thing if you want to save yourself some typing. Open mix.exs in your Elixir project. First, add aliases/0 function to the keyword list that the project function returns. Adding () at the end of the aliases function will prevent compiler...
Detailed instructions on getting sharedpreferences set up or installed.
Use below URL to get steps for download and install- https://www.r-bloggers.com/installing-and-starting-sparkr-locally-on-windows-os-and-rstudio-2/ Add the environment variable path for your 'Spark/bin', 'spark/bin' , R and Rstudio path. I have added below path (initials will vary based on where ...
Create a new rails app hello-world from command in Windows and Terminal in Linux. rails new hello-world Now move to new app directory cd hello-world Now generate a controller rails generate controller hello_world index Here index is the name of method in hello_world controller. You can c...
class Node(object): def __init__(self, val): self.l_child = None self.r_child = None self.val = val class BinarySearchTree(object): def insert(self, root, node): if root is None: return node if root.val < node.val: ...
Comparisons are functions in clojure. What that means in (2>1) is (> 2 1) in clojure. Here are all the comparison operators in clojure. Greater Than (> 2 1) ;; true (> 1 2) ;; false Less Than (< 2 1) ;; false Greater Than or Equal To (>= 2 1) ;; true (>= 2 ...
Below is a non-tail-recursive function to compute the sum of a list of integers. let rec sum = function | [] -> 0 | h::t -> h + (sum t) The last operation the function performs is the addition. Thus, the function isn't tail-recursive. Below is a tail-recursive version of the same fu...
Detailed instructions on getting uicollectionview set up or installed.
An example configuration for a hub: java -jar selenium-server-standalone-<version>.jar -role hub -hubConfig hubConfig.json { "_comment" : "Configuration for Hub - hubConfig.json", "host": ip, "maxSessions": 5, "port": 4444...

Page 1211 of 1336