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
198
votes
4 answers

How to SetBasePath in ConfigurationBuilder in Core 2.0

How can I set the base path in ConfigurationBuilder in Core 2.0. I have googled and found this question, this from Microsoft docs, and the 2.0 docs online but they seem to be using a version of Microsoft.Extension.Configuration from 1.0.0-beta8. I…
Padhraic
  • 5,112
  • 4
  • 30
  • 39
196
votes
7 answers

How do I read configuration settings from Symfony2 config.yml?

I have added a setting to my config.yml file as such: app.config: contact_email: somebody@gmail.com ... For the life of me, I can't figure out how to read it into a variable. I tried something like this in one of my controllers: $recipient…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
194
votes
9 answers

Options, Settings, Properties, Configuration, Preferences — when and why?

There are several words with similar (in some sense) meaning: Options, Settings, Properties, Configuration, Preferences English is not my native language. Could you explain the difference in simple English please? I think the following template…
Andrew T
  • 5,549
  • 7
  • 43
  • 55
192
votes
3 answers

sendmail: how to configure sendmail on ubuntu?

When I searched for configuring sendmail on ubuntu I din't get any clear answer, each of them assume I know what they are talking about, I just want basic configuration to enable email sending, basically I will use it with google app engine to…
UXE
  • 2,374
  • 2
  • 18
  • 17
188
votes
2 answers

IConfiguration does not contain a definition for GetValue

After moving a class through projects, one of the IConfiguration methods, GetValue, stopped working. The usage is like this: using Newtonsoft.Json; using System; using System.Net; using System.Text; using…
Machado
  • 8,965
  • 6
  • 43
  • 46
184
votes
8 answers

How to get config parameters in Symfony2 Twig Templates

I have a Symfony2 Twig template. I want to output the value of a config parameter in this twig template (a version number). Therefore I defined the config parameter like this: parameters: app.version: 0.1.0 I'm able to use this config parameter…
Timo Haberkern
  • 4,409
  • 2
  • 27
  • 41
182
votes
8 answers

Add MIME mapping in web.config for IIS Express

I need to add a new MIME mapping for .woff file extensions to IIS Express. If I add the following snippet to the "applicationhost.config" of IIS Express it works fine:
Martin Buberl
  • 45,844
  • 25
  • 100
  • 144
178
votes
5 answers

How to implement a ConfigurationSection with a ConfigurationElementCollection

I am trying to implement a custom configuration section in a project and I keep running up against exceptions that I do not understand. I am hoping someone can fill in the blanks here. I have App.config that looks like this:
Chris Holmes
  • 11,444
  • 12
  • 50
  • 64
172
votes
11 answers

ASP.NET Core configuration for .NET Core console application

ASP.NET Core support a new configuration system as seen here: https://docs.asp.net/en/latest/fundamentals/configuration.html Is this model also supported in .NET Core console applications? If not what is alternate to the previous app.config and…
kimsagro
  • 15,513
  • 17
  • 54
  • 69
171
votes
3 answers

Adding a build configuration in Xcode

I'd like to add a new build configuration in Xcode 5, "QA", to the other three we currently have (Debug, Distribution, Release). However, when I click "Editor > Add Configuration", everything is grayed out. I'm not very familiar with Xcode in the…
Daniel Miller
  • 2,409
  • 4
  • 19
  • 20
169
votes
7 answers

Avoid web.config inheritance in child web application using inheritInChildApplications

I am trying to add to my parent web application's web.config but it doesn't seem to be working. My parent's web.config has: // 10 or so…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
168
votes
6 answers

abort: no username supplied (see "hg help config")

I have added repository and at the time of commit I get error as error: abort: no username supplied (see "hg help config") I am not getting Mercurial.ini file on my local as well. Does anyone know how I can resolve this error on Fedora?
Snehal
  • 1,681
  • 2
  • 10
  • 3
167
votes
15 answers

Determine which MySQL configuration file is being used

Is there a command to determine which configuration file MySQL 5.0 is currently using?
yalestar
  • 9,334
  • 6
  • 39
  • 52
167
votes
7 answers

How to change the name of the active scheme in Xcode?

I managed to change my project name, but how do I change the name displayed directly to the left of "iOS Simulator"?
Matthys Du Toit
  • 2,168
  • 3
  • 21
  • 34
165
votes
12 answers

Using a Single Row configuration table in SQL Server database. Bad idea?

In developing a shopping cart application I've found that I needed to save settings and configurations based on the administrator's preferences and requirements. This information can be anything from company information, Shipping account IDs, PayPal…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191