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
237
votes
9 answers

How can I get the current screen orientation?

I just want to set some flags when my orientation is in landscape so that when the activity is recreated in onCreate() i can toggle between what to load in portrait vs. landscape. I already have a layout-land xml that is handling my layout. public…
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
230
votes
6 answers

Where to place and how to read configuration resource files in servlet based application?

In my web application I have to send email to set of predefined users like finance@xyz.example, so I wish to add that to a .properties file and access it when required. Is this a correct procedure, if so then where should I place this file? I am…
sansknwoledge
  • 4,209
  • 9
  • 38
  • 61
230
votes
4 answers

What's the difference of $host and $http_host in Nginx

In Nginx, what's the difference between variables $host and $http_host.
glarrain
  • 8,031
  • 7
  • 31
  • 44
227
votes
6 answers

Difference between using bean id and name in Spring configuration file

Is there any difference between using an id attribute and name attribute on a element in a Spring configuration file?
Bear Bibeaults
222
votes
18 answers

Is the buildSessionFactory() Configuration method deprecated in Hibernate?

When I updated the Hibernate version from 3.6.8 to 4.0.0, I got a warning about deprecated method buildSessionFactory() in this line: private static final SessionFactory sessionFactory = new…
pushistic
  • 3,406
  • 3
  • 21
  • 35
220
votes
10 answers

Where to place AutoMapper.CreateMaps?

I'm using AutoMapper in an ASP.NET MVC application. I was told that I should move the AutoMapper.CreateMap elsewhere as they have a lot of overhead. I'm not too sure how to design my application to put these calls in just 1 place. I have a web…
Shawn Mclean
  • 56,733
  • 95
  • 279
  • 406
217
votes
10 answers

How to configure postgresql for the first time?

I have just installed postgresql and I specified password x during installation. When I try to do createdb and specify any password I get the message: createdb: could not connect to database postgres: FATAL: password authentication failed for…
Rohit Banga
  • 18,458
  • 31
  • 113
  • 191
216
votes
16 answers

How to set the java.library.path from Eclipse

How can I set the java.library.path for a whole Eclipse Project? I'm using a Java library that relies on OS specific files and need to find a .dll/ .so/ .jnilib. But the Application always exits with an error message that those files are not found…
Janusz
  • 187,060
  • 113
  • 301
  • 369
216
votes
11 answers

How to trigger XDebug profiler for a command line PHP script?

XDebug offers the configuration directive xdebug.profiler_enable_trigger that allows to activate profiling by passing the GET or POST parameter "XDEBUG_PROFILE" when calling a script via HTTP. This is handy if you don't want profiling for ALL of…
selfawaresoup
  • 15,473
  • 7
  • 36
  • 47
214
votes
5 answers

How do I prevent a Gateway Timeout with FastCGI on Nginx

I am running Django, FastCGI, and Nginx. I am creating an api of sorts that where someone can send some data via XML which I will process and then return some status codes for each node that was sent over. The problem is that Nginx will throw a 504…
sheats
  • 33,062
  • 15
  • 45
  • 44
213
votes
11 answers

How do I use Notepad++ (or other) with msysgit?

How do I use Notepad++ (or any other editor besides vim) with msysgit? I tried all of the following to no avail: git config --global core.editor C:\Program Files\Notepad++\notepad++.exe git config --global core.editor "C:\Program…
PHLAK
  • 22,023
  • 18
  • 49
  • 52
212
votes
13 answers

Where to install Android SDK on Mac OS X?

Where should the Android SDK be installed on Mac OS X?
Carl Manaster
  • 39,912
  • 17
  • 102
  • 155
211
votes
10 answers

Using different Web.config in development and production environment

I need to use different database connection strings and SMTP server addresses in my ASP.NET application, depending on where it is run, in development or production environment. The application reads settings from Web.config file via…
Alexander Prokofyev
  • 33,874
  • 33
  • 95
  • 118
210
votes
1 answer

ASP.NET web.config: configSource vs. file attributes

Within an web.config-file in an ASP.NET-application some sections of config, like appSettings and connectionStrings, supports the attributes file and configSource. What is the difference between using the file-attribute and the…
Seb Nilsson
  • 26,200
  • 30
  • 103
  • 130
199
votes
1 answer

Query a parameter (postgresql.conf setting) like "max_connections"

Does anyone know if it's even possible (and how, if yes) to query a database server setting in PostgreSQL (9.1)? I need to check the max_connections (maximum number of open db connections) setting.
Greg Kramida
  • 4,064
  • 5
  • 30
  • 46