configuration

xsd choice configuration into a wsdl

Hi, i want to configure a wsdl with an operation which can return an object among a list of two. How can i configure it's schema and it's message? This is my wsdl : <?xml version="1.0" encoding="utf-8" standalone="no"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:hl7="urn:hl7-org:v3" xmlns:ihe="urn:ihe:iti:pam:2007...

When is using the <appSettings> section preferable to a custom configuration section?

When creating my application's or library's configuration, I generally prefer using a custom configuration section over the <appSettings> section for the following reasons. Framework serialization to a user-defined configuration object; each config value has an appropriate type Configuration values may be validated against type and val...

PHP: How can I tweak PHPUnit to use a different PHP interpreter?

My system has two PHP interpreters. One came bundled with the OS and the other I installed via the XAMPP package. All of my PHP extensions are applied to the XAMPP installation but PHPUnit seems to only run the version of PHP that came with my machine. Does anybody know of a way I can configure or rebuild PHPUnit so that it uses my XAMP...

Eclipse: Working with Systemresources

Hello all Based on feedback from http://stackoverflow.com/questions/861500/url-to-load-resources-from-the-classpath-in-java i have changed my project, to include my image resources into Images.jar My project setup is now /program.jar /Images.jar In my code i load my images using InputStream connectedImage = ClassLoader.getSystemRes...

[VB.NET] Automatically add namespace when adding new item

When adding a new item (class, control, etc) in C# it will automatically add a namespace to the file depending on the location in the project. Is this also available for VB.NET? The code 'Namespace DataClasses.AX' and 'End Namespace' would be generated. Namespace DataClasses.AX <Serializable()> _ Public Class AxInventItem #Re...

Load a file that's been bundled within the .jar?

I'm building a project with ant and during the build I'd like to bundle a number of property/config files directly into the .jar to make distribution simpler. I've been successful in adding these files to the .jar, but I'm unable to load them in my program. What is the procedure to open/read a file that's been bundled into a .jar file? ...

How to get a .jar to recognise and use a bundled log4j.xml file?

I'm building a project with ant and during the build I'd like to bundle a log4j.xml file directly into the .jar to make distribution simpler. I've been successful in adding the file to the .jar, but it doesn't seem to be recognised. What do I need to do to ensure the file is recognised and used by log4j? I'm new to Java, so a clear desc...

Host and load KML File in Flex project (IGN)

Hi, I'm looking at a tutorial to display placemarks using a KML file on a flex application. I'm using IGN API (openscales) in flex project. The example works perfectly (http://openscales.org/userguide/examples/srcview/source/KMLExample.mxml. <os:KML url="http://www.parisavelo.net/velib.kml" proxy="http://openscales.org...

my web.config file content is like this

<validation validateIntegratedModeConfiguration="true"/> <modules> <remove name="ScriptModule"/> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </modules> <handlers>...

Android Configuration Change

What happens to the width and height params declared in LayoutParams on configuration change? For eg: if I have an ImageView declared with, new LinearLayout.LayoutParams(30, 40); On Configuration Change, does the width become 40 and height 30? Thanks Chris ...

Looking for a .NET Configuration Framework

Due to my next project (much SOA stuff) I need a component based configuration and stored in a database to enable a central administration. app.config/web.config does not support any of those requirements (I know some hacks with app-domains, though). So does anybody of you know a configuration framework? It does not necessary have to be ...

Add or update a configuration record in /etc/environment

Hello, My /etc/environment looks like this: cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" I wish to use a command (sed, awk, python, whatever....) that will make it look like this: cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"...

Is it OK to have a single configuration, rather than separating Debug and Release (in our case)?

We develop a product for internal customers. We don't have a QA team, and don't use assertions. Performance is important, application size isn't. Is it a good idea to have a single configuration (instead of separating Debug and Release), which will have the debug information (pdbs), and will also do the performance optimization? Are th...

Visual Studio 2008: Use external Debug-DLL for Debug-Run and external Release-DLL for Release-Run

Short version: If running a program from VS2008 in Release mode, I want it to use pathA\externaldll.dll. If running a program from VS2008 in Debug mode, I want it to use pathB\externaldll.dll Long version: I have a programm that is linked against external dll-files (VTK). I have built the external application myself in both Debug and ...

Configure multiple sites with Varnish

We have a server which needs to server multiple domains though varnish e.g. example1.com, example2.com and example3.com Our current .vcl file looks like this: sub vcl_recv { set req.http.Host = "example1.com"; lookup; } How do I set the correct req.http.Host for the correct incoming request? ...

Parameters for webservice call from ASP.NET MVC/jQuery best practice

I need to call a webservice which takes as parameters things like the database name, schema name, login credentials etc. I'd ideally like to call the webservice directly from jQuery, but I feel that these parameters belong in the web config so perhaps I should be calling the webservice indirectly through an ajaxed MVC controller method....

How to configure the printer to stop after the page content is finished , irrespective of the page setup?

Hi, I'm printing an invoice from the browser and the invoice size may vary. I've set a page size of 6 inches width and 5 inches height.. Even if my invoice is just 2 lines it would take up the whole 5 inches height of paper and roll out.. Can i configure it to just stop rolling paper once the print content is finished, so that i can ...

howto encrypt passwords in configuration files, grails [and java]

I am looking for a step-by-step how to on securing passwords put in configuration files, in grails. This means securing passwords in Config.groovy and DataSource.groovy. There are a lot of google results that contains bits and pieces of the answer, but no concise guides on how to do this. Can someone please point me in the right direc...

log4net for NHibernate not writing anything into ASP.NET trace

Odd one this. I am using NHibernate with one website. I have configured log4net to show me all SQL and and errors in the trace. It all works swimmingly. I start using NHibernate in the other website - same solution, built on top of same class libraries. I copy the configuration data in web.config from one website to the other: <sectio...

make configurable config.php file.

I'm having problems with changing my configuration file config.php. At the moment, I'm trying to configure the databse details $config['db] through a form residing in the same directory, however, when I include the configuration file the channges do not materialise. Here's what config.php looks like: <?php //main path to resources $res...