FAQ Database Discussion Community


VS 2013 Config File Missing in Azure Cloud Service

azure,visual-studio-2013,configuration-files,azure-cloud-services
I have created an Azure Cloud Service (call it A) in Visual Studio 2013, using Azure SDK v2.6. The cloud service has a single role from project B, project B references project C, and project C references project D. Project D includes a content file called D.dll.config. I have verified...

Writing to .config files

asp.net-mvc,web-config,configuration-files,nlog
I am having an issue somewhat similar to this question: C#: Config file error BACKGROUND My situation is this: I am using NLog and I have setup a Database target. My app shows an installation page on first run from which I build a connection string for other purposes but...

OSX tmux configuration session open file in vim automatically

osx,session,vim,configuration-files,tmux
So I have tmux and vim running in iterm2 on OSX. I have a tmux.conf file that sources a session in ~/.tmux/ called 'left'. I have successfully loaded this session with three panes. Two panes in a left column and a single pane on the right. I have also managed...

Tree configuration to turn on/off the features in java

java,configuration,configuration-files
I have many features in Tree format and want to control the using configuration. Assume below tree, each node is one feature A --- root A1 & A2 --- are child of A A1a, A1b and A1c --- are child of A1 A2a, A2b and A2c --- are child of...

Which is the correct way to define the output path in a C# project

c#,.net,visual-studio,configuration-files
Recently i had to change my csproj files for some C# projects. I noticed that in same the output path for debug or release was set something like: <OutputPath>Bin/Release</OutputPath> <OutputPath>Bin/Degug</OutputPath> Usually i set these paths (how i also noticed that the Visual Studio is adding by default this paths) using...

Python root logger messages not being logged via handler configured with fileConfig

python,python-2.7,logging,configuration-files
The Problem: Given a logging config and a logger that employs that config, I see log messages from the script in which the log handler is configured, but not from the root logger, to which the same handler is assigned. Details: (Using Python 2.7) I have a module my_mod which...

Unrecognised Element “Processor” - Custom Config Section

c#,app-config,configuration-files
Trying to add a custom config section following another post on here, but am getting the error: An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll Additional information: Unrecognized element 'Processor'. on this line: return (ProcessorsConfig)ConfigurationManager.GetSection("Processors") ?? new ProcessorsConfig(); here is my code: public class ProcessorsConfig : ConfigurationSection { public...

Group nodes in hiera by hiera-defined fact

puppet,configuration-files,hiera
I have a hierachy like this: - "nodes/%{::certname}" - (what's here is my question) - common I'd like to assign a group to my nodes in their individual configuration in hiera, like this in nodes/hostname.yaml : --- group: alpha Now, I'd like to have a file alpha.yaml, where I state...

It's possible change a settings.settings file without recompiling in .NET?

.net,dll,configuration,configuration-files,application-settings
SCENARIO: A junior development team deployed a WCF service in production that is using a reference to a project (in the same solution) that is compiled as DLL. This DLL has an application settings file with the following configuration: And the code of the settings file is: <?xml version='1.0' encoding='utf-8'?>...

pg_config shows 9.4 instead of 9.3

postgresql,configuration,configuration-files,configure
I am using Postgres 9.3, however my pg_config points at 9.4, preventing me from building extensions (pgTap). $ sudo aptitude search postgresql | grep ^i i postgresql-9.3 - object-relational SQL database, version 9. i postgresql-client-9.3 - front-end programs for PostgreSQL 9.3 i A postgresql-client-common - manager for multiple PostgreSQL client...

How to Configure a SPARQL Endpoint in dotNetRDF?

configuration-files,dotnetrdf
I am trying to specify a configuration file that sets up a SPARQL endpoint in dotNetRDF. Before integrating it in an application, I am testing the configuration file by loading it to run a local server in the rdfServer GUI tool and then trying to access that server from the...

Karaf OSGI blueprint cm:property-placeholder dows not load from cfg file

osgi,configuration-files,karaf,blueprint
my blueprint contains: <cm:property-placeholder persistent-id="pool-service" update-strategy="reload"> <cm:default-properties> <cm:property name="maxTotalPerKey" value="2" /> </cm:default-properties> </cm:property-placeholder> I placed etc/pool-service.cfg containing maxTotalPerKey=3 when I deploy jar, it picks value 2. If I comment cm:default-properties, it fails with number format exception, so cfg is not read. Is there anything I am missing (maven dependency, import,...

Where is the LANGUAGE environment variable set?

linux,environment-variables,locale,configuration-files,archlinux
I'm using zsh on my archlinux. My LANGUAGE environment variable was set to fr but I wanted to set it back to en_US.UTF-8 so I did it in my ~/.zshrc file. But was it the best place to set it? Isn't it dirty? This works but only for my user's...

Pythonic way to set module-wide settings from external file

python,config,configuration-files
Some background (not mandatory, but might be nice to know): I am writing a Python command-line module which is a wrapper around latexdiff. It basically replaces all \cite{ref1, ref2, ...} commands in LaTeX files with written-out and properly formatted references before passing the files to latexdiff, so that latexdiff will...

where to put Entity Framework configuration strings in a WebAPI application

entity-framework,asp.net-web-api,connection-string,configuration-files
I have started a WebAPI application using VS empty application template. First, I have added the WebAPI service functionality - no issues. Now, I need to add Entity Framework functionality, and I'm facing the following issue: I do not have an App.config file in my application. Where can I put...

Handle config files in Python

python,configuration-files
I'm playing with Python to develop a simple app focused on text processing. For this to work, I need the user to add some info and configure a buch of variables (if needed). So I was thinking in having a config file. I've been reading a lot about it (ini...

PHP GoDaddy maximun execution time not working

php,configuration-files
The default maximun_execution_time is 120 seconds. I have followed all instructions to create php.ini file and placed in correct location public_html. I ran phpinfo() and found that the maximun_execution_time has successfully adjusted to 600 seconds. But the problem is it still not able to execute the script which more than...

VS.NET application - Release vs Debug app.config file

.net,visual-studio-2013,configuration,build-process,configuration-files
Is it possible to set up my build process so that if I build for release (and publish with Clickonce) then the appRelease.config config file would be used with the production database and other settings instead of the debug one? This would avoid me having to alter these settings in...

What is the name of this style of configuration file?

configuration-files
What is the name of this type of configuration file, where sections are noted in square brackets and parameters are specfied with name/value pairs? [section1] n = 1 [section2] s = foo ...

Get a value from a config file (/etc/network/interfaces) for an init.d script

bash,configuration-files
I want to get the network address (192.168.42.) from my /etc/network/interfaces file. I am only interested for the interface "wlan0" and it would be good to have a check whether the section below exists. In the example interfaces file of "wlan0" the IP adress is 192.168.42.1. For the init.d script...

Spring Boot - add external property files

java,spring-mvc,spring-boot,configuration-files
I have simple MVC application in SpringBoot, created using java-config (I don't have web.xml). That application have DB connection based on JPA. Until now, all was great, but now I must move db.properties from inside of WAR to location specified by OS variable ("CONFIG_LOCATION"). In spring doc is written about...

Use variables of main Python script in a config file

python,variables,import,configuration-files
I want to use a configuration file in the middle of my main Python script. In this file, there are variables already initialized in the main script. Main script: # -*- coding: utf-8 -*- import imp import optparse from time import strftime, strptime from datetime import date, timedelta [...] date_mois...

How to load Name Value property using @ConfigurationProperties in Spring

java,spring,configuration-files
My property file has a content as follows config.entry[0]=X-FRAME-OPTIONS,SAMEORIGIN config.entry[1]=Content-Security-Policy,Frame-Ancestors 'self' I want this to be loaded to a config class where i can have the comma seperated values loaded as Key,Value pairs in a collection. How can this be achieved using @ConfigurationProperties in Spring 3 ? Entries = config.getEntry()...

Credentials profile file not being recognized by AWS SDK

php,laravel-5,configuration-files,aws-sdk
I am recieving empty objects for key/secret while using AWS credentials files [credentials:protected] => Aws\Common\Credentials\Credentials Object ( [key:protected] => [secret:protected] => [token:protected] => [ttd:protected] => 1 ) As well as [service] => sqs [base_url] => https://sqs.us-east-1.amazonaws.com [key] => [secret] => [token] => [token.ttd] => [credentials.cache] => [credentials.cache.key] => [credentials.client] =>...

Safe general config file for webapp

php,web,configuration-files
I would like to keep all config options for a webapp in one file. (pathes, passwords, options which are read by php, sass (during compilation), maybe grunt,..) I like the JSON format since its very clear and almost anything can parse json. But by default .json files can be downloaded....

Unison fails to backup hidden dotfiles

linux,configuration-files,unison
I am using unison (a file synchronization tool) to sync files between my linux machine (client) and a linux ssh server (host). It will synchronize dotfiles (config files that start with .) fine, but it doesn't create backups of them at all. Is this a bug, or am I missing...

python RawConfigParser

python,class,configuration-files,configparser
I'm using the RawConfigParser to read and update an ini style configuration file. This works all without problems in the standard configuration. My problem is that I'm reading different config files in the same script. Without going too much into detail, when I read the second config file its values...

Python: Parsing INI-style configuration files?

python,configuration-files
How can I parse an INI-style configuration file using Python? Is there a standard module that can be used? [section1] n = 1 [section2] s = foo Ideally I would get a two-level dictionary like this: >>> config {'section2': {'s': 'foo'}, 'section1': {'n': '1'}} ...