Tutorial by Examples

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...
Artery (https://github.com/riebl/artery) is a simulation framework for OMNeT++. It is designed to simulate the ETSI ITS-G5 protocol stack which is used in European VANETs. Currently, it is using OMNeT++ in version 5.0. It is completely open source and under active development. Feature Overview: ...
It is quite easy to install Artery on Linux based systems. You need to have a C++ Compiler with C++11 support as well as Boost and Vanetza libraries for building Artery. Also, you need one of Veins and INET. Of course, OMNeT++ and SUMO are also required. Installing OMNeT++ Download the OMNeT++ 5...
As Artery is quite complex, it is recommended to start by understanding OMNeT++. A good point to start is the TicToc tutorial. It can be found at https://omnetpp.org/doc/omnetpp/tictoc-tutorial/. This tutorial provides an overview on the basic functionality of OMNeT++. This includes, among others, t...
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') ...
Besides Hanami be a lightweight and fast framework one of the points that most call attention is the Clean Architecture concept where shows to us that the framework is not our application as Robert Martin said before. Hanami arquitecture design offer to us the use of Container, in each Container we...
Step 1: Installing the Hanami gem. $ gem install hanami Step 2: Generate a new project setting RSpec as testing framework. Open up a command line or terminal. To generate a new hanami application, use hanami new followed by the name of your app and the rspec test param. $ hanami...
Step 1: To start the server just type the command bellow then you'll see the start page. $ bundle exec hanami server
MultiDex is a library in the Android APK that allows the app to have more than 65,536 methods. The Android APKs have Dalvik Executable files (.dex) that contain the generated bytecodes compiled from your Java code. Each .dex file can contain up to 65,536 methods (2^16). Android OS versions before ...
golang/dep is a prototype dependency management tool. Soon to be an official versioning tool. Current status Alpha. Usage Get the tool via $ go get -u github.com/golang/dep/... Typical usage on a new repo might be $ dep init $ dep ensure -update To update a dependency to a new version, yo...
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...
A generic new() constructor that takes the string name of the desired algorithm as its first parameter also exists to allow access to the above listed hashes as well as any other algorithms that your OpenSSL library may offer. The named constructors are much faster than new() and should be preferred...
Unquoted identifiers can use letters (a-z), digits (0-9), and underscore (_), and must start with a letter. Depending on SQL implementation, and/or database settings, other characters may be allowed, some even as the first character, e.g. MS SQL: @, $, #, and other Unicode letters (source) MySQ...

Page 1214 of 1336