Tutorial by Examples: c

Installation of a vmod requires an installed version of Varnish Cache, including the development files. Requirements can be found in the Varnish documentation. Source code is built with autotools: sudo apt-get install libvarnishapi-dev || sudo yum install varnish-libs-devel ./bootstrap # If run...
Varnish controls and manipulates HTTP requests using Varnish Configuration Language (VCL). The following snippet of VCL removes cookie from incoming requests to /images subdirectory: sub vcl_recv { if (req.url ~ "^/images") { unset req.http.cookie; } }
Starting with the following ComboBoxes: <Window x:Class="WPF_Style_Example.ComboBoxWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft....
Having lots of styles in App.xaml will quickly become complex, so they can be placed in separate resource dictionaries. In order to use the dictionary, it must be merged with App.xaml. So, in App.xaml, after the resource dictionary has been created: <Application xmlns="http://s...
Note: This setup guide assumes that you have Java and Eclipse already installed on your machine. If you do not, download the latest version of the Java Development Kit (henceforth referred to as the JDK) and the latest version of Eclipse (Neon 3 at time of writing). Step One: Downloading LWJGL To...
An example configuration for a hub: java -jar selenium-server-standalone-<version>.jar -role hub -hubConfig hubConfig.json { "_comment" : "Configuration for Hub - hubConfig.json", "host": ip, "maxSessions": 5, "port": 4444...
When you no longer need to receive messages, you can simply unsubscribe. You can do it like this: MessagingCenter.Unsubscribe<MainPage> (this, "Hi"); When you are supplying arguments, you have to unsubscribe from the complete signature, like this: MessagingCenter.Unsubscribe<Ma...
Liquid code can be categorised into objects, tags and filters. Objects Objects tell Liquid where to show content on a page. Objects and variables are denoted with double curly braces. {{ and }} <!-- input --> {{ page.title }} <!-- output --> Getting started with Liquid Tags T...
Create new project PushNotification react-native init PushNotification Put following in index.android.js import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; import PushNotification from 'react-native-push-no...
Install socket.io-client npm i socket.io-client --save Import module import SocketIOClient from 'socket.io-client/dist/socket.io.js' Initialize in your constructor constructor(props){ super(props); this.socket = SocketIOClient('http://server:3000'); } Now in order to use you...
To start with creating your own service, take a look at the base class of each service, which is called ItsG5Service. Also you can look at the CamService and the DenmService as they are already implemented services. All application related files and classes can be found in the artery/application sub...
parent.html.twig <!DOCTYPE html> <html> <head> <title>{{ title_variable | default('Normal Page') }}</title> </head> <body> <h1>This is the {{ title_variable }} Page</h1> </body> </html> ...
Configuration In the following paragraphs there wil be an example per browser for the configuration in Json and setup in C#. This example expects you to have all the drivers in your path variable and browsers installed. Microsoft Edge C# code to create a remote webdriver // Defining webdriver v...
Configuration In the following paragraphs there wil be an example per browser for the configuration in Json and setup in C#. This example expects you to have all the browsers installed and the drivers in your path variable Microsoft Edge C# code to create a remote webdriver // Defining webdrive...
Excel has many Formulas built right in. Here are a few examples of some of the basic Formulas that might be handy to know when getting started with Excel: Important Note : The name and Syntax of these Formulas vary on the language of your Excel installation! For example this Function here : in Eng...
In a Searched Case statement, each option can test one or more values independently. The code below is an example of a searched case statement: DECLARE @FirstName varchar(30) = 'John' DECLARE @LastName varchar(30) = 'Smith' SELECT CASE WHEN LEFT(@FirstName, 1) IN ('a','e','i','o','u') ...
In the classical languages like Java, C# or C++ we start by creating a class and then we can create new objects from the class or we can extend the class. In JavaScript first we create an object, then we can augment the object or create new objects from it. So i think, JavaScript demonstrates actua...
Pipes supports simple binary communication between a client and a server In this example: a client connects and sends a FirstMessage the server receives and answers DoSomething 0 the client receives and answers DoNothing step 2 and 3 are repeated indefinitely The command data type exchange...
Just type below one line code from where you want user to rate/review your application. SKStoreReviewController.requestReview()
During coding, unexpected errors do arise frequently enough, which requires debugging and testing. But sometimes the errors are indeed expected and to bypass it, there is the Try..Catch..Throw..Finally..End Try block. To manage an error correctly, the code is put into a Try..Catch block, whereby th...

Page 752 of 826