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
138
votes
10 answers

Environment variable to control java.io.tmpdir?

I've used the TMP environment variable to control things like where gcc writes it's temporary files, but I can't seem to find an equivalent for java's createTempFile API. Does such an environment variable exist?
Zach Hirsch
  • 24,631
  • 8
  • 32
  • 29
134
votes
9 answers

Using ConfigurationManager to load config from an arbitrary location

I'm developing a data access component that will be used in a website that contains a mix of classic ASP and ASP.NET pages, and need a good way to manage its configuration settings. I'd like to use a custom ConfigurationSection, and for the ASP.NET…
Mike Powell
  • 5,914
  • 4
  • 28
  • 28
133
votes
14 answers

Best way to create custom config options for my Rails app?

I need to create one config option for my Rails application. It can be the same for all environments. I found that if I set it in environment.rb, it's available in my views, which is exactly what I want... environment.rb AUDIOCAST_URI_FORMAT =…
Ethan
  • 57,819
  • 63
  • 187
  • 237
133
votes
9 answers

Kubernetes equivalent of env-file in Docker

Background: Currently we're using Docker and Docker Compose for our services. We have externalized the configuration for different environments into files that define environment variables read by the application. For example a prod.env…
Johan
  • 37,479
  • 32
  • 149
  • 237
130
votes
3 answers

Loading custom configuration files

I know I can open config files that are related to an assembly with the static ConfigurationManager.OpenExe(exePath) method but I just want to open a config that is not related to an assembly. Just a standard .NET config file.
Adam
  • 2,123
  • 4
  • 17
  • 25
129
votes
7 answers

Redis - Connect to Remote Server

I've just install Redis succesfully using the instructions on the Quick Start guide on http://redis.io/topics/quickstart on my Ubuntu 10.10 server. I'm running the service as dameon (so it can be run by init.d) The server is part of Rackspace…
gregavola
  • 2,519
  • 5
  • 30
  • 47
129
votes
10 answers

Unix command-line JSON parser?

Can anyone recommend a Unix (choose your flavor) JSON parser that could be used to introspect values from a JSON response in a pipeline?
Jé Queue
  • 10,359
  • 13
  • 53
  • 61
129
votes
6 answers

How to select Python version in PyCharm?

I have PyCharm 1.5.4 and have used the "Open Directory" option to open the contents of a folder in the IDE. I have Python version 3.2 selected (it shows up under the "External Libraries" node). How can I select another version of Python (that I…
Cristian Lupascu
  • 39,078
  • 16
  • 100
  • 137
128
votes
13 answers

Warning about `$HTTP_RAW_POST_DATA` being deprecated

I switched to PHP 5.6.0 and now I get the following warning everywhere: Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1'…
rr-
  • 14,303
  • 6
  • 45
  • 67
128
votes
3 answers

Is it possible to override the configuration of a plugin already defined for a profile in a parent POM?

In a POM parent file of my project, I have such a profile defining some configurations useful for this project (so that I can't get rid of this parent POM) : wls7 ...
Guillaume Cernier
  • 1,311
  • 2
  • 9
  • 7
128
votes
6 answers

I can not find my.cnf on my windows computer

My computer is Windows XP. I need to find my.cnf to get all privileges back to the root user. I accidentally removed some privileges of the root user. I still have the password and there is no problem for me to log in to MySQL as the root user. But…
Steven
  • 24,410
  • 42
  • 108
  • 130
127
votes
3 answers

How to tell which colorscheme a Vim session currently uses

You can set the Vim color scheme by issuing :colorscheme SCHEME_NAME but, oddly enough, you can't get the currently used scheme by issuing :colorscheme as this results in "E471: Argument required". I also don't see the color scheme listed in the…
gotgenes
  • 38,661
  • 28
  • 100
  • 128
127
votes
3 answers

Configuration With Same Name Already Exists

I have a solution with 10+ projects (VS2010 SP1). I have the following configurations defined in the solution: Debug Debug-QA Release-UAT Release-Production This allows me to easily setup specific settings for each deployment scenario. However,…
Josh M.
  • 26,437
  • 24
  • 119
  • 200
126
votes
10 answers

How to select different app.config for several build configurations

I have a dll-type project that contains MSTest integration tests. On my machine the tests pass, and I want the same to happen on a CI server (I use TeamCity). But the tests fail, because I need to tweak some settings in app.config. This is why I was…
126
votes
5 answers

How to store Configuration file and read it using React

I am new on react.js I have implemented one component in which I am fetching the data from server and use it like, CallEnterprise:function(TenantId){ fetchData('http://xxx.xxx.xx.xx:8090/Enterprises?TenantId='+TenantId+'…
Dhaval Patel
  • 7,471
  • 6
  • 37
  • 70