configuration

Java - How to find that the user has changed the configuration file?

I am developing a Java Desktop Application. This app needs a configuration to be started. For this, I want to supply a defaultConfig.properties or defaultConfig.xml file with the application so that If user doesn't select any configuration, then the application will start with the help of defaultConfig file. But I am afraid of my applic...

Issues with Trac (installed with BitNami)

I'm facing some problems after installing Trac on my Windows 7 Ultimate 64bits using BitNami. The Issues are: Subversion Control During the installation process, when the BitNami setup asks for the project repository directory, it only accept if you write a path that doesn't exist, otherwise you can't continue. So i got forced to point...

Batch command getting error

Hi Guys, I wrote a simple batch file which checks whether the c drive path exists then execute the exe in that path else try the d drive path and execute it. IF EXIST c:\program files\x goto a ELSE goto b :a cd c:\program files\x executable.exe c:\temp\col.zip :b cd d:\program files\x executable.exe c:\temp\col.zip Im getti...

How to unit test configs

We're working with some very large config files which contain lots of Unity and WCF configuration. When we open some of these configs in the SVC config editor or even try to open a web application using these configs, we recieve errors showing any typos or errors. E.g. a WCF binding is invalid or does not exist etc, or a configuration s...

the best way to connect sql server (Windows authentication vs SQL Server authentication) for asp.net app

I have a database and a site having forms authentication. It is working fine with VS2008. This time, I am using "Trusted_connection =True". But when it is opened from outside or directly from browser then I am getting error "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'." I know this is due to permission. SQL server is based on w...

Best practices for defining and initializing variables in web.xml and then accessing them from Java code

I would like to define and initialize some variables in web.xml and the access the values of these variables inside my Java application. The reason I want to do this is because I would like to be able to change the values of these variables without having to recompile the code. What is the best practice for doing this? Most of the v...

Windows Mobile: "My network card connects to" registry settings

Can anybody please tell me the registry setting(s) that are affected in Windows Mobile 6.1 when a user selects Start -> Settings -> Connections -> Wi-Fi and then changes the value of the "My network card connects to" drop down list on the "Network Adapters" tab? I have a device that seems to default this to "The Internet" when in fact t...

Where should global Application Settings be stored on Windows 7?

Hi everybody, I'm working hard on making my product work seamlessly on Windows 7. The problem is that there is a small set of global (not user-specific) application settings that all users should be able to change. On previous versions I used HKLM\Software\__Company__\__Product__ for that purpose. This allowed Power Users and Administr...

Zend Framework: Autoloading module resources in config.ini?

Is it possible, to configure the following behaviour in application.ini? <?php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initAdminModuleAutoloader() { $this->_resourceLoader = new Zend_Application_Module_Autoloader(array( 'namespace' => 'Admin', 'basePath' => APPLI...

Common, reusable iPhone-App configuration screen

I'm writing code that will allow my iphone-app to have a "configuration page". A grouped, scrolling, UITableView... with cells that contain the needed textFields, switches, sliders, etc. It is an ENOURMOUS amount of code. Is there an easier way? Is there a way I could create a simple text-file, contain all my desired design choices a...

Application configuration save to file or object serialization

Hi, I am working on a project and I need to save user configuration. The configuration is a set of Jchechboxes I need to store their state (true, false). Which do you think is the better way of saving it, in a file and if yes in what (ini, cfg, txt), or it is better to serialize the object with the states?? Or if there is another way, pl...

Mercurial Editor: "abort: The system cannot find the file specified"

I have a problem getting Mercurial to recognise my editor. I have a file, c:\windows\notepad.exe and typing "notepad" at the command prompt works. I can commit by using the "-m" argument to supply the commit title. But a simple "hg commit" brings up the error. A call to "hg --traceback commit" brings up: Traceback (most recent call las...

ClickOnce disallow publishing of Debug builds

Is there anyway to disallow publishing Debug builds when publishing ClickOnce aplications using Visual Studio 2008? I know this was asked before, but i can't figure out how from the answer. THe Accepted answer for previous question was: One thing you can do is add a condition to the .csproj or .vbproj file that MSBuild will chec...

Best practice for passing configuration to each GUI object

Hi, I am writing an application, where I do have few different windows implemented, where each window is a separate class. Now I need somehow to pass a single configuration object to all of them. My GUI is designed in way, where I have one main window, which may create some child windows of its own, and these child windows can have thei...

Can nginx run a unix command based on url?

Is it possible to configure nginx to run a unix command based on a url? For example: http://localhost/list/usr/local This runs: ls /usr/local Then returns the results? ...

Storing SQL Queries within a Configuration file?

Hello y'all, A general question on what everyone's opinion is on storing SQL queries within a configuration file? Is this just another bike shed? Cheers, Ben ...

Why is my "Component Services" window so slow?

I have a newly configured Windows Server 2003 VM. One of the issues with the old VM was that whenever I open up "Component Services" from "Administrative Tools", the performance is very bad. It takes several minutes to create new COM+ applications and add components where it used to take only a few seconds. I have many components to i...

Reloading .NET config file

I need to reload the configuration file after modifying it. How this can be done using appdomains? A code sample would be useful. Thanks. ...

Instantiate a ConfigurationSection from a different source

Is it possible and how to instantiate a custom System.Configuration.ConfigurationSection derived class from a different source (not dependent on App.config)? Here is what i want to get: [TestMethod] public void WorkWithALoadedConfiguration() { ProjectConfiguration projectConfiguration = LoadProjectConfiguration(filenameOrStreamOrXE...

Self-Configuring Classes W/ Command Line Args: Pattern or Anti-Pattern?

I've got a program where a lot of classes have really complicated configuration requirements. I've adopted the pattern of decentralizing the configuration and allowing each class to take and parse the command line/configuration file arguments in its c'tor and do whatever it needs with them. (These are very coarse-grained classes that a...