Tutorial by Examples: config

After installing Visual studio code configure .net core and C#. Configure C# based on market-place. Reference Url: C# market place .net core Launch Visual studio code. Press [ctrl + P] paste "ext install csharp" this and hit. Once done above steps , C# extension available i...
Add this text to appsettings.json { "key1": "value1", "key2": 2, "subsectionKey": { "suboption1": "subvalue1" } } Now you can use this configuration in your app, in the way like this public class Program { sta...
Create class like a class below public class MyOptions { public MyOptions() { // Set default value, if you need it. Key1 = "value1_from_ctor"; } public string Key1 { get; set; } public int Key2 { get; set; } } Then you need to add this code ...
This example has been taken from here package com.reborne.SmartHibernateConnector.utils; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class LiveHibernateConnector implements IHiber...
If you installed Laravel via Composer or the Laravel installer, below configuration you will need. Configuration for Apache Laravel includes a public/.htaccess file that is used to provide URLs without the index.php front controller in the path. Before serving Laravel with Apache, be sure to enabl...
Android now supports devices with 512MB of RAM. This documentation is intended to help OEMs optimize and configure Android 4.4 for low-memory devices. Several of these optimizations are generic enough that they can be applied to previous releases as well. Enable Low Ram Device flag We are introduc...
Internally, Django uses the Python logging system. There is many way to configure the logging of a project. Here is a base: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'default': { 'format': "[%(asctime)s] %(levelname)s [%(n...
After a while, you end up with many configuration items in your config.yml. It can make you configuration easier to read if you split your configuration across multiple files. You can easily include all files from a directory this way: config.yml: imports: - { resource: parameters.yml } ...
Create a new database. $ wp db create Drop an existing database. $ wp db drop --yes Reset the current database. $ wp db reset --yes Execute a SQL query stored in a file. $ wp db query < debug.sql
First, lets overview what we need in order to setup Hibernate correctly. @EnableTransactionManagement and @EnableJpaRepositories - we want transactional management and to use spring data repositories. DataSource - main datasource for the application. using in-memory h2 for this example. LocalCo...
NPM If external library like jQuery is installed using NPM npm install --save jquery Add script path into your angular-cli.json "scripts": [ "../node_modules/jquery/dist/jquery.js" ] Assets Folder You can also save the library file in your assets/js directory and in...
Spring boot is based on a lot of pre-made auto-configuration parent projects. You should already be familiar with spring boot starter projects. You can easily create your own starter project by doing the following easy steps: Create some @Configuration classes to define default beans. You should...
Checkpointing configuration is done in two steps. First, you need to choose a backend. Then, you can specify the interval and mode of the checkpoints in a per-application basis. Backends Available backends Where the checkpoints are stored depends on the configured backend: MemoryStateBackend...
Start with a properly configured gradle project. In your project-local (not top-level) build.gradle append extensions plugin declaration below your Kotlin plugin, on top-level indentation level. buildscript { ... } apply plugin: "com.android.application" ... apply plugin: &quo...
Note: The output.library and name (in DllPlugin) must be the same. const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const extractCSS = new ExtractTextPlugin('vendor.css'); const isDevelopment = process.env.NODE_E...
Create the Root Certificate The Root Certificate (aka CA File) will be used to sign and identify your certificate. To generate it, run the command below. openssl req -nodes -out ca.pem -new -x509 -keyout ca.key Keep the root certificate and its key carefully, both will be used to sign your cert...
module.exports = { entry: './src/index', output: { path: __dirname + '/build', filename: 'bundle.js' }, module: { rules: [{ test: /\.tsx?$/, loader: 'ts-loader', exclude: /node_modules/ }] }, res...
This is a minimal tsconfig to get you up and running. { "include": [ "src/*" ], "compilerOptions": { "target": "es5", "jsx": "react", "allowSyntheticDefaultImports": tr...
here is a sample web.config in order to have both http and https support. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> </a...

Page 13 of 15