Tutorial by Examples

Detailed instructions on getting unix set up or installed.
Linux (Ubuntu) Installation Lucee (Open Source) ColdFusion / CFML Interpretor Download the appropriate file from their site (http://lucee.org/downloads.html) and execute their installer wget http://cdn.lucee.org/downloader.cfm/id/155/file/lucee-5.0.0.252-pl0-linux-x64-installer.run sudo chmod ...
MATLAB comes with many built-in scripts and functions which range from simple multiplication to image recognition toolboxes. In order to get information about a function you want to use type: help functionname in the command line. Lets take the help function as an example. Information on how to use...
What is recursion: In general, recursion is when a function invokes itself, either directly or indirectly. For example: // This method calls itself "infinitely" public void useless() { useless(); // method calls itself (directly) } Conditions for applying recursion to a probl...
Swift let mapView = MKMapView(frame: CGRect(x: 0, y: 0, width: 320, height: 500)) It's recommended to store the mapView as a property of the containing ViewController since you might want to access it in more complex implementations. Objective C self.map = [[MKMapView alloc]initWithFrame:CGRec...
There are 5 different types (MKMapType), MKMapView can display. iPhone OS 3 .standard Displays a street map that shows the position of all roads and some road names. Swift 2 mapView.mapType = .Standard Swift 3 mapView.mapType = .standard Objective-C _mapView.mapType = MKMapTypeStandard;...
Content has been moved back to the good 'ol JSF wiki page
Just like all programming language, Matlab is designed to read and write in a large variety of formats. The native library supports a large number of Text,Image,Video,Audio,Data formats with more formats included in each version update - check here to see the full list of supported file formats and ...
Elements of the same class can often be concatenated into arrays (with a few rare exceptions, e.g. function handles). Numeric scalars, by default of class double, can be stored in a matrix. >> A = [1, -2, 3.14, 4/5, 5^6; pi, inf, 7/0, nan, log(0)] A = 1.0e+04 * 0.0001 -0.0002 0...
Detailed instructions on getting android-layout set up or installed.
The for and while compound statements (loops) can optionally have an else clause (in practice, this usage is fairly rare). The else clause only executes after a for loop terminates by iterating to completion, or after a while loop terminates by its conditional expression becoming false. for i in r...
PHP represents "no value" with the null keyword. It's somewhat similar to the null pointer in C-language and to the NULL value in SQL. Setting the variable to null: $nullvar = null; // directly function doSomething() {} // this function does not return anything $nullvar = doSomething...
To make a rounded UIView, specify a cornerRadius for the view's layer. This also applies any class which inherits from UIView, such as UIImageView. Programmatically Swift Code someImageView.layoutIfNeeded() someImageView.clipsToBounds = true someImageView.layer.cornerRadius = 10 Objective-C...
In this example, we will look at a method for returning the last non-empty row in a column for a data set. This method will work regardless of empty regions within the data set. However caution should be used if merged cells are involved, as the End method will be "stopped" against a mer...
Any Fortran program has to include end as last statement. Therefore, the simplest Fortran program looks like this: end Here are some examples of "hello, world" programs: print *, "Hello, world" end With write statement: write(*,*) "Hello, world" end For c...
For apt-get based systems such as Ubuntu Add the Jenkins repository: wget -q -O - https://jenkins-ci.org/debian/ Jenkins-ci.org.key | sudo apt-key sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' Update sources and install Jenk...
The double-negation !! is not a distinct JavaScript operator nor a special syntax but rather just a sequence of two negations. It is used to convert the value of any type to its appropriate true or false Boolean value depending on whether it is truthy or falsy. !!1 // true !!0 ...
Another neat feature using slices is slice assignment. Python allows you to assign new slices to replace old slices of a list in a single operation. This means that if you have a list, you can replace multiple members in a single assignment: lst = [1, 2, 3] lst[1:3] = [4, 5] print(lst) # Out: [1...
Detailed instructions on getting Nativescript set up or installed. The following examples show the required steps to set up a Windows or OSX system and then sign post to troubleshooting guides in case you have any trouble. In addition, there are examples of how to set up recommended workflows, IDE...
Dart has If Else: if (year >= 2001) { print('21st century'); } else if (year >= 1901) { print('20th century'); } else { print('We Must Go Back!'); } Dart also has a ternary if operator: var foo = true; print(foo ? 'Foo' : 'Bar'); // Displays "Foo".

Page 114 of 1336