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
105
votes
14 answers

Apache won't follow symlinks (403 Forbidden)

I'm having some trouble setting up Apache on Ubuntu. I've been following this guide. # /usr/sbin/apache2 -v Server version: Apache/2.2.17 (Ubuntu) Server built: Feb 22 2011 18:33:02 My public directory, /var/www, can successfully serve up and…
Tim
  • 6,079
  • 8
  • 35
  • 41
104
votes
8 answers

Which is best way to define constants in android, either static class, interface or xml resource?

I'm developing an android application which uses web service to get data from server, for that I'm having three different set of URLs to point development system, test server and live server. It's difficult to change URL whenever I want to give…
Jayabal
  • 3,619
  • 3
  • 24
  • 32
103
votes
19 answers

At what point does a config file become a programming language?

I have been mulling over config files and their relationship to code for a while now and depending on the day and direction of the wind my opinions seem to change. More and more though I keep coming back to the realization I first had while…
Chas. Owens
  • 64,182
  • 22
  • 135
  • 226
103
votes
2 answers

How to retrieve annotated instance from Guice's injector?

Let's say I have a module: Module extends AbstractModule { @Override protected void configure() { bind(String.class). annotatedWith(Names.named("annotation")). toInstance("DELIRIOUS"); } } and I want to test the module and…
Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
103
votes
1 answer

dump conf from running nginx process

Is it possible to get which conf the nginx is using only from a running nginx process? To get the conf file path. sometimes ps aux reveal it, sometimes it doesn't. It might be just something like nginx: master process /usr/sbin/nginx (same as…
est
  • 11,429
  • 14
  • 70
  • 118
102
votes
5 answers

How to set Python language specific tab spacing in Visual Studio Code?

Using VSCode 1.9.0 with the (donjayamanne) Python 0.5.8 extension, is it possible to provide Python specific editor options? Or more generally speaking, is it possible to provide language specific tab spacing and replacement rules? For example,…
michael_teter
  • 1,880
  • 2
  • 15
  • 14
101
votes
14 answers

Python - Can't find pip.ini or pip.conf in Windows

I have Python 2.7.8 installed on my Windows 7 machine, which comes with pip already pre-installed. I'm able to successfully install new packages from pip and now I need to add a custom repository URL to the install list of pip. To do so I need to…
Bryksin
  • 2,322
  • 3
  • 19
  • 31
100
votes
5 answers

How do I increase the RAM and set up host-only networking in Vagrant?

I would like to increase the RAM to at least 1 GB and I would like to configure “Host-Only” networking to use "199.188.44.20". This is my Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant::Config.run do |config| config.vm.customize…
Dc Redwing
  • 1,681
  • 11
  • 32
  • 42
98
votes
9 answers

Developer specific app.config/web.config files in Visual Studio

We have several .NET projects where we store certain settings in configuration files. Now each developer will have their own configuration files that differ a little (different connection strings to connect to local databases, different WCF…
twarz01
  • 981
  • 1
  • 7
  • 3
97
votes
10 answers

app.config for a class library

I cannot see a app.config file generated for a class library by the VS2008 wizard. In my research I found that in an application only one app.config exists. Is it a bad thing to add an app.config manually to a class library or are there any other…
logeeks
  • 4,849
  • 15
  • 62
  • 93
97
votes
11 answers

Simplest way to have a configuration file in a Windows Forms C# application

I'm really new to .NET, and I still didn't get the hang about how configuration files work. Every time I search on Google about it I get results about web.config, but I'm writing a Windows Forms application. I figured out that I need to use the…
Fabio Gomes
  • 5,914
  • 11
  • 61
  • 77
96
votes
7 answers

How do I set up Vim autoindentation properly for editing Python files?

I've trouble setting up Vim (7.1.xxx) for editing Python files (*.py). Indenting seems to be broken (optimal 4 spaces). I've followed some tutorials I found via Google. Still no effect :/ Please help.
M_1
  • 2,135
  • 4
  • 21
  • 24
96
votes
1 answer

What does “status” mean in Log4j2 configuration?

I just have finished adjustment of log4j2.xml configuration file and spotted something I don't really understand. So what is ? Almost in all examples here…
Yurii Bondarenko
  • 3,460
  • 6
  • 28
  • 47
96
votes
6 answers

how to check the database name that ActiveRecord uses

In database.yml you define all the settings. How can I access those settings from ruby? I've looked in App::Application::config, but can't find it there. Also, I remember people were able to configure database settings without yaml, does anyone know…
m33lky
  • 7,055
  • 9
  • 41
  • 48
94
votes
14 answers

Log4Net config in external file does not work

We are using log4net and want to specify it's configuration in an external config file (as we have done with other sections). To do this we have changed the log4net section in the App.config to: ...
Robert Wagner
  • 17,515
  • 9
  • 56
  • 72