Tutorial by Examples

If you're accepting user input for folder paths, you might need to check for trailing backslashes (\) before building a file path. The FSO.BuildPath method makes this simpler: Const sourceFilePath As String = "C:\Temp" '<-- Without trailing backslash Const targetFilePath As Strin...
In this example you will explore how to export the following data from Acumatica ERP in a single call via the REST Contract-Based API: all stock items existing in the application all sales order of the IN type If you need to export records from Acumatica ERP, use the following URL: http://&l...
In this example you will explore how to export the following data from Acumatica ERP in batches via the REST Contract-Based API: stock items existing in the application in batches of 10 records all sales orders in batches of 100 records To export stock items in batches of 10 records with mult...
If you add controls from third party libraries in a C# WPF project, the XAML file will normally have lines like this one. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" This will perhaps not work with FsXaml. The designer and the compiler accepts that line, but there will prob...
Let's assume you have a ListView wich is supposed to display every User object listed under the Users Property of the ViewModel where Properties of the User object can get updated programatically. <ListView ItemsSource="{Binding Path=Users}" > <ListView.ItemTemplate> ...
This example implements a linked list with many of the same methods as that of the built-in list object. class Node: def __init__(self, val): self.data = val self.next = None def getData(self): return self.data def getNext(self): return self.ne...
In most other languages indentation is not compulsory, but in Python (and other languages: early versions of FORTRAN, Makefiles, Whitespace (esoteric language), etc.) that is not the case, what can be confusing if you come from another language, if you were copying code from an example to your own, ...
Once using is used to introduce the name cout from the namespace std into the scope of the main function, the std::cout object can be referred to as cout alone. #include <iostream> int main() { using std::cout; cout << "Hello, world!\n"; }
If a using-declaration occurs at class scope, it is only allowed to redeclare a member of a base class. For example, using std::cout is not allowed at class scope. Often, the name redeclared is one that would otherwise be hidden. For example, in the below code, d1.foo only refers to Derived1::foo(c...
C++11 As a special case, a using-declaration at class scope can refer to the constructors of a direct base class. Those constructors are then inherited by the derived class and can be used to initialize the derived class. struct Base { Base(int x, const char* s); }; struct Derived1 : Base {...
PyTesseract is an in-development python package for OCR. Using PyTesseract is pretty easy: try: import Image except ImportError: from PIL import Image import pytesseract #Basic OCR print(pytesseract.image_to_string(Image.open('test.png'))) #In French print(pyt...
Another module of some use is PyOCR, source code of which is here. Also simple to use and has more features than PyTesseract. To initialize: from PIL import Image import sys import pyocr import pyocr.builders tools = pyocr.get_available_tools() # The tools are returned in the recommended...
Detailed instructions on getting asynchronous set up or installed.
Detailed instructions on getting hadoop2 set up or installed.
public abstract class BaseActivity extends AppCompatActivity { private Map<Integer, PermissionCallback> permissionCallbackMap = new HashMap<>(); @Override protected void onStart() { super.onStart(); ... } @Override public void setConten...
var fs = require("fs"); fs.readFileSync(‘abc.txt’,function(err,data){ //Reading File Synchronously if(!err) { console.log(data); } //else //console.log(err); }); console.log("something else"); Here, the program wa...
Components Resource Manager: It is the ultimate authority that allocates resource among all application in the system. It is also responsible for allocating container in which application master will start and initializing it after container allocation for application master. Node Manager: It is r...
It is basically address of a variable in memory. It allows us to indirectly access a variable. So using pointers we can talk about a variable's address(as well as its value by dereferencing the pointer). They are useful when we want to deal with address of a memory location rather than its value. C...
This example uses <md-chips> and <md-chip>. NOTE: Static chips cannot be selected, removed or edited, and are not part of any model. If no ng-model is provided, there are no input elements in <md-chips>. index.html: <md-content ng-controller="ChipController"> &...
Detailed instructions on getting web2py set up or installed.

Page 1168 of 1336