Tutorial by Examples: st

To create a customization package replacing images on the login page, follow the steps below on your local Acumatica instance: Create a new folder in the Acumatica instance folder. For this example I added a folder called IconsCustomized in my local LoginImages instance: Add your custom ...
For this example, let's assume that the inputs have a dimensionality of (frames, channels, rows, columns), and the outputs have a dimensionality of (classes). from keras.applications.vgg16 import VGG16 from keras.models import Model from keras.layers import Dense, Input from keras.layers.pooling...
using System; using System.Collections.Generic; using System.Linq; using DocumentFormat.OpenXml; using A = DocumentFormat.OpenXml.Drawing; using DW = DocumentFormat.OpenXml.Drawing.Wordprocessing; using PIC = DocumentFormat.OpenXml.Drawing.Pictures; using DocumentFormat.OpenXml.Drawing.Wordpr...
Conditionals in Pug can evaluate statements in a manner similar to JavaScript. You can evaluate variables created in Pug, or those passed to it by your route (res.render, pug.renderFile, etc). index.js var authorized = true res.render("index", { authorized: authorized }); index...
You can choose to prepend an if or else operator with a dash, but it is not necessary. You will need to wrap the statement in parentheses, though (if you omit a dash, you do not need parentheses.) - var showLogin = false; - if (showLogin === true) .welcome Welcome back to our website! - else...
You can chain any number of else if statements to an existing if statement, to evaluate a sequence of statements. index.pug - var page = 60; if page => 52 h1 Lots of numbers! else if page > 26 && page < 52 h1 A few numbers else h1 Not a lot of numbers index.pu...
rails new my_app cd my_app Gemfile gem 'friendly_id', '~> 5.1.0' # Note: You MUST use 5.0.0 or greater for Rails 4.0+ rails generate friendly_id rails generate scaffold user name:string slug:string:uniq rake db:migrate edit app/models/user.rb class User < ApplicationRecord exten...
The string type allows you to store text, which is a series of characters. There are multiple ways to create strings. A literal string is created by writing the text between double quotes. text := "Hello World" Because Go strings support UTF-8, the previous example is perfectly valid. ...
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...
The easiest way to create a style is to copy an existing one and edit it. Create a simple window with two buttons: <Window x:Class="WPF_Style_Example.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof...
Taking the previous example, removing the x:Key element of the style applies the style to all buttons in the Application scope. <Style TargetType="{x:Type Button}"> <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/> ...
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....
The following Window has been created: <Window x:Class="WPF_Style_Example.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/e...
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...
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...
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') ...
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
Here is an example of a test using Pax Exam. package com.example.project.test; import static org.junit.Assert.*; import static org.ops4j.pax.exam.CoreOptions.*; import javax.inject.Inject; import org.junit.Test; import org.junit.runner.RunWith; import org.ops4j.pax.exam.Configuration;...
One of the best Linux distributions currently for Raspberry Pi (from now on, "RPi") is Arch Linux. This web shows the installation for: RPi2. ARMv7 architecture (32 bits). RPi3. There are two options: ARMv7 architecture (32 bits) or AArch architecture (64 bits). This t...

Page 333 of 369