Tutorial by Examples

The parent axis contains only the parent of a node. The following expression selects the html element by taking a detour over the body element: /child::html/child::body/parent::html .. is a shortcut for parent::node() The ancestor and ancestor-or-self axes traverse all ancestors of a node. The ...
The self axis only contains the context node itself. The expression . is a shortcut for self::node() and always matches the context node. The . shortcut is useful for enumerating descendants of the context node. The following expressions are equivalent: .//span self::node()/descendant-or-self::nod...
The following-sibling and preceding-sibling axes contain the siblings before or after the context node, and the following and preceding axes contain all nodes in the document before or after the context node, but: None of these axes contain attribute or namespace nodes. The following axis doesn'...
The attribute and namespace axes contain all attribute and namespace nodes of an element. The shortcut @ stands for attribute::, so the following are equivalent: child::div/attribute::class div/@class
Why do we need this? The current way to do unit testing in Xamarin.Forms is via a platform runner, so your test will have to run within an ios, android, windows or mac UI environment : Running Tests in the IDE Xamarin also provides awesome UI testing with the Xamarin.TestCloud offering, but when ...
To add to the first example, in order to test navigation statements that occurs within the application, we need to provide the ViewModel with a hook to the Navigation. To achieve this: Add the package SpecFlow.Xamarin.Forms.IViewModel from nuget to your PCL Xamarin.Forms project Implement the IV...
First you need to implement Realm at the start of your class using Realms; Then to print the location to the console : Console.WriteLine( RealmConfiguration.PathToRealm() ); Or if you're using DefaultConfiguration, you can use : Console.WriteLine( RealmConfiguration.DefaultConfiguration.Dat...
Bootstrap uses a Grid System having rows and columns In the Grid system, you are using a row class to create a horizontal box with a total of 12 columns of size 1 unit each for different screen size vertically. If you do not want to use all 12 columns individually, you can group the columns togeth...
First, there is a really nice wrapper for setting up n on your system. Just run: curl -L https://git.io/n-install | bash to install n. Then install binaries in a variety of ways: latest n latest stable n stable lts n lts Any other version n <version> e.g. n 4.4.7 If this version ...
const options = require("commander"); options .option("-v, --verbose", "Be verbose"); options .command("convert") .alias("c") .description("Converts input file to output file") .option("-i, --in-file <file_name&...
const options = require("commander"); options .option("-v, --verbose") .parse(process.argv); if (options.verbose){ console.log("Let's make some noise!"); }
Cortical.io - Retina: an API performing complex NLP operations (disambiguation, classification, streaming text filtering, etc...) as quickly and intuitively as the brain. CoreNLP - Stanford CoreNLP provides a set of natural language analysis tools which can take raw English language text input and ...
Memoizing is basically a way to cache method results. This can be useful when a method is often called with the same arguments and the calculation of the result takes time, therefore increasing performance. Starting from Groovy 2.2, methods can be annoted with the @Memoized annotation. Imagine the...
Step 1: Create a bluemix account Create an account at https://console.ng.bluemix.net/registration/ This will set you up with a 30 day trial. You don't have to pay anything for the free resources and you don't have to set up billing until the end of your trial (though not all services will be avail...
Assuming a abstract class: class ILogger { virtual ~ILogger() = default; virtual Log(const std::string&) = 0; }; Instead of void doJob(ILogger* logger) { if (logger) { logger->Log("[doJob]:Step 1"); } // ... if (logger) { logge...
What is UITableView? UITableView is a most frequently used user interface object that presents data in a scrollable list of multiple rows in a single column that can also be divided into sections.It allows vertical scrolling only and is a subclass of UIScrollView. Why do we use UITableView? We ca...
NATURAL JOIN requires no explitic join condition; it builds one based on all the fields with the same name in the joined tables. create table tab1(id number, descr varchar2(100)); create table tab2(id number, descr varchar2(100)); insert into tab1 values(1, 'one'); insert into tab1 values(2, '...
Microsoft Command Prompt is a command-line interpreter (CLI) for the Windows operating systems. A CLI is program intended primarily to read operating system instructions typed on a keyboard by the user. It is therefore addressed also as a command-line interface, to contrast it with graphical inter...
Command Prompt batch scripts have extension .cmd or .bat, the latter for compatibility reasons. To create a hello-word-script, you first need a place where to type it. For simple scripts, also the Windows Notepad will do. If you are serious about shell scripting, you need more effective tools. The...
Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform. Orchard is built on a modern architecture that puts extensibility up-front, as its number one concern. All components in Orchard can be replaced or extended. Content is built from easily c...

Page 850 of 1336