Files that configure the initial settings for some computer programs.
Questions tagged [configuration-files]
2246 questions
16
votes
3 answers
How do you configure Firefox to allow Javascript to intercept a value pasted from the clipboard?
I need to filter out certain characters when a user pastes from the clipboard. (I don't actually want to modify what's in the clipboard.) I already have this working in IE. Sigh...
tl;dr: capability.policy items in user.js make it into prefs.js but…

just mike
- 1,164
- 3
- 12
- 22
15
votes
1 answer
Pyramid and .ini configuration
Each Pyramid application has an associated .ini file that contains its settings. For example, a default might look like:
[app:main]
use = egg:MyProject
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound =…

evgeny
- 2,564
- 17
- 27
15
votes
2 answers
Getting a list from a config file with ConfigParser
I have something like this in my config file (a config option that contains a list of strings):
[filters]
filtersToCheck = ['foo', '192.168.1.2', 'barbaz']
Is there a more elegant (built-in) way to get a list from filtersToCheck instead of removing…

tkit
- 8,082
- 6
- 40
- 71
15
votes
3 answers
How to create a WCF client without settings in config file?
I just start work on WCF a month ago. Please forgive me if I ask something already answered. I try to search first but found nothing.
I read this article, WCF File Transfer: Streaming & Chunking Channel Hosted In IIS. It works great. Now I like to…

weslleywang
- 569
- 2
- 8
- 21
15
votes
3 answers
boost::program_options config file option with multiple tokens
I can not seem to be able to read from config file multitoken options like I can from command line. What is the syntax for the config file?
This is how the option description is added:
//parser.cpp
- - -
po::options_description* generic;
generic=new…

Regel
- 607
- 1
- 6
- 11
15
votes
1 answer
Is there a guideline for Unix config files
Most config files are ini files (format: name=value\n). Is there any documentation or an article/guideline on this matter.
Or is anyone supposed to keep close to this format on good will?

vpetkov
- 161
- 1
- 1
- 4
15
votes
4 answers
Disable network manager for a particular interface
I would like to disable network manager service for particular interface(s). "/etc/init.d/NetworkManager stop" is not going to serve my purpose since will stop the service. Please let me know how to achieve this. Please suggest commands/code only -…

Souvik
- 601
- 1
- 8
- 16
15
votes
2 answers
Edit configuration file through python
I need to edit a configuration file through python and i tried searching on stackoverflow and google and they don't cover my situation, since i need to replace lines in the file and perform matches in my search.
Also, what i found covers how to do…

mstefan
- 439
- 1
- 6
- 10
15
votes
4 answers
Reload configuration settings from an external config file during run-time
I'm writing a game server in C# and would like to reload or refresh settings from a config file while the server is running.
Ideally I would like to save the settings in an XML file, have the ability to edit
the file while the game server is running…

CarelZA
- 1,217
- 1
- 10
- 12
15
votes
7 answers
Reading a JSON object from appsettings.json
TL;DR: How do I read a complex JSON object from appsettings.json?
I have a .NET Core 2.x application with multiple types of configuration values. appsettings.json looks like the snippet below and I am trying to read the value of…

Babak Naffas
- 12,395
- 3
- 34
- 49
15
votes
2 answers
When setting up a WCF client and server, how synchronized does the config files must be?
Most of the WCF examples out there show you how to configure WCF client and server. Now, what happens if you differ the configuration slightly between them? I mean, who has the final word?
Let's take this client configuration for…

Alex
- 1,366
- 19
- 22
15
votes
4 answers
Tools for previewing configuration file transformations
Are there any tools or Visual Studio 2010 extensions which allow me to view the output of a configuration file transformation short of having to publish the entire project? Is the process which performs the transformation directly…

Nathan Taylor
- 24,423
- 19
- 99
- 156
15
votes
1 answer
What does 'yaml.parser.ParserError: expected '', but found ''' mean?
I have the following YAML file:
[mysqld]
user: "mysql"
pid-file: /var/run/mysqld/mysqld.pid
skip-external-locking
old_passwords: 1
skip-bdb
skip-innodb
create_key: yes
needs_agent: no
knows_oop: True
likes_emacs: TRUE
women:
- Mary Smith
-…

Martin Thoma
- 124,992
- 159
- 614
- 958
15
votes
6 answers
IIS7: Possible causes of 'Unrecognized configuration path' error
After setting up an ASP.NET website in IIS7 I get an Internal Server Error (500.19) that says:
'Unrecognized configuration path'.
What are possible causes of this error?
(Setting up other ASP.NET websites works OK, but for a particular website it…

Ole Lynge
- 4,457
- 8
- 43
- 57
15
votes
3 answers
Location to put user configuration files in windows
I'm writing a python library that has a per-user configuration file that can be edited by the user of the library. The library also generates logging files.
On *nix, the standard seems to be to dump them in $HOME/.library_name.
However, I am not…

UsAaR33
- 3,536
- 2
- 34
- 55