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
8
votes
3 answers

Common strategies when defining Spring beans for different environments

What are common strategies for defining a bunch of beans, which are used differently in development and production environments? Let's say I have 2 beans, each implementing the same interface. One bean serves as abstraction for local filesystem, the…
Juraj Blahunka
  • 17,913
  • 6
  • 34
  • 52
8
votes
5 answers

Best/easiest way to parse configuration parameters in Sh/Bash and php

I got in every php project (around 25!), some sh scripts that help me with routine tasks such as deployment, repo syncronizing, databases exporting/export, etc. The sh scripts are the same for all the projects I manage, so there must be a…
Guillermo
  • 927
  • 3
  • 10
  • 23
8
votes
2 answers

http_parse_headers with PECL_HTTP

I wanted to use http_parse_headers So, I've installed dependency pecl_http(2.4.3/2.2.5) and call http_parse_headers function with no success. function_exists() always fails is there anything that I'm missing here? I'm using CentOS 6.7…
Muaaz Khalid
  • 2,199
  • 2
  • 28
  • 51
8
votes
1 answer

Rails disable JSON parsing of POST/PUT/PATCH body

I want to take a large JSON PUT request and process it entirely in the background with Sidekiq. As such, I do not want to automatically parse the incoming JSON from the request's body. Whats the best practice for accomplishing this on a…
mikeycgto
  • 3,368
  • 3
  • 36
  • 47
8
votes
1 answer

PHPUnit: Multiple Bootstraps or XML files?

I have a PHP MVC framework with multiple 'applications' under this system the organization goes \project\apps\app1\ \project\apps\app2\ \project\apps\shared\ Each application can have it's own set of…
Alex C
  • 16,624
  • 18
  • 66
  • 98
8
votes
6 answers

purpose of ConnectionString element in .NET .config files

What is the difference between storing and reading your application's connection string in the and sections of web.config?
8
votes
4 answers

Automatically add namespace when adding new item

When adding a new item (class, control, etc) in C# it will automatically add a namespace to the file depending on the location in the project. Is this also available for VB.NET? The code 'Namespace DataClasses.AX' and 'End Namespace' would be…
Ralf de Kleine
  • 11,464
  • 5
  • 45
  • 87
8
votes
7 answers

$settings array or Config Class to store project settings?

How should I store settings for project? Which is better - to use a $settings array with all my settings: $settings['max_photos'] = 30; //... or create a singleton Config class with all the settings in it? Class Config { private $max_photos =…
ideea
  • 353
  • 1
  • 3
  • 10
8
votes
4 answers

Changing connection string at runtime in Enterprise Library

Is there a way to change the connection string of a DataBase object in Enterprise Library at runtime? I've found this link but its a little bit outdated (2005) I've also found this but it seems to apply to .Net in general, I was wondering if there…
Gustavo Rubio
  • 10,209
  • 8
  • 39
  • 57
8
votes
1 answer

How to move location of Atomikos's tm.out and *.epoch files?

I'm running a J2SE application that uses Atomikos which dumps it's numerous log files to the current directory. I'd like to move the location of these files to "/tmp", but I cannot locate a configuration property that I can set from within my…
Dave
  • 21,524
  • 28
  • 141
  • 221
8
votes
2 answers

(How) does PHP cache script and custom INI-files?

Currently I'm storing the configuration for my PHP scripts in variables and constants within another PHP script (e.g. config.php). So each time a script is called, it includes the configuration script to gain access to the values of the…
Edward
  • 4,453
  • 8
  • 44
  • 82
8
votes
6 answers

CS0122: 'System.Configuration.StringUtil' is inaccessible due to its protection level

i am currently doing a school project whereby i can allow students and teachers to search for intership jobs. I am trying to get to the ASP.Net Configuration to add users and roles but i got this error. - Server Error in '/asp.netwebadminfiles'…
X-men
  • 121
  • 1
  • 2
  • 8
8
votes
1 answer

Spring - replace @Service bean in test

In my spring boot application I have a service bean (with @Service annotation) and I want to mock this service in particular JUnit test (not in all tests). How can I replace this service bean for just one particular test? Service declared…
komo
  • 249
  • 4
  • 10
8
votes
2 answers

TortoiseHg can't commit--"The system cannot find the file specified"

I just picked up TortoiseHg to use for distributed source control on Windows and installed it on my C drive. Then I created a repository (located in D:\projects). When I try to commit the changes, it gives me the error "abort: None: The system…
31eee384
  • 2,748
  • 2
  • 18
  • 27
8
votes
1 answer

Neo4j Database gets locked up if Transaction is not closed

I am getting this issue from long time. If Neo4j transaction is not closed properly (committed or rollback) (This can happen because of Exceptions, Or die/exit in the middle of transaction, etc), then Neo4j doesn't release lock. For resolving that…
Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226
1 2 3
99
100