Tutorial by Examples: c

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...
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> ...
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...
public abstract class BaseActivity extends AppCompatActivity { private Map<Integer, PermissionCallback> permissionCallbackMap = new HashMap<>(); @Override protected void onStart() { super.onStart(); ... } @Override public void setConten...
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"> &...
Sometimes you may want to have some login to determine where the user gets redirected to after submitting a form. Form Requests give a variety of ways. By default there are 3 variables declared in the Request $redirect, $redirectRoute and $redirectAction. On top of those 3 variables you can overr...
When you're ready to upload your project to the phonegap-build service, zip the content of the www folder and upload the zip file to the phonegap-build service. It is recommended to only zip the content of the www folder, and not the www folder itself. However, this is just a recommendation and zip...
Block will capture variables that appeared in the same lexical scope. Normally these variables are captured as "const" value: int val = 10; void (^blk)(void) = ^{ val = 20; // Error! val is a constant value and cannot be modified! }; In order to modify the variable, you need to ...
In the case of a discriminated record type, some of the components are known as discriminants and the remaining components can depend upon these. The discriminants can be thought of as parameterizing the type and the syntax reveals this analogy. In this example we create a type that provide a sq...
import sys from PyQt4 import QtGui def window(): app = QtGui.QApplication(sys.argv) w = QtGui.QWidget() b = QtGui.QLabel(w) b.setText("<h1>Welcome to PyQt4 SO Documentation!</h1>") w.setGeometry(100,100,550,65) b.move(50,20) w.setWindowTitle(&quo...
from bs4 import BeautifulSoup import requests main_url = "https://fr.wikipedia.org/wiki/Hello_world" req = requests.get(main_url) soup = BeautifulSoup(req.text, "html.parser") # Finding the main title tag. title = soup.find("h1", class_ = "firstHeading&qu...
import time def timer(func): def inner(*args, **kwargs): t1 = time.time() f = func(*args, **kwargs) t2 = time.time() print 'Runtime took {0} seconds'.format(t2-t1) return f return inner @timer def example_function(): #do stuff exa...
Vertical Index Match =INDEX(A1:A3,MATCH(E2,C1:C3,0))
Horizontal Index Match =INDEX(A1:C1,MATCH(E2,A3:C3,0))
Ext.define('App.Duck', { extend: 'Ext.Component', alias: 'widget.duck', initComponent: function () { this.callParent(arguments); this._quack(); }, _quack: function () { console.log('The duck says "Quack!"'); this.fireEvent('quack...

Page 725 of 826