configuration

Windows Azure Dev Fabric Configuration for SQL Server

Where do I go to configure the Windows Azure Dev Fabric to use SQL Server Developer Edition instead of SQL Server Express? ...

Apache/Django subdomains problem

Now I have apache configuration which works only with localhost domain (http://localhost/). Alias /media/ "/ścieżka/do/instalacji/django/contrib/admin/media/" Alias /site_media/ "/ścieżka/do/plikow/site_media/" <Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE...

Apache/Django subdomains problem

Now I have apache configuration which works only with localhost domain (http://localhost/). Alias /media/ "/ścieżka/do/instalacji/django/contrib/admin/media/" Alias /site_media/ "/ścieżka/do/plikow/site_media/" <Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE...

Using two versions of the same assembly (system.web.mvc) at the same time

I'm using a content management system whose admin interface uses MVC 1.0. I would like to build the public parts of the site using MVC 2. If I just reference System.Web.Mvc version 2 in my project the admin mode doesn't work as the reference to System.Web.Mvc.ViewPage created by the views in the admin interface is ambiguous: The type...

What to store at application Settings, numeric / string representations or objects?

Hello, I've been thinking for a while on what to store at the Project Settings, objects or numeric/string representations of those objects to set a rule and avoid thinking on this at the future so I want to take the best approach. On one side storing object representations grants you that what is stored is valid and saves you from doin...

Translate file access mode setup tasks from IIS 6 to IIS 7

I have an installer that installs and sets up an intranet web site 'ABC' under the Default Web Site. The ABC site directory is set up to have anonymous access enabled and Windows authentication disabled, so all the pages under the site inherit that access behavior. However, one page that lets users logon with Windows authentication has t...

Configure Hibernate validation for bean

Hi. I need to perform validation based on SQL query result. Query is defined as annotation - as @NamedQuery in my entity bean. According to Hibernate documentation(doc), there is possibility to validate bean on following operations: pre-update pre-insert pre-delete looks like: <hibernate-configuration> <session-factory> ....

Best way to edit Linux server configuration files on Mac OS X?

I'm used to editing my remote Ubuntu server through SSH and Nano. I've tried using Vim and Emacs but since I don't manage the server frequently enough I never quite get the hang of it and end up forgetting the commands. I use TextMate daily for programming and was wondering if there's any counter-recommendation against mounting the serv...

MSBuild Newbie questions

Hi Guys, I am new to MSbuild so some of my questions could be stupid.Excuse me for that. 1) I created some of the new build definitions on my local machine. Do I need to create them also on my build server. 2) Currently my build is failing.Which log file I need to look to find out more and where to look(location). ...

Mixing JPA annotations and XML configuration

I have a fairly large (new) project in which we have annotated many domain classes with JPA mappings. Now it is time to implement many named queries -- some entities may have as many as 15-20 named queries. I am thinking that writing these named queries in annotations will clutter the source files and therefore am considering putting t...

dll custom business logic

I've a project where some business logic is separated to an DLL project, this DLL contains the business logic for this software for a specific customer. Now I've a problem after another client with different rules want to implement the software, I need someway that the application load the appropriate dll according to the client using...

Erlang: How do you reload an application env configuration?

How do you reload an application's configuration? Or, what are good strategies for managing dynamic application configuration? For example, let's say I had log levels and I wanted to change them at runtime. Also, let's assume this is one of many such options. Does it make sense to have a "configuration server" that holds configuration ...

WebConfigurationManager error after adding siteMap

Hello I'm getting this error: Compiler Error Message: CS0118: 'Configuration' is a 'namespace' but is used like a 'type' Configuration myWebConfig = WebConfigurationManager.OpenWebConfiguration("~/"); This code has been in place for 5+ months without this issues, only today after adding this sitemap code do I have this issue. <siteMap...

Problem with Spring @Configuration class

Hi, i use class with @Configuration annotation to configure my spring application: @Configuration public class SpringConfiguration { @Value("${driver}") String driver; @Value("${url}") String url; @Value("${minIdle}") private int minIdle; // snipp .. @Bean(destroyMethod = "close") public DataSource dataSource() { ...

Where should configuration be placed?

I have an application structured as follows: dao domain main services utils I've made a class that reads the application configuration from an XML file. The question is where should it be placed? By reflex, I'd have placed it in utilities but utility classes have static methods and are stateless whereas this class uses an instance o...

IzPack - XML generation after successful installation

Greetings, I am just starting with IzPack and I have a question for which I have not found anything online so far. Based on the user's input in a UserInputPanel I wish to generate an XML file at the end of the installation. This is going to be the configuration file used by my application upon startup. Is there a way to do this in IzPac...

I'm building a configuration tool for client - is there existing software I can re-use?

Hi, I'm building a web app that allows our customers to create a configuration for our application. The configuration consists of multiple fields, each with a type of either Number, String, Date (eventually Array and Object) and is backed by an object-relational model in MySQL database. The tool allows basic CRUD capability for the co...

Django: Setting up database code tables (aka reference tables, domain tables)?

Often times applications will need some database code tables (aka reference tables or domain tables or lookup tables). Suppose I have a model class called Status with a field called name that could hold values like: Canceled Pending InProgress Complete Where and at what point would I setup these values in Django? Its like a one time...

How to add target of Nlog to a specific textbox control, so the log messages will be shown in that control.

I have used following config of NLog to add the log text to control of specified Name on specified form. <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; <targets> <target name="control" xsi:type="FormControl" append="true" controlName="textB...

How to remove indentation highlighting in vim?

As I use vim, it tries to be helpful by highlighting groups of four spaces in yellow, as shown. My .vimrc file says, in its entirety, set tabstop=4. How can I keep vim from highlighting the indentation in my files? ...