Files that configure the initial settings for some computer programs.
Questions tagged [configuration-files]
2246 questions
18
votes
2 answers
What use has the default (assembly).dll.config file for .NET-Assemblies?
I have a question regarding AppSettings in C#.
First I´ll describe my situation.
My solution consists of an executable program program.exe and an assembly.dll.
The program references the assembly and works with it. The assembly-project has…

thoros1179
- 353
- 1
- 3
- 14
18
votes
5 answers
Where is the configuration file for HDFS in Hadoop 2.2.0?
I'm studying Hadoop and currently I'm trying to set up an Hadoop 2.2.0 single node. I downloaded the latest distribution, uncompressed it, now I'm trying to set up the Hadoop Distributed File System (HDFS).
Now, I'm trying to follow the Hadoop…

danidemi
- 4,404
- 4
- 34
- 40
17
votes
4 answers
my_config.ini vs my_config.php
At work we use a .ini file to set variables prior to calling the rest of the framework (I think it goes
function getConfigVars(){
//read my_config.ini file
....
//call framework
}
and I have always wondered if there was a benefit to…

SeanJA
- 10,234
- 5
- 32
- 42
17
votes
3 answers
How do you prevent the IIS default site web.config file being inherited by virtual directories?
I have the following code in a web.config file of the default IIS site.
Then when I setup and browse to a virtual directory…

John Owen
- 1,700
- 1
- 14
- 16
17
votes
4 answers
Sonata Admin: How to remove "Add New" button from dashboard only?
I'm using Symfony 2.7 with Sonata Admin Bundle to manage some products and product images. I used the Sonata Admin Cookbook recipe: https://sonata-project.org/bundles/admin/master/doc/cookbook/recipe_file_uploads.html for images.
Because an image…

VMC
- 1,378
- 4
- 16
- 32
17
votes
2 answers
Detect if user has a specific Profile installed on their device
I've come across this application today, Adblock Mobile, which installs a Profile on the users device and routes all web traffic through its secure VPN to disable/block advertisements both when surfing the web, and when using an application that…

Daniel Storm
- 18,301
- 9
- 84
- 152
17
votes
1 answer
Packaging Python applications with configuration files
I'm using ConfigParser for configuring my application, and now I want to make it easily distributable, and at the same time preserve the configurability.
I'm thinking I need a directory with configuration file templates, and some way of generating…

Joakim Lundborg
- 10,920
- 6
- 32
- 39
17
votes
2 answers
Automatically load a config.php file for all pages before anything else
Does anyone know how to set up something where a specific file can be loaded automatically for all pages before anything else?
For example if I have a config.php file and I want this file to be loaded anytime anyone visits a page on my website.
In…

Yeak
- 2,470
- 9
- 45
- 71
16
votes
2 answers
C++ lightweight configuration library
I'm looking for a cross-platform C++ lighweight configuration library with non restrictive licence. I need something more complex than standard properties file with sections, but I don't want to use XML (too much writing :-)).
I would like to write…

runnydead
- 618
- 1
- 7
- 17
16
votes
2 answers
How to build App without App.runtimeconfig.json?
When I build the App in Release mode in Visual Studio it generates these files in Release folder:
App.exe
App.dll
App.runtimeconfig.json
App.pdb
App.deps.json
App.runtimeconfig.dev.json
If I move the first 3 files location and double click the…
user6283344
16
votes
4 answers
Checking if a file exists in the user's home directory
How would I, say, determine if the file ~/.my_proj_config exists on any OS in Ruby?

RyanScottLewis
- 13,396
- 16
- 56
- 84
16
votes
1 answer
Config SLF4J using library to use LOG4J configuration
I have a project using log4j. Now I have to introduce a library using slf4j. Can I ask slf4j to initialize itself based on log4j config? So I basicly want log4j as underlying library under slf4j.
UPDATE:
log4j config is like this:

Gábor Lipták
- 9,646
- 2
- 59
- 113
16
votes
6 answers
Why does the yocto bblayers.conf file use absolute paths?
The yocto project allows the use of relative path in most of its configuration files but not within the ./build/conf/bblayers.conf file. What is the reason for blocking the use of anything but absolute paths for the BBLAYERS and…

TafT
- 2,764
- 6
- 33
- 51
16
votes
4 answers
Python: Read configuration file with multiple lines per key
I am writing a small DB test suite, which reads configuration files with queries and expected results, e.g.:
query = "SELECT * from cities WHERE name='Unknown';"
count = 0
level = 1
name = "Check for cities whose…

Adam Matan
- 128,757
- 147
- 397
- 562
16
votes
4 answers
Celery: ignoring BROKER_URL in config file
My question is a duplicate of this one, but more detailed.
The problem is that I have a BROKER_URL set in my Celery config file, but that isn't reflected in and I am loading the config: I checked, and it is being loaded - in fact, other constants…

wolverdude
- 1,583
- 1
- 13
- 20