Tutorial by Examples: conf

Selenium Grid Node configuration resides on the Node itself and holds the information about network configuration and Node capabilities. The configuration can be applied in various ways: Default Configuration JSON Configuration Command line Configuration JSON Configuration The node configur...
Travis CI has CMake 2.8.7 pre-installed. A minimal .travis.yml script for an out-of source build language: cpp compiler: - gcc before_script: # create a build folder for the out-of-source build - mkdir build # switch to build directory - cd build # run cmake; here we assume...
The CMake version preinstalled on Travis is very old. You can use the official Linux binaries to build with a newer version. Here is an example .travis.yml: language: cpp compiler: - gcc # the install step will take care of deploying a newer cmake version install: # first we creat...
def multiply(factor: Int)(numberToBeMultiplied: Int): Int = factor * numberToBeMultiplied val multiplyBy3 = multiply(3)_ // resulting function signature Int => Int val multiplyBy10 = multiply(10)_ // resulting function signature Int => Int val sixFromCurriedCall = multiplyBy3(2) //6...
Returns a Boolean indicating if the class conform the protocol: [MyClass conformsToProtocol:@protocol(MyProtocol)];
ansible -i hosts -m ping targethost -i hosts defines the path to inventory file targethost is the name of the host in the hosts file
Description When working with a team who uses different operating systems (OS) across the project, sometimes you may run into trouble when dealing with line endings. Microsoft Windows When working on Microsoft Windows operating system (OS), the line endings are normally of form - carriage return ...
The web.config system.web.httpRuntime must target 4.5 to ensure the thread will renter the request context before resuming your async method. <httpRuntime targetFramework="4.5" /> Async and await have undefined behavior on ASP.NET prior to 4.5. Async / await will resume on an arb...
To get started with Thymeleaf visit official download page. Maven dependency <dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymeleaf</artifactId> <version>3.0.1.RELEASE</version> </dependency> Gradle dependency compile gr...
Dependencies npm i -D webpack babel-loader webpack.config.js const path = require('path'); module.exports = { entry: { app: ['babel-polyfill', './src/'], }, output: { path: __dirname, filename: './dist/[name].js', }, resolve: { extensions: ['', '.js'], }...
Installation npm install -D webpack typescript ts-loader webpack.config.js module.exports = { entry: { app: ['./src/'], }, output: { path: __dirname, filename: './dist/[name].js', }, resolve: { extensions: ['', '.js', '.ts'], }, module: { loaders: [...
You can add protocols to standard classes to extends their functionality: @protocol EncodableToString <NSObject> - (NSString *)toString; @end @interface NSDictionary (XYZExtended) <EncodableToString> @end @implementation NSDictionary (XYZExtended) - (NSString *)toString { ...
Trying to use several traits into one class could result in issues involving conflicting methods. You need to resolve such conflicts manually. For example, let's create this hierarchy: trait MeowTrait { public function say() { print "Meow \n"; } } trait WoofTrait {...
Using Kestrel you can specify port using next approaches: Defining ASPNETCORE_URLS environment variable. Windows SET ASPNETCORE_URLS=https://0.0.0.0:5001 OS X export ASPNETCORE_URLS=https://0.0.0.0:5001 Via command line passing --server.urls parameter dotnet run --server.urls=http...
Assumptions for this example: You have a class, foo.bar.Baz. You'd like to create a run configuration that runs the main method. It's in a module called fooBar. In your gradle file: idea { workspace.iws.withXml { provider -> // I'm not actually sure why this is necessar...
File app.routes Protected routes have canActivate binded to Guard import { provideRouter, Router, RouterConfig, CanActivate } from '@angular/router'; //components import { LoginComponent } from './login/login.component'; import { DashboardComponent } from './dashboard/dashboard.component'; ...
To create a background session // Swift: let mySessionID = "com.example.bgSession" let bgSessionConfig = NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier(mySessionID) let session = NSURLSession(configuration: bgSessionConfig) // add tasks here //...
kotlin-gradle-plugin is used to compile Kotlin code with Gradle. Basically, its version should correspond to the Kotlin version you want to use. E.g. if you want to use Kotlin 1.0.3, then you need to aplly kotlin-gradle-plugin version 1.0.3 too. It's a good idea to externalize this version in gradl...
import ( "io/ioutil" "path/filepath" "gopkg.in/yaml.v2" ) func main() { filename, _ := filepath.Abs("config/config.yml") yamlFile, err := ioutil.ReadFile(filename) var config Config err = yaml.Unmarshal(yamlFile, &c...
Sitecore ships with a set of standard indexes pre-configured which you can extend, or you can define your own. Of the pre-configured, sitecore_master_index & sitecore_web_index are of most interest for your site search. These are the predefined indexes for all of your Sitecore items in the tree ...

Page 2 of 17