configuration

Apache 2, Joomla 1.0.x configuration causes malformed response in IE 6+?

Hi all, A friend of mine has inherited an old Joomla 1.0.x site, that amongst other things has a big problem with IE visitors. The site is viewable here: http://intellepark.co.za If you browse the site with Firefox, the GETs / responses bounce around as follows: 1. GET / 2. 302 to /site 3. GET /site 4. 301 to /...

Eliminating unnecessary log4j setup output

I'm using log4j in an app I'm developing to eventually run inside Tomcat/JBoss, but right now I'm running it from inside Eclipse. I've configured it to write to a ConsoleAppender using a log4j.xml file and passed it as a system property, and all of my logging output works. The problem is that log4j spits out a bunch of bootstrap/startup...

How to create a global parameters object

Hi, Here's a common, simple task: Read configuration settings from a configuration file, save the settings (e.g. as a hash) in an object, access this object from various objects that need to access the configuration parameters. I found this implementation for the ConfigFile class implementation and it works. My question is: what is the...

X11 changing value of whitepixel

I have hardware which has an overlay buffer as fb and another buffer which renders video (analog video in like TV). z order with first video and on top of it fb rendered through cairo, agg library based application. The overlay buffer take one color key which is made transparent. I want to make my White pixel to be that color (say I con...

Monitor changes to settings in app.config

When I use typesafe application settings, I have something like this in my app.exe.config file: <setting name="IntervalTimeout" serializeAs="String"> <value>10</value> </setting> The Settings.Designer.vb does something like this: <Global.System.Configuration.ApplicationScopedSettingAttribute(), _ Global.System.Diagnostics.Debug...

Is there other way to handle configuration data in Win Forms beside Custom Configuration Sections

I am in early beginning of learning and deploying Win App using C#, Now I wanna try to build sample application with sample store configure settings inside, I want to application remember the users selection of three or four folders with other specific information, as sharing name, and other two or three values for describing selected ...

Why does my site use the IUSR account when configured for pass-through authentication?

I have an IIS7 website that is set to run in its own application pool. The application pool is configured as: Managed Pipeline Mode: Integrated Identity: I_siteuser (account is member of IIS_IUSRS) The website physical path is: d:\websites\testsite\www and the account I_siteuser has modify permissions on the folder. If I set the websi...

Is there a definitieve resource that documents navigation of the linux /proc and /sys filesystems?

We use the /proc and /sys file systems in Linux to discover various types of system configuration information. Typically, we spelunk around through the different files and directories until we find the information that we need. I'm wondering if anyone knows of a definitive resource that documents how one would navigate through the /pro...

Platform-independent version of /var/lib and ~/.config

We see that programs like apt-get store information in several places: /var/cache/apt <- cache /var/lib/apt <- keyrings, package db, states, locks, mirrors /etc/apt <- configuration file ~/.aptitude/config <- user configuration file So we see four kinds of paths here: Cache path Data path System-wide configur...

What's the best way to manage real-time configuration variables with Ruby on Rails?

I'm aware of YAML and plugins like rails-settings, but neither of these is useful for configuration settings that need to be changed in real time. For instance, say I have MAX_ALLOWED_REGISTERED_USERS set at 2000, but I want to up it to 2300. With a typical "configuration" or YAML solution, this would involve changing a config file and ...

iPhone Build Configuration Enabling Features

Question about best practices. Is there a way to programmatically detect whether the app is being compiled for an AdHoc configuration, and, if so, enable a feature in the app? For example, I am thinking of enabling a switch between beta and prod environment given depending on whether the app is an an AdHoc vs. Release configuration. T...

How do I create a new user in AD from SharePoint.

I am looking to have a SharePoint Extranet Portal setup for my "partner" clients. I want to make a site admin for each extranet site for each client. This admin would be able to add new users to the portal AND have that user be created in AD (Active Directory). Has anyone done this or know of a good tool that would provide me that abili...

Special Characters in web.config file

My password contains special characters like '&' and VS giving error on this like Password=abcdef!@hh&held How can I use special characters in my web.config file? ...

Where to store secret keys and password in Python

I have a small Python program, which uses a Google Maps API secret key. I'm getting ready to check-in my code, and I don't want to include the secret key in SVN. In the canonical PHP app you put secret keys, database passwords, and other app specific config in LocalSettings.php. Is there a similar file/location which Python programm...

Persisting complex configuration to a file (PHP)

I have a fairly large MVC PHP web app (custom, no framework) that uses a several-hundred-line XML file for configuration. The config data has a fairly complex structure, which is very elegantly represented in XML but not so easily read or written using the DOM. All reading and writing of config data goes through a Config class, which has...

Building several projects sumultaneously by CruiseControl.NET

Our CruiseControl.NET server is configured to build 5 different projects. Is it possible to configure CruiseControl.NET in such way that maximum 2 projects are built simultaneously? It is easy to limit it to build only one project at a time by putting all projects in the same <queue>, but I can't find how to limit number of simultaneousl...

Detecting XHtmlConformance setting at runtime (without reference to web.configs)

Question: Is there a way to detect what XHtml conformance setting a particular ASP.Net web page is being generated using at run time (without reference to the web.config). Background: We have ASP.NET web pages which need to work under different XHtml Conformance modes - mostly Legacy (Sorry Mum), but some which use Transitional to enabl...

How do I specifiy an object directory in a QT project file?

I am building a console QT project. Currently, my project file looks like this: CONFIG += qt console debug CONFIG -= app_bundle HEADERS = HelperClass.h SOURCES = HelperClass.cpp \ main.cpp TARGET = doit My QMAKESPEC environment variable is set to: macx-g++ I go to the directory with the project (and source) files and run qm...

How do I obtain the website certificate programmatically in IIS 5.1/6

I would like to be able to query the identity of the certificate that has been assigned to a particular website in IIS 5.1/6. I need to configure a WCF service hosted within that website to use the same certificate. Examples in C# are welcome; even better would be an example showing how I can integrate this with Windows Installer/Wix ...

Configuration Section Designer Tool - Obtaining XML From Objects

I am using the CSD tool to create custom configuration sections in my asp.net 3.5 web application. I have no problem with setting up the section, elements, and collections. However, when I create new instances of these to represent what I need to persist to the file system, I cannot obtain the resultant XML. I'm hoping somebody may ha...