Tutorial by Examples: l

Install-Module -Name <name>
Uninstall-Module -Name <Name> -RequiredVersion <Version>
Update-Module -Name <Name>
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...
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...
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 ...
Detailed instructions on getting data-warehouse set up or installed.
To run the private registry (securely) you have to generate a self-signed certificate, you can refer to previous example to generate it. For my example I put server.key and server.crt into /root/certs Before run docker command you should be placed (use cd) into the directory that contains certs fo...
When you get a working registry running you can pull or push images on it. For that you need the server.crt file into a special folder on your docker client. The certificate allows you to authenticate with the registry, and then encrypt communication. Copy server.crt from registry machine into /etc...
import socket import hashlib import os import time import itertools import threading import sys import Crypto.Cipher.AES as AES from Crypto.PublicKey import RSA from CryptoPlus.Cipher import IDEA #server address and port number input from admin host= raw_input("Server Address - &gt...
import time import socket import threading import hashlib import itertools import sys from Crypto import Random from Crypto.PublicKey import RSA from CryptoPlus.Cipher import IDEA #animating loading done = False def animate(): for c in itertools.cycle(['....','.......','..........'...
There are specific scenarios where in we might need to create a Quartz scheduler,based on user input on when a scheduler should be triggered,apart from we can handle cases,where we have certain pre-defined functionalities,which need to be triggered based on user action,at a certain period. This exa...
Especially in a ListView, you can run into performance problems by doing too many findViewById() calls during scrolling. By using the ViewHolder pattern, you can save these lookups and improve your ListView performance. If your list item contains a single TextView, create a ViewHolder class to stor...
Check the right software versions are installed: ansible >=2.0 python >=2.6 shade module for python $ansible --version ansible 2.2.0.0 $python --version Python 2.7.5 Install 'shade' the python component used to pilot openstack. $pip install shade Note : if you use a company...
Our openstack tenant is already set: a virtual lan gives instances private IP a virtual router map public IP to private IP a security key has been generated we have default firewall configuration for ssh and port 80 we are able to launch an instance thanks to the OpenStack web interface ...
Let use 'os_server' command from module 'Cloud' [http://docs.ansible.com/ansible/os_server_module.html]. Variables are defined in ./group_vars/all. $vi launch_compute.yml - name: launch a compute instance hosts: localhost gather_facts: False tasks: - name: Create and launch the VM ...
Instead of printing all the informations, we print only IP address of the first instance whose name is "MyOwnPersonalInstance". It's usually all we need. $vi get_compute_ip.yml - name: Get and print instance IP hosts: localhost gather_facts: False tasks: - name: Get VM infos...

Page 697 of 861