configuration

Zend Framework Plugin in INI is not run

The plugin declared in my application.ini file is not being triggered. I can install plugins the old way via the Bootstrap file, but I'd prefer to keep it in the INI. It doesn't ever load that file, no exception thrown, nothing. I've tried adding .class to the declaration, but nothing. application.ini [production] phpSettings.display_...

What are the differences and gotchas when changing SQL Server compat mode from 90 to 100?

I would like to know what the implications for my database might be to swap from compat mode 90 (2005) to 100 (2008). Are there any performance enhancements? Are there any deprecated features? ...

How to convert Untiy Configuration from 1.2.* to 2.0.*

In Unity 1.2, I had this text in web.config <type type="IRouteRegistry" mapTo="TownHall.Mvc.Routing.TownHallRoutes,TownHall.Mvc"> <typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement,Microsoft.Practices.Unity.Configuration"> <constructor> <param name="routes" parame...

ConfigurationManager - How to use connection strings with .NET 3.5?

Hi All, I see a very good post here about what I am wanting to do, http://stackoverflow.com/questions/1831291/net-3-5-to-read-connectionstring-from-app-config It says to use the ConfigurationManager class. I cannot reference the ConfigurationManager class. If I look at the system.dll that I am using (which is v2.0.50727) there is no ...

pydev eclipse configuration for __builtins__ ?

suppose on init I've install my function under builtins then throughout my project I can access it directly that function, no need to import, but how can I tell this to eclipse - so it should not show RED Error "undefined variable" __builtins__['_'] = gettext.gettext ...

Integrity check going from dev to testing Django app using Git

I'm using Git to push my code from my development machine to my testing server. Dev: Mac, Python 2.6, sqllite and Test: Linux, Python 2.7, MySQL I took an early dev database and exported it to MySQL for initial testing. So now I'm regularly pushing new code to the testing server. In general it seems to be working well, but I'm ge...

Sharing settings between applications

I have multiple .NET assemblies that all need to share common user settings, such as preferences, user names, etc. One is a WPF application, another is a console application, and the third is an Office Add-in. All of these settings are user-scope. Only the WPF application needs to be able to change settings. The rest just read them. I...

Application configuration in Silverlight.

Hi there, I need to have some application settings in my Silverlight project. In a standard .NET project it is accomplished by adding some Settings file. However it is not supported in SL. What should be done then? I think of some xml configuration file, but where should it be placed and how should it be accessed? What is the most eleg...

Should I provide settings for authenticating proxies in my network-enabled app?

I've written an update checker routine for our apps which contacts our server via regular HTTP and naturally I had to provide configuration options for connections through proxy servers. Currently I'm only providing options for proxy name (or address) and port number plus an "auto-detect" option which simply reads those two values from I...

Switch SOA Server Address based on Build Mode (Debug, etc)?

I have an app that uses a couple of SOA calls to get some information from a database. For now we have been sending these calls to a test server, but in the near future the QA team will be using this, and they have their own QA database, and then of course we have the production server. Normally I would do an #if #define type of deal, ...

How do you export a JQGrid configuration to XML?

I have a number of users that need to save off very specific table configurations, which are to be loaded each h time they visit my application. How would I go about exporting my JQGrid column configuration to XML so that it can be loaded later. ...

Windsor Configuration Standard Practices

The app I inherited uses the fluent interface for configuring our Windsor container, and it's this big glob o' configuration that's pretty disgusting. In the past I created an extension method container.AddModule and then created modules that were passed in the container and registered services a la StructureMap for the different "modul...

How to specify arguments when starting Android emulator in Eclipse (to wipe data).

I have read that in order to clear data stored in the Android emulator I should start the emulator with the "-wipe-data" arguments. However, I can't see how to specify startup arguments. I have read that it should be possible to specify these in the "Target" tab of the Debug Configurations dialog. However, if I open Debug Configurations ...

How can I override ~/.vim and ~/.vimrc paths (but no others) in vim?

Let's say I have a tarball of all my vim config - everything normally inside ~/.vim (plugins, autoload, colours, all that stuff), and a vimrc file. I extract this to a directory somewhere. So in the directory where I am ($PWD), there is a "vim" folder and a "vimrc" file. (note: this directory will be read-only, so vim shouldn't try to wr...

Windsor-Castle: Register All Types in assembly using config file

Hi Every one in code i can do some thing like this: container.Register(AllTypes.FromAssemblyNamed("AssemblyName")); can i do the same thing using Configuration file "Windsor.Config"??? ...

How to configure default paths in Jammit ?

Hi, I have a Jammit gem installed. I want to configure it a little: it must pack all the stuff into "public/assets_cache" folder, so, the packaged stuff will not make clutter in "public/assets", that has all .js and .css files. I have followed documentation here and here environment.rb is: require "Jammit" ... config.gem "jammit" ...

how can i know the active configuration of the iphone/ipad when compiling ?

I have an iphone app that consumes a web service. i have a dev version and a prod version of that web service. i use the dev version when the active configuration is set to debug and i use the production one when the app is set to distribution. is there a way to know the active configuration value in order to use the proper url of my web...

Best way to manage Rails application configuration settings persisted in a database?

Hello, I was hoping someone could suggest some best practices for configuring Rails applications using a database (i.e. persisting configuration settings to a database rather than a flat file). My reasoning for this is that I have an application that will run on multiple servers and there are some configuration settings that are fairly ...

nginx - serve static content from a subdomain

Is there a way I can setup nginx to serve static content from static.example.com - without having to modify all my php files to reflect where to get the images from? I was hoping there was some trick I can do in the nginx conf files. ...

Builder pattern vs. config object

The builder pattern is popular to create immutable objects, but there is some programming overhead to create a builder. So I wonder why not to use simply a config object. The usage of a builder would look like this: Product p = Product.name("Vodka").alcohol(0.38).size(0.7).price(17.99).build(); It is obvious that this is very readabl...