I was planning to use an XML document to store configuration for my next PHP project, in a format similar to ASP.NET Web.Config files. Just two concerns:
Cannot be served to the browser.
Must be viable in shared hosting.
The best way I could think to prevent it from being served is to change the filetype to PHP and add the following ...
I have recently decided to move my connection strings to machine.config as this seems to be by far the most elegant approach for managing multiple environments. However, I would still like to be able to override these settings in my local web.config if the need arises (or the non-enlightened masses begin to complain).
How can I override...
Is there a way to read a System.Config connection string in an MSBuild task?
Basically I have my connection string setup in a config file
<add name="MyApp.MyConnectionString" connectionString="..." />
And I would like to reference it in an MSBuild task like so ...
<Target Name="Migrate" DependsOnTargets="Build">
...
<Migrate...
I've created a working Visual Studio 2008 "web setup project" that builds an MSI for my WCF web service.
I would like to provide 4 different web.config files, one for each of four environments (Dev, QA, Staging, Prod). In other words, I know what the connection strings and our other web services should be in each of those environments...
We have a solution that uses JBoss and Oracle, in the datasource configuration file it makes reference to a OracleXAExceptionFormatter class. We are migrating from Oracle to MySQL, my question is does JBoss have an equivalent exception formatter class for MySQL or at least a generic equivalent?
<datasources>
<xa-datasource>
<jndi-...
In my config/environments/development.rb I have the following line:
config.action_controller.consider_all_requests_local = true
which means I should get all the ugly error stuff when in development environment. But for some reason my app has suddenly started giving me the pretty error page you're supposed to see on production.
Is the...
Hi, I am working on a C# XNA screensaver kit and so far, everything is in place except for the configuration dialog which must be modal to the Screen Saver Settings dialog provided by windows ("/c:<hwnd>" argument).
My benchmark is Vistas builtin 3D Text screensaver - my code shall provide the same features and regarding the configurat...
I have a website and when I check page speed with Google plug-in, I receive:
Leverage browser caching
The following resources are missing a cache expiration
Searching only returns information on using htaccess under Apache, but my site is running on Windows 2003 Server, in plain HTML language, and I don't even have access to the ...
Hi,
I have a config file in my C# class library called MyLibrary.config, in vs 2008.
I created another project, say a simple console app, add reference by "Browsing" the MyLibrary.dll in the bin directory of the class library project, and when I compile, the MyLibrary.config is not including in the bin directory of the output in the c...
Hi friends;
i have configured my apache instance to delegate requests to a application running on tomcat container.
lets say my URL for tomcat container is
http://localhost:8014/accounts
I want to access this URL from
http://localhost
Now the configuration in vertual host, i have made to access this is
ProxyPreserveHost On
Pro...
I have used XML, INI and yaml files for configuration in the Python as well as in .NET C# application.
I have recently studied the lua language and tried its implementation in .NET platform. I find Lua for configuration seems to be more clean and readable. Moreover it does provide the scripting ability.
Since I heard that Lua source b...
Hi all, I found in this article, that since ORACLE 10g, there is a way to make a particular connection-session compare strings case-insensitive, without needing any crazy SQL functions, using an ALTER SESSION.
Does anyone know if, in 11g, there might be a way to make the database to always operate in this mode by default for all new co...
I would like to have an xml config file as follows:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="plugins" type="MyApp.PluginsConfiguration, MyApp"/>
</configSections>
<plugins>
<use assembly="MyApp.Plugin1.dll" />
<use assembly="MyApp.Plugin2.dll" />
</plugins>
</configuration>
H...
Hi there,
Chef from Opscode seems to be really useful for configuring servers and such, but trying to follow their documentation is a little difficult. Some terms are defined after they are used, and definitions sometimes reference new terms that you haven't yet encountered.
Anyone know of any GOOD tutorials/walk-throughs for getting a ...
Hi all,
I am writing a simulator for a CORBA client, that is I am simulating a CORBA server.
A requirement of the CORBA server is that it register a certain object with the CORBA NameService.
I have somehow stumbled across OpenORB.
I have downloaded all its binary zip archives and have extracted them all to a single directory- %TCOO...
Do you know any SQLite-like database that stores its data in easily readable plain text format (like multi-line json or yaml)?
I'd like to store some data along with my project in version control system but if I use sqlite I can't merge data changes that occurred in different working copies.
I don't want to use just some kind of config...
Anyone know if there's a fluent way of configuring log4net (appenders and all the properties for appenders etc...).
The xml is driving me crazy.
Or if not, does anyone know of a decent .Net logging framework that can easily be fluently configured and offer similar features to log4net?
...
How would you identify and fix the following code smell:
I've got a small scientific computing app that I'm writing that has to be able to handle lots of variations on the same theme. The inner workings of it are well-factored, mostly using the template method pattern and some higher-order functions. However, specifying how all these ...
I'm trying to startup my PostgreSQL server on my local machine.
But I got an error message saying:
FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=9781248, 03600).
HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded you...
I am facing a problem.
I have a dll which is interacting with a webservice and it saves its endpoint configuration in its app.config file.
I want to use this dll from my host application. The host application has its own config file. I have to merge the contents of dll's config to host's config each time when I change service endpoint....