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.

16717 questions
1352
votes
32 answers

How to import a module given the full path?

How can I load a Python module given its full path? Note that the file can be anywhere in the filesystem, as it is a configuration option.
derfred
  • 14,815
  • 3
  • 21
  • 25
1318
votes
24 answers

Turning off auto indent when pasting text into vim

I am making the effort to learn Vim. When I paste code into my document from the clipboard, I get extra spaces at the start of each new line: line line line I know you can turn off auto indent but I can't get it to work because I have some…
Rimian
  • 32,654
  • 13
  • 106
  • 109
866
votes
26 answers

Reading settings from app.config or web.config in .NET

I'm working on a C# class library that needs to be able to read settings from the web.config or app.config file (depending on whether the DLL is referenced from an ASP.NET web application or a Windows Forms application). I've found…
Russ Clark
  • 12,240
  • 15
  • 52
  • 79
749
votes
16 answers

How can I show line numbers in Eclipse?

How can I show line numbers by default in Eclipse?
Sayed Bondok
707
votes
15 answers

Difference between and

I'm learning Spring 3 and I don't seem to grasp the functionality behind and . From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository,…
user938214097
  • 7,071
  • 3
  • 12
  • 3
543
votes
19 answers

How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list. It turns out that this is because…
hspain
  • 17,456
  • 5
  • 17
  • 31
535
votes
34 answers

Error message "Forbidden You don't have permission to access / on this server"

I have configured my Apache by myself and have tried to load phpMyAdmin on a virtual host, but I received: 403 Forbidden You don't have permission to access / on this server My httpd.conf # # This is the main Apache HTTP server configuration file.…
Dmytro Zarezenko
  • 10,010
  • 9
  • 52
  • 95
515
votes
17 answers

Turning off eslint rule for a specific file

Is it possible to turn off the eslint rule for the whole file? Something such as: // eslint-disable-file no-use-before-define (Analogous to eslint-disable-line.) It happens to me quite often, that in a certain file, I'm breaking a specific rule on…
Tomas Kulich
  • 10,850
  • 3
  • 24
  • 30
468
votes
25 answers

Where are my postgres *.conf files?

I have recently reinstalled postgresql 8.3 on my Ubuntu 8.04 after update. Used EnterpriseDB package. I can connect to the database locally, I see system DB postgres but I can't configure it because I can't find config files. Searched through entire…
Timur Sadykov
  • 9,434
  • 6
  • 29
  • 43
449
votes
14 answers

What should I set JAVA_HOME environment variable on macOS X 10.6?

Many Java applications that use shell scripts to configure their environment use the JAVA_HOME environment variable to start the correct version of Java, locate JRE JARs, and so on. In macOS X 10.6, the following paths seem to be valid for this…
Robert Christie
  • 18,551
  • 7
  • 39
  • 36
385
votes
4 answers

What's the best practice using a settings file in Python?

I have a command line script that I run with a lot of arguments. I have now come to a point where I have too many arguments, and I want to have some arguments in dictionary form too. So in order to simplify things I would like to run the script with…
c00kiemonster
  • 19,305
  • 31
  • 84
  • 128
341
votes
15 answers

How to define custom configuration variables in rails

I was wondering how to add custom configuration variables to a rails application and how to access them in the controller, for e.g I want to be able to define an upload_directory in the configuration files say development.rb and be able to access it…
Shiv
  • 8,026
  • 5
  • 27
  • 32
304
votes
23 answers

How to read AppSettings values from a .json file in ASP.NET Core

I have set up my AppSettings data in file appsettings/Config .json like this: { "AppSettings": { "token": "1234" } } I have searched online on how to read AppSettings values from .json file, but I could not get anything useful. I…
Oluwafemi
  • 11,553
  • 10
  • 38
  • 58
296
votes
24 answers

How to initialize log4j properly?

After adding log4j to my application I get the following output every time I execute my application: log4j:WARN No appenders could be found for logger (slideselector.facedata.FaceDataParser). log4j:WARN Please initialize the log4j system…
Janusz
  • 176,216
  • 111
  • 293
  • 365
285
votes
8 answers

Performance differences between debug and release builds

I must admit, that usually I haven't bothered switching between the Debug and Release configurations in my program, and I have usually opted to go for the Debug configuration, even when the programs are actually deployed at the customers place. As…
Øyvind Bråthen
  • 54,098
  • 26
  • 117
  • 143
1
2 3
99 100