configuration

Reading EntLib 4.1 configuration from an in-memory XML string

Hi all again, I'd like to use the EntLib 4.1 in my current project, specifically Unity 1.2 and the VAB. My application is an SaaS application, so as a result, I've made a decision to store tenant-specific configuration files in the database, to be loaded on tenant sign-in. These files include the VAB config and Unity config, as well as ...

How can I change the unit tests that are run for a particular build configuration?

We have a Visual Studio 2008 solution with a large number of projects in it. For the current product, only some of those projects are being used. We've created a build configuration for that product so we don't have to build every project in the solution. I want to be able to easily run all the unit tests that are relevant for this bu...

How is the Git config evaluated when commit-ing?

I'm setting up My First Git Repo, and on running; git config --list I've noticed I've got multiple entries for certain config values; core.autocrlf=input [...] core.autocrlf=false I'm guessing these values are doubled up because they appear in more than one of the various config files (system, global, file). My question is, which o...

How can I get back my privilege to create a new database in MySQL?

I can not use MySQL. MySQL is on my local computer. Currently I added skip-grant-tables in My.ini so I can use MySQL. But I have no privilege to create a new database. My problem is tough, although I asked related questions on SO, but no answer can resolve my problem. I almost give up. So I lower my expectation. I am developing a website...

Seam IdentityManager doesn't persist entitties (project configuration issue)

Hi. I have a seam-gen generated project which was developed for a month. After some modifications IdentityManager.createUser, IdentityManager.createRole, IdentityManager.grantRole functions stop saving modifications in the database. I've spent more then a week for this issue investigation and now I completely have no idea what is wrong...

Taking baby-steps in applying a better design

In wanting to get some hands-on experience of good OO design I've decided to try to apply separation of concerns on a legacy app. I decided that I wasn't comfortable with these calls being scattered all over the code base. ConfigurationManager.AppSettings["key"] While I've already tackled this before by writing a helper class to enca...

Compact Framework Configuration Encryption

I have a compact framework 3.5 application that is making a call to a webservice. On a desktop application I would normally just encrypt these and store the encryption keys in the application. However, I'm more concerned about security since this is on a handheld that may walk off. What is the standard practice for encrypting configur...

phpUnit config options

what do the following options mean or whats it for <log type="coverage-html" target="./log/report" charset="UTF-8" yui="true" highlight="true" lowUpperBound="50" highLowerBound="80"/> yui: i guess it means use stuff from yahoo ui to make it look good? highlight: maybe have some colors? lowUpperBound, highLowerbound: whats these? ...

Log4net - log parts of code, used in a couple of methods

Hi. I have some trouble. My application could be divided to 3 logical parts (import, processing and export). There are some parts of code which are used in several parts of my application. How can I determine which part of code called my log4net object? What is best practice to log info in parts of code which are called from several pla...

Setting trust level in Sharepoint without changing web.config

I want to change the trust level of a Sharepoint Web Application without having to change the web.config manually (i.e. WSS_Minimum, WSS_Custom, etc). Making manual changes to the web.config tag is highly undesirable in anything other than a one-server farm. Is there any way via stsadm or Central Admin to change this? Third party tools...

Hibernate Configuration Xml

Hi. I am developing a java web application using hibernate as ORM. Is it possible to merge Hibernate.cfg.xml with the applicaion-config.xml? ...

How to configure cache for static resources in web.xml for Jetty?

I was reading this: http://docs.codehaus.org/display/JETTY/LastModifiedCacheControl It says "The Jetty default servlet allows the cache control header to be set for static content by using the cacheControl init parameter using <init-param> <param-name>cacheControl</param-name> <param-value>max-age=3600,public</param-value> </init-par...

Completely remove configuration from root in Asp.net

In ASP.Net, if we create application from directory, the configuration from root will be inherited to its children application. www.mywebsite.com | |-- [blog] |-- [forum] |-- [others] so I created these blog, forum application but I don't want configuration from www.mywebsite.com/web.config inherited to blog & forum. I know i ca...

Is there a way to force a new line after php closing tag ?> when embedded among html??

I have been searching online with little success for a way to force php to output a newline after a closing php tag ?> so that my HTML will be rendered as I see it before its parsed by PHP so that it will look neat and tidy when viewing the html source code for a page. I want to stop it from removing the newline and causing the next lin...

Share WCF settings between service and client

Can WCF sevice and client share the same settings (from the same config file) about bindings, etc.., whatever is in? In other words, can I write a single bindings section and put in anything and be sure that it is good for service and client? I'll explain better. I have a config file like this: <services> <service name="TestClass1"...

modifying Rails load paths in the Rails::Configuration block

I'm trying to figure out how to have Rails NOT load the root models and controllers at app/models and app/controllers at boot. I've tried setting config.load_paths (with config being the Rails::Configuration instance) to both an empty array and nil, but those paths still show up within $LOAD_PATH. Am I missing something here, or is wha...

Custom configuration issue (c#)

Hi everybody, I'm woking on a project that requires to extend ConfigurationSection for every configuration object. Configuration information is stored into the database and it can be overriden by custom local configuration. It's the opposite order as I mentioned (local values are merged to database info, proritizing database). Classed ...

ConfigurationManager.AppSettings["SettingName"] vs Properties.Settings.Default.SettingName when should I use each?

What should dictate when I should use the configurationManager.AppSettings or the strongly typed settings that visual studio generates? The strongly typed ones seem much more appropriate in most cases, but I suppose that it would be possible to add settings dynamically to a deployed application using the ConfigurationManager approach, b...

How to read ruby on rails config values from within the application controller

If i have a configuration file like this # config/environments/integration.rb config.action_controller.session = { :domain => ".example.com" } How do Ii get the value from within my application controller, e.g: # app/controller/application_controller class ApplicationController < Mcc::CoreSupport::FrontendController def some_meth...

Retain quotation marks in Zend .ini config

Hi, I am building a website and I require quotation marks in a configuration value. Example: convert_arg = -resize "1000x1000>" -strip -trim +repage -density 72x72 -sampling-factor 4:2:0 -quality 70 This particular configuration item is the command-line arguments to call Imagemagick's convert utility. The quotation marks tell the co...