Tutorial by Examples: ti

To add additional restriction to the poReceiptLinesSelection data view, you should invoke Select method on base view and inspect each item in returned PXResultSet independently to decide if it complies with additional restriction(s): public class APInvoiceEntryExt : PXGraphExtension<APInvoiceEn...
Accessed through including <stdio.h>, the function printf() is the primary tool used for printing text to the console in C. printf("Hello world!"); // Hello world! Normal, unformatted character arrays can be printed by themselves by placing them directly in between the parenthes...
Use Enum.chunk/2 to group elements into sub-lists, and Map.new/2 to convert it into a Map: [1, 2, 3, 4, 5, 6] |> Enum.chunk(2) |> Map.new(fn [k, v] -> {k, v} end) Would give: %{1 => 2, 3 => 4, 5 => 6}
In OpenCV, images can be RGB/BGR, HSV, grayscaled, black-white and so on. It is crucial to know the data type before dealing with images. The image data types are mainly CV_8UC3 (Matrix of uchar with 3 channels) and CV_8U (Matrix of uchar with 1 channel), however, the conversion to other types such...
Activate Developer Mode: Login to odoo application. After login user may see several odoo menu's. Click on setting menu. Click on 'Activate the developer mode' which is located at right-bottom corner of settings page. Developer mode now activated.
Android now supports devices with 512MB of RAM. This documentation is intended to help OEMs optimize and configure Android 4.4 for low-memory devices. Several of these optimizations are generic enough that they can be applied to previous releases as well. Enable Low Ram Device flag We are introduc...
Redis provides the LPOP and RPOP commands as a counterpart to the LPUSH and RPUSH commands for fetching data items. If I was working with a list my_list that had several data items in it already, I can get the first item in the list using the LPOP command: LPOP my_list The result of this comman...
Openfire it's available to download at Ignite Realtime website It's also possible to download relative source codeenter link description here Windows installer: Just execute the exe and follow basic instructions as any program (installation directory, shortcut etc.). Unix-Linux-Mac install:...
Redis supplies the SISMEMBER command to test if a particular item is already a member of a set. Using the SISMEMBER command I can test and see if apple is already a member of my fruit set. If I construct my fruit set from the previous example, I can check and see if it contains apple using the fol...
Redis provides seven different operations for working with scripts: Eval operations (EVAL, EVALSHA) SCRIPT operations (DEBUG, EXISTS, FLUSH, KILL, LOAD) The EVAL command evaluates a script provided as a string argument to the server. Scripts can access the specified Redis keys named as argum...
Insertion sort is one of the more basic algorithms in computer science. The insertion sort ranks elements by iterating through a collection and positions elements based on their value. The set is divided into sorted and unsorted halves and repeats until all elements are sorted. Insertion sort has c...
Bubble Sort This is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order. The pass through the list is repeated until no swaps are needed. Although the algorithm is simple, it is too slow ...
Selection sort is noted for its simplicity. It starts with the first element in the array, saving it's value as a minimum value (or maximum, depending on sorting order). It then itterates through the array, and replaces the min value with any other value lesser then min it finds on the way. That min...
Since we have many different algorithms to choose from, when we want to sort an array, we need to know which one will do it's job. So we need some method of measuring algoritm's speed and reliability. That's where Asymptotic analysis kicks in. Asymptotic analysis is the process of describing the ef...
Quicksort is one of the advanced algorithms. It features a time complexity of O(n log n) and applies a divide & conquer strategy. This combination results in advanced algorithmic performance. Quicksort first divides a large array into two smaller sub-arrays: the low elements and the high element...
g + geom_bar(aes(x = cut, fill = color), position = "fill") + guides(fill = guide_legend(title = NULL))
g + geom_histogram(aes(price, fill = cut), binwidth = 500) + labs(x = "Price", y = "Number of diamonds", title = "Distribution of prices \n across Cuts") + theme(plot.title = element_text(colour = "red", face = "italic"), ...
If you need to select between several options, enabling just one via enable_if<> can be quite cumbersome, since several conditions needs to be negated too. The ordering between overloads can instead be selected using inheritance, i.e. tag dispatch. Instead of testing for the thing that ne...
Installation: To install the LoopBack command-line interface (CLI) tool: npm install -g loopback-cli This installs the lb command-line tool for scaffolding and modifying LoopBack applications. Create new application: To create a new application: lb The LoopBack application generator will ...
Timeout The simplest way to make a delay or pause for a certain amount of time, is with the standard command TIMEOUT. To make a timeout that lasts exactly one minute we type: timeout /t 60 Now what is going on here? First off we use the command TIMEOUT with the parameter /T (which simply mea...

Page 430 of 505