Tutorial by Examples: and

All images in this section are from the UK version of Outlook 2016. I know that some names are translated into the local language for other versions and I assume that most of the names for the tabs are translated. Probably the sequence of tabs is unchanged in non-English versions. Alternatively, you...
Here we are managing multiple collection there delegate methods with didselect events. extension ProductsVC: UICollectionViewDelegate, UICollectionViewDataSource{ // MARK: - UICollectionViewDataSource func collectionView(_ collectionView: UICollectionView, numberOfItemsI...
BEGINS - returns TRUE if one string begins with another string. string1 BEGINS string2 If string1 BEGINS with (or is equal to) string2 this will return true. Otherwise it will return false. If string two is empty ("") it will always return true. BEGINS is very useful in queries wher...
RANDOM - generates a random number RANDOM(low, high) Generates a pseudo random integer between low and high // Example that generates 20 random numbers between 1 and 20 (1 and 20 included) DEFINE VARIABLE i AS INTEGER NO-UNDO. DO i = 1 TO 20. DISPLAY i RANDOM(1, 20). PAUSE. ...
Write a CSV file from a dict or a DataFrame. import pandas as pd d = {'a': (1, 101), 'b': (2, 202), 'c': (3, 303)} pd.DataFrame.from_dict(d, orient="index") df.to_csv("data.csv") Read a CSV file as a DataFrame and convert it to a dict: df = pd.read_csv("data.csv&qu...
Swift 3 import UIKit // Save String to file let fileName = "TextFile" let documentDirectory = try FileManager.default.urlForDirectory(.documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true) var fileURL = try documentDirectory.appendingPathComponent(fileName).ap...
As mentioned before strings are normally case insensitive but that only regards comparison of strings. There's built in functions for changing case. CAPS (string) Makes string upper case LC(string) Makes string lower case DEFINE VARIABLE c AS CHARACTER NO-UNDO. DEFINE VARIABLE d AS C...
The DICOM Image file is a tagged image file; the file contains both an image (most of the time) and a collection of data about the image. The data in a DICOM image file is stored as a sequence of individual elements. Each element contains one item of information about the image or the image itself. ...
The Wrong Way Consider the following structure { "users": { // Uniquely generated IDs for children is common practice, // it's actually really useful for automating child creation. // Auto-incrementing an integer for a key can be problematic when a child is removed. ...
A procedure can have parameters of different kinds: input, output, input-output (bidirectional) and also some special types like temp-tables and datasets). In the run statement it's optional to declare INPUT (it's considered default) - all other directions must be specifically declared. A procedur...
The principle is essentially the same as for the Text widget, but a Grid layout is used to put the scrollbars around the widget. canvas = tk.Canvas(parent, width=150, height=150) canvas.create_oval(10, 10, 20, 20, fill="red") canvas.create_oval(200, 200, 220, 220, fill="blue")...
It has not been explained in the Tensorflow documentation how to load images and labels directly from a TXT file. The code below illustrates how I achieved it. However, it does not mean that is the best way to do it and that this way will help in further steps. For instance, I'm loading the labels ...
Navigate to phpMyAdmin by URL http://your_ip/phpmyadmin or http://localhost/phpmyadmin Login using username root and root password. Click on Databases tab. Enter database name, select collation (you may leave it to default) and click create. Click on Privileges tab and select "Add user a...
From the tool-bar open the Java Perspective. Create a new Java project Right-click into the Package Explorer, and from the menu select New -> Java Project In the upcoming dialog enter a project name, then click Finish. Now you have the new project in your workspace. Create a new Java ...
Flexbox or flexible box is a layout method for arranging content on a page in a predictable manner. Flexbox provides an improvement over traditional block model positioning using floats or even table like positioning for content on the page. At its core, Flexbox can be broken down into a parent ele...
Open Function.cs and replace the class code with the following: public class Function { /// <summary> /// A simple function that takes a birth date and returns Age in years /// </summary> /// <param name="input"></param> /// <returns>Age is years&...
Overall you have two ways to monitor processes at linux host Static monitoring Most widely used command is ps (i.e., process status) command is used to provide information about the currently running processes, including their process identification numbers (PIDs). Here few useful options to gath...
To get general statistics about main components of Linux family of stat commands are extremely useful CPU To get processors related statistics you can use mpstat command but with some options it will provide better visibility: $ mpstat 2 10 Memory We all know command free to show amount of (r...
One can describe a line in arbitrary dimensions as X = A + t*D where A and D are both vectors of suitably many dimensions. So in 2d this would be x = Ax + t*Dx y = Ay + t*Dy Now as t assumes any real value, this equation will produce all points along the line. The representation is not uniq...
The latest find is always the one the availability check will work against - a unsuccesful find will make AVAILABLE return false: DEFINE TEMP-TABLE tt NO-UNDO FIELD nr AS INTEGER. CREATE tt. tt.nr = 1. CREATE tt. tt.nr = 2. CREATE tt. tt.nr = 3. DISPLAY AVAILABL tt. // yes (tt w...

Page 126 of 153