configuration-files

IIS7: Possible causes of 'Unrecognized configuration path' error

拜拜、爱过 提交于 2019-12-04 23:34:46
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 Error Information: Module: IIS Web Core Notification: BeginRequest Handler: Not yet determined Error

Where is the configuration file for HDFS in Hadoop 2.2.0?

佐手、 提交于 2019-12-04 23:32:04
I'm studying Hadoop and currently I'm trying to set up an Hadoop 2.2.0 single node. I downloaded the latest distribution, uncompressed it, now I'm trying to set up the Hadoop Distributed File System (HDFS). Now, I'm trying to follow the Hadoop instructions available here but I'm quite lost. In the left bar you see there are references to the following files: core-default.xml hdfs-default.xml mapred-default.xml yarn-default.xml But how those files are ? I found /etc/hadoop/hdfs-site.xml, but it is empty! I found /share/doc/hadoop/hadoop-project-dist/hadoop-common/core-default.xml but it is just

Combining multiple config files in Visual Studio

放肆的年华 提交于 2019-12-04 19:25:36
问题 I have a solution in Visual Studio 2008 which contains multiple C# projects. Each project has it's own config file (App.config and Settings.settings). This makes sense architecturally as each module is autonomous and is used in a number of different solutions. My problem is that when I compile the solution only the config file for the startup project (or project containing the executable) is included. For other modules the config settings are compiled into the DLL. So my question is, is there

Hadoop Configuration Property Returns Null

跟風遠走 提交于 2019-12-04 18:37:27
I wrote a simple code to test how to set configuration in Hadoop. public static void main(String[] args) { Configuration conf = new Configuration(); conf.addResource("~/conf.xml"); System.out.println(conf); System.out.println(conf.get("color")); } The output of above program is: Configuration: core-default.xml, core-site.xml, ~/conf.xml null Thus conf.get("color") returns null . However, I have explicitly set that property in conf.xml as follows: <property> <name>color</name> <value>yellow</value> <description>Color</description> </property> The resource needs to be added as a URL, otherwise

Updating AppSettings via ASP.NET MVC Controller

≡放荡痞女 提交于 2019-12-04 17:41:53
问题 I'm writing a basic little forums web app (for fun and to sharpen the ole' saw), and I'm having a bit of trouble with AppSettings. My plan is to have these settings in their own file (Settings.config), to which I will grant modify permissions to the web process user account, and store all editable settings in this file (e.g. forum title, description, etc). This is my code: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Edit(FormCollection collection) { try { var config =

Is it possible to get a value from view.yml in an action

橙三吉。 提交于 2019-12-04 17:10:54
I'm wondering if it's possible to get the name of a stylesheet from view.yml in an action, ideally using something as simple as: sfConfig::get('......'); I'd like to access the existing declaration in view.yml instead of hardcoding it or duplicating it somewhere like app.yml. Thanks. If you want to access the current Module's Config, you can use: sfViewConfigHandler::getConfiguration(array(dirname(__DIR__) . '/config/view.yml')); It should return something like this: Array ( [indexSuccess] => Array ( [javascripts] => Array ( [0] => mission-control.js ) [stylesheets] => Array ( [0] => control

How can I edit files in a docker container when it's down/not-started

允我心安 提交于 2019-12-04 15:58:54
Use-case: I started some nice docker image and my container needs some playing around (configuration file changes for research). I edit a file (using sed or vim ;-) ) and then I stop the container and try to start it. Now I made a mistake in the configuration and the docker container does not come up when I do: docker restart <my-container-id/-name> How can I edit the configuration-file to fix the mistake? You can uses docker cp to copy files to/from a container, whether it's running or not, and whether it has volumes or not: > docker run --name temp alpine touch /file1.txt > docker ps

ConfigObj/ConfigParser vs. using YAML for Python settings file

妖精的绣舞 提交于 2019-12-04 15:37:41
问题 Which is better for creating a settings file for Python programs, the built-in module (ConfigParser) or the independent project (ConfigObj), or using the YAML data serialization format? I have heard that ConfigObj is easier to use than ConfigParser, even though it is not a built-in library. I have also read that PyYAML is easy to use, though YAML takes a bit of time to use. Ease of implementation aside, which is the best option for creating a settings/configuration file? 回答1: Using ConfigObj

MAMP MySQL not recognizing my.cnf values in OSX

爷,独闯天下 提交于 2019-12-04 14:33:48
Trying to go UTF8 permanently and can't get MAMP's install of MySQL to recognize my.cnf values. MAMP Version 2.0.5 (2.0.5) MySQL 5.5.9 my.cnf file: [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] default-character-set=utf8 default-collation=utf8_general_ci collation_server=utf8_general_ci character_set_server=utf8 init-connect='SET NAMES utf8' Location of file: /Applications/MAMP/Library/Conf/ MySQL varibles on startup: mysql> show variables where variable_name LIKE '%char%' OR variable_name LIKE '%colla%'; +--------------------------+---------------------------

Custom configuration in .NET

∥☆過路亽.° 提交于 2019-12-04 14:23:18
I am seeing simple examples regarding custom configuration in .NET. My case is a bit more complex, with nested nodes. I'd like to be able to read this from the configuration file: <environments> <environment name="live" url="http://www.live.com"> <server name="a" IP="192.168.1.10"></server> <server name="b" IP="192.168.1.20"></server> <server name="c" IP="192.168.1.30"></server> </environment> <environment name="dev" url="http://www.dev.com"> <server name="a" IP="192.168.1.10"></server> <server name="c" IP="192.168.1.30"></server> </environment> <environment name="test" url="http://www.test