Tutorial by Examples: config

Any @Component or @Configuration could be marked with @Profile annotation @Configuration @Profile("production") public class ProductionConfiguration { // ... } The same in XML config <beans profile="dev"> <bean id="dataSource" class="&l...
Configuration file contains sections, each section contains keys and values. configparser module can be used to read and write config files. Creating the configuration file:- import configparser config = configparser.ConfigParser() config['settings']={'resolution':'320x240', ...
How we can use jenkins in our SalesForce product development. What are the tools plugins are available for Jenkins Integration How to solve CI configuration issue.....etc
As you would know, Hadoop can be run in the local environment in 3 different modes : Local Mode Pseudo Distributed Mode Fully Distributed Mode (Cluster) Typically you will be running your local hadoop setup in Pseudo Distributed Mode to leverage HDFS and Map Reduce(MR). However you cannot de...
In this XML file, we are specifying the servlet class DispatcherServlet that acts as the front controller in Spring Web MVC. All the incoming request for the HTML file will be forwarded to the DispatcherServlet. <?xml version="1.0" encoding="UTF-8"?> <web-app version...
Detailed instructions on getting windows-installer set up or installed.
<dependencies> <dependency> <groupId>{ejbModuleGroupId}</groupId> <artifactId>{ejbModuleArtifactId}</artifactId> <version>{ejbModuleVersion}</version> <type>ejb</type> </dependency> &...
How to install TestNG in eclipse Open eclipse Click on Help > Install New software Click Add Provide name & URL - http://beust.com/eclipse Select TestNG Click Next Click Finish It will take some time to install TestNG Once installed then restart eclipse. Lets c...
1. Enable Flat Categories and Products One of the top reasons of Magento speed issues with database read speed. To fasten the read speed of the database you should enable Flat Catalog. This will minify the number of database joins done when showing products and due to that the MySQL query complexit...
The cursor builds on top of and depends on the raycaster component. If we want to customize the raycasting pieces of the cursor, we can do by changing the raycaster component properties. Say we want set a max distance, check for intersections less frequently, and set which objects are clickable: &l...
##= #= Service::QueryConfig # # USAGE: # ${Service::QueryConfig} "NAME" /DISABLEFSR $0 $1 # # ::QueryConfig = The service's binary path is returned. # NAME = The Service name # /DISABLEFSR = Disables redirection if x64. Use "" to skip. # $0 ...
Enter command "tsc --init" and hit enter. Before that we need to compile ts file with command "tsc app.ts" now it is all defined in below config file automatically. Now, You can compile all typescripts by command "tsc". it will automatically create ".js&q...
config { simulateStaticDocuments = 0 index_enable = 1 index_externals = 1 linkVars = L sys_language_mode = content_fallback sys_language_overlay = hideNonTranslated doctype = xhtml_trans xhtml_cleaning = all doctype = html5 xmlprologue = none re...
import tensorflow as tf sess = tf.Session(config=tf.ConfigProto(device_count={'GPU': 0})) Bear in mind that this method prevents the TensorFlow Graph from using the GPU but TensorFlow still lock the GPU device as described in this an issue opened on this method. Using the CUDA_VISIBLE_DEVICES se...
Copy the content into a file and save the file as .iex.exs in your ~ home directory and see the magic. You can also download the file HERE # IEx.configure colors: [enabled: true] # IEx.configure colors: [ eval_result: [ :cyan, :bright ] ] IO.puts IO.ANSI.red_background() <> IO.ANSI.white() ...
If you do not see any logging, you can check if Configure() is called in your application. The easiest way is to add it as an attribute to your assembly: [assembly: log4net.Config.XmlConfigurator(Watch = true)] Then you do not have to add log4net.Config.XmlConfigurator.Configure() anywhere in y...
iPhone App import WatchConnectivity and conform to WCSessionDelegate. use the static session delegate via WCSession.default(). Send data to Watch app using: WCSession.default().sendMessage(message, replyHandler:_ errorHandler:_) The message object should be a dictionary of type [Stri...
WatchKit App import WatchConnectivity and conform to WCSessionDelegate. use the static session delegate via WCSession.default(). Send data to the iPhone app using: WCSession.default().sendMessage(message, replyHandler:_ errorHandler:_) The message object should be a dictionary of typ...
{ "module": "amd", // Using AMD module code generator which works with requireJS "rootDir": "./src", // Change this to your source folder "outDir": "./view", ... }

Page 15 of 15