Hello:
I am using ConfigParser to read the runtime configuration of a script.
I would like to have the flexibility of not providing a section name (there are scripts which are simple enough; they don't need a 'section'). ConfigParser will throw the NoSectionError exception, and will not accept the file.
How can I make ConfigParser sim...
My application is not saving users settings after I install it. When I test my app in debug or release mode it works fine. However after compiling, linking and installing the My.Settings.Save() does not seem to be working.
I can manually change a setting in the config file and the app runs accordingly. So I know it’s reading the config ...
So I'm using CodeIgniter to build a website and I've made it so that all my specific settings are stored in a config file that's automatically loaded.
I've also built a page that loads the settings file, makes a nice little table and allows me to edit everything from that page, afterwards it saves the entire page again (I know I could've...
I know that in StructureMap I can read from my *.config files (or files referenced by them), when I want to pass specific arguments to an object's constructor.
ForRequestedType<IConfiguration>()
.TheDefault.Is.OfConcreteType<SqlServerConfiguration>()
.WithCtorArg("db_server_address")
.Equa...
Hi,
I have two DLLs: one with a web.config, another one with app.config
I moved the connection strings from web.config to app.config so that it can be used by other DLLs.
Now, when I call ConfigurationManager.GetSection("SomeSection") , the application looks for a web.config, when it should be looking for the app.config. It doesn't ...
Is there a PHP library that allows modification of the Apache configuration files from the PHP script?
Thanks!
...
i have some keys in appdata->config>siteconfig.xml
i want to change it dynamicaly thru code.
...
I have the following mappings in my .vimrc:
map <C-S-Tab> :tabprevious<CR>
nmap <C-S-Tab> :tabprevious<CR>
imap <C-S-Tab> <Esc>:tabprevious<CR>i
map <C-Tab> :tabnext<CR>
nmap <C-Tab> :tabnext<CR>
imap <C-Tab> <Esc>:tabnext<CR>i
I want to switch the tabs with Strg+Tab forward and with Strg+Shift+Tab backward. Why does this mapping not...
I'd like to use a configuration file format which supports key value pairs and nestable, repeatable structures, and which is as light on syntax as possible. I'm imagining something along the lines of:
cachedir = /var/cache
mail_to = [email protected]
job {
name = my-media
frequency = 1 day
source {
from = /home/michael/Imag...
Hi all,
I would like to configure an object's properties at runtime either via a properties file, possibly XML (even though it can be a little more verbose). The properties may be nested, so I think I would use something like Apache's Bean Utils.
I was wondering what other formats are out there instead of properties and xml.
Thanks,
...
I've written a little library that uses implicits to add functionality that one only needs when using the REPL in Scala. Ruby has libraries like this - for things like pretty printing, firing up text editors (like the interactive_editor gem which invokes Vim from irb - see this post), debuggers and the like. The library I am trying to wr...
Hi,
I'm working on deploying a web application written in C# with ASP.Net Application services databases.
The application runs fine on the development machine.
Windows Server 2003 has been built to test the application.
The database has been scripted across using MS SQL Server GUI.
ASP.Net application services tables were created u...
I want to use Python to make a configuration file generator. My roughly idea is feeding input with template files and some XML files with the real settings. Then use the program to generate the real configuration files.
Example:
[template file]
server_IP = %serverip%
server_name = %servername%
[XML file]
<serverinfo>
<server ip="x....
I'm in the middle of a crisis.
How can i register a object in configuration file multiple times?
Its simple i have server1, server2 and server3 that have the object (SomeObject) and i would like to do something like this on Clients configuration file:
<client>
<wellknown type="IRemCalc.ICalc, IRemCalc"
url="http://loca...
Hello everybody,
I am writing a PHP application targeted at non-geeks, non-programmers. I need to create an option page with a bunch of "options" and then store those options...somewhere. Using a database application (MySQL/PostgreSQL/SQLite) is out of the question because it will require more configuration than the user needs to do (I ...
I've seen people using *.cfg (Python Buildout), *.xml (Gnome), *.json (Chrome extension), *.yaml (Google App Engine), *.ini and even *.py for app configuration files (like Django).
My question is: why there are so many different configuration file formats? I can see an advantage from a xml vs json approach (much less verbose) or a Pytho...
Hello,
I use the library log4cxx in a c++ cross-platform project. We decide to use configuration file in XML.
I have three questions:
i use simple appenders of type "org.apache.log4j.FileAppender" for some loggers with the same layout. But i want that the loggers write in different files. I created some appenders with different name ...
Visual Studio 2010 has a new feature that is just way cool. You can now add transformation files that will change the web.config file based on the configuration you are compiling. The upshot of which is that you can change the web.config file for your various environments (eg: dev, staging, production, etc).
That's all fine and dandy ...
I am trying to register a type conversion in my config file as follows:
<param name="connectionString" parameterType="System.String">
<value value="MyDbConnection"
type="System.Configuration.ConnectionStringSettings"
typeConverter="ConnectionStringSettingsTypeConverter" />
</param>
I am getting the standard can't...
Hi I have the following XML configuration which I would like to set a connectio string based on the machine name of the server i place the code on, but with SM 2.6.1, it doesnt ever seem to apply the LiveSettings profile, can someone tell me what I am doing wrong?
<?xml version="1.0" encoding="utf-8" ?>
<StructureMap MementoStyle="Attr...