configuration-files

Using config files written in Python [closed]

柔情痞子 提交于 2019-12-06 01:15:23
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I've noticed a few Python packages that use config files written in Python. Apart from the obvious privilege escalation, what are the pros and cons of this approach? Is there much of a precedence for this? Are there any guides as to the best way to implement this? Just to

Managing web.config files

大城市里の小女人 提交于 2019-12-06 01:01:06
问题 I have 3 environments: Dev, QA, Prod on .NET 4. Each has a unique web.config file. We have been having problems managing all three versions. Its easy to overlook something critical when manually merging web.config files in TFS. More than once we have ended up with a connection string pointing to QA on Prod. So, I read up on web.config transformations. These appear to require MSBUILD. We have no build server so I'm not sure how I can attempt to use this solution. Is there a way to make

Ultra-portable, small complex config file library in ANSI C?

随声附和 提交于 2019-12-06 00:19:48
问题 I'm looking for a very portable, minimalistic/small XML/configuration language library in ANSI C with no external dependencies (or very few), compiling down to less than 100K. I need it for a moderately complex configuration file, and it must support Unicode. Some more requirements: OK to use/embed/statically link into proprietary code . Credit will always will be given where credit is due. Not necessarily XML. Really, clean code /no weird or inconsistent string handling. UTF-8 . Thank you

loading multiple properties with config-server

浪子不回头ぞ 提交于 2019-12-06 00:02:30
I have successfully tested loading properties from SVN repository, currently in my config server i have provided the URI and default-label: trunk and i have application specific property under trunk . below is the contents of my consuming application's application.yml and able to pull the properties successfully spring: application: name: foo-development cloud: config: uri: http://localhost:${config.port:8888} now i have a shared property in different folder thats shared across other applications as well, so how do i load this into my application along with my application specific You can

What generates the In/Out CellLabels in Mathematica and how can I add automatic Timing to them?

筅森魡賤 提交于 2019-12-05 23:29:30
问题 When Mathematica evaluates a cell, it gives the Input cell and Output cell the CellLabels In[$Line]:= and Out[$Line]= where $Line is a counter that gets incremented on each evaluated input. If you input something like TraditionalForm[expr] or TeXForm[expr] (or any other *Form from $OutputForms ) then the name of the form also gets added to the Output cell's label. eg Out[1]//TraditionalForm= . I can't find any way of customising these labels. They can be disabled in the Preferences dialog.

Getting a list from a config file with ConfigParser

♀尐吖头ヾ 提交于 2019-12-05 18:52:08
问题 I have something like this in my config file (a config option that contains a list of strings): [filters] filtersToCheck = ['foo', '192.168.1.2', 'barbaz'] Is there a more elegant (built-in) way to get a list from filtersToCheck instead of removing the brackets, single-quotes, spaces and then using split() to do that? Maybe a different module? (Using python3.) 回答1: You cannot use the python object like a list in the value for the config file. But you can ofcourse have them as comma separated

Config files vs database tables

*爱你&永不变心* 提交于 2019-12-05 18:37:42
问题 The scenario I am particularly interested is multiple servers having daemons that run on certain configuration parameters. (since, this is a learning exercise. i welcome any thought beyond this particular case) The question is, where should the configuration parameters sit. A. a central database table B. a config file pushed to each of the boxes These are the most common I've come across. The notable others being, in code constants (needs recompile to deploy. so bad option unless they really

Log4j2 - how to convert XML configuration to .properties format for JDBC appender

余生颓废 提交于 2019-12-05 18:23:19
How do I convert this log4j2.xml config fragment to log4j2.properties format? I cannot use XML format in my maven + netbeans project as I simply cannot get log4j2 to parse and respond to a log4j2.xml file - no matter where I place it in my project, it is ignored by log4j2. However log4j2.properties in main/resource IS parsed and responded to so I -HAVE- to use .properties...: <JDBC name="databaseAppender" tableName="LOGGING.APPLICATION_LOG"> <ConnectionFactory class="log4j_tutorial.ConnectionFactory" method="getDatabaseConnection" /> <Column name="EVENT_DATE" isEventTimestamp="true" /> <Column

Autoload Config for Pagination in CodeIgniter not working

♀尐吖头ヾ 提交于 2019-12-05 16:46:42
I am trying to implement pagination in my CI webapp. Now I put the config for pagination inside a config file like this... <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $config['base_url'] = "http://example.com/index.php/home/index"; $config['num_links'] = "9"; $config['per_page'] = "20"; $config['total_rows'] = "200"; /* End of file pagination.php */ /* Location: ./system/application/config/pagination.php */ In my controller, I have loaded the library $this->load->library("pagination"); And I have defined the pagination config file to be autoload in config

Initializing user.config or app.exe.config during install

。_饼干妹妹 提交于 2019-12-05 15:46:53
问题 I am developing a .NET WinForms application which relies on user.config to store various useful settings such as intranet web service URLs. We would like to make it possible to import custom initial settings as part of the installation. The use case for this is if a company has 100 machines they want to install the software on, and they should all have a reference to the intranet web service in question, this should not need to be set up manually on all the machines. We are currently using a