configuration

How do I know if the machineKey section from my machine.config is being used?

Hi, I'm trying to generate a custom key for encrypting the web.config in a project, and use the same key on several machines. I've followed this example from Microsoft: http://support.microsoft.com/kb/312906 However, when I encrypt my web.config (and I'm using cassini, not IIS, on my machine) it doesn't seem to use the newly created ...

Rails where to put configuration like ini files?

When coding with PHP I always separate configuration values like perPage value in a separated ini file. How are you Ruby masters do this with Rails? I would like to access config values inside my model, controller and view. Thx! ...

Eclipse: How can I make Ctrl+F11 work no matter which file is being edited?

Ctrl+F11 is the "Run" keyboard shortcut in Eclipse. But for me, that only works if a Main class is active in the editor. For any of the other 100+ java files in my workspace, eclipse pops up a dialog, complaining "Editor does not contain a main type". This makes the Ctrl+F11 shortcut nearly useless. I either have to press Ctrl+Alt+T, n...

Can custom attributes be defined on a ConfigurationSectionGroup?

I have a CustomConfigurationSection that I have implemented. I would like to be able to support having many different named instances of this configuration section defined. However I would also like some way to identify a default instance of the ConfigurationSection if an application developer doesn't specify a specific named instance ...

IIS logging: don't write to log entry if match specific condition

Hi, i'm looking for some way to avoid logging some specific files like /WebResource.axd and /ScriptResource.axd is there any way to write some code lines in Global.asa or add some configurations to do that? thanks ...

How to use Grails dataSource in resources.groovy?

I have an external java library I am using in my Grails project. It needs a DataSource via the Spring configuration. However, the dataSource appears to not be accessible from resources.groovy. How do I get access to it? I'm using the following in resources.groovy: beans = { eventDao(com.JavaClassRequiringDataSource) { //dataSourc...

.NET Configuration / ConfigurationManager exePath

When creating a Configuration object, it asks for a path to a config file... I keep getting an exception thrown for an invalid file path... What's a valid path? I've tried "config.config" and ".\config.config", but I can't think of anything else. ...

how to configure NArrange with svn

Does anyone know how to configure svn so that every file committed is run on NArrange ...

Issues uploading CodeIgniter from localhost to website

Hi all, I've been developing a website locally with CodeIgniter and have tried uploading it to my web server and get the following error (which I've never seen until the upload). Fatal error: Class 'CI_Hooks' not found in <snip>/system/codeigniter/Common.php on line 136 I've read that CodeIgniter doesn't play nicely with PHP 5.3.x, e...

How to replicate the ipod configuration screen in a iphone app ?

Hi all ! I need to replicate the ipod configuration screen functionality, but have no idea how to do it. Let me explain : My App has several viewControllers, but only 5 are shown. When the user hits the MORE tab, it will show all the available Views . If he clicks on the EDIT button, the screen will show a bunch of tab-bar items, ( ic...

Java -jar : access external configuration file

Hello, I'm looking to do something which I thought was not going to be difficult. I have an application that I'd like to package up as a jar because I've got ~30 dependencies and I would like to be able to deploy a single file. I have some configuration files - a properties file and a spring configuration file, and my log4 props file...

How to create custom configuration for JBoss 5.1.0?

I need to create my own JBoss configuration. It will be a little changed "web" configuration. Is there any documentation or tutorials - how to do it? What I need in new configuration: 1. Remove JSF implementation included in the JBoss Application Server How to do it - http://community.jboss.org/wiki/RemoveJSF 2. Add possibility to u...

Serving php files from different locations in nginx

I have my main website and wordpress in different directories on my server on which I use nginx as the web server. The main website is in /home/me/www and Wordpress is in /home/me/wordpress. I need to have them in separate directories this way for a particular reason. How do I specify this in the nginx configuration file? I currently hav...

Translate Spring XML configuration to Java config

I'd like to use Spring with Java configuration, but almost all examples are writte in XML and I don't know how to translate them to Java. Look at these examples from Spring Security 3: <http auto-config='true'> <intercept-url pattern="/**" access="ROLE_USER" /> </http> <authentication-manager> <authentication-provider> ...

Visual Studio 2008 - Toolbar missing 'Release' / 'Debug' dropdown build configuration

Hi Folks, how to enable the dropdown that shows build mode 'release/debug' ? I have set the 'show advanced build configuration' option. I added the 'configuration manager' to the build toolbar but in previous versions we could do this by using the drop-down control. TIA ...

tomcat 5.5 setting up context path with virtual hosts (non webapps directory)

Hi. I have been a web developer for a couple of years (some ASP, mostly PHP) and have recently taken on Java/JSP in the last two years. The one thing I have tried repeatedly but continue to fail to wrap my head around is the way to setup a working JSP application in another location that is NOT the webapps folder. Rocking my applicati...

Location to put user configuration files in windows

Hi all, I'm writing a python library that has a per-user configuration file that can be edited by the user of the library. The library also generates logging files. On *nix, the standard seems to be to dump them in $HOME/.library_name. However, I am not sure what to do with Windows users. I've used windows for years before switchi...

Config files - where to put them in Java?

I have a java desktop app and the issue of config files is vexing me. What I want is for my distributable application folder to look like this: MyApp/Application.jar MyApp/SpringConfig.xml MyApp/OtherConfig.xml MyApp/lib But at the moment SpringConfig.xml is inside Application.jar and I can't even find OtherConfig.xml programmatical...

Storing Hidden Values in HTML (for tooltip, error, defaults) Best Practices

I just saw this JQuery Metadata Plugin by John Resig, Yehuda Katz, Jarn Zaefferer, and Paul McLanahan, in my search for JQuery Form Validation, and that's an interesting idea! I'm wondering what general best practices are for storing things like error/validation text, tooltip text, default value text, etc. I know you can place them int...

java log4j.xml multiple appenders sharing a layout

Is there a way to configure a log4j.xml file to have multiple appenders share the same layout? I have copied the layout parameter into each of the appenders but it's a pain (and seems weird that I would need to do this) to update it in multiple places if the pattern changes. thanks, Jeff ...