configuration-files

Clean out Eclipse workspace metadata

戏子无情 提交于 2019-11-28 17:49:27
I use multiple workspaces with Eclipse. I recently noticed that some of my workspaces have a lot of cruft in them from software packages that I installed and then later removed. As far as I can tell, the situation is that many packages write stuff (sometimes a lot of stuff) to the .metadata folder for every workspace I open while the package was installed. When I removed a package, it seems to clean out the .metadata folder for the workspace that I happen to have open at the time, but all the other workspaces are left with orphaned metadata. Sometimes this metadata causes problems—often,

how to have custom attribute in ConfigurationElementCollection?

◇◆丶佛笑我妖孽 提交于 2019-11-28 17:10:52
问题 for configuration as following <MyCollection default="one"> <entry name="one" ... other attrubutes /> ... other entries </MyCollection> when implement a MyCollection, what should i do for the "default" attribute? 回答1: Let's suppose you have this .config file: <configuration> <configSections> <section name="mySection" type="ConsoleApplication1.MySection, ConsoleApplication1" /> // update type & assembly names accordingly </configSections> <mySection> <MyCollection default="one"> <entry name=

Where should I place my settings and profiles for use with IPython/Jupyter 4.0?

人走茶凉 提交于 2019-11-28 17:09:51
问题 I've recently updated IPython (to 4.0) and have started using Notebooks after a period of some time not using them (since before The Big Split, I think), and have discovered that some of my settings need to be modified and moved from ~/.ipython/ to ~/.jupyter/ . For example, it appears that the NotebookManager.notebook_dir in ~/.ipython/profile_default/ipython_notebook_config.py is ignored and has had its functionality replaced by FileContentsManager.root_dir in ~/.jupyter/jupyter_notebook

Android Config File

拜拜、爱过 提交于 2019-11-28 16:40:59
What is the best way and how to set up a config file for a application? I want the application to be able to look into a text file on the sd card and pick out certain information that it requires ? You can achieve this using shared preferences There is a very detailed guide on how to use Shared Preferences on the Google Android page https://developer.android.com/guide/topics/data/data-storage.html#pref If your application is going to be released to the public and if you have sensitive data in your config such as API keys or passwords I would suggest to use secure-preferences instead of

How do I find out which settings.xml file maven is using

和自甴很熟 提交于 2019-11-28 15:27:09
问题 I recently changed my password and have to change my maven settings.xml file to reflect that. However, no matter what I do in the settings.xml file, the changed password just won't get picked up. Out of desperation, I ran maven with the -s switch ( mvn -s <my intended settings.xml file> ) and everything just started working. It seems to suggest that maven by default is using a "wrong" settings.xml Is there a way for me to figure out where the settings.xml file that maven is using is located?

Is it .yaml or .yml?

半世苍凉 提交于 2019-11-28 15:15:20
According to yaml.org , the official file extension is .yaml . Quote: Is there an official extension for YAML files? Please use ".yaml" when possible. However there seems to be a disagreement on the internet on which extension to use. If you look up examples on the web , many of them use the unsanctioned .yml extension. Searching Google returns nearly 3 times as many results for the shorter one. 49,100 15,400 So which am I supposed to use? The proper 4 letter extension suggested by the creator, or the 3 letter extension found in the wild west of the internet? The nature and even existence of

How to handle configuration in Go [closed]

北慕城南 提交于 2019-11-28 14:56:44
I'm new at Go programming, and I'm wondering: what is the preferred way to handle configuration parameters for a Go program (the kind of stuff one might use properties files or ini files for, in other contexts)? nemo The JSON format worked for me quite well. The standard library offers methods to write the data structure indented, so it is quite readable. See also this golang-nuts thread . The benefits of JSON are that it is fairly simple to parse and human readable/editable while offering semantics for lists and mappings (which can become quite handy), which is not the case with many ini-type

How to handle large number of configuration parameters across a program conceptually? [closed]

六眼飞鱼酱① 提交于 2019-11-28 14:17:16
Imagine a software system where you have like 100 parameters, each of which is sensible to change (in my case this is a reasearch system for machine learning). The obvious solution is to store all parameters in a config file, so that the system is easy to handle and see through. Whis approach is better: a) load the config file at the entry point of the program and pass down a big collection of config variables through each method in the code b) load the config file at the entry point of the program and pass down the relevant collection of config variables through each method in the code c)

How do I globally configure RSpec to keep the '--color' and '--format specdoc' options turned on

人走茶凉 提交于 2019-11-28 13:49:03
问题 How do I set global configuration for RSpec in Ubuntu. Specifically so, --color and --format specdoc stay turned on, across all my projects (ie every time I run rspec anywhere). 回答1: As you can see in the docs here, the intended use is creating ~/.rspec and in it putting your options, such as --color . To quickly create an ~/.rspec file with the --color option, just run: echo '--color' >> ~/.rspec 回答2: One can also use a spec_helper.rb file in all projects. The file should include the

Parse config files, environment, and command-line arguments, to get a single collection of options

给你一囗甜甜゛ 提交于 2019-11-28 13:16:03
问题 Python's standard library has modules for configuration file parsing (configparser), environment variable reading (os.environ), and command-line argument parsing (argparse). I want to write a program that does all those, and also: Has a cascade of option values : default option values, overridden by config file options, overridden by environment variables, overridden by command-line options. Allows one or more configuration file locations specified on the command line with e.g. --config-file