configuration

How can I specify custom global gitconfig path?

I'm in a bit of a bind with Git. I'm trying to execute git commit but I need to be able to swtich between ~/.gitconfig1 and ~/.gitconfig2 Is there a command line switch - or anyway to have Git use a different gitconfig file then the ones found at /etc/gitconfig, ~/.gitconfig and .git/config? ...

How do I maintain separate production settings for my Android apps?

I'm developing one of my first Android apps. I come from an ASP.NET world where it's trivial to have separate Web.config files for dev, test, and production. Does anyone have a good, automated way of doing this for Android via Eclipse? ...

Error 500 with custom HttpHandler in ASP.NET website (IIS 7.5, Win7)

Hi I'm trying to get custom HttpHandler working in my sample web application. I've been experiencing a lot of issues, but finally got stuck with error 500. Application pool is being run in Classic ASP.NET 2.0 mode. Server is IIS 7.5, OS is Win 7 Pro. Here's a code of my handler: public class SampleHandler : IHttpHandler { public ...

Url rewriting with asp.net. is there a configuration needed?

Hello I'm trying to enable rewrited urls in my project. it's very good described in this post: urlrewriting by scottgu It works very well when im running it on localhost, but as soon as i upload it to my host (.net 3.5), it doesn't work! i always get redirected to a 404 page! Is there a configuration needed to enable this? as scottgu s...

how can I configure an activemq queue to make it not accepting messages?

I am an activeMQ newbie. Is it possible to add something to the activeMQ xml configuration to force a queue to stop accepting messages when (for example) 100 messages are already in a specific queue? ...

WCF SSL configuration error perhaps

hey there Trying to get HelloWorld working via SSL. Read all those docs: http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509findtype.aspx http://msdn.microsoft.com/en-us/library/ff648431.aspx http://msdn.microsoft.com/en-us/library/ms733791.aspx http://msdn.microsoft.com/en-us/library/ms733813.aspx...

Where are my postgres *.conf files, dude?

Recently reinstalled postgre 8.3 on my Ubuntu 8.04 after update. Used EnterpriseDB package. I can connect to the database locally, I see system DB postgres but I can't configure it because I can't find config files. Searched through entire hard drive and found only samples like pg_hba.conf.sample Where they are? ...

Looking to use a Hierarchical configuration system like the one in IIS 7 for my own application

As the title states, I would like to implement a Hierarchical configuration in my application. The configuration system in IIS7 is basically what I need. Configuration applies to a Hierarchical collection of objects Defualt configuration is applied to the root node Individual settings propagate down the hiearchy At any point in the hi...

Different widgets one configuration activity android

Hi all, Some apps clog up the select widget activity by adding different configuration activities. like the screenshot here: Multi Configuration activities Is there a way to have one icon in the select widget (like Mini Info) and one configuration activity and set different layouts for widgets there? Thank you ...

Programmaticaly provide SqlNet authentication service name to Oracle client.

Hello, I am using a standalone Oracle.DataAccess manual installation for my project to avoid a full Oracle client installation on customers machines (no oracle home). For this I followed this guide and it works pretty well. Actually the user/password is stored in a configuration file but I want to use the current AD user so I need to p...

How would you centralize configuration across multiple projects?

I have a solution with about 10 projects with read-only config. They are web applications, windows services, console apps, etc. All projects except for one are on the same server. Each project has 3 environments - dev, test, and production. So there are 30 different sets of configuration, each one with a decent number of settings. I...

What is a Windows command-line EXE's "side-by-side configuration" and how do I correct it?

I have a simple .exe written in C++ (built with Visual Studio 2005) that tests some hardware using a supplied API. It works fine on the Windows 7 machine I built it on, but when I copy it to another (Windows 7) machine and run it (from the command-line) I get: The application has failed to start because its side-by-side configurat...

Where should I store my widget's preferences on the Configuration page on Android?

Hi all, ^Question^ I think that it would be too complex to open a database. Does using shared preferences make my app's data size become big. Is there a temporary storage place for my data or should I delete the data in the shared preferences for that widget. Short code samples are very appreciated :) Thank you ...

Java IoC : distributed configuration

I'm building a J2EE application in which I want to allows plugins. I'm fairly convince of the goodness of IoC framework, and so the application will have one to manage services. Now, I want to allows plugins to be added as simple JAR dropped in the classpath + perhaps a simple configuration file to edit to activate them, in no way some...

What is the recommended way of handling environment config changes?

I am guessing it is creating a second .csfg file, but the config thing is hardwired into the Azure project type so I'm not really sure. For example, if I wish staging and live to point at different sql-azure databases, how do I go about it? Thanks ...

Why do my Rails 2 routes have query strings?

I sometimes need to pass additional parameters to a page via the URL. I did this in the past with a couple of generic placeholders in the routes file, which I call "genus" and "species". This used to work, but now it has started producing URLs with query strings. The Rails version is 2.3.8. The routes file is: ActionController::Routin...

Hide 8080 on url and redirect traffic from 80 to 8080

Hello, I got a question about Tomcat + Glassfish configuration. I got 2 enterprise application running on the same machine and with JKMount i have managed to redirect traffic from 8081 to one of them and 8082 to another, but now I also need to deploy WebService. I have deployed WebService and the URL where it is accesible is http://loca...

How to include a config file for .Net

Is there a way to have the main .net configuration file app.config/web.config include another configuration file? I have a need to keep things in separate files, but link them together. Here is a sample of what I want to include: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="applicat...

Variables in IntelliJ's Run/Debug Configurations

I am wanting to set up a Run/Debug Configuration in IntelliJ for JUnit. I know how to set it up to run a specific package, a specific class, or a specific method. I was wondering if there was a way to set up the configurations so it will run the currently opened Class file or the currently selected test method. I would imagine I would pu...

How can I save state between orientations?

In a previous question I asked how I could display two different layouts for portrait and landscape orientations: Problem switching to landscape orientation Now I would like to know how I can save the state of my application before it goes into another orientation? I seem to lose this data any time orientation changes. ...