Files that configure the initial settings for some computer programs.
Questions tagged [configuration-files]
2246 questions
25
votes
4 answers
Using App.config to set strongly-typed variables
I'm a C# novice running .NET 3.5, and I'd like to store a bunch of application default values in App.config, as the settings may vary by server environment (e.g. development, staging, production). What I want to do is similar to what's described in…

Mass Dot Net
- 2,150
- 9
- 38
- 50
24
votes
3 answers
How to create an application-specific config file for TypeScript?
I am working on a web application using TypeScript. For some parts of the application, I would like to define a simple configuration file that specifies certain aspects (for example the color palette).
How would I create such a configuration file?…

r0estir0bbe
- 699
- 2
- 7
- 23
24
votes
1 answer
2 php.ini files
I have found that:
When I type the following on terminal:
php -i | grep php.ini
I get the output:
The Loaded Configuration file is @ /etc/php5/cli/php.ini
However, from phpinfo(), I get to see:
The loaded ini file is @…

Hrishikesh Choudhari
- 11,617
- 18
- 61
- 74
24
votes
2 answers
Django: how to set log level to INFO or DEBUG
I tried to change the debug level to DEBUG in Django because I want to add some debug messages to my code. It seems to have no effect.
My logging configuration:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters':…

kev
- 8,928
- 14
- 61
- 103
24
votes
2 answers
What order of reading configuration values?
For the python program I am writing I would like to give the opportunity of configuring it in three different ways. Environment variables, configuration files and command line arguments.
Logically I think command line arguments should always have…

Peter Smit
- 27,696
- 33
- 111
- 170
23
votes
6 answers
Get the App.Config of another Exe
I have an exe with an App.Config file. Now I want to create a wrapper dll around the exe in order to consume some of the functionalities.
The question is how can I access the app.config property in the exe from the wrapper dll?
Maybe I should be a…

Graviton
- 81,782
- 146
- 424
- 602
23
votes
5 answers
WiX overwrites config files during setup. How can I avoid this?
I'm using WiX to create a windows installer. Unfortunately my installer overwrites a config file on every update.
What I really want is, that the installer only creates the file if it is not found.
Thanks and regards,
forki

forki23
- 2,784
- 1
- 28
- 42
23
votes
4 answers
python single configuration file
I am developing a project that requires a single configuration file whose data is used by multiple modules.
My question is: what is the common approach to that? should i read the configuration file from each
of my modules (files) or is there any…

João Portela
- 6,338
- 7
- 38
- 51
23
votes
3 answers
How to serve images with nginx
I am completely new to nginx and I am asked to find a way to serve Map Tiles that are separated according to the zoom levels. The image file structure is like ~/data/images/7/65/70.png where 7 is the zoom level, 65 and 70 are the lon-lat values. The…

iso_9001_
- 2,655
- 6
- 31
- 47
23
votes
19 answers
Keeping dot files synched across machines?
Like most *nix people, I tend to play with my tools and get them configured just the way that I like them. This was all well and good until recently. As I do more and more work, I tend to log onto more and more machines, and have more and more stuff…

Steve Klabnik
- 14,521
- 4
- 58
- 99
22
votes
1 answer
WCF Error - The maximum message size quota for incoming messages (65536) has been exceeded
My Setup:
ASP.NET client hosted in IIS Express
WCF Service hosted in Console Application
Running Visual Studio.NET 2012 in Admin mode
I am trying to return 2 List objects from a WCF service. My setup WORKS FINE when I return just 1 List objects.…

Yuvi Dagar
- 649
- 2
- 11
- 20
22
votes
5 answers
make NLog.config file load the file from (d:\dev) instead of "\bin\debug\"
I used Nlog for logging purpose in a particular DLL. The DLL is then used in another application (it is loaded dynamically using System.Reflection.Assembly.LoadFrom(path + a.dll)). I manually placed Nlog.dll and Nlog.config files in Path folder and…

rookie_developer
- 1,359
- 3
- 15
- 27
21
votes
6 answers
How to create an .INI file to store some settings in Java?
I want to create an ini file to store some settings for my application. Is it a good idea to find where the jar file is located and create an ini file there? If yes, then how can I find the location of the jar file?
But if you know a better…

Lipis
- 21,388
- 20
- 94
- 121
21
votes
1 answer
CloudConfigurationManager does not pick up ApplicationSettings from app.config
I have a library containing some Azure helper classes. Inside these helper classes I obtain settings such as the Azure account name and key. When running in Azure these settings are picked up from the cloud configuration file (cscfg). This all works…

King Roger
- 761
- 1
- 7
- 8
21
votes
4 answers
Proper implementation of global configuration
My goal is to have global constants in a C++ game I'm working on (to represent some graphics info and the like). My current implementation is to toss them all in a .h and include them everywhere. This works, except that every time I change a…

Cannoliopsida
- 3,044
- 5
- 36
- 61