configuration

Powershell: how to map a network drive with a different username/password

Background: Assume I use the following powershell script from my local machine to automatically map some network drives. $net = $(New-Object -ComObject WScript.Network); $net.MapNetworkDrive("p:", "\\papabox\files"); $net = $(New-Object -ComObject WScript.Network); $net.MapNetworkDrive("q:", "\\quebecbox\files"); ## problem -- this on...

How to use some configuration file for JEE servlet?

I need to access some files on servers from servlet. They have different paths on my development machine and on the deployment server. I would like to put some config file (with paths) somewhere (like shared dir in capistrano deployment) so application could read it. Or maybe set some property on the application server or anything like t...

syslogd remote packets

How do I know whether a syslog daemon which is already running is configured to accept remote packets? I do not have admin privileges. The default setting says NO. I want to know whether it is overridden when the syslogd is started. ...

Best Practice of Using org.apache.commons.logging.LogFactory.getLog

May I know what is the best practice of using org.apache.commons.logging.LogFactory.getLog? For me, I use it the following way : public class A { private static final Log log = LogFactory.getLog(A.class); } public class B { private static final Log log = LogFactory.getLog(B.class); } So, if I have 100 of classes, 100 of stat...

Why does Apache mod_perl build using APACI lose CFLAGS?

I am trying to build Apache 1.3.41 with mod_perl 1.31 for deployment to a Solaris 8 SPARC server. We must use 1.3 for now because of a number of essential applications currently deployed to a very large scale web site. I am using the new(er) APACI technique as described in the mod_perl install docs but when I look at the compilation com...

Can you create an ASP.NET MVC website without the project?

Hi Is it possible to create a MVC website without having to create a MVC web application via Visual Studio? Basically I just want it to be a simple website and not to have to recompile it in VS. I want to develop it as a 'Web Site' on a test server and connect with front page extensions in VS express. If I copy the files from a MVC Appl...

My.Settings.MyConnectionString works but app.config dont?

I'm not a WinForms developer, but have been doing ASP.NET for quite some time. I have to write something in VB.NET that just pushes some simple data to a database. So I created the VB.NET WinForms app (Visual Studio 2005). When I run the app it works fine for using: Dim conMyData As SqlConnection Dim cmdInsert As SqlCommand ...

Xcode: different build setting options for different configurations. Why?

In my Xcode project, I'm looking at the "Target Info" window, "Build" tab. In the list of compiler settings, for most of my configurations ("Release", "Distribution", and "Ad Hoc"), there's a settings section called "GCC 4.2 - Preprocessing". When I switch to my "Debug" configuration, that section goes away. What can I do to make my "De...

how to configure same profile for every user in a organization

I need to set the user variables and settings for every user in a domine when I am configuring the workstation for him. the settings. are :Advanced performance options- visual effects for best performances 2. Java Auto update option is to be disabled or unchecked 3.in Internet security sttings under Download - Misclanious -DIsply Mixed...

ActiveRecord-JDBC is for use with JRuby only problem

I'm running ruby script/server from the command line and getting ActiveRecord-JDBC is for use with JRuby only it then suggests gem install activerecord-jdbcmysql-adapter but when I try this it says that (no such file to load -- java) (RuntimeError) I've tried a fresh install of Rails and reinstalling the gems, but still not joy. A...

What's the best way to store global application settings in a Rails application?

I want to handle two kinds of global configuration settings: Settings which can be altered by the user, like if notification mails for certain events are sent or not. Settings which are tied to a specific product edition, like disabling a feature in a free version, which is only available in the commercial version. What's the best w...

What have your ASP.Net MVC deployment experiences been?

I've been waging a bit of a battle with MVC recently, trying to get it deployed and working correctly on my web host server. While the host (ixwebhosting) has been very prompt and efficient at resolving some of the technical difficulties, I'm still encountering odd behaviours around getting the views to render. Specific issues I've str...

What's the point in hard coding values which may change?

Hi, When coding systems which use configuration information, it is always a best practice to soft code these on some medium like Xml so these values can be edited without recompiling the entire system. However, plenty of values like Urls are hard coded and these can change. What's the benefit in coding this way? This obviously reduces ...

Android application configuration

Where should I store my Android application's configuration settings? Coming from the .NET world I was expecting something like .config. Do I create a file under res/values, and use that? ...

Finding what options were selected during VMWare installation

Hi there, I've installed VMWare Server on CentOS and have WinXPx64 running under it fine. However I cannot work out how to get the answers I gave to the questions VMware asks when I installed it. To be honest I guessed a few answers, took the default on most and changed a few based on my best judgement. So it might be a bit lucky I g...

Blank Web Service Identity, SSRS, Configure Report Server

Hi, I am currently setting up a Sql Server Reporting Services onto a Windows 2000 server with IIS5 and SQL Server 2005. The only thing I cannot get to configure is the Web Service Identity, in that the ASP .NET Service Account is blank and is read only. I have tried adding the ASP account (machinename\ASPNET) into rsreportserver.config...

xcode build configurations search paths

my iphone app builds fine in debug configuration, but when i change it to release, i get hundreds of errors, starting with "CoreServices/CoreServices.h: No such file or directory" in AudioFileComponent.h - part of the AudioToolbox framework. i can't find where in the project/build settings is responsible for this.. thanks for any help. ...

VS2008: how to run two separate projects from the same solution

I have a single un-managed C++ console-app solution (.sln) with two projects (.vcproj) both are built as .exe. I want to run them both at the same time (one is a client and one is a server). How do I configure my Visual Studio such that when I hit a single button, say F5, it would be smart enough to run one after another, in the order th...

Java Web Application Configuration Patterns

Are there any patterns or best practices that can be used to simplify changing configuration profiles for java web applications across multiple environments. e.g. JDBC URLs, SOAP end-points, etc. As a bit of background to help clarify my question, I work with several large java web applications that during any given release cycle move...

How to configure Telelogic Synergy so that the default type for "unknown" file is binary rather than ascii ?

Hi, if I am not wrong, Telelogic Synergy mapped new files to a type depending of their extensions. If the extension is unknown, the file is by default declare as a base type ascii. Is it possible to make sure that "unknown" file type end up as binary rather than ascii ? Thanks, Thomas ...