Tutorial by Examples: l

Once you have access to the host-manager, the GUI will let you add a virtual host. Note: In Tomcat 7 and 8, adding a virtual host via the GUI does not write the vhost to config files. You will need to manually edit the server.xml file to have the vhost available after a restart. See http://tomc...
Once a virtual host has been added via the web application, directories will exist at: {CATALINA_HOME}\conf\Catalina\{Name} {CATALINA_HOME}\{App Base} To persist the virtual host after a restart, the server.xml file must be updated with the configuration. A Host element needs to be added inside...
The most common usage of a child theme is to override template parts. For example, a sidebar, if we have a theme with the following file at /themes/template/sidebar.php <?php /** * The sidebar containing the main widget area. * * @link https://developer.wordpress.org/themes/basics/templa...
Even if it is not a best practice, sometimes you need to replace assets like CSS or JS files or libraries. Note that the WordPress template overwriting system doesn't work with anything else than .php files, so when we talk about assets we refer to registered assets One example could be the replac...
Sometimes we have requirement of parsing pages, but doing so requires you to be an authorised user. Here is an example which shows you how to do in oracle sign in. import sys import requests import json from bs4 import BeautifulSoup def mprint(x): sys.stdout.write(x) print re...
Load an image from an asset catalog using UIImage.FromBundle(string imageName) UIImage image = UIImage.FromBundle("ImageName"); // use the name of the image set from the asset catalog You can use the image for a UIImageView or anything else you need to do.
Asset catalogs allow managing images, app icons, and launch images. Image Set is used for images which are displayed in the app. Universal images are usually the best option. You can either use a vector based image (such as PDF) which will scale for all screens, or include a 1x, 2x, and 3x variant...
Asset catalog images can be used from storyboards like any other kind of image added to the project. They will be automatically populated as an option in UIImageView and other views which support adding an image.
Installers are custom types that implement the IWindsorInstaller interface and are used to register Components to the container, using the fluent registration API. public class MyInstaller : IWindsorInstaller { public void Install(IWindsorContainer container, IConfigurationStore store) {...
When registering types to the container Castle uses the type of the class in order to resolve. In the case that there is more than one registration for a specific type the Name property must be set: public void Install(IWindsorContainer container, IConfigurationStore store) { container.Regist...
A Lifestyle is the "how" Castle controls the scope in which a component is used and when to clean it up. The built-in lifestyles are Singelton, Transient, PerWebRequest, Scoped, Bound, PerThread and Pooled container.Register( Component.For<IFoo>() .ImplementedBy<...
Theme.xml app/design/frontend/Magento/mytheme/theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd"> <title>My theme</title> <!-- your theme's name --> ...
<ItemGroup> <FilesToDelete Include="*.tmp" /> </ItemGroup> <Delete Files="@(FilesToDelete)" />
<PropertyGroup> <CustomMessage>Hello World</CustomMessage> <MessageImportance>Low</MessageImportance> <!-- Low / Normal / High --> </PropertyGroup> <Message Text="$(CustomMessage)" Importance="$(MessageImportance)" /> ...
<PropertyGroup> <LinkedSolution>LinkedSolution.sln</LinkedSolution> <BuildType>Build</BuildType> <!-- Build / Rebuild --> <BuildArchitecture>x86</BuildArchitecture> <!-- x86 / 64 --> <BuildConfiguration>Debug</BuildCo...
awk '{ for(f=1; f<=NF; f++) { print $f; } }' file
There is no additional installation required for excel-formula on top of what is already required for excel. Please refer to excel documentation.
Eclipse debugging starts with what is referred to as Agents. The JVM, which runs the complied .class sources has a feature that allows externally libraries (written in either Java or C++) to be injected into the JVM, just about runtime. These external libraries are referred to as Agents and they ha...
Android ButterKnife Zelezny Plugin for generating ButterKnife injections from selected layout XMLs in activities/fragments/adapters. Note : Make sure that you make the right click for your_xml_layou(R.layout.your_xml_layou) else the Generate menu will not contain Butterknife injector option. ...
Via jCenter including the following in your project's build.gradle file: compile 'com.google.android.exoplayer:exoplayer:rX.X.X' where rX.X.X is the your preferred version. For the latest version, see the project's Releases. For more details, see the project on Bintray.

Page 540 of 861