Tutorial by Examples: c

# Define the txt which will be in the email body $Txt_File = "c:\file.txt" function Send_mail { #Define Email settings $EmailFrom = "[email protected]" $EmailTo = "[email protected]" $Txt_Body = Get-Content $Txt_File -RAW $Body = $Body_...
The jars for CXF JAX-RS are found in Maven: <!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-rt-rs-client --> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId> <version>3.1.10</version> ...
The code snippet below shows the various ways you can filter on an array of objects using lodash. let lodash = require('lodash'); var countries = [ {"key": "DE", "name": "Deutschland", "active": false}, {"key": "ZA&qu...
triples = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] triples.each { |(first, second, third)| puts second } # 2 # 5 # 8 triples.map { |(first, *rest)| rest.join(' ') } # => ["2 3", "5 6", "8 9"]
fs is the File System API in node. We can use the method readFile on our fs variable, pass it a data.csv file, format and function that reads and splits the csv for further processing. This assumes you have a file named data.csv in the same folder. 'use strict' const fs = require('fs'); fs.r...
Going to its roots, Logstash has the ability to parse and store syslog data. This example shows a basic configuration that gets you to that. input { file { path => [ "/var/log/syslog", "/var/log/auth.log" ] type => "syslog" } }...
Sometimes, you need to output to more than one index in ElasticSearch, or have a custom mapping you want to apply to new indices as they roll in. There are two ways to apply a custom mapping. One way, is to upload an ElasticSearch template. See the ElasticSearch documentation for that. The other ...
Create a website on Azure using portal page Getting started The first thing to do is to login into your Azure account and go to your portal page. If you don't have yet an account, you can start a free trial here. After you have logged into your account, you can start following this guide. The ...
if ( ! function_exists('products_post_type') ) { function products_post_type() { $labels = array( 'name' => _x( 'Products', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Product', 'Post Type Singular Name', 'text_domain'...
You can customize the appearance of the TextInputLayout and its embedded EditTextby defining custom styles in your styles.xml. The defined styles can either be added as styles or themes to your TextInputLayout. Example for customizing the hint appearance: styles.xml: <!--Floating label text st...
You can load AngularJS services in vanilla JavaScript using AngularJS injector() method. Every jqLite element retrieved calling angular.element() has a method injector() that can be used to retrieve the injector. var service; var serviceName = 'myService'; var ngAppElement = angular.element(do...
<template> <div class="hello"> <p>{{ filtered() }}</p> </div> </template> <script> export default { name: 'hello', data () { return { list: ['toto', 'titi', 'tata', 'tete'] } }, methods: { filtered ...
After a while, you end up with many configuration items in your config.yml. It can make you configuration easier to read if you split your configuration across multiple files. You can easily include all files from a directory this way: config.yml: imports: - { resource: parameters.yml } ...
In many examples, you will find a service id like 'acme.demo.service.id' (a string with dots). You services.yml will look like this: services: acme.demo.service.id: class: Acme\DemoBundle\Services\DemoService arguments: ["@doctrine.orm.default_entity_manager", &quot...
Display the version currently installed. $ wp cli version Check for updates to WP-CLI. $ wp cli check-update Update WP-CLI to the latest stable release. $ wp cli update List all available aliases. $ wp cli alias Print various details about the WP-CLI environment. $ wp cli info Du...
Create a new database. $ wp db create Drop an existing database. $ wp db drop --yes Reset the current database. $ wp db reset --yes Execute a SQL query stored in a file. $ wp db query < debug.sql
This one-liner illustrates some of the basic series operations. Before analysing, we'll initiate a block to be manipulated: stuff: [chair lamp table book carpet] Now our one-liner: head insert stuff take back tail stuff There are five operations within this example, and with each of them it...
You should go to Xcode -> Open Developer Tool: Using "Simulator", you could run iOS and tvOS, but "Simulator (Watch)" will only run watchOS.
Go to Hardware -> Touch Pressure: To simulate a normal press, use Shift-Command-1 and a deep one, Shift-Command-2. If your MacBook has a Force Touch trackpad, you could use your trackpad force to simulate 3D / Force Touch.
Go to Hardware -> Device:

Page 716 of 826