configuration

In emacs, how to stop nxthml to mess with my background-color?

I just started to use nxhtml, and I opened PHP file, it looks just really awful. I usually set black background-color, but PHP/nxhtml mode, background-color is set to light blue, and I don't know how to change it. How can I change it? Is there any good site to learn nxhtml mode? ...

howto create a filesystem like /proc?

I would like to create a pseudo filesystem like /proc to access an applications configuration. How could i achieve this or where could i find some introductory dokumentation about it? ...

representing an XML config file with an IXmlSerializable class

I'm writing in C# and trying to represent an XML config file through an IXmlSerializable class. I'm unsure how to represent the nested elements in my config file, though, such as logLevel: <?xml version="1.0" encoding="utf-8" ?> <configuration> <logging> <logLevel>Error</logLevel> </logging> <credentials> <user>user123</u...

A fast way to get Reporting Services local site working?

Hello I was here trying to figure out why my Reports manager is empty, there's no tabs at all. I installed SQL Server 2008 complete, but didn't not configure Reporting Services. When installing SQL Server 2008, this Windows 7 version didn't have yet IIS installed, I installed it later. I don't see where is this localhost/Reports phy...

How to self-identify the position of a script's tag in the DOM?

There may be a better way of doing this, but currently I have an nicely encapsulated, JavaScript object which can have some configurable options. I include a chunk of HTML code on a page (via Dreamweaver 'snippets'), and on page load my JS file runs through the DOM and identifies any of those code chunks as a particular functionality, an...

Retrive all data from mysql table using fluent nhibernate step by step process..

As i am a newbie to fluent nhibernate i would like to get step by step tutorial that explains configuring mysql with fluent nhibernate and retriving a table data from it... Any suggestion.... ...

How do I setup SOLR to write logs when it is deployed in Tomcat

Hello, I have successfully deployed an instance of SOLR 1.4 into Tomcat6 on a Redhat server. My question is, how do I configure it to log SOLR events? When I was using it previously on Jetty everything was getting logged to jetty/logs. However in Tomcat it doesn't seem to show up anywhere. Any ideas? Thanks! ...

A shared located on another computer is disabled in IIS

HI Guys, I was trying to point my virtual directory to a shared computer directory. When browsing the path to mapped drive, OK button is disabled. Is there any settings im missing on that server, what all things I do need to check. Thnx ...

How to parse text as JavaScript?

This question of mine (currently unanswered), drove me toward finding a better solution to what I'm attempting. My requirements: Chunks of code which can be arbitrarily added into a document, without an id: <div class="thing"> <elements... /> </div> The objects are scanned for and found by an external script: var things = yd.ge...

Problem with Deploying a ASP.NET MVC Project on a IIS 7.0. BadImageFormatException

Hello world, I am stuck with my web application. As known from the title its a ASP.NET MVC(1,0) application so i do the only 2 things that a needed do deploy a application like this. I made a build an copied it to the IIS Folder. In the IDE (VS2008) all works fine :(. This worked a long time. But know i get a error for my included dll...

What is the best way to store site configuration data?

I have a question about storing site configuration data. We have a platform for web applications. The idea is that different clients can have their data hosted and displayed on their own site which sits on top of this platform. Each site has a configuration which determines which panels relevant to the client appear on which pages. The...

TDD with Web Config

All great stories they always start with those 4 magical words... I have inherited a system... no wait! that isn't right! Anyway with my attempt at humour now passed I have not so much been given more I have to support an existing service. There are many many issues when it comes to using this service, as an example one is to create a ...

Mulltiple configurations in Qt

Hi all! I'm new to Qt Creator and I have several questions regarding multiple build configurations. A side note: I have the QtCreator 1.3.1 installed on my Linux machine. I need to have two configurations in my Qt Creator project. The thing is that these aren't simply debug and release but are based on the target architecture - x86 o...

Specifying the range of supported Rails versions in a project

The config/environment.rb of my rails project contains this line: RAILS_GEM_VERSION = '>= 2.3.2' unless defined? RAILS_GEM_VERSION Which makes sure that only Rails of version 2.3.2 or greater will be used to run this app. Is there a way of specifying both the lower and the upper boundary at the same time? So that it would run, say, o...

CKEDITOR Define Editable Area

I'm using CKEDITOR to update the body content of various pages on a website. While I have applied the existing stylesheets via config.contentsCss, I need to wrap the editable area in some HTML like: <div id="contentWrapper"> <div id="content"> [EDITABLE CONTENT] </div> </div> Additionally, I need for only [EDITABLE CONTENT...

PHP Moving config mapping file to XML but how to I create a dynamic XPATH

So I have a PHP file that I use to define all my constants but now want the flexibility of using a XML instead. Example PHP Config file define("LOGIN_URL", "secure_login.php"); define("REDIRECT", "redirect.php"); define("MAPPED_VALUE_GREEN", "object_green"); define("MAPPED_VALUE_KEY", "object_key_12345"); What I'm going to do is: <...

Configuring NHibernate via Web.config in ASP.NET 4.0

So my unit tests are green, time to integrate this shiny new NHibernate-driven DAL in to my web app! I don't really want to maintain two configuration files so I've migrated hibernate.cfg.xml in to my Web.config file (i.e. I copypasta'd the contents of hibernate.cfg.xml in to my Web.config). Here is the relevant bits from my Web.config: ...

Loading a custom section from XML

Hi, I want to add an ability to an application that I'm developing for accessing configuration. The application will search by default in the app.config file for a section that I give it. If it was not found in the app.config, it will look for it in the DB, in a specific table that has the following columns: SectionType, SectionName, S...

ConfigurationManager.RefreshSection("AppSettings") doesn't work

I am trying to get a (ClickOnce deployed) application to read the non-default config file, depending on an environment variable set on the _envName = System.Environment.GetEnvironmentVariable("ENV"); if (_envName == null) throw new Exception ("The ENV environemnt variable must be set"); string envFileName = "app." + _envName.ToLow...

how to roll Tomcat 5.5 / 6 main logs

hi im using tomcat as servlet container for my web app , now im controlling my web app logs with log4j and its has its own log4j jar and its own log4j configuration file but now i need to control the main tomcat logs (Catalina.out for example) . i need to roll then by size and control its debug level how can i do that without adding l...