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
164
votes
13 answers

.NET Configuration (app.config/web.config/settings.settings)

I have a .NET application which has different configuration files for Debug and Release builds. E.g. the debug app.config file points to a development SQL Server which has debugging enabled and the release target points to the live SQL Server. There…
Gavin
  • 2,321
  • 3
  • 19
  • 21
155
votes
11 answers

.NET: Which Exception to Throw When a Required Configuration Setting is Missing?

Here's a standard scenario: if(string.IsNullOrEmpty(Configuration.AppSettings["foobar"])) throw new SomeStandardException("Application not configured correctly, bozo."); The problem is, I am not entirely certain which exception…
Mike Hofer
  • 16,477
  • 11
  • 74
  • 110
152
votes
5 answers

How to disable open browser in CRA?

I've created a React app using create-react-app but whenever I start the dev server (using npm start), it opens up my browser. I want to make it so that it doesn't open my browser whenever I start my dev server. How can I accomplish this?
GSP KS
  • 1,783
  • 2
  • 5
  • 9
151
votes
18 answers

OpenSSL and error in reading openssl.conf file

I am running windows xp 32bit I just downloaded Openssl from the following URL and installed it. http://www.slproweb.com/products/Win32OpenSSL.html and then I tried to create a self signed certificate by using the following command openssl req -x509…
Sreeram
  • 3,160
  • 6
  • 33
  • 44
151
votes
42 answers

pgadmin4 : postgresql application server could not be contacted.

I have installed PostgreSQL 9.6.2 on my Windows 8.1. But the pgadmin4 is not able to contact the local server. I have tried several solutions suggested here in stackoverflow, tried to uninstall and reinstall PostgreSQL 9.6.2 , tried to modify the…
Kaleab Woldemariam
  • 2,567
  • 4
  • 22
  • 43
150
votes
8 answers

How can I change the language (to english) in Oracle SQL Developer?

I am running a non-english Windows 7 system, and apparently Oracle SQL Developer (version 3.0.04.34, 64-bit) tries to auto-guess my preferred language based on the OS. Is there any way to change the language to english? I've tried the tip found at…
simon
  • 12,666
  • 26
  • 78
  • 113
148
votes
5 answers

How to parameterize @Scheduled(fixedDelay) with Spring 3.0 expression language?

When using the Spring 3.0 capability to annotate a scheduled task, I would like to set the fixedDelay as parameter from my configuration file, instead of hard-wiring it into my task class, like currently... @Scheduled(fixedDelay = 5000) public void…
ngeek
  • 7,733
  • 11
  • 36
  • 42
147
votes
1 answer

nginx the "ssl" directive is deprecated, use the "listen ... ssl"

After NGINX upgrade to v1.15.2 starts getting the warning. nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/etc/nginx/sites-enabled/confid-file-name:8 Where the 8th line is ssl on; how I can…
sambua
  • 2,274
  • 3
  • 22
  • 20
146
votes
3 answers

Configuring Vim for C++

I would like to make vim my C++ editor. I have very little experience working with it and need help in configuring vim to work with C++. I need such features as code-complete (for stl and for my classes) switching between .cc and .h files may be…
Draco Ater
  • 20,820
  • 8
  • 62
  • 86
146
votes
9 answers

Maven Jacoco Configuration - Exclude classes/packages from report not working

I have a maven multi-module project and I'm using jacoco-maven for code coverage reports. Some classes should not be reported, as they're Spring configuration and I'm not interested in them. I have declared the maven-jacoco plugin as…
resilva87
  • 3,325
  • 5
  • 32
  • 43
143
votes
3 answers

Java: possible to line break in a properties file?

Is it possible to continue a long string on the next line in a Java properties file? e.g., somehow myStr=Hello World and when I get getProperty("myStr") it will return with "Hello World"?
Pete
  • 16,534
  • 9
  • 40
  • 54
142
votes
11 answers

How to share Eclipse configuration over different workspaces

I'm using Eclipse (PDT) as primary IDE on different machines. (like at home, laptop, in office, etc.). How could I share the Eclipse and project configuration pragmatically between multiple computers? Should I version control them, or is there any…
erenon
  • 18,838
  • 2
  • 61
  • 93
142
votes
10 answers

Encrypt password in configuration files

I have a program that reads server information from a configuration file and would like to encrypt the password in that configuration that can be read by my program and decrypted. Requirements: Encrypt plaintext password to be stored in the…
Petey B
  • 11,439
  • 25
  • 81
  • 101
139
votes
7 answers

If using maven, usually you put log4j.properties under java or resources?

Where should I put the log4j.properties file when using the conventional Maven directories?
user496949
  • 83,087
  • 147
  • 309
  • 426
138
votes
7 answers

Will ConfigurationManager.AppSettings["blah"] throw an exception if "blah" doesn't exist?

Will ConfigurationManager.AppSettings["blah"] throw an exception if "blah" doesn't exist in the web/app.config?
Ben Aston
  • 53,718
  • 65
  • 205
  • 331