Tutorial by Examples

In order to Install Visual Studio 2010, First we need to download Visual Studio. We can find Visual Studio Older Versions at Visual Studio Official Website Navigate to above mentioned official site and click the download button Log in with your Visual Studio Subscription account when prompted. ...
This calculate current device time and add/subtract difference between real and device time public static Calendar getCurrentRealTime() { long bootTime = networkTime - SystemClock.elapsedRealtime(); Calendar calInstance = Calendar.getInstance(); calInstance.setTimeZone(getUTCTimeZo...
<div ng-app="MainApp" ng-controller="SampleController"> <input ng-model="dishName" id="search" class="form-control" placeholder="Filter text"> <ul> <li dir-paginate="dish in dishes | filter : di...
#include <vector> #include <string> #include <boost/process.hpp> #include <boost/asio.hpp> #include <boost/process/windows.hpp> int Run( const std::string& exeName, ///< could also be UTF-16 for Windows const std::string& args, ...
There is a bug/fix for boost 1.64, the bug only affects Windows, apparently. reference: https://github.com/klemens-morgenstern/boost-process/issues/90 and https://github.com/klemens-morgenstern/boost-process/commit/74814e46c1614850a8e447fd689c21cf82f36ceb in file boost\process\detail\windows\a...

BEM

BEM stands for Blocks, Elements and Modifiers. It's a methodology initially conceived by Russian tech company Yandex, but which gained quite some traction among American & Western-European web developers as well. As the same implies, BEM metholology is all about componentization of your HTML an...
To start a new project in Visual Studio 2010: Click File Menu Select Project Next, we have project types and available languages listed : Select Languages available from left most panel [Below we have languages like Visual C#, VB, F# etc] Once we select languages from installed template...
These locators should be used as a priority when possible, because they are more persistent to changes in an application then locators based on css or xpath, which can easily break. Binding locator Syntax by.binding('bind value') Example View <span>{{user.password}}</span> <s...
Locators by themselves do not return an element which can be interacted with in Protractor, they are simply instructions that indicate Protractor how to find the element. To access the element itself, use this syntax: element(locator); element.all(locator); Note: the element(s) is not actually...
The rule An order lifecycle at any e-commerce follows roughly the workflow: How to apply the technique From the diagram we see that it has the following allowed (positive) transitions: From New to Cancelled From New to Approved From Approved to Cancelled From Approved to Shipped From Shi...
The rule A ticket system have their valid transitions documented in the following table, where O represents allowed and X represents not allowed. From \ ToReportedOpenIn ProgressIn ReviewDeliveredRejectedReopenReported-OXXXOXOpenX-OXXOXIn ProgressXX-OXOXIn ReviewXOO-OOXDeliveredXXXX-XORejectedXXXX...
Vectors a <- c(1, 2, 3) b <- c(4, 5, 6) mean_ab <- (a + b) / 2 d <- c(1, 0, 1) only_1_3 <- a[d == 1] Matrices mat <- matrix(c(1,2,3,4), nrow = 2, ncol = 2) dimnames(mat) <- list(c(), c("a", "b", "c")) mat[,] == mat Dataframes df &lt...
# Creates a 1 row - 2 columns format par(mfrow=c(1,2)) plot(rnorm(100), main = "Graph 1", ylab = "Normal distribution") grid() legend(x = 40, y = -1, legend = "A legend") plot(rnorm(100), main = "Graph 2", type = "l") abline(v = 50) Resu...
# Create 100 standard normals in a vector x <- rnorm(100, mean = 0, sd = 1) # Find the lenght of a vector length(x) # Compute the mean mean(x) # Compute the standard deviation sd(x) # Compute the median value median(x) # Compute the range (min, max) range(x) # Sum an itera...
In this example, we will be using @angular/cli (latest) and the latest version of @angular/material. You should at least know the basics of Angular 2/4 before continuing the steps below. Install angular material module from npm: npm install @angular/material --save 2.0.0-beta.3 This on...
You can also easily wrap all angular modules, which you are going to use, into one module: import { NgModule } from '@angular/core'; import { MdButtonModule, MdSnackBarModule, MdSidenavModule } from '@angular/material'; @NgModule({ imports: [ BrowserAnimationsModule, MdB...
summary {% extends %}: this declares the template given as an argument as the current template's parent. Usage: {% extends 'parent_template.html' %}. {% block %}{% endblock %}: This is used to define sections in your templates, so that if another template extends this one, it'll be able to...
Detailed instructions on getting jms set up or installed.
Proxy object is often used to ensure guarded access to another object, which internal business logic we don't want to pollute with safety requirements. Suppose we'd like to guarantee that only user of specific permissions can access resource. Proxy definition: (it ensure that only users which actu...
This example will demonstrate the searchable select box in MVC. it uses Ajax to get all records from database as user types the new character. I'll consider Country and its City example to illustrate the functionality of Searchable dropdown box. Code behind is c# with MVC, but its easy to grasp wh...

Page 1321 of 1336