configuration

Problem with runnig NUnit tests under STA

I have some NUnit test cases which need to be ran under STA model. As discussed in many web sites or blogs (for example here), I added a configuration file ("app.conig") to my NUnit test assembly with the following contents. <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="NUnit"> ...

.NET Property Grid - setting Browsable (bool) using App.config

Hello I would like to be able to set the visibility of a property on my property grid using App.config. I have tried : [Browsable(bool.Parse(Sytem.Configuration.ConfigurationSettings.AppSettings["testBool"]))] However Visual Studio 2008 would give me an error "An attribute argument must be a constant expression, typeof expression or a...

Configuration Error on custom config section -- could not find the file specified?

Hi -- This has worked fine locally for months and just broke on deployment to the server (discountasp). I'm developing with .net 3.5 and asp.net mvc. I've previously successfully hosted asp.net mvc applications on this same account (but without the config section). I have a custom config section set up in my web.config file that's caus...

How can I change PHP ini settings from within a shell script?

How can I set ini settings within a PHP script? php.ini isn't being read and ini_set doesn't work. Test File: #!usr/local/bin/php -q <?php // display_errors is set to false in /etc/php.ini // This shouldn't display any errors $test = $foo; // We can also try ini_set('display_errors', false); // This definitely shouldn't display an...

Configure Equinox to modify the management of the "local bundle cache"

Relating to a previous question, how let OSGi to reuse your configuration via Config Admin, I am still trying to solve this problem in the Equinox Framework. Pavol Juhos wrote: Equinox Config Admin (org.eclipse.equinox.cm) stores the configuration data in the persistent storage area provided by the Framework. And that happens to be ...

python2.5 says platform dependent libraries not found.

Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Python 2.5.2 (r252:60911, Aug 8 2009, 17:18:03) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> import operator Traceback (most rece...

Maven configuration of dependency (jar)

Hi I have a java application "app" which has a dependency of "dep.jar". "dep.jar" has a configuration file - "conf.properties" which is copied and packaged into dep.jar. The problem is that during running of "app", "conf.properties" cannot be found. how should I specify the path to "conf.properties" (in the code of "dep.jar") so that i...

vim + iterm: how to use mouse for everything EXCEPT selection?

Ok, have a very specific setup question. I'm using Mac OS X, iTerm, and vim. I really like using my mouse for clicking tabs in normal mode, scrolling in normal mode etc. (e.g. I already have the mouse working within iTerm/vim). However, I dislike using visual mode for selecting. I just want to use OS X selection not vim's visual select...

BUG: IIS7 managed requests

(I don't know whether should I also post this question to ServerFault, since it's about IIS configuration?) In IIS7 we can tell a module to run for managed content (thus speeding up static content serving) by: <modules> ... <add name="WhateverName" type="WhateverType" preCondition="managedHandler" ... </modules>...

log4net: using more than one log level with the same appender configuration

Hello everyone! A couple of weeks ago I've discovered log4net and I couldn't be happier with my initial results. So far I've been using the factory settings (BasicConfigurator.Configure()), but now I feel like going a step further and trying some customized configurations. I've wrestled my way to make the application read the configura...

create ini file, write values in PHP

I cannot find a way that easily lets me create a new file, treat it as an ini file (not php.ini or simiilar... a separate ini file for per user), and create/delete values using PHP. PHP seems to offer no easy way to create an ini file and read/write/delete values. So far, it's all just "read" - nothing about creating entries or manipulat...

Backup configuration of Hudson Master systems

I need Backup configuration of Hudson Master systems Detailed information If a Hudson Master system goes down, we need to be able to bring it back up on a different VM as soon as possible (may be 3 hours). Therefore, I need to develop a way to backup the configuration and resetup a new VM reliabily. can any body let me know best way s...

Binding to ConfigurationSection

I just converted all my settings from AppSettings to ConfigurationSections. It definitely cleaned things up, but I'm having difficulties with the preferences window. I want to use bindings in my WPF window. Should I store each of the ConfigurationSections in a dependency property and bind to the ConfigurationSection's properties? Sh...

How can I configure Hibernate to use SSL to talk to the DB server?

I have an existing java webapp that uses Hibernate for it's persistence. I've been told that I have to have to talk to the DB encrypted - so my first thought is to set it up to do the communication via SSL - and went through figured out how to set up Oracle to listen for JDBC over SSL - http://www.oracle.com/technology/tech/java/sqlj_...

JSP files won't compile - JSPTranslator.CouldNotLoadClass

I have 6 JSP applications running on a Windows Server 2003 box with JRun 4 with Updater 7 and the Java 1.6.0_14. All of my applications are working just fine except for 1 of them and any new ones I create in JRun. I just cannot find where the difference in configuration or permissions is. Whenever I attempt to access a JSP file on the...

Windows XP Pro Service runs using User logon, not using Local System

I wrote a Windows Service using VS 2005 and C# on WinXP Pro SP3. It starts another program which runs to completion and then exits. The service is installed using installutil and serviceInstaller. It is built release and put into the C:\Program Files\MyService directory. The serviceProcessInstaller Account is set to LocalSystem in it's...

Custom xml de/serialization in ConfigurationSection (like using IConfigurationSectionHandler)

I would like to use my own custom XML format in my Web.config. In .Net 1.1 I was using IConfigurationSectionHandler combined with XmlSerializer. Because IConfigurationSectionHandler is depreciated, I want to do the same with ConfigurationSection. I tried it like this: protected override void DeserializeSection(System.Xml.XmlReader r...

Converting programmatic configuration of WCF service to config file

I have written a simple WCF web service which is configured programmaticaly. It exposes three endpoints which bind different bindings to the same contract: WebHttpBinding WebHttpRelayBinding (over Microsoft azure) myBinding (self-made binding in an additional DLL) The configuration code is pretty straight-forward at the moment: WebS...

.NET ConfigurationManager app.config confusion.

I've got an app.config file, which contains the following <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name ="PowershellSnapIns" type ="System.Configuration.DictionarySectionHandler,System"/> </configSections> <PowershellSnapIns> <add key="SnapIn1" value="WebAdministration" /> ...

Getting a Reflector error Assembly Not Found when installing CruiseControl.NET

I see an entry in ccnet.exe.config <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="NetReflector" publicKeyToken="2f4dd8b32acbcd8e" culture="neutral" /> <bindingRedirect oldVersion="1.0.0.120" newVersion="1.1.2009.1004" /> </dependentAssembly> </assemblyBinding>...