configuration-files

What does 'yaml.parser.ParserError: expected '<document start>', but found '<block mapping start>'' mean?

巧了我就是萌 提交于 2020-01-02 02:03:09
问题 I have the following YAML file: [mysqld] user: "mysql" pid-file: /var/run/mysqld/mysqld.pid skip-external-locking old_passwords: 1 skip-bdb skip-innodb create_key: yes needs_agent: no knows_oop: True likes_emacs: TRUE women: - Mary Smith - Susan Williams and the following Python code: #!/usr/bin/env python import yaml with open("config.yml") as f: sample_config = f.read() print(yaml.load(sample_config)) But it gives me: Traceback (most recent call last): File "/home/moose/Desktop/bla.py",

Spring : Exception starting filter springSecurityFilterChain

南楼画角 提交于 2020-01-02 01:36:06
问题 I am trying to write an application using Spring 3.1.2-Release . App server is Tomcat 7 . When I start the server I get this error : SEVERE: Exception starting filter springSecurityFilterChain org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:553) at org.springframework.beans.factory.support

IIS7: Possible causes of 'Unrecognized configuration path' error

半城伤御伤魂 提交于 2020-01-02 00:53:11
问题 After setting up an ASP.NET website in IIS7 I get an Internal Server Error (500.19) that says: 'Unrecognized configuration path'. What are possible causes of this error? (Setting up other ASP.NET websites works OK, but for a particular website it does not work and I cannot figure out the difference.) Detailed error description: Error Summary: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed

Why there's no configuration file at all for dependency injection with Google Guice?

删除回忆录丶 提交于 2020-01-01 08:24:12
问题 I am checking out Google Guice as DI framework but I am a bit puzzled: why there's no configuration file at all? I found a partial explanation on this question but it is still not clear how I would be able to set my component roles (or any other thing I need to use a switch) without a config file. Any help appreciated! 回答1: The configuration is in the code instead of config files, which is a valid decision for many scenarios. Yes, it means that you have to rebuild (possibly just the modules)

Reading custom configuration section's key values in C#

烂漫一生 提交于 2020-01-01 05:27:11
问题 I need to read key values from custom sections in app/web.config. I went through Reading a key from the Web.Config using ConfigurationManager and How can I retrieve list of custom configuration sections in the .config file using C#? However, they do not specify how to read a custom section when we need to explicitly specify the path to the configuration file (in my case, the configuration file is not in it's default location) Example of my web.config file: <?xml version="1.0" encoding="utf-8"

Simple linux command line command to modify an option in a INI like config file

浪尽此生 提交于 2020-01-01 05:26:19
问题 I am looking for a generic command line solution that would allow me to add or modify a configuration option inside a config file (ini like format). Most linux configuration files use a INI like format, with # and ; as comment and with option=value. Mainly I am looking for something that would take filename, option and value, and that will change the config to match this. I want to use this to write some auto-deployment scripts. I have no problem on using tools that are not installed by

PHP mail() on Windows: no errors, the email isn't sent

偶尔善良 提交于 2020-01-01 05:26:07
问题 I'm currently trying to debug an Elgg-based website (I didn't develop it) and I would like to send the emails directly from local development machine (WinXP). I'm running WAMP with Apache 2.2.11 and PHP 5.3.0 After some searching, the simplest solution that I've come across is using fake sendmail to forward it to my GMail/Google apps account via SMTP and let it do the sending. The problem is that I get no errors whatsoever, but the email isn't being sent. Here's what I did: Copied the

Array like data structure in bash (config file)?

喜欢而已 提交于 2020-01-01 03:18:12
问题 I've written a bash script, which process multiple files. I now want to add support for a config file. This is my wanted data structure: Array ( [0] => Array ( [name] => datset1 [path] => /var/lib/bliTool/ds1 [type] => cvs ) [1] => Array ( [name] => datset2 [path] => /var/lib/bliTool/ds2 [type] => xml ) [2] => Array ( [name] => datset3 [path] => /home/igor/test/ds3 [type] => cvs ) ) Q1 Is such a data structure possible within bash? Are there other recommendations? Remember, this should be in

Two different providers on the same config file

只愿长相守 提交于 2020-01-01 03:17:25
问题 Im using EntityFramework 6.1.0 I have 2 providers . MysqlClient and SQLServerCE, and i need to create 2 different DBContext. That forced me to create 2 configuration classes because mysql have some different things. But when i initialize the application, the Database.DefaultConnectionFactory is from the defaultConnectionFactory(config file) , and i cant specify what provider to take on the daterminated Context. How to do it? My config file: <entityFramework> <defaultConnectionFactory type=

Where do you put your app-config-files when deploying rails with capistrano and svn

浪尽此生 提交于 2020-01-01 03:04:30
问题 I have two config-files /app/config/database.yml and /app/config/userconfig.yml i don't want to put the database credentials and userconfig in the svn-repository, so i have database.yml.dist and userconfig.yml.dist checked in. What is the best way to get copys of the dist-files in the shared-directory when deploying the app for the first time? For later deploys i'll link to them from /app/current/config 回答1: You should place your config files in /path/to/deployed_app/shared Then in a