configuration

Trouble setting expiration for static asset in nginx

I have the following location directive in my nginx config file: server{ ... location ~* .js$ {expires 1d;} ... location / { ... } } I expect a file served by this URL http://www.mydomain.com/javascripts/myfile.js to have an expiration of +1 day, but I am seeing an expiration of +20 years. What am I doing wrong? ...

Commons configuration - JNDIConfiguration - How to?

I usually use Commons Configuration for manage my applications configs. I have used properties files configuration. Now I'm interested in using a JNDIConfiguration but I'm not able to understand how this works reading the documentation or googling it. Contextualizing, I'm working in webapps running in an JBoss AS. Where will be the pro...

Ruby and Enterprise Architect

I'm trying to build a class diagram in Sparx Enterprise Architect for future usage in Ruby project. How should I set up base code datatypes (Settings -> Code Datatypes...)? It should be something like: Datatype = Common Type (additional notes, if any). Does anyone know what pairs should be input? I'd also highly appreciate advice on h...

Is there an equivelent of Microsoft.Web.Administration for IIS versions prior to 7.0?

Seems this namespace is limited to IIS7 and upwards. Are there any managed libraries from Microsoft or elsewhere that enable you to survey the configuration (just looking for read only config) for a given set of IIS installations? Otherwise one would have to poke through web.configs, the metabase, and try to cobble it all together. ...

Where to store configs for simple .NET application?

Hello, I'm programming a fairly simple application which I want to cut to just one simple exe file + some data storage (XML for example). My question is regarding configuration files. Where to put those files? I saw few applications that have just exe file (uTorrent, Media Player Classic - I can use them without any installation), but ...

Best practices for user settings/configuration in a c# client app

I am working on a .NET app that will also run on iphone via monotouch and osx/linux via mono. The app will hold profiles for various users and the profile used for a particular session will be selected on startup, kind of like Skype. To store per-user settings, I am considering using the Application Settings system that's part of .NE...

rails-settings plugin - namespaces

Hi, I just installed the rails-settings plugin to help manage the configuration of my app. I can declare settings with namespaces like so: Settings['preferences.color'] = :blue Settings['preferences.size'] = :large Settings['license.key'] = 'ABC-DEF' However, according to the documentation, I should be able to return all the se...

When is an app.config created, when an app.exe.config and what is the difference

We have created a WinForms application and store some configurations via the ConfigurationManager class. In order to store the information I use Configuration pConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); pConfig.AppSettings.Settings.Add("updates", szUpdatesURL); pConfig.Save(ConfigurationSaveMode.Mo...

Unit/integration testing Asterisk configuration

Unit and integration testing is usually performed as part of a development process, of course. I'm looking for ways to use this methodology in configuration of an existing system, in this case the Asterisk soft PBX. In the case of Asterisk, the configuration file is as much a programming language as anything else, complete with loops, j...

ConnectionString not read from web.config by a strongly typed Dataset? SQLiteException (0x80004005): unable to open database

Please some help on how to debug this! On my development machine I can succesfully host a local WCF service that uses a SQLIte database for its storage. I simply xcopied the wcf service dll's, the database file and the System.Data.SqLite.dll to the win 2008 server. The server hosts the the WCF service in IIS7.This worked without a hitch...

How can I save a "setting" in a C# application?

A user wants me to create an app that does something everything he presses the X key. Now he asked me to make it so he can change what key he has to press. Maybe he wants X key today, maybe C key tomorrow. How can I easily do this in C#? What is the best way? ...

Possible to fix/disable member groups FAIL when using Doxygen?

I develop an open-source Objective-C framework, and I use Doxygen to generate the documentation (http://dysart.cs.byu.edu/CHDataStructures). Overall, Doxygen does a nice job, but I have a perennial annoyance that I can't figure out for the life of me. I use the \name command and Member Groups to group methods by task (these Apple docs s...

Qt::What needs to be included in the configuration to use dbus?

I'm using stripped down as much as possible configuration of Qt but now I need to use the dbus and can't figure out what I need to include to be able to use it? There doesnt seem to be anything obvious to me using the qconfig tool. The errors I get at the moment when making are: qdbus_symbols.cpp:53: error: expected initializer before ‘...

MSDTC Configuration Automation

We are developing a large scale business application using most new technologies through .NET 3.5 and we are using EF as DataAccessLayer in our architecture in addition to Transaction management which automatically uses System.Transaction and MSTC. We need to deploy this application by ClickOnce method for over 300 end-user in each custo...

How can I configure the HTTP proxy for a Web Service client running in JBoss 4?

Using NetBeans 6.8 I managed to write a JAX-WS Web Service client for a service which runs in the Internet. Within NetBeans, communication through the HTTP firewall works fine. Now I tried to run the client in a Servlet in JBoss 4.2.3.GA, here the request fails with the message: HTTP transport error: java.net.UnknownHostException: www...

Python ConfigParser lists defaults for variable substitution as if they were part of config values

I'm using ConfigParser to load in data from a configuration file as follows: test.conf: [myfiles] fileone: %(datadir)s/somefile.foo filetwo: %(datadir)s/nudderfile.foo load.py: import ConfigParser config = ConfigParser.ConfigParser({'datadir': '/tmp'}) config.read('test.conf') print config.items('myfiles') print config.get('myfile...

Multiple Applications, Shared Settings: Use the registry or XML-based configuration?

My Scenario I have a class library that is going to be called from multiple separate executable applications. This class library needs to know about an address of a database server (and many other configuration options, auth info, etc) to access. I have a configuration and administration application, separate from the class library, tha...

Spring security 2.0.5 LDAP authentication setup w/Active Directory

I've been having a hell of a time trying to get LDAP authentication working with this application (apache Roller). It seems like it would just be "populate the right fields and go", but I'm still attempting to authenticate against the database (the default authentication method). I don't understand what's telling spring-security to use...

What is the "source" attribute of the Context element of an Apache Tomcat configuration file for?

It's somehow related to Eclipse. For example: <Host> <Context docBase="foo" path="/foo" reloadable="true" source="org.eclipse.jst.j2ee.server:foo" /> </Host> ...

How can I get Eclipse to scroll past the bottom of the document?

When I scroll to the bottom of an open document in the Eclipse editor, the last line is at the bottom of the file. This is a tad annoying when editing code at the bottom of the file / screen. How can I enable Eclipse to scroll (much like Vim or VS) down far enough that the last line of code reaches the top of the editor window? I'm as...