configuration

Different app.config for ClickOnce application

We have a ClickOnce deployed application deployed at 2 different places. Both need some different settings in the app.config (In addition the devel environment) Right now the process of generating these installations is for someone to manually change these settings from visual studio and rebuild. This is ofcourse a pain. Some suggest...

Configure Enterprise Library in code

Is it possible to configure the Data Application Block in Enterprise Library entirely in code? Instead of having the big messy config file. ...

xCode Release configuration behaves different.

I'm making a iPhone app written in Objective-C using the Cocos2d game engine. I'm using xCode v3.2.1 with the 3.1.2 iPhone OS. At this point I have always ran my project under Debug Configuration. When I set it to release configuration certain elements of my game are no longer behaving correctly. My logic that worked in the debug configu...

external configuration file for enterprise library

If i use an external configuration file for Microsoft enterprise library for my program, then all the configuration for enterprise library must reside in the external configuration file? can i still have part of the configuration in the hosting configuration file? ...

Maximum URI length in Grizzly (GlassFish) and Tomcat

Is there a maximum length (not default value) for URIs in Tomcat and in Grizzly (GlassFish 3)? I want to create a RESTful API which should be able to receive big GET requests. ...

How to set the default hydrator in Doctrine?

I can't find a way to set the default hydrator in Doctrine. It should be available. Right? http://www.doctrine-project.org/documentation/manual/1_2/en/data-hydrators#writing-hydration-method The above documentation page explains how to create a custom hydrator. The drawback here is that you need to "specify" the hydrator each and every...

How to increase the maximum number of opened editors in IntelliJ?

I am building a grails-app with IntelliJ 9.0 and I am a huge fan of the CTR+TAB shortcut that switches between active editors. However, by default, IntelliJ keeps ONLY 10 active editors opened at the same time. It is clearly not enough for me. Do you know, if possible, how I can configure my IDE to have more active editors opened at th...

Error 1053: the service did not respond to the start or control request in a timely fashion

I know this question has been asked twice.But both of them didn't help me.My code is working fine like onstart is for initialization the timers etc. I have C# windows service which is running as some accnt not local. Im currently using CCtray to deploy and start the service so it doesn't give me any error. But sometimes manually I need t...

Sharepoint /pages/page.aspx = good, /pages/ = access denied

So, we have a sharepoint install in three environments. In both dev and qa, we can do the following (after authentication): ://account.server.com/ In dev and qa, this redirects to ://account.server.com/somepage.aspx In prod, this brings back 'access denied'. Now, if I do this in production (after authentication): ://account.server.c...

How to get phpinfo() variables from php programatically?

Hello, I am attempting to get a list of dependable(consistent across requests) list of "hidden" constants in PHP(as in, the client-side won't know about it in most cases without hacking). Some of the things I am interested in is the following: ./configure options. I would also like the very first System value in phpinfo. The loaded...

Can you configure a single folder in a WordPress install that will allow directory list contents

Hello, I have a WordPress installation. I would like to have one folder in the file structure where the url will show you the files and folders and allow you to browse and download from there. Can it be done? Seth ...

Deploy ASP.Net MVC solution to Windows 2008

We have a ASP.Net MVC project that runs fine on our developer machines. When we try and run it on a Windows 2008 machine we get the following error: Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set e...

Making log4j aware of changes in the configuration at runtime

I wonder if there is a non-programatical way of making log4j aware of changes on the configuration at runtime. I know I can use static { PropertyConfigurator.configureAndWatch("log4j.properties", 100); } at some useful place to watch a property file for changes, but I would prefer an option within the property file itself, to tell ...

Options, Settings, Properties, Configuration, Preferences — when and why?

There are several words with similar (in some sense) meaning: Options, Settings, Properties, Configuration, Preferences English is not my native language. Could you explain the difference in simple English please? I think the following template could be useful: Use XXX in your GUI in order to let people change behaviour of y...

How to share eclipse configuration over different workspaces

I'm using eclipse (pdt) as primary IDE on different machines. (like at home, laptop, in office, etc.). How could I share the eclipse and project configuration pragmatically between multiple computers? Should I version control them, or is there any easier way to do this? How do you ensure to use the same good and old even so up to date c...

How to modularize an emacs configuration ?

I've decided to rewrite my .emacs from the ground up, and I want to setup something that's modular, in order to avoid a dreaded 1k+ LoC init.el file... I think there are some basic concerns that each configuration needs to address : global options editing functions navigation (frames & buffers) keybindings modes customizations While...

How do I include configuration files with Maven Appassembler?

I'm using the Maven Appassembler plugin to package my application. I'd like to package some configuration files with the application. I've found the configurationDirectory and includeConfigurationDirectoryInClasspath parameters, but I haven't found how I should create (and populate) that configuration directory. I've tried putting the fi...

Eclipse WTP - "No tab group defined for launch configuration type org.eclipse.jst.server.tomcat.core.launchConfigurationType" ...?

When I double-click on my tomcat server on eclipse's "Servers" tab I get taken to the propeties page. This page has only one tab, "Overview" and has a red square as its icon. When I click on the "Open launch configuration" link on the "Overview" tab I get two popup messages: Exception occurred creating launch configuration tabs Rea...

Is There Any Reason Not To Use The Windows Registry For Program Settings?

To me its a no-brainer. The settings for my program go into the Windows Registry. After all, that's what it's for, isn't it? But some programmers are still hesitant in using the Registry. They state that as it grows it slows down your computer. Or they state that it gets corrupted and causes your computer to malfunction. So they write...

ASP.Net : Storing Profile settings in the session

Hello. This question is potentially a big one but does anyone have a solution to store Profile properties in the Session rather than in a database. Sample source code for a ProfileProvider would be okay but I was hoping that there is some tiny config setting that I was missing that would allow me to do this. Any suggestions? Thanks ...