Questions tagged [configuration]

Configuration is the process of specifying the settings used for a system or application

Configuration is used to customize the behavior of a program. It is commonly done using static configuration files that can be composed in any common text editor, but some applications provide tools (sometimes even with graphical interfaces) to create, modify, and verify the syntax of their configuration files.

Some programs only read their configuration files at startup. Others periodically check the configuration files for changes. Users can instruct some programs to re-read the configuration files and apply the changes to the current process, or indeed to read arbitrary files as a configuration file.

18012 questions
8
votes
2 answers

Overriding configuration variables from cypress.env.json

TL;DR: I am trying to override the baseUrl value from cypress.json using my cypress.env.json file, but I can't seem to figure out how. Is there a way to do this? Background Setting environment variables in the cypress.json file and later overriding…
vages
  • 330
  • 1
  • 6
  • 14
8
votes
3 answers

.NET Core Configuration - System.Net connectionManagement/maxconnections?

I am migrating a console app (REST client app) from .NET framework to .NET Core. In my current (framework) version, I use the app.config file to set the System.Net configuration:
mholberger
  • 337
  • 3
  • 14
8
votes
2 answers

Grails: why is the Config.groovy file executed during compilation?

From the Grails documentation and this question: For general configuration Grails provides two files: grails-app/conf/BuildConfig.groovy grails-app/conf/Config.groovy Both of them use Groovy's ConfigSlurper syntax. The first, BuildConfig.groovy,…
user2738748
  • 1,106
  • 2
  • 19
  • 36
8
votes
3 answers

Configuration File as Embedded Resource

Does anyone out there have an example of using an embedded Configuration File in either VB.NET or C#? I understand how to embed the configuration file, but what is the best method to access it afterward? Can I treat it as a configuration file, like…
Gregg
8
votes
1 answer

Referencing .net framework assemblies in .net core 2 that rely on the ConfigurationManager

We have some legacy 4.5.2 class libraries that make common use of ConfigurationManager.AppSettings[key] Is it possible to reference these within a .net core 2 application so that the config is correctly patched up under the hood? I.e. the old calls…
boro2g
  • 524
  • 4
  • 16
8
votes
2 answers

How to change "Generate Method Stub" to throw NotImplementedException in VS?

How can I change default Generate Method Stub behavior in Visaul Studio to generate method with body throw new NotImplementedException(); instead of throw new Exception("The method or operation is not implemented.");
Jakub Šturc
  • 35,201
  • 25
  • 90
  • 110
8
votes
1 answer

What is "Deploy applications configured in Tomcat instance" in IntelliJ 2017.2 "Run/Debug Configurations" dialog?

In IntelliJ Ultimate 2017.2, in the Run/Debug Configurations dialog, with the Tomcat Server > Local item selected on the left, what exactly is the meaning of the checkbox Deploy applications configured in Tomcat instance? The entire purpose of this…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
8
votes
2 answers

What are the pros and cons of using configChanges="orientation" for android devices?

I'm wanting to use android:configChanges="orientation|keyboardHidden" for a few of my activities so that my onCreate doesn't get called again, but I thought I'd see if anyone had a list of pros and cons first because this link says that it should…
Pzanno
  • 2,185
  • 2
  • 20
  • 23
8
votes
3 answers

React Native in VS Code: add configuration for iOS Device to launch.json

I have a React Native project open in Visual Studio code, and Im trying to run the project on a physical connected iOS device. I successfully ran the app on the device directly from Xcode, but from Visual Studio Code I'm having issues. I believe I…
pnizzle
  • 6,243
  • 4
  • 52
  • 81
8
votes
3 answers

Configuring sendmail behind a firewall

I'm setting up a server which is on a network behind a firewall and I want programs on this computer to be able to use sendmail to send emails to any email address. We have an SMTP server running on this network (let's call it…
Eli Courtwright
  • 186,300
  • 67
  • 213
  • 256
8
votes
2 answers

Nginx how to add extra server configuration to without modifying nginx.conf

I want to add this extra config to my nginx.conf: server { listen 0.0.0.0:8081; rewrite ^ https://$host$request_uri? redirect; } But as my app is deployed in a hosting service I don't want to modify the already present nginx.conf. It can…
fguillen
  • 36,125
  • 23
  • 149
  • 210
8
votes
2 answers

How can I include a CDATA section in a ConfigurationElement?

I'm using the .NET Fx 3.5 and have written my own configuration classes which inherit from ConfigurationSection/ConfigurationElement. Currently I end up with something that looks like this in my configuration file:
cfeduke
  • 23,100
  • 10
  • 61
  • 65
8
votes
1 answer

spring-boot Remove locations attributes from @ConfigurationProperties

Remove locations attributes from @ConfigurationProperties What are the alternatives? I've been using it like this before. @ConfigurationProperties(locations = "a.yml")
Minwoo
  • 213
  • 4
  • 12
8
votes
4 answers

What are the first issues to check while optimizing an existing database?

What are the top issues and in which order of importance to look into while optimizing (performance tuning, troubleshooting) an existing (but unknown to you) database? Which actions/measures in your previous optimizations gave the most effect (with…
8
votes
1 answer

How to load Fop configuration file to FopFactory

I'm generating PDF file from xml and xsl-fo using Fop-2.1 and spent a lot of time to configure fop configuration file(I'm using cyrillic fonts), in according with https://xmlgraphics.apache.org/fop/2.1/configuration.html tested it within…
guesswho
  • 462
  • 4
  • 12