Tutorial by Examples: al

In many application it is necessary to compute the function of two or more arguments. Traditionally, we use for-loops. For example, if we need to calculate the f = exp(-x^2-y^2) (do not use this if you need fast simulations): % code1 x = -1.2:0.2:1.4; y = -2:0.25:3; for nx=1:lenght(x) for n...
How to interact with the BIOS The Basic Input/Output System, or BIOS, is what controls the computer before any operating system runs. To access services provided by the BIOS, assembly code uses interrupts. An interrupt takes the form of int <interrupt> ; interrupt must be a literal number, n...
Time complexity is a property of Problems someone might want to solve computationally, Algorithms designed to solve such problems and Programs implementing such algorithms. An abstract concept requires no installation or setup. Simply take any problem, algorithm, or code and ask "How lo...
This uses the Dropbox Java SDK to download a file from the Dropbox API at the remote path /Homework/math/Prime_Numbers.txt to the local file Prime_Numbers.txt: String localPath = "Prime_Numbers.txt"; OutputStream outputStream = new FileOutputStream(localPath); FileMetadata metadata = cl...
There is a dozen implementations of Standard ML. MLton produces very optimized code, but has no REPL. SML/NJ is the most widely used, but has slightly difficult error messages for learning purposes. Moscow ML and Poly/ML are easy to get started with, but don't support the .mlb package format. That i...
// Set up Express var express = require('express'); var app = express(); // Specify mount path, '/static', for the static directory app.use('/static', express.static('public')); // Start Express server app.listen(3030);
// Set up Express var express = require('express'); var app = express(); /* Serve from the absolute path of the directory that you want to serve with a */ virtual path prefix app.use('/static', express.static(__dirname + '/public')); // Start Express server app.listen(3030);
A lot of example code posted on StackOverflow includes snippets like this: if ("A".equals(someString)) { // do something } This does "prevent" or "avoid" a possible NullPointerException in the case that someString is null. Furthermore, it is arguable that ...
This example shows how to deploy the "Hello World" program as a library and how to link it with other targets. Say we have the same set of source/header files as in the http://www.riptutorial.com/cmake/example/22391/-hello-world--with-multiple-source-files example. Instead of building fro...
// PixelAccessTutorial.cpp : Defines the entry point for the console // Environment: Visual studio 2015, Windows 10 // Assumptions: Opecv is installed configured in the visual studio project // Opencv version: OpenCV 3.1 #include "stdafx.h" #include<opencv2/core/core.hpp> #i...
Below is an usage of canny algorithm in c++. Note that the image is first converted to grayscale image, then Gaussian filter is used to reduce the noise in the image. Then Canny algorithm is used for edge detection. // CannyTutorial.cpp : Defines the entry point for the console application. // En...
Detailed instructions on getting phonegap-build set up or installed.
Detailed instructions on getting retrofit set up or installed.
Go to the Microsoft link for the OpenXML SDK download. Click the red download button. On the next screen click the box next to OpenXMLSDKToolV25.msi and click next to begin the download. Once the download is complete, launch the OpenXMLSDKToolV25.msi and follow the instructions on the screen. Th...
If you are inserting data into a table with an auto increment column and if you want to get the value of the auto increment column. Say you have a table called my_table: CREATE TABLE my_table ( id serial NOT NULL, -- serial data type is auto incrementing four-byte integer name character varying...
There are two types of Active Patterns that somewhat differ in usage - Complete and Partial. Complete Active Patterns can be used when you are able to enumerate all the outcomes, like "is a number odd or even?" let (|Odd|Even|) number = if number % 2 = 0 then Even else Odd N...
Prerequisites JDK 1.7 or later installed. You can find the Oracle JDK's here. Steps Download Payara Server Full. Unzip the Payara Server at some location on your computer. We will use C:\payara41 as INSTALL_DIR for Windows users and /payara41 for Linux/Mac users. Starting / stopping Pa...
(************************************************* * All comments in SML are block comments * Block Comments begin with '(*' * Block Comments end with '*)' * (* Block Comments can be nested *) * The additional framing asterisks at the beginning * and end of this block comment are common ...
The best way to get started using Spring-Integration in your project is with a dependency management system, like gradle. dependencies { compile 'org.springframework.integration:spring-integration-core:4.3.5.RELEASE' } Below is a very simple example using the gateway, service-activator mes...
You can install Celery either via the Python Package Index (PyPI) or from source. To install the latest version using pip: $ pip install celery To install using easy_install: $ easy_install celery Downloading and installing from source Download the latest version of Celery from http://pypi...

Page 184 of 269