configuration

How2 in Configuration Net 2.0: Add element to section defined in different assembly

How could I add a config element in config file in Net 2.0 that would be placed under existing structure that is defined in different assembly? In my case I have some core library that creates root section (and already some other settings) in config file (using company name for name of the root element, section). In other assembly I wan...

Configuration Manager only shows Debug

I am working in Visual Studio 2008 on an ASP.Net application, which has been deployed to a test server. I would like to make a build without debug information to place in production, but the configuration manger only shows "Debug" in the configuration dropdown for my project. My other VS projects show "Debug", "Release", "New...", and ...

Is it better to make a new dev set up his own environment, or give him a premade VM?

In our environment, there are loads of 3rd party components. Setting up the development environment is a lengthy process, and it can be difficult for a new developer. Do you think: 1 - We should make a preconfigured VM with all the setup already done, and give it to a new dev? or 2 - Make them do it from scratch? or 3 - Some other...

What are the optimal settings for Tomcat web server?

I am maintaining a website with currently about 800 concurrent users. The business plan says that this number will be 10x higher in one year. This is my current configuration: <Connector port="8080" address="${jboss.bind.address}" maxThreads="500" maxHttpHeaderSize="8192" emptySessionPath="true" protocol="HTTP/1.1" enableLookups=...

How to coordinate subversion client configuration?

As a subversion user you'll have a local configuration folder /<userhome>/.subversion/ in your user home. In there is a config file containing, among others, auto-props. These properties are applied to files that you add to the repository, e.g. by svn add <file> Now here's my question (actually two questions): How do you coordinate...

.config to constructor tricks?

I'm working on a quick project to monitor/process data. Essentially that's just monitors, schedules and processors. The monitor checks for data (ftp, local, imap, pop, etc) using a schedule and sends new data to a processor. They call have interfaces. I'm trying to find a sane way to use config to configure what schedule/processor each ...

How hierarchical are Delphi 2009 project configuration option sets?

Delphi 2009 introduced a hierarchical system for project options configuration, where you set "base" options and then have different build styles with their own option sets. But can you extend the hierarchy even further? I do most of my coding with debug options on, of course, but sometimes there are special cases where I want a slightly...

HowTo: Detect .Net Configuration Section instance without Loading into memory?

Does anyone know how to detect if an instance of a configuration section exists in a .net configuration file without actually having to load the configuration section into memory, and without having to parse the xml file manually - ie, using the System.Configuration namespace. I have tried using System.Configuration.ConfigurationManager...

.NET - Users and different databases

Hello all, I'm looking at having certain users access one database and other users accessing another database based on the company they belong to. What would be the best way to handle the connection strings and make sure the user connects to the right db when they login? Thanks for any ideas. ...

Vim File Explorer Configuration

I'm setting the below variables in my vimrc to control how windows get split when I bring up the file explorer plugin for vim. But it appears these variables are not being read because they have no effect on how the file explorer window is displayed. I'm new to vim. I know the vimrc file is being read because I can make other setting cha...

apache on windows virtual directory config help

I'm running Apache on Windows XP via Xampplite, and could use help configuring my virtual directory. Here's what I'm hoping to do on my dev box: I want my source files to live outside of the xampp htdocs dir on my local machine I can access the project at http://myproject others on my local network can access the project at my.ip.addre...

Suggested initial emacs config?

I would like to to try emacs, and want to give it the best chance possible. To do this, it seems like having a good .emacs file is important. I primarily use Mac OS X (so I have looked at Aquamacs), and I mainly do Python programming, so anything specifically for that would be great. ...

What is the best way to allow both a servlet and client-side scripts read the same file?

We want to share user validation configuration between a Java validation class (for sanity checking) and a Javascript-enabled form web interface (for usability). What's the best way to deploy this static file in our web application so that it is both available to the server-side code, and available via a URL accessed by the client? So f...

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product?

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product? I have two servers, one runs my code much faster than the other and I believe their configurations are close to equivalent and therefore I want to benchmark the two. I do not want this question to become one about the hardware. This question...

ASP.NET: external custom config file in a virtual directory - how to?

I know that there at least two approaches to leverage the web.config file: using the configSource attribute which was introduced in .NET 2.0 - here is a good blog entry about it. The file attribute of the appSettings tag which lets you point to an external file with a relative path. Described in the MSDN documentation on the appSetting...

How to increase mysqld-nt CPU usage

I have a pretty much default installation on mysql on Windows 2003. I am rebuilding some indexes and the process only seems to use 3-20% of the CPU. Is there a way to allow it to use more and speed up the process? ...

Configurations and Program features in Visual Studio/C# Windows App

I have a Windows application (VS2005/C#) which comes in two versions, Enterprise and Pro. In the Pro version, some of the features and menus are disabled. Currently, I'm doing this by commenting out the disabling code to create the Enterprise version, then I copy each executable file to another location. Obviously this process is fraught...

Multiple slaves on a single machine with hudson

Can I run multiple hudson slaves on a single machine, I mean real slaves with only one build process? My problem is, I have a slave with 3 build processes, using locks-and-latches (V0.4) to run three different kinds of build jobs. But sometimes I have the problem that more than one build job of one kind runs at the same time, or it bloc...

.NET Settings Relative Path

I am working on an application where I have an images folder relative to my application root. I want to be able to specify this relative path in the Properties -> Settings designer eg. "\Images\". The issue I am running into is in cases where the Environment.CurrentDirectory gets changed via an OpenFileDialog the relative path doesn't re...

<assemblyBinding> ignored in parent web.config

Hi, I have a folder containing several websites, all using the same assemblies in the GAC. Each website also contains some 'custom' assemblies of their own that refer to the common assemblies. There is a web.config in this folder, defining common settings for the sites, including the assemblies to load in a <system.web>/<compilation>/<...