Tutorial by Examples: e

In Twig templates variables can be accessed using double curly braces notation {{ variableName }}. Basic example of greeting user <!DOCTYPE html> <html> <body> <span>Hello {{ name }}</span> </body> </html> Accessing array elements Twig as ...
Variables can be modified using filters. To apply filter to variable follow variable name with pipe | and filter name: {{ variable|filterName }} For example to display variable value in uppercase use construct. {{ variable|upper }} Filters can be parametrized. Filter parameters are passed in...
To find a module that ends with DSC Find-Module -Name *DSC
If for some reason, the default PowerShell module repository PSGallery gets removed. You will need to create it. This is the command. Register-PSRepository -Default
Find-Module -Name <Name>
Install-Module -Name <name>
Uninstall-Module -Name <Name> -RequiredVersion <Version>
Update-Module -Name <Name>
This function will display the error message supplied to it using the following error template: Path - application/errors/error_general.php The optional parameter $status_code determines what HTTP status code should be sent with the error. Syntax show_error($message, $status_code, $heading = '...
This function lets you write messages to your log files. You must supply one of three "levels" in the first parameter, indicating what type of message it is (debug, error, info), with the message itself in the second parameter. Example: if ($some_var == "") { log_message('...
@Configuration public class AppSecurityConfig extends WebSecurityConfigurerAdapter { @Autowired DataSource dataSource; @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.jdbcAuthentication().dataSource(dataSource) .pa...
Selenium-Grid is a configuration of Hub & Node which allows you to run your tests on different machines against different browser combinations in parallel. That is, running multiple tests at the same time against different machines running different browsers on different operating systems. In ot...
The Hub The Hub is the main engine/central point of the entire configuration, point where all the nodes are connected. Hub should run only on a single machine. There should only be 1 hub running where all the tests are loaded. Tests will be run on the machines where hub is running, but you can...
RunTime Type Services (short: RTTS) are used either for: creating types (RunTime Type Creation; short: RTTC) analysing types (RunTime Type Identification; short: RTTI) Classes CL_ABAP_TYPEDESCR | |--CL_ABAP_DATADESCR | | | |--CL_ABAP_ELEMDESCR | |--CL_ABAP_REFDESCR ...
Before setting up a Selenium grid you need to make sure you have Java installed and configured in your computer’s environment path. Configure the Hub Download latest stable Selenium Server version. Start the command prompt and navigate to the location in which you placed the Selenium server jar...
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code. installation sudo apt-get install php-apc sudo /etc/init.d/apache2 restart Add Cache: apc_add ($key, $value , $t...
Verbs used to name CmdLets should be named from verbs from the list supplied be Get-Verb Further details on how to use verbs can be found at Approved Verbs for Windows PowerShell
Person Microdata <section itemscope itemtype="http://schema.org/Person"> Hello, my name is <span itemprop="name">John Doe</span>, I am a <span itemprop="jobTitle">Graduate research assistant</span> at the <span itempr...
Integers Signed: i8, i16, i32, i64, isize Unsigned: u8, u16, u32, u64, usize The type of an integer literal, say 45, will be automatically inferred from context. But to force it, we add a suffix: 45u8 (without space) will be typed u8. Note: Size of isize and usize depend on the architecture. On ...
Locking on an stack-allocated / local variable One of the fallacies while using lock is the usage of local objects as locker in a function. Since these local object instances will differ on each call of the function, lock will not perform as expected. List<string> stringList = new List<st...

Page 972 of 1191