Tutorial by Examples: ti

Fortran is a language which can be compiled using compilers supplied by many vendors. Different compilers are available for different hardware platforms and operating systems. Some compilers are free software, some can be used free of charge and some require the purchase of a licence. The most comm...
All java Collection<E>s have stream() and parallelStream() methods from which a Stream<E> can be constructed: Collection<String> stringList = new ArrayList<>(); Stream<String> stringStream = stringList.parallelStream(); A Stream<E> can be created from an arra...
INSERT INTO `my_table` (`field_1`, `field_2`) VALUES ('data_1', 'data_2'), ('data_1', 'data_3'), ('data_4', 'data_5'); This is an easy way to add several rows at once with one INSERT statement. This kind of 'batch' insert is much faster than inserting rows one by one. Typically...
Java 8 provides classes called IntSummaryStatistics, DoubleSummaryStatistics and LongSummaryStatistics which give a state object for collecting statistics such as count, min, max, sum, and average. Java SE 8 List<Integer> naturalNumbers = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); IntSu...
Starting with PHP Sessions we can pass an array with session-based php.ini options to the session_start function. Example <?php if (version_compare(PHP_VERSION, '7.0.0') >= 0) { // php >= 7 version session_start([ 'cache_limiter' => 'private', ...
Getting started with Ember is easy. Ember projects are created and managed through our command line build tool Ember CLI. This tool provides: Modern application asset management (including concatenation, minification, and versioning). Generators to help create components, routes, and more. A ...
Xamarin.Forms is a cross-platform natively backed UI toolkit abstraction that allows developers to easily create user interfaces that can be shared across Android, iOS, Windows, and Windows Phone. The user interfaces are rendered using the native controls of the target platform, allowing Xamarin.For...
Symfony Framework - built with symfony components, is one of the leading PHP framework used to create robust websites and web applications. Symfony can be installed quickly through two recommended ways. The official documentaion recommends to install the framework through the Symfony Installer ...
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 ...
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 ...
Detailed instructions on getting android-layout set up or installed.
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 ...
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...
Prerequisites: NodeJS and npm There are two ways of installing Webpack: globally or per-project. It is best to have the dependency installed per-project, as this will allow you to use different versions of webpack for each project and don't require user to have installed webpack globally. Install...
All Java exceptions are instances of classes in the Exception class hierarchy. This can be represented as follows: java.lang.Throwable - This is the base class for all exception classes. Its methods and constructors implement a range of functionality common to all exceptions. java.lang.Excep...
A function defined as async is a function that can perform asynchronous actions but still look synchronous. The way it's done is using the await keyword to defer the function while it waits for a Promise to resolve or reject. Note: Async functions are a Stage 4 ("Finished") proposal on tr...
A Pseudo Distributed Cluster Setup Procedure Prerequisites Install JDK1.7 and set JAVA_HOME environment variable. Create a new user as "hadoop". useradd hadoop Setup password-less SSH login to its own account su - hadoop ssh-keygen << Press ENTER for all prompt...
A context manager is an object that is notified when a context (a block of code) starts and ends. You commonly use one with the with statement. It takes care of the notifying. For example, file objects are context managers. When a context ends, the file object is closed automatically: open_file = ...

Page 45 of 505