Files that configure the initial settings for some computer programs.
Questions tagged [configuration-files]
2246 questions
43
votes
1 answer
What are the differences between set -g, set -ga and set-option -g in a .tmux.conf file?
I'm new to tmux and trying to understand it's configuration. I've started with looking at some pre-existing .tmux.conf files and whatever documentation I can find but it still leaves me wondering about the flags. I've seen the following so far:
A…

hrokr
- 3,276
- 3
- 21
- 39
42
votes
1 answer
Ruby loading config (yaml) file in same dir as source
in HOME/path_test/ I have:
load_test.rb:
require 'yaml'
cnf = YAML::load(File.open('config.yml'))
puts cnf['Hello']
config.yml:
Hello: world!!!
when in HOME/path_test/ I get as expected:
-bash-3.2$ ruby load_test.rb
world!!!
when in HOME/ (cd…

FelixHJ
- 1,071
- 3
- 12
- 26
42
votes
5 answers
SSIS how to set connection string dynamically from a config file
I am using SQL Server Integration Services (SSIS) in SQL Server Business Intelligent Development Studio.
I need to do a task that is as follows. I have to read from a source database and put it into a destination flat file. But at the same time…

SNA
- 7,528
- 12
- 44
- 60
42
votes
15 answers
Application configuration files
OK, so I don't want to start a holy-war here, but we're in the process of trying to consolidate the way we handle our application configuration files and we're struggling to make a decision on the best approach to take. At the moment, every…

ninesided
- 23,085
- 14
- 83
- 107
41
votes
1 answer
What is the intended use of the DEFAULT section in config files used by ConfigParser?
I've used ConfigParser for quite a while for simple configs. One thing that's bugged me for a long time is the DEFAULT section. I'm not really sure what's an appropriate use. I've read the documentation, but I would really like to see some clever…

Jeremy Cantrell
- 26,392
- 13
- 55
- 78
38
votes
5 answers
Clean out Eclipse workspace metadata
I use multiple workspaces with Eclipse. I recently noticed that some of my workspaces have a lot of cruft in them from software packages that I installed and then later removed. As far as I can tell, the situation is that many packages write stuff…

Ted Hopp
- 232,168
- 48
- 399
- 521
37
votes
5 answers
Read custom configuration file in C# (Framework 4.0)
I am developing an application in C# under Framework 4.0.
In my application I would like to create separate configuration file that is not the app.config file. The configuration file contains custom configuration sections we developed for the…

Koby Mizrahy
- 1,361
- 2
- 12
- 23
36
votes
8 answers
iOS Application Configuration File
In a C# application I always used an app.config file to save some data for my application to load when needed (e.g Connection String).
What is the best way to save information like this in an iOS application?

António
- 975
- 1
- 12
- 31
34
votes
8 answers
Read all the contents in ini file into dictionary with Python
Normally, I code as follows for getting a particular item in a variable as follows
try:
config = ConfigParser.ConfigParser()
config.read(self.iniPathName)
except ConfigParser.MissingSectionHeaderError, e:
raise…

prosseek
- 182,215
- 215
- 566
- 871
34
votes
9 answers
How to version control config files pragmatically?
Suppose we have a config file with sensitive passwords. I'd like to version control the whole project, including the config file as well, but I don't want to share my passwords.
That could be good, if this config…

erenon
- 18,838
- 2
- 61
- 93
34
votes
2 answers
How do you put HTML or XML into a YAML?
I would like to store HTML snippets inside a YAML file. What is the best way to do that?
Something like:
myhtml: |

Piotr Zolnierek
- 1,030
- 1
- 10
- 19
34
votes
4 answers
How to Create a configuration File For MongoDB
I have installed mongodb for mac os through 10gen and I have gone through the documentation to do so. Everything seems fine apart from the configuration file. I can not see it in /etc/mongod.config. Do I have to manually create this config file? And…

Rob Schneider
- 679
- 4
- 13
- 27
32
votes
1 answer
Where should I place my settings and profiles for use with IPython/Jupyter 4.0?
I've recently updated IPython (to 4.0) and have started using Notebooks after a period of some time not using them (since before The Big Split, I think), and have discovered that some of my settings need to be modified and moved from ~/.ipython/ to…

orome
- 45,163
- 57
- 202
- 418
32
votes
6 answers
Use of AuthConfig, BundleConfig, FilterConfig , RouteConfig and WebApiConfig in App_Start() folder in MVC
Can you please explain in detail, the use of App_Start() folder in MVC4?
I see that this folder is actually not available in previous versions of MVC.
There are 5 files in this folder.…

Harsha V Chunduri
- 394
- 1
- 4
- 17
31
votes
6 answers
what is the best way to define constant variables python 3
I am writing a program in python which contains many constant variables. I would like to create a file that will hold all these variables like the .h file in C that contains many #define. I tried to use configparser however I didn't find it easy and…

TomE8
- 546
- 1
- 4
- 14