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 ...
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.
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...
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...
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...
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...