Tutorial by Examples: ti

This guide is intended to get you started on creating your own User Interface by subclassing the LeftAndMain class. By the end of this guide, you will have created your first Hello World interface in the Administration Panel. Requirements This guide requires you to have at least version 3.* of th...
Requirement for Local development 1) MySQL server(I am Using XAMPP for MySQL server) 2) For Test API You can use Postman(optional) 3) Before run application,make sure MySQL server is running, properly prepare your application.properties file(DB_Name, Username,Password). 1.Add following depen...
A higher-order function, as opposed to a first-order function, can have one of three forms: One or more of its parameters is a function, and it returns some value. It returns a function, but none of its parameters is a function. Both of the above: One or more of its parameters is a fu...
Here is a very simple example of a function that "promises to proceed when a given time elapses". It does that by creating a new Deferred object, that is resolved later and returning the Deferred's promise: function waitPromise(milliseconds){ // Create a new Deferred object using th...
Detailed instructions on getting arcgis set up or installed.
You can use Map<String, List<String>> myMap = new HashMap<>(); instead of Map<String, List<String>> myMap = new HashMap<String, List<String>>(); However, you can't use List<String> list = new ArrayList<>(); list.add("A"); ...
Detailed instructions on getting caching set up or installed.
// Takes a callback and executes it with the read value def readFile(path: String)(callback: Try[String] => Unit): Unit = ??? readFile(path) { _.flatMap { file1 => readFile(path2) { _.foreach { file2 => processFiles(file1, file2) }} }} The function argument to readFile is...
If shift is called outside of a delimiting reset block, it can be used to create functions that themselves create continuations inside a reset block. It is important to note that shift's type is not just (((A => B) => C) => A), it is actually (((A => B) => C) => (A @cpsParam[B, C])...
In order to create a workspace, one should run the following in the terminal: $ mkdir -p ~/workspace_name/src $ cd ~/workspace_name/src $ catkin_init_workspace $ cd ~/workspace_name/ $ catkin_make The previous commands creates a workspace named workspace_name. Once a workspace has been creat...
Assuming a workspace named workspace_name has been previously created in the home directory, a package named package_name can be created by executing the following command lines. $ cd ~/workspace_name/src/ $ catkin_create_pkg package_name rospy
The if statement is a conditional statement that allows a program to enter or not a specific section of code depending if the condition(s) of the statement are met or not. It can be found in mostly all the existing programming languages. The if statement will usually take the following shape: if(s...
A statement is usually a test on a variable or the return value of a function. To test those values, we can use some relational operators: OperatorMeaningExample==Equal to1 == 1 is TRUE, 1 == 2 is FALSE!=Not equal to1 != 2 is TRUE, 1 != 1 is FALSE<Less than1 < 2 is TRUE, 2 < 1 is FALSE>...
A std::tuple<T...> can be used to pass multiple values around. For example, it could be used to store a sequence of parameters into some form of a queue. When processing such a tuple its elements need to be turned into function call arguments: #include <array> #include <iostream>...
std::integer_sequence itself is about holding a sequence of integers which can be turned into a parameter pack. Its primary value is the possibility to create "factory" class templates creating these sequences: #include <iostream> #include <initializer_list> #include <uti...
The phpunit.xml file is the default configuration file for tests and is already setup for testing with PHPUnit. The default testing environment APP_ENV is defined as testing with array being the cache driver CACHE_DRIVER. With this setup, no data (session/cache) will be retained while testing. T...
Declaring the splat is useful for reusing sets of parameters multiple times or with slight variations: $splat = @{ Class = "Win32_SystemEnclosure" Property = "Manufacturer" ErrorAction = "Stop" } Get-WmiObject -ComputerName $env:COMPUTERNAME @splat Get...
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration]; AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration]; NSURL *URL = [NSURL URLWithString:@"http://example.com/upload"]; NSURLRequest *r...
NSMutableURLRequest *request = [[AFHTTPRequestSerializer serializer] multipartFormRequestWithMethod:@"POST" URLString:@"http://example.com/upload" parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) { [formData appendPartWithFileURL:[NSURL ...

Page 402 of 505