I would like to do something like this
config.default_host = 'www.subdomain.example.com'
in some of my configuration files, so that object_url helpers (ActionView::Helpers::UrlHelper) produce link beginning with http://www.subdomain.example.com
I have tried to search the docs but I did not find anytnig exept ActionMailer docs and htt...
I have setup a new server and copyed my website on to it and the follow dont work (?p=home) includes pages.
Code:
if(isset($HTTP_GET_VARS['p']))
{
$page = $HTTP_GET_VARS['p'];
}
else
{
$page = 'home';
}
switch($page)
{
case 'home':
require('home.php');
break;
case 'login':
require('login.php');
break...
Hello,
We have an application that logs using log4net.
But we would like to delete the logfiles every 4 weeks (automatically).
Is there an option in log4net to do this or do we need to have a work arround?
Cheers,
M.
this is my configuration
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
...
I want to declare a worker manager to perform some work in managed thread.
Weblogic documentation tells that we can
- declare a global worker manager using the admin console
- declare a local it in an ejb-jar.xml config file.
I want to use the second option. But my ejb-jar.xml is generated by the ejbgen tool.
There is no tag in ejbgen...
Hi,
I have a entity project which holds about 30 classes and this project is used in several web applications. One application maybe uses all the 30 classes but another one only uses 3 classes.
So my question is:
How can I add just the classes that a uniqe application needs?
My first thought was to add the names of the needed classes i...
Given a set custom configuration classes based off ConfigurationElement I want to convert the custom class into a POCO object graph. Could reflection and LINQ extension methods/ anonymous types give me an object which removes the ConfigurationElement inheritance?
...
Hello everybody.
On my wordpress website one little thing doesn't work. Sometimes the Webserver adds the port number 16080 in the URL, which leads to an error (network timeout).
Wrong: http://www.example.com:16080/about-us/weekly-program/?month=may&yr=2010
Correct: http://www.example.com/about-us/weekly-program/?month=may&yr=20...
I have been banging my head with this one more the two weeks, and still don't know what the problem is ( I can't narrow it down). The problem is the following. I have a solution with 3 project in it all written in c# and I with LINQ. One project is the main web site, the other is the data layer (communication with the database) and the t...
I'm having difficulties finding out how to implement a 'configurable' behavior in a factory class in PHP.
I've got at class, which takes another class as an argument in its constructor.
The argument class could take a number of arguments in its constructor. An instance of my main class could look something like this
$instance = new MyC...
I have a plugin architecture solution written in .NET C# 3.5, where each plug-in is an assembly loaded by the main project.
Each plug-in can optionally consume web-service, so I would like to have the configuration of that plugin in its own plugin.dll.config file instead of having it in the
app.config of the main project.
I have been...
This is in part a continuation of issues encountered in configuring SQLite in a vs 2010 .Net 4.0 environment, originally started in this post.
The focus of that post was getting both unit testing and application runtime working, which has been resolved and so marked as answered accordingly. The focus of this post is the exception thrown...
Hi,
I want to compile a project (with CruiseControl) not only if its source changes, but also if some dependencies change.
example:
I got 3 folders:
c:\myProject\src (my source folder)
c:\dependency1\src (source code of dependency 1)
c:\dependency2\output (dll of dependency 2)
I want to compile my project in cruisecontrol if ...
This question was asked by Prembo back in February, but nobody answered. Maybe now someone has a recommendation? Thanks.
...
Let's say that you have a standalone application (a Java application in my case) and that this application has a configuration file (a XML file in my case) where you store the credentials (user and password) for a bunch of databases you need to connect.
Everything works great, but now you discover (or your are given a new requirement li...
I want to use the connection string App.Config file. Also is it possible to use NHibernate connect to 2 databases (different connection strings) if so how?
...
Is it possible to use a WYSIWYG editor in texarea
for Drupal site configuration form (system_settings_form).
This is how the configuration is coded now...
$form['my_module_text_bottom'] = array(
'#type' => 'textarea',
'#title' => t('Some text'),
'#default_value' => variable_get('my_module_text_bottom', 'This is configurable...
Hello Stackoverflow'ers,
I would like to know where are the WebSphere configuration details saved?
Specifically, configuration details that are shown in the Administrative Console (from the web) or from the console using wsadmin.
Some of the examples would be:
Java and Process Management: Class
loader, Process definition, Process
ex...
I have a third-party project type in Visual Studio which for some reason only supports the .NET Platform configuration for the build, for all other (standard C#) projects in the solution I only have AnyCPU. Unfortunately, ever since upgrading to VS 2010 it produces following error when built :
Error 39 The OutputPath property is
...
Hey,
If I have the following:
WSHttpBinding binding = new WSHttpBinding();
EndpointAddress endpoint = new EndpointAddress(new Uri("http://xxx:pppp/MyService"));
MyServiceClient client = new MyServiceClient(binding, endpoint);
How can I set the endpoint bindingConfiguration? If it helps my app.config is set to:
<endpoint address...
Hi everybody!
Currently, we use programming registration of WCF proxies in Windsor container using WCF Integration Facility. For example:
container.Register(
Component.For<CalculatorSoap>()
.Named("calculatorSoap")
.LifeStyle.Transient
.ActAs(new DefaultClientModel
{
Endpoint = WcfEndpoint.FromConfig...