Questions tagged [config]

Config files configure the initial settings for some computer programs

Configuration files, or config files configure the initial settings for some computer programs. They are used for user applications, server processes and operating system settings. They may be considered a simple database.

6120 questions
2
votes
1 answer

How to use variables from different class in NLog.Config?

I have a Class with a static field which holds a path. public static class PfadSammlung { public static string Path_Example = @"C:\temp"; } How could I use this path in the NLog.Config file to specify the file name for the target?
Mong Zhu
  • 23,309
  • 10
  • 44
  • 76
2
votes
3 answers

Create Addon Domains from PHP

I have a VPS (CentOS) with CPanel and Suphp enabled. Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.5 As a root I created an account and set up a domain for…
ealexnet
  • 31
  • 2
2
votes
2 answers

Symfony YAML format conversion

I have some service definition that looks like this: MyService: class: Some\Class\Here factory: - SomeFactoryHere - method calls: - [add, ["@=service('AnotherService1').create(service('AnotherService2'),…
Alex
  • 571
  • 1
  • 8
  • 26
2
votes
2 answers

Can't Use --login-path to Login on Mac

My MySQL version is 5.7.13 and Mac is 10.11.16. I tried to login to the database using MySQL Config Editor in terminal. I set up the client info and using below command to login. mysql --login-path=localuser Somehow, the terminal gave me this…
Bruce
  • 51
  • 4
2
votes
4 answers

Is it possible to put variables inside config files?

I use smarty to allow different languages on my site, which works OK so far. I store the texts in config files in different sections. But then there are sentences like this: "You have 6 new mails!", which would be in german "Sie haben 6 neue…
bastiandoeen
  • 608
  • 5
  • 10
2
votes
0 answers

Symfony 3 factory repository

Create a container in service.php $container->setDefinition('repository.access_token', new Definition(\Ftob\OauthServerApp\Repositories\AccessTokenRepository::class)) ->setFactory([new Reference('doctrine'), 'getRepository']) …
2
votes
2 answers

How do I redirect to a custom url with nginx?

I am trying to implement a simple custom redirect with nginx. Incoming request: http://localhost:8182/testredirect/?asd=456&aaa=ddd&trueurl=http://example.com/sdd?djdj=55 I would like to receive HTTP 302 redirect to http://example.com/sdd?djdj=55.…
baldr
  • 2,891
  • 11
  • 43
  • 61
2
votes
1 answer

Dynamic ConfigParser (Python)

I'm wondering if there is a way to deal with dynamic config files using Python's ConfigParser. By dynamic, I mean that the config file isn't fixed in structure. For example, I could have the config file below. [SectionA] FieldA1 = stringA1 FieldA2 =…
Rayne
  • 14,247
  • 16
  • 42
  • 59
2
votes
1 answer

how to link dramsim2 library interface with a PINtool

I want to use DRAMSim2 as library interface in a developing PINtool. I try to be familiar with dramsim_test.cpp that includes dramsim_test.h, that includes DRAMSim.h (in a specific directory). If i put these files in the directory of my PINtool an…
Orion Papadakis
  • 398
  • 1
  • 14
2
votes
2 answers

Where should I save simple configuration settings?

In my clojure Luminus/Compojure app I have this in routes.clj: (def page-size 12) (def images-path "/public/images/.....") I need to move them to a config of some sort. Where is the best place? I'd like something simple and not to use any…
Dett
  • 85
  • 1
  • 1
  • 5
2
votes
1 answer

mongodb error parsing yaml config file

I've got a problem with mongodb. After upgrade from 2.6 I had to change config file - here's the new one: storage: dbPath: "/var/lib/mongodb" engine: wiredTiger systemLog: destination: file path:…
Thomas
  • 741
  • 4
  • 9
  • 20
2
votes
2 answers

Reading datatype value from app.config

I have a generic method SampleMethod(param1, param2) and I need to call the method based on the config value. For example: SampleMethod(param1, param2); SampleMethod(param1, param2); On the method call, type should change on the config…
SteelBird82
  • 759
  • 3
  • 10
  • 23
2
votes
1 answer

Lumen 5.2 debug mode is not working

I have a problem with lumen's exception debug output. I have enabled debug mode, but it doesn't seem to work properly. My config/app.php:
Dmitry K.
  • 3,065
  • 2
  • 21
  • 32
2
votes
3 answers

Application settings reset when exe changes location

Hi I'm using the Visual Studio config files, however the settings change every time I move the exe. How can I fix this? app.config
Agronaut022
  • 79
  • 1
  • 7
2
votes
2 answers

how to use modules that are deps in rebar.config

I am new to rebar and erlang in general and read that we can use other modules by specifying them as deps in rebar.config file. I am able to compile them properly but not sure how to use them in my module. If I try to use them, I get an error that…
user3531196