I've looked at a bunch of sample project and I can't seem to tease out a common best practice. I've seen Spring bean files sometimes go in the web-app/WEB-INF directory. I've seen this in conjunction with with a servlet definition in web.xml like this:
<servlet>
<servlet-name>my-stuff</servlet-name>
<servlet-class>org.springf...
Does anyone know an easy way to synchronize your /etc/hosts file across multiple machines? I use a MacBook, a MacMini, a Windows Machine as well as a Linux VM to develop websites with so it would be ideal to have all of them have the same hosts config.
...
Hi,
I am developing a C++ application used to simulate a real world scenario. Based on this simulation our team is going to develop, test and evaluate different algorithms working within such a real world scenrio.
We need the possibility to define several scenarios (they might differ in a few parameters, but a future scenario might als...
Is there a simple way to read from the global application.exe.config file from a dll?
Currently I am loading the file as an XmlDocument but I wonder if there is a better solution.
That's what I mean:
If I create a new WinForms Project I have a Settings Tab in the Project properties where I can add some simple values (And I want to acc...
Hi, we have several .net projects where we store certain settings in config files.
Now each developer will have their own config files that differ a little (different connection strings to connect to local db, different wcf endpoints etc.)
At the moment we tend to check out app/web.config files and modify them to suit our needs.
This le...
I'm using netbeans and maven in my project and for JSF configuration files it generates some .NavData files.
This bothers me during backing up my project and also is inconvenient for versioning systems.
How can i configure to use another folder for these files, e.g. target would be awesome.
Any ideas?
Thx.
...
Does anybody have a good solution for managing .properties files in a web application? Currently I have to pull apart my .war file before deploying, change the entries in my .properties file, and then redeploy to change settings.
Alternatively I can ssh into the server, change the .properties file in the deploy directory and restart ...
I want to have a configurable language settings in my app.
So, in onCreate of my activity, I call Resources.updateConfiguration
with the new locale.
However, after onCreate (at some time, I can't find it when), the
locale is set back to the default locale.
On the code example below, the strings shown in the main layout (as
inflated by...
I use Netbeans as IDE and use the wizards to generate Entities. If I want to define custom NamedQueries (not the ones auto generated) how can I define those outside of the entity so I don't lose them if I have to recreate the entity using the wizard?
...
I have 3 projects inside 1 solution [VisualStudio2008]
-Project1: Library project. Output 1 dll and 1 .config in the Debug folder
-Project2: Library project. Output 1 dll and 1 .config in the Debug folder
-Project3: Main project. It will reference to Project1 and Project2 to get the library. My problem is when i compile project 3, i j...
When promoting or deploying a build, I'd like to automate swapping out a single database connection file. This could be done as either a post-build step or as a pre-packaging step before deployment.
The file that's being swapped out is a test file; the file being swapped in should have the real database connection configuration.
How ca...
Hi there,
I have a trivial C# windows application with an app.config file. I want to use the SupportedRuntime element to stipulate which version of the .NET framework to use. In my case, I want to use the .NET Framework 3.5 SP1.
Here is the XML I am using to achieve this;
[startup]
[supportedRuntime version="3.5.30729.1"/]
[/s...
I have a class library I want to unit test using Microsofts unit test framework. Some of the classes I want to test are configured using application settings. These settings are defined inside the Settings.settings file having application scope and suitable default values. When the library is used by the application these settings can be...
Hi,
I have a load of data I want to store here: /apps/frontend/modules/builder/config/module.yml
I have it looking something like:
all:
series_options:
compact:
name: Compact
description: Something small.
enabled: 1
large:
name: Large
description: Bit bigger.
enabled: 0
In the actions.c...
I'm trying to implement spring-security to handle authentication and authorization of my web application. I can't get the configuration right. Tomcat trows an error when I deploy the war file.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.ProviderMana...
So in the latest version of Spring we are able to use the @Configuration annotation to setup our configurations for Spring. Now in JavaConfig it is possible to use the @AnnotationDrivenTx (@AnnotationDrivenTx Reference Link) annotation to setup transactions in our Config class. But since JavaConfig has been decommissioned I was wondering...
Hi,
I wrote a custom Tomcat valve. (I'm using Tomcat 6.0.24 and Java 1.6) Here's the XML element where I declare my valve:
<Valve className="mypkg.MyValve" foo="bar"/>
When I put this declaration inside server.xml's Host element. Tomcat calls the setFoo() method on my valve with the value "bar". That's what I want to happen.
Ho...
HI,
I am implementing some unix userland tool, that needs to store hash on the disk. The hash will be read every run of a program, pretty frequently. To give you better insight, the hash needs to store "name:path" values only.
I looked at bdbd module for python, but I can see it will be deprecated in Python 3. Also saw Pickle.
Im not ...
I often switch between .NET and PHP development. With ASP.NET sites I save configuration information (e.g. connection strings, directories, application setting) in the web.config file which is appropriately protected and easy to access the values, etc.
In PHP, I solve this with a class that has static methods for each variable:
class w...
Hi,
I have a project which I build using SCons (and MinGW/gcc depending on the platform). This project depends on several other libraries (lets call them libfoo and libbar) which can be installed on different places for different users.
Currently, my SConstruct file embeds hard-coded path to those libraries (say, something like: C:\lib...