Here's the situation:
I've got a solution with multiple unit testing projects, each targeting a specific assembly in the application. These unit test projects require a set of App_Config* files in order to execute (i.e. connectionStrings.config, appSettings.config, etc). When I run the tests from within VS.NET using TD.NET or ReSharper,...
Let's say I have a settings.py file in my app's root folder (/myapp/myapp/settings.py) with just a bunch of variables in it:
var1 = ''
var2 = ''
Can I automatically set one of those variables from the .ini file? I tried this:
myapp.settings.var1 = 'this is from development.ini'
But when I call var1 it is still the empty string:
i...
I'm working on a plugin system. Some plugins need user input. I would like them to be able to report to the main application what input they need and have the main application decide how to get it. It seems like there might be some kind of library designed for specifying options like this. So like the plugin could return some kind of Opt...
So, I've been looking all over. I can't find anywhere that talks about specifically how to configure Eclipse + CDT to run the gcc / gcc++ compiler.
I am running Eclipse on a windows box, but I've installed Cygwin.
[edit] I've installed Cygwin, and I've added C:\Cygwin\bin to my path environment variable. I'm now getting this error...
Hi folks,
I am developing a framework that needs a lot of stuff to get working. I have several folders inside of my Eclipse project that are needed
[root]
- config
- src
- lib
- serialized
Also there are important files like the log4j.properties and the META-INF dir inside the src directory.
I wonder if there is a way to distribute o...
I am developing a CLI application in Ruby, and I'd like to allow configuration in Unix via the standard config file cascade of /etc/appnamerc, ~/.appnamerc. However, the application is also meant to be run in a Windows environment, and I'm unsure of where one would put a file like /etc/appnamerc (C:\windows\system32\etc\drivers does not ...
I read that a web service does not have a global.asax to configure global settings (like the automapper configuration). So my question is:
Should I put the automapper configuration in every webmethod or is there a place I can put it globally?
I'm going to call the webservice of couple of thousand times every night so I'm worried that i...
Hai,
In the below code I am deleting a file from client pc
Dim fs
fs = Server.CreateObject("Scripting.FileSystemObject")
'If fs.FileExists(upfile.PostedFile.FileName) Then
fs.DeleteFile(upfile.PostedFile.FileName)
'End If
In the Web.config file, I have configured the trust level also. :
<configuration>
<system.web>
<identit...
I need to have hibernate database config set from outside text file, how can I do it? Is there some kind of method for this, or do I have to make my own?
...
What is the difference between Web Farms and Web Gardens, related to the server configuration section in .NET? How can we implement it?
...
I just transferred open x to a new server and need to change the db info (host, username, password, db name). I have been looking over and I can't find a settings, config file.
Update: Found config file inside var folder
...
I've cone and accidentally deleted the entire config cache at C:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\<GUID> (by following the instructions as indicated here: http://www.marc-antho-etc.net/blog/post/2009/04/03/A-Clockwork-Orange-Some-SharePoint-Timer-Job-Issues-without-Beethovene280a6.aspx). How ...
I would like to use "strategy pattern" with 2 Web projects, my configuration file (and only with configuration file) :
<?xml version="1.0"?>
<configuration>
<components>
<!-- container ORM -->
<component id="DALReseauContainer" type="ReseauRules.Db.BLL.DbReseauWorkingContextContainer, ReseauRules" ...
I like how this works in Zend Framework. I can know which environment I'm currently using by checking APPLICATION_ENV constant in my controller.
<VirtualHost *:80>
#ServerName
#DocumentRoot
SetEnv APPLICATION_ENV "development"
# Directory
</VirtualHost>
But unfortunately I can't use ZF in my current project. Ho...
I currently have a bunch of repositories like so
IMyRepository
IAnotherRepository
They all inherit from IRepository (if this helps)
How can I get structuremap to use an IRegistryConvention scanner to register my concrete types which are named
SqlMyRepository
SqlAnotherRepository
...
Hi!
I'm working on a high traffic web application that uses increasingly more JavaScript-based plugins. Improving and keeping front-end performance at high levels is a great concern for me. I want to rearchitect the way plugins and specific plugin configurations are included in the page.
Currently some plugins are merged into a monolit...
I need some help on the SimpleXML calls for a recursive function that lists the elements name and attributes. Making a XML config file system but each script will have it's own config file as well as a new naming convention. So what I need is an easy way to map out all the elements that have attributes, so like in example 1 I need a simp...
I find the following anti-pattern repeated in my Perl scripts: the script contains some machine/setup specific settings which I store in-line as constants in the script whereas the rest of the script is general in nature:
#!/usr/bin/perl
use strict;
use warnings;
# machine specific settings at the start of the script.
my $SETTING_1 = ...
I want to save all logs during each day in folder named YYYYMMdd - log4net should handle creating new folder depending on system datetime - how I can setup this?
I want to save all logs during the day to n files of 1MB - I don't want to rewrite old files but to really have all logs during one day - how I can setup this?
I am usin C#
...
I'm currently working a lot with Requirement Traceability Matrix (RTM)s as well as Configuration Workbook within one product and two projects and versions. These are currently created within MS Excel which is rather difficult to maintain and control (due to different Software and Workbook versions).
The Excel Configuration Workbook trie...