Tutorial by Examples: al

This example will create an EC2 instance of t2.micro type in N.Virginia region running Amazon Linux. During the execution, it will ask to select the KeyPair to use and an I.P. CIDR from where you can SSH to the instance, use default to make SSH open to the internet { "AWSTemplateFormatVersion"...
Assuming that you are working with Windows 7 PC Step 1: GOTO -> C:\Windows\System32\drivers\etc Where you will find a file named “hosts”, kindly copy it and paste it at the same location. A copy file of hosts will be created there. Now we need to make some modifications in this file but if you...
SQOOP provides facility to import all tables sqoop import-all-tables \ --connect <rdbms-jdbc-url> \ --username <username> \ --password <password> \ --hive-import \ --create-hive-table \ --hive-database <dbname> \ --warehouse-dir <warehouse-dir> Important poin...
We initialize the data: [X,Y] = meshgrid(1:2:10); Z = X.*cos(Y) - Y.*sin(X); The surface looks like the following. Now we set the points where we want to interpolate: [Vx,Vy] = meshgrid(1:0.25:10); We now can perform nearest interpolation, Vz = interp2(X,Y,Z,Vx,Vy,'nearest'); line...
We will use the following data: x = 1:5:50; y = randi([-10 10],1,10); Hereby x and y are the coordinates of the data points and z are the points we need information about. z = 0:0.25:50; One way to find the y-values of z is piecewise linear interpolation. z_y = interp1(x,y,z,'linear'); ...
Use conditional compilation to ensure that code only compiles for the intended instruction set (such as x86). Otherwise code could become invalid if the program is compiled for another architecture, such as ARM processors. #![feature(asm)] // Any valid x86 code is valid for x86_64 as well. Be ca...
Real Number Basics - 6.0; val it = 6.0 : real - ~6.0; val it = ~6.0 : real - 6.0 + ~6.0; val it = 0.0 : real - 6.0 / 3.0; val it = 2.0 : real - 4.0 / 6.0; val it = 0.666666666667 : real Real Value Bounds Using Real Basis Library Functions - Real.maxFinite; val it = 1.79769313486E308 ...
Rounding Values midway between two integers go toward the nearest even value. - round(4.5); val it = 4 : int - round(3.5); val it = 4 : int Truncation val it = 4 : int - trunc(4.5); val it = 4 : int - trunc(3.5); val it = 3 : int Floor and Ceiling - ceil(4.5); val it = 5 : int - f...
- real(6); val it = 6.0 : real
Standard ML doesn't have built-in support for lazy evaluation. Some implementations, notably SML/NJ, have nonstandard lazy evaluation primitives, but programs that use those primitives won't be portable. Lazy suspensions can also be implemented in a portable manner, using Standard ML's module system...
Say you have a Parent class and a Child class. To construct a Child instance always requires some Parent constructor to be run at the very gebinning of the Child constructor. We can select the Parent constructor we want by explicitly calling super(...) with the appropriate arguments as our first Chi...
This is same as reading a manual for a command: man /path/to/man/file
1 dimensional To integrate a one dimensional function f = @(x) sin(x).^3 + 1; within the range xmin = 2; xmax = 8; one can call the function q = integral(f,xmin,xmax); it's also possible to set boundarys for relative and absolute errors q = integral(f,xmin,xmax, 'RelTol',10e-6, 'AbsTo...
You should have a plain CMake project myproject, and we are going to make an Eclipse workspace outside of it: myproject/ .git/ CMakeLists.txt src/ main.cpp workspace/ myproject/ Release/ Debug/ Qt (optional) Get latest Eclipse ...
A very handy way to subset Time Series is to use partial string indexing. It permits to select range of dates with a clear syntax. Getting Data We are using the dataset in the Creating Time Series example Displaying head and tail to see the boundaries se.head(2).append(se.tail(2)) # 2016-09-2...
A CSV file itself requires no installation as it is just a plain text file, usually with .csv extension. A CSV file usually contains records. Each line represents one record and is separated by a delimiter, most commonly a comma; but semicolons and tabs are also frequently used. Each line should ha...
Add react-rails to your Gemfile: gem 'react-rails' And install: bundle install Next, run the installation script: rails g react:install This will: create a components.js manifest file and a app/assets/javascripts/components/ directory, where you will put your components place the follo...
What is Profiling? By definition Profiling is a form of dynamic program analysis that measures, for example, the space (memory) or time complexity of a program, the usage of particular instructions, or the frequency and duration of function calls. Why is it necessary? Profiling is important becau...
IDENTIFICATION DIVISION. PROGRAM-ID. STRINGVAL. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 01 WORK-AREAS. 05 I-STRING PIC X(08) VALUE 'STRNGVAL'. 05 O-STRING PIC XBXBXBXBXBXBXBX. 88 O-STRING-IS-EMPTY VALU...
Security policy is a group of predicates associated to tables that can be managed together. You can add, or remove predicates or turn on/off entire policy. You can add more predicates on tables in the existing security policy. ALTER SECURITY POLICY dbo.CompanyAccessPolicy ADD FILTER PREDICATE...

Page 185 of 269