Tutorial by Examples: o

Every instance of WWW with a second parameter is a post. Here is an example to post user id and password to server. void Login(string id, string pwd) { WWWForm dataParameters = new WWWForm(); // Create a new form. dataParameters.AddField("username", id); dataParameter...
In some instances, you will want to send data from JS client to the R server. Here is a basic example using javascript's Shiny.onInputChange function: library(shiny) runApp( list( ui = fluidPage( # create password input HTML('<input type="password" id="passw...
To install DevExpress .NET products on your development machine, it is first necessary to obtain the DevExpress .NET Products Installer. You can download it from the http://www.devexpress.com website in one of the following ways, based on the status of your current account. Download the Trial ...
You can use the heroku create command to create a Heroku application. Each application you deploy to Heroku has its own code base, environment variables, addons, etc. Each Heroku application has a globally unique name. If you try to create a Heroku application whose name is already taken, you will ...
This a python example function for sequence writing in fasta format. Parameters: filename(String) - A file name for writing sequence in fasta format. seq(String) - A DNA or RNA sequence. id(String) - The ID of the given sequence. desc(String) - A short description of the given sequence. im...
This example demonstrates usage of POSIX record locks (a.k.a. process-associated locks), provided by fcntl function (POSIX base standard). Notes: Exclusive and shared locks are supported. Can be applied to a byte range, optionally automatically expanding when data is appended in future (control...
This example demonstrates usage of lockf function (POSIX XSI). Notes: Only exclusive locks are supported. Can be applied to a byte range, optionally automatically expanding when data is appended in future (controlled by len argument and position set with lseek function). Locks are released on ...
Components and Props As React concerns itself only with an application's view, the bulk of development in React will be the creation of components. A component represents a portion of the view of your application. "Props" are simply the attributes used on a JSX node (e.g. <SomeComponen...
CKContainer.defaultContainer().accountStatusWithCompletionHandler { accountStatus, error in if accountStatus == .NoAccount { let alert = UIAlertController(title: "Sign in to iCloud", message: "Sign in to your iCloud account to write records. On the Home screen, l...
The standard Java toolchain (and 3rd-party tools designed to interoperate with them) have specific rules for mapping the names of classes to the pathnames of files and other resources that represent them. The mappings are as follows For classes in the default package, the pathnames are simple fi...
This example shows how to use fast enumeration in order to traverse through an NSArray. When you have an array, such as NSArray *collection = @[@"fast", @"enumeration", @"in objc"]; You can use the for ... in syntax to go through each item of the array, automatical...
A model for a new table can be created by running the following commend from the terminal root location: phalcon model <table-name> Let us take the Model Users. SELECT There are two default functions to do select operation in phalcon, find() and findFirst() findFirst() is used to get th...
identification division. program-id. altering. date-written. 2015-10-28/06:36-0400. remarks. Demonstrate ALTER. procedure division. main section. *> And now for some altering. contrived. ALTER story TO PROCEED TO beginning GO TO story . *> Jump to a part of the story...
https://godzillai5.wordpress.com/2016/08/20/db2-for-i-in-the-cloud-connecting-to-pub400-via-jdbc-in-netbeans/
https://godzillai5.wordpress.com/2016/08/21/jdbc-jt400-setting-to-get-crud-and-show-sql-features-added-in-netbeans-with-ibm-db2-for-i/
Error messages are generally included in a script for debugging purposes or for providing rich user experience. Simply writing error message like this: cmd || echo 'cmd failed' may work for simple cases but it's not the usual way. In this example, the error message will pollute the actual output...
Creating a Project with the NetBeans IDE In the following, we walk you through the creation of a Vaadin project in NetBeans and show how to run it. Installation of NetBeans and the Vaadin plugin is covered in Installing the NetBeans IDE and Plugin. Without the plugin, you can most easily create a...
To enable Cross-Origin Resource Sharing (CORS) in Apache you'll need to set at least one HTTP header which changes it (the default behaviour is to block CORS). In the following example, we're going to be setting this HTTP header inside .htaccess, but it can also be set in your site your-site.conf fi...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <dirent.h> #include <ctype.h> int main(int argc, char **argv) { const char *dname = (argc > 1 ? argv[1] : "."); DI...
#define _XOPEN_SOURCE 500 #include <stdlib.h> /* for exit() */ #include <stdio.h> /* for remove() */ #include <ftw.h> /* for nftw() */ int unlink_cb( const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { return remove(fpath); } in...

Page 594 of 1038