configuration

create a configuration editor from xml using jquery

Hi All, is there any plugin can create a configuration editor (like about:config in Firefox) using jquery. I have a xml based configuration file, I want to load it, edit it and then save the changes again into the xml file. ...

Programmatically change .net configuration at runtime?

Is there a way to programmatically enable diagnostic tracing for a WSE web service client? This is how it should be configured using an app.config file: <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfigurati...

IPhone Configuration utility not allowing a certain app to be installed with it

I'm building an app and using the iPhone config utility to add it to different devices. Dragging the app file from 'product' in xCode worked fine previously, but for some reason when I drag the app it never appears in the applications list of the utility. I downloaded some Apple source code, built it, and dragged across and it works fine...

Correct way to protect a private API Key when versioning a python application on a public git repo

I would like to open-source a python project on Github but it contains an API key that should not be distributed. I guess there's something better than removing the key each time a "push" is committed to the repo. Imagine a simplified foomodule.py : import urllib2 API_KEY = 'XXXXXXXXX' urllib2.urlopen("http://example.com/foo?id=123%s" ...

Python: Decent config file format

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...

Java - configure Object properties

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, ...

Footprint of Lua on a PPC Micro

We're developing some code on Freescale PPC micros (5517 and 5668 at the moment), and I was wondering if we could put Lua on them. The devices need to be easily programmed/reconfigured in the field, and the current product uses a proprietary interpreted logic language that can be loaded in, and our software (written in C) runs an interp...

Setting HTTP headers with Jetty

What's the best way to set HTTP headers (based on filename patterns) in Jetty 6.1? Is it possible via jetty.xml (or jetty-web.xml)? Or do I have to modify web.xml? ...

How to handle environment-specific application configuration organization-wide?

Problem Your organization has many separate applications, some of which interact with each other (to form "systems"). You need to deploy these applications to separate environments to facilitate staged testing (for example, DEV, QA, UAT, PROD). A given application needs to be configured slightly differently in each environment (each e...

PropertyPlaceholderConfigurer works from Maven command line, but not from Eclipse?

I have Eclipse configured to use an external maven instance. Nonetheless I have an integration test that runs fine from the command line, but fails from within Eclipse. The error is a class Spring application context bean error: Cannot convert value of type [java.lang.String] to required type The culprit it a bean that sets property...

Publishing data from extranet to intranet in MOSS 2007

I am working on a MOSS 2007 in an extranet as well as intranet deployment. For business reasons, they have been kept separate - till now. The requirement now is - the intranet needs to be able to publish and fetch data from the extranet. The intranet needs to push data to a list on the extranet (it is a custom built survey) and this l...

How to configure a CustomBinding to use a CustomMessageEncoder in a config file.

Hello, I have a CustomBinding and a CustomMessageEncoder, CustomMessageEncoderFactory and a CustomMessageEncodingBindingElement. I want my CustomBinding to use this CustomMessageEncoder. But how can I configure this in my config file? Thanks, Michiel ...

How can I add Snapshot and test variations to my ivy.xml

Hey folks, I'm using ant+ivy+nexus to build and publish my java OSGi projects (just good old jars if you're unfamiliar with OSGi). After the usual mind-melting period one has when engaging with new tech I've got a mostly functional system. But, I now have two dimensions of artifact variation: snapshot/release and main/test. The main/t...

.NET: How .config files works?

For me it a little bit hard and frustrating to understand how app.config, web.config files work on deep level. Is it any document which can describe format, internal implementation and parsing of .config file. ...

Mis-spelling in the .NET configuration system, a design flaw?

I just wrote some .NET code to get connection string from the config file. The config file is as below: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="key1" value="hello,world!"/> </appSettings> <connectionStrings> <add name="conn1" connectionString="abcd"/> </connectionStrings> </conf...

Managing project configurations in VS 2010

I'm working on a solution with multiple projects (class libraries, interop, web application, etc) in VS2010. For the web application, I would like to take advantage of the config transformations in VS2010, so at one point I added configurations for each of our environments: Development, Test, Production, and so on. Some time later, aft...

ASP.NET plug-in architecture, settings problem

I want to divide business layer (BLL) of an asp.net application into multiple components. Each component is a .NET class library which is compiled as a standalone DLL. These components should have their own configuration files. For example "MyNameSpace.Users.dll" contains classes about users of the website and there's a password policy t...

how to find which libraries to link to? or, how can I create *-config (such as sdl-config, llvm-config)?

Hey, I want to write a program that outputs a list of libraries that I should link to given source code (or object) files (for C or C++ programs). In *nix, there are useful tools such as sdl-config and llvm-config. But, I want my program to work on Windows, too. Usage: get-library-names -l /path/to/lib a.cpp b.cpp c.cpp d.obj Then...

How do I correlate build configurations in dependant vcproj files with different names?

I have a solution file that requires a third party library (open source). The containing solution uses the typical configuration names of "Debug" and "release". The 3rd party one has debug and release configs for both DLL and static libs - their names are not "Debug" and "Release". How do I tell the solution to build the dependency fi...

Is there a Scala version of .irbrc or another way to define some default libraries for REPL use?

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...