Tutorial by Examples: by

In this example, we use this database: "your-project-name" : { "users" : { "randomUserId1" : { "display-name" : "John Doe", "gender" : "male" } "randomUserId2" :...
This is an official MATLAB example Consider the following code: month = [1;1;2;3;8;1;3;4;9;11;9;12;3;4;11]; temperature = [57;61;60;62;45;59;64;66;40;56;38;65;61;64;55]; maxTemp = accumarray(month,temperature,[],@max); The image below demonstrates the computation process done by accumarray in...
RubyInline is a framework that lets you embed other languages inside your Ruby code. It defines the Module# inline method, which returns a builder object. You pass the builder a string containing code written in a language other than Ruby, and the builder transforms it into something that you can ca...
aws ec2 describe-images --filters "Name=name,Values=${NAME_OF_AMI}"
/* these IN and OUT filerefs can point to anything */ filename in "anyfilehere.xlsx"; filename out "anyfilehere.xlsx"; /* copy the file byte-for-byte */ data _null_; length filein 8 fileid 8; filein = fopen('in','I',1,'B'); fileid = fopen('out','O',1,'B'); ...
Suppose we want to know how many users have the same name. Let us create table users as follows: create table users( id int primary key auto_increment, name varchar(8), count int, unique key name(name) ); Now, we just discovered a new user named Joe and would like to take hi...
Suppose we want to know how many users have the same name. Let us create table users as follows: create table users( id serial, name varchar(8) unique, count int ); Now, we just discovered a new user named Joe and would like to take him into account. To achieve that, we need to d...
Partial Update: Used when a partial document update is needed to be done, i.e. in the following example the field name of the document with id doc_id is going to be updated to 'John'. Note that if the field is missing, it will just be added to the document. doc = { "doc": { ...
Animation below shows what is happening when you use IDataInput interface methods to access data form ByteArray and other classes which implement this interface.
Background To get the product of a register and a constant and store it in another register, the naïve way is to do this: imul ecx, 3 ; Set ecx to 5 times its previous value imul edx, eax, 5 ; Store 5 times the contend of eax in edx Use lea Multiplications are expensive operation...
There's two ways to create a ByteBuffer, where one can be subdivided again. If you have an already existing byte[], you can "wrap" it into a ByteBuffer to simplify processing: byte[] reqBuffer = new byte[BUFFER_SIZE]; int readBytes = socketInputStream.read(reqBuffer); final ByteBuffer ...
To reveal the default "root" password: shell> sudo grep 'temporary password' /var/log/mysqld.log Change the root password as soon as possible by logging in with the generated temporary password and set a custom password for the superuser account: shell> mysql -uroot -p mysql...
Validating the Name entered by a User contain the following check Ensure it is not empty Ensure it contain only alphabets, space and/or dot. So, the regular expression for this is ^[A-Z][a-z]*(\.?\s?[A-Z][a-z]*)+$ This means ^ -> Should start with [A-Z] -> the first lette...
SELECT e.emp_id , e.first_name , e.last_name FROM employees e INNER JOIN managers m ON m.mgr_id = e.mgr_id WHERE m.mgr_id = 'M01' ; Results in: EMP_IDFIRST_NAMELAST_NAMEE02ErinMacklemoreE04RonSonswan Ultimately, for every manager we query for, we will see 1 or more employees returned.
A generic new() constructor that takes the string name of the desired algorithm as its first parameter also exists to allow access to the above listed hashes as well as any other algorithms that your OpenSSL library may offer. The named constructors are much faster than new() and should be preferred...
The method of SQL generation from BQL PXSelectGroupBy<> data views has been changed in Acumatica Framework 5.2. The sections below illustrate the differences using the example of PXSelectGroupBy<FinYear, Aggregate<GroupBy<FinYear.finPeriods>>>.Select(graph): Acumatica Frame...
/In async.series,all the functions are executed in series and the consolidated outputs of each function is passed to the final callback. e.g/ var async = require('async'); async.series([ function (callback) { console.log('First Execute..'); callback(null, 'userPersonalData'); }, function (cal...
Tkinter support .ppm files from PIL(Python Imaging Library), .JPG, .PNG and .GIF. To import and image you first need to create a reference like so: Image = PhotoImage(filename = [Your Image here]) Now, we can add this image to Button and Labels like so using the "img" callback: Lbl ...
I would like to point out that we rotate left when the shifting value is negative and we rotate right when the value is positive. public static void Main() { int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int shiftCount = 1; Rotate(ref array, shiftCount); ...
When one with typeof operator one gets type object it falls into somewhat wast category... In practice you might need to narrow it down to what sort of 'object' it actually is and one way to do it is to use object constructor name to get what flavour of object it actually is: Object.prototype.toSt...

Page 20 of 23