Tutorial by Examples: all

#include opencv2/opencv.hpp> #include vector> using namespace std; using namespace cv; int main() { Mat3b img = imread("test.jpg"); imshow("Original", img); // Cluster int K = 8; int n = img.rows * img.cols; Mat data = img.reshape(1, n); data.convertTo(data, CV_32F); ...
This example covers the implementation of Allure Reports in Selenium using TestNG, Java and Maven. Maven Configuration Repository Add following code to configure the jcenter repository <repository> <id>jcenter</id> <name>bintray</name> ...
using Newtonsoft.Json.Linq; using System.Collections.Generic; public class JsonFieldsCollector { private readonly Dictionary<string, JValue> fields; public JsonFieldsCollector(JToken token) { fields = new Dictionary<string, JValue>(); CollectFields...
Ensure you met all requirements, as per Requirements Mount the temporary API filesystems: cd /location/of/new/root mount -t proc proc proc/ mount --rbind /sys sys/ mount --rbind /dev dev/ mount --rbind /run run/ (optionally) If you need to use an internet connection in the c...
To get the latest release go to https://cran.r-project.org/ and download the file for your operating system. Open the downloaded file and follow the on-screen installation steps. All the settings can be left on default unless you want to change a certain behaviour.
You can also update R from within R by using a handy package called installr. Open R Console (NOT RStudio, this doesn't work from RStudio) and run the following code to install the package and initiate update. install.packages("installr") library("installr") updateR()
Many packages for example on version 3.4 would run on 3.6 just fine, but if there are no distributions for specific platform, they can't be installed, but there is workaround. In .whl files (known as wheels) naming convention decide whether you can install package on specified platform. Eg. scikit_l...
Detailed instructions on getting scapy set up or installed.
Detailed instructions on getting statistics set up or installed.
The procedures bellow will temporarily disable all Excel features at WorkBook and WorkSheet level FastWB() is a toggle that accepts On or Off flags FastWS() accepts an Optional WorkSheet object, or none If the ws parameter is missing it will turn all features on and off for all WorkSh...
You can read all items either from any config file or type it inline. Considering if its saved in Config File // Read all list items from config file string[] countryDV = ConfigurationManager.AppSettings["countryDV"].Split(',').Select(s => s.Trim().ToUpper()).ToArray(); int DVRowLim...
Approach in this case will be different than previous example because Excel file supports the Data validation for list of items with total character count less than 256 if all items are binded directly as in previous example. But in many situation list items can be longer than 256 characters and in ...
import sys import json # load input arguments from the text file filename = sys.argv[ 1 ] with open( filename ) as data_file: input_args = json.loads( data_file.read() ) # cast strings to floats x, y = [ float(input_args.get( key )) for key in [ 'x', 'y' ] ] print json.dumps( { ...
using MongoDB.Bson; using System; using System.Diagnostics; using System.IO; namespace python_csharp { class Program { static void Main(string[] args) { // full path to .py file string pyScriptPath = "...../sum.py"; ...
Best way to include all library related to NPOI is NUGet Package Manager. Search for NPOI on NUGet package manager window. Once it is successfully installed all needed library will appear in reference section of your current project Then include the NPOI into your file like this using NPOI.SS...
In this version change, Ionic has upgraded to Angular 4, a most recent version of TypeScript and some structural changes but starting an ionic project continues being similar to Ionic 2 so if you need more detailed information you could refer to that doc: Ionic 2 Stack Overflow doc: Getting started...
C99 While writing // delimited comments, it is possible to make a typographical error that affects their expected operation. If one types: int x = 20; // Why did I do this??/ The / at the end was a typo but now will get interpreted into \. This is because the ??/ forms a trigraph. The ??/ tri...
Detailed instructions on getting drop-down-menu set up or installed.
Step 1: Download and extract Drupal Drupal is available in two supported versions: the most recent and the previous. Currently that is Drupal 8 (released November 2015) and Drupal 7. The Recommended releases are the latest stable releases of either version. To learn more about versions, see the Dru...
Many repetitive jobs can be performed more efficiently if you utilize more of your computer's resources (i.e. CPU's and RAM). Below is an example of running multiple jobs in parallel. Suppose you have a < list of files >, say output from ls. Also, let these files are bz2 compressed and the fo...

Page 110 of 113