Tutorial by Examples: application

Use Nuget to find the Web Api Package. You can do that either by using the Manage Nuget Packages and searching for the Web Api package or use Nuget Package Manager and type PM> Install-Package Microsoft.AspNet.WebApi Add WebApiConfig.cs to the App_Start/ folder The config file should contain...
import sys import json # load input arguments from the text file filename = sys.argv[ 1 ] with open( filename ) as data_file: input_args = json.loads( data_file.read() ) # cast strings to floats x, y = [ float(input_args.get( key )) for key in [ 'x', 'y' ] ] print json.dumps( { ...
If you're familiar with languages like Java, C# or C++ and the concept of generics/templates then this comparison might be useful for you. Say we have a generic function in C# public static T DoNothing<T>(T in) { return in; } To call this function with a float we can do DoNothing(5.0f) or...
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...
To associate an Application with something in the Database there are three main parts: Application Privilege: An Application Privilege describes Privileges like SELECT, INSERT, UPDATE, DELETE, ... Application Privileges can be summarized as an Aggregate Privilege. XS$PRIVILEGE( name=>'pri...
This is a simple example on how you can automate tests for a console application that interact with standard input and standard output. The tested application read and sum every new line and will provide the result after a single white line is provided. The power shell script write "pass"...
Steps to create MYSQL database Login to amazon account and select RDS service Select Launch DB Instance from the instance tab By defaul MYSQL Community Edition will be selected, hence click the select button Select the database purpose, say production and click next step Provide the mysql ver...
The configuration to make a secure connection using express.js (Since version 3): var fs = require('fs'); var http = require('http'); var https = require('https'); var privateKey = fs.readFileSync('sslcert/server.key', 'utf8'); var certificate = fs.readFileSync('sslcert/server.crt', 'utf8'); ...

Page 11 of 11