configuration

using external config file for a .NET windows service

Hi, I have an app.config file for a windows service which includes database connection strings and appsettings. when I install the windows service, it gets installed in "C:\program files\" folder and the settings are copied to a file called ".exe.config" in the same folder, which makes it difficult to change the settings after it is depl...

How to specify include directory for configure script.

I have a linux system at my workplace with pretty old packages and no root access. I'm compiling packages that I need from source with --prefix=[somewhere in homedir]. My problem is that I just can't find out how to convince configure to look for header files in a specific directory. The source is cpp. I tried with environment variables ...

How to access custom ConfigurationSection from library?

Early, I have defined custom section in Console application and it works fine. But now I want to move some of functionality to the library. But, unfortunately, I cannot. Because now my custom section was defined as null. The simple console application include next code: namespace ConsoleApplication1 { class Program { s...

The application has failed to start because its side-by-side configuration is incorrect

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y 'TheLibrary, Version=1.2.3905.36284, Culture=neutral, PublicKeyToken=14 04827c3a8f2601' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detai...

Recommend classes for handling xml configuration file in C#?

I am writing a program that need to store some configuration information. I thought XML would be a good choice, but I do not want to learn XML in C# from scratch. Could you recommend good ways/classes handling this task? ...

a really basic implementation for hibernate calls plsql function

hi, i really need a basic hibernate implementation calls oracle plsql function. it must include configurations, dao and test class. is there any example for that? ...

Question mark in URL for PHP variables makes the link broken. Any idea why?

I don't know what changed in the past--this used to work: Accessing a URL on my server like the following, doesn't work: http://www.domain.com/folder/file.php?variable=a&variable2=b I'm getting a "Not found The requested address 406.shtml was not found on this server." message. However, if I access this, it works: http://www.domai...

Embedding Python in C for configuration files

I'm trying to embed python into c to use it for configuration: If I do it like this: /****************************************************************************** * * Embeding Python Example * * To run: * gcc -c test.c -o test.o -I"C:/Python25/include" * gcc -o test.exe test.o -L"C:/Python25/libs" -lpython25 * test.exe * ****...

Lua domain specific configuration help

I have 5000 data item definition configuration which we are expecting to be designed like, -- Name of the device VARIABLE Name { type=Float, length=20, <<few more definition here>> } -- The device running elapsed time since its last boot VARIABLE BootTime { type=Integer, <<few more definition here>> } I will be...

Is it possible to configure VS2010 to always run as Administrator?

Does anyone know if you can do this by default rather than having to use context menu? ...

.NET Compact Framework: CAB file configuration

I have a Windows Mobile application that I send to my client as a CAB file and then he installs it to 20 mobile devices. This application communicates with web service and has config.ini file in the Program Files/app_name/ folder to store the web service url. The drawback of the current approach is that client can change WS url only afte...

How to compile and run C++ with MinGW using Eclipse and CDT?

I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios SR1 and have installed the CDT plugin. I have also installed MinGW and now I wrote a simple "Hello World" in Eclipse. hello.cpp #include <iostream> using namespace std; int main() { cout << "Hello World" << endl; return 0; ...

PHPUnit configuration (phpunit.xml) -- loading in a bootstrap?

Situation We're using PHPUnit in our project and are using a phpunit.xml to ensure things like backupGlobals is turned off. To further ensure the include path is set and autoloading is active, we also cascade our test bootstraps. That is to say, every test and alltests-suite has a require_once(__DIR__ . '/../bootstrap.php'); at the top...

How to enable Map Local over https with Charles Proxy?

I'm using Charles Proxy's handy Map Local tool to develop CSS documents. This way I can immediately see my edits without having to redeploy the whole thing which in the wonderful world of enterprise-level webapps saves a considerable amount of time. I just discovered that Map Local doesn't work with the https protocol. I have no problem...

Visual Studio: How do I create my own defined constants based on the "Configuration Manager"?

Basically, when I select the "Debug" configuration, the DEBUG constant is active. When I select the "Release" configuration, the DEBUG constant is inactive. How can I create my own configurations so that they include my own defined constants. Basically, I want it so that if I select the configuration "FOOBAR" that there is a constant FO...

CruiseControl.net statistics tutorial.

The statistics module of CC.Net is very interesting. But the documentation about it is very poor. I did some internet research to figure out how to include a new counter (ex: LOC, compiler warnings, etc.) or other graphics to show but found nothing structured. Does anyone know where I could find a tutorial or something? ...

Android Eclipse ADT device configuration for EVO 4G 4.3" layout

I'm trying to create an ADT layout configuration to match an EVO 4G screen, with its 800x480 resolution and 4.3" screen. The emulator I created by just specifying WVGA800 in the SDK Manager seems to match my physical EVO device perfectly. However, when I try to create a Layout device config (the one you select when you edit an XML view)...

How update xml file settings

I have my own xml settings file in winform app. It is installed on some location. And I need to update this file (add some new atributes/settings) without loosing old settings. Example old xml setting: <settings> <someSetting>Old Value</someSetting> <settings> Example new xml setting file: <settings> <someSetting>default value...

Using Configuration Manager.GetSection with Configuration Manager.OpenExe...

I have an executable that consumes DLL’s through MEF. I am successfully loading each DLL’s config file's appsettings keys using var appConfig = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location); return appConfig.AppSettings.Settings["Version"].Value; Now I want to make it so the DLL allo...

jqGrid - make all columns not sortable?

Is there a way to make all columns on a grid NOT sortable other than adding sortable:false to each column? I know you can set global options at the grid level but didn't know if you could do it at the colModel level. ...