Tutorial by Examples: a

The XML document, I will be using throughout the examples is - <a> <b>test-value</b> <d>fragment-d</d> <c-root> <d>fragment-d</d> <e>fragment-e</e> </c-root> </a> The following queries ...
xdmp:estimate(cts:search(fn:doc(), cts:element-value-query(xs:QName("d"), "fragment-d"))) xdmp:estimate can not be used on XPaths unlike fn:count is used in previous example xdmp:estimate actually gives the number of matching fragments
The XML document to consider in this example - <a> <b>test-value</b> <d>fragment-d</d> <c-root> <d>fragment-d</d> <e>fragment-e</e> </c-root> </a> A fragment root is declared on <c-r...
Once we have visual studio, we need a developer site to deploy apps to SharePoint. Simplest way is to get is > Sign up for a free, one year Office 365 developer account https://profile.microsoft.com/RegSysProfileCenter/wizardnp.aspx?wizid=14b845d0-938c-45af-b061-f798fbb4d170&lcid=1033 Once ...
Lets start with creating our first app Open visual studio and > create new project Enter Name and Location Enter your developer site url created in previous step and select Provider-hosted Popup will open which will as for login Next step it will as for type of applicatio...
Here I'm taking the example of a basic news app Open the SharePoint developer site and create a list to store our news articles Create a custom list and Add 3 more columns Body, Summery, ThumbnailImageUrl Go back to our SharePoint app, Open AppManifest.xml file, click on permission...
We have already created first page which will show all the news articles. This page will show Complete article. Add One more Action Method to HomeController [SharePointContextFilter] public ActionResult Aticle(int ArticleId) { User spUser = null; var spContext = SharePointContext...
Middleware functions are functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle. Middleware functions can execute any code, make changes to res and req objects, end response cycle and call next ...
QStack<T> is a template Qt class providing stack. Its analogue in STL is std::stack. It is last in, first out structure (LIFO). QStack<QString> stack; stack.push("First"); stack.push("Second"); stack.push("Third"); while (!stack.isEmpty()) { cout ...
QVector<T> provides dynamic array template class. It provides better performance in most cases than QList<T> so it should be first choice. It can be initialized in various ways: QVector<int> vect; vect << 1 << 2 << 3; QVector<int> v {1, 2, 3, 4}; Th...
void DispatchToMainThread(std::function<void()> callback) { // any thread QTimer* timer = new QTimer(); timer->moveToThread(qApp->thread()); timer->setSingleShot(true); QObject::connect(timer, &QTimer::timeout, [=]() { // main thread ...
Q_OBJECT macro appears in private section of a class. Q_OBJECT requires the class to be subclass of QObject. This macro is necessary for the class to declare its signals/slots and to use Qt meta-object system. If Meta Object Compiler (MOC) finds class with Q_OBJECT, it processes it and generates C+...
Multiplicity in Entity Relationships Multiplicities are of the following types: One-to-one: Each entity instance is related to a single instance of another entity. One-to-many: An entity instance can be related to multiple instances of the other entities. Many-to-one: multiple instances of an ...
When mapping many-to-many relationships in JPA, configuration for the table used for the joining foreign-keys can be provided using the @JoinTable annotation: @Entity public class EntityA { @Id @Column(name="id") private long id; [...] @ManyToMany @JoinTable(name=...
Usually you'd want to create a stack of services to form a replicated and orchestrated application. A typical modern web application consists of a database, api, frontend and reverse proxy. Persistence Database needs persistence, so we need some filesystem which is shared across all the nodes in ...
insert into schema.table (field1, field2) select 'Static Value', foreignField from schema.otherTable;
Our UserProfile class Create a UserProfile model class with the relationship of OneToOne to the default User model: from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save class UserProfile(models.Model): user = models.OneTo...
npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=ia32 --target= target is important. ex:0.16.1 npm rebuild Create a folder for sqlite db. Remember sequalize.sync();
Quick installation guide: Download and unzip the PrestaShop package to a directory in you web hosting. Create a database for PrestaShop. Open a browser to the url where are PrestaShop files. Follow the screen istructions. Delete the /install directory and rename /admin directory. Official ...
Given a non-empty cv::Mat img of some size, we can fill it to a solid color in several ways: img = cv::Scalar(blueVal,greenVal,redVal); or, the more general, mask supporting, cv::Mat::setTo(): img.setTo(cv::Scalar(blueVal,greenVal,redVal)); If you are using the older OpenCV C API with IplIma...

Page 706 of 1099