configuration

spring bean configuration

Hi, I want to specify a file system path as part of a Spring bean configuration. I know that I can set a path such as: <bean id="myBean" class="com.example.BeanImpl"> <property name="path" value="/WEB-INF/jsp"/> </bean> An the path /WEB-INF/jsp is interpreted as being relative to the web application root. But how do I specify a pat...

As a developer, what changes do you make to a vanilla Windows install ?

When I get a vanilla Windows system, there's a bunch of stuff I change to make it more developer-friendly. Some of it I remember every time, other stuff I only do as and when. Examples: Show extensions of all file types Make hidden and system file visible Turn off Windows Defender I seem to remember a blog post from Jeff on this to...

Refactoring python module configuration to avoid relative imports.

This is related to a previous question of mine. I understand how to store and read configuration files. There are choices such as ConfigParser and ConfigObj. Consider this structure for a hypothetical 'eggs' module: eggs/ common/ __init__.py config.py foo/ __init__.py a.py 'eggs.foo.a' needs some configuration i...

Configuration window for list of connections

I'm writing a program that needs a configuration window for a list of connections. I have a ListBox to list the connections, and 8 or so settings for each entry. It seems I should use data bindings somehow to bind the data to something (possibly directly to the built-in settings system somehow?), how should I implement this? ...

Developers, do you have a home server (cluster) running 24x7?

If yes, what's the hardware and software configuration (CPU/memory/disk/OS/server software etc.)? What kind of services the server provides (file sharing,backup,DB/Web/Streaming server,CVS/SVN server etc.)? ...

Deploy an app.config based on build configuration

I have three custom build configurations { Dev, Qs, Prd }. So, I have three app configs { Dev.config, Qs.config, Prd.config }. I know how to edit the .csproj file to output the correct one based on the current build configuration. <Target Name="AfterBuild"> <Delete Files="$(TargetDir)$(TargetFileName).config" /> <Copy SourceFiles=...

Can I have multiple php.ini files?

I want to set the include_path variable in my php.ini file. (C:\Windows\php.ini) But, I want different include_path values for different sites hosted on the same Windows server. How can I do this? ...

Centralize Eclipse Configuration

Does anybody have a system that they use to maintain the same eclipse configuration between computers? How well does it work? I am getting to a point where I have a reasonable setup to get a new Eclipse installation to the same point as my others, and I miss the emacs functionality of having all your customizations in a centralized sto...

How secure are the app settings on the iPhone?

It appears that each app has access to its own config settings, which could be kept after app be shutdown. I am wondering whether one app's config setting could be accessed from other app. Should I save sensitive data like password to the app config? Is there some better way? ...

Windows Centralized Configuration for third party applications?

Hi, We are looking at a standard way of configuring the various "endpoints" of our application. Our application is a distributed system with Windows Desktop applications, Windows Server "services" and databases. We currently configure each piece using XML files. This is getting a little out of hands as we work with larger customers who ...

MOSS Domain Configuration

Hi, We are having some issues getting SharePoint to work as we want it to. We have an enterprise MOSS configuration on our domain and have the entry http://intranet pointing to it on port 80. We also have another site collection and have pointed an internet domain name http:/nww.oursector.nhs.uk at it. We have done this to allow those...

How can I override hard-coded configuration in my Perl program?

I have a Perl script that sets up variables near the top for directories and files that it will use. It also requires a few variables to be set as command-line arguments. Example: use Getopt::Long; my ($mount_point, $sub_dir, $database_name, $database_schema); # Populate variables from the command line: GetOptions( 'mount_point=s'...

VB .NET (.NET 2.0) Class Library configuration

I have created a class library in VB .NET. Some code in the library connects to the database. I want to create a config file that would hold the connection string. I have created a "Settings.settings" file and stored the connection string in there. When a class library having a settings file is built, it generates a ".dll.config" fil...

ASP.NET Protected Configuration - How to encrypt with just public key?

When using ASP.NET protected configuration, how can I encrypt the config with just the public key? I can export a public key file. I would like to then use this public key to encrypt the configuration files on another server for later deployment. However, I can't figure out how to get aspnet_regiis to use the exported public key. Bas...

eclipse: overriding user.name in config.ini

I have a multi-user eclipse (3.4) installation with a shared master configuration area. Users need to override user.name with their full name and the usual method (adding -Duser.name=... to eclipse.ini) is not suitable since the override must be per-user. I've tried setting user.name in config.ini (inside each user's configuration direct...

How do I set a connection string config programatically in .net?

I'd like to set a connection string programmatically, with absolutely no change to any config files / registry keys. I have this piece of code, but unfortunately it throws an exception with "the configuration is read only". ConfigurationManager.ConnectionStrings.Clear(); string connectionString = "Server=myserver;Port=8080;Database=my_...

SQL Server tempdb optimization tips for a new server?

I am planning a fresh installation of SQL Server 2005 on a new machine, which I have to order. I know that tempdb tuning is very important to the overall performance of the SQL Server instance. I've read that it's best practice to create as many tempdb files as you have CPU's (or cores?). Is that correct? Are there any other recommendat...

Castle Windsor: How to break up my wire-up xml file into multiple files?

I remember seeing in a sample a while ago that it is possible to break up a windsor configuration file into multiple ones and reference them from the app.config in a way that they get parsed automatically. Of course I didn't bookmark it and now I can't find it and my Windsor.Config.xml file is creeping up on 600 lines. Can anyone tell ...

ReSharper configuration in VS solution.

Anyone have experience with adding a ReSharper profile to the VS2008 solution and share between developers - would like to mimmick the behavior of CodeStyle Enforcer and how it 'follows' the solution. Any thoughts? Thanks /Jasper ...

Built-In methods to backup app.config

Are there any built in methods in System.Configuration that would allow one to backup the currently running apps XXX.exe.config file. Or if not, how would one retrieve the current applications config file name for backup. ...