configuration

Best way to alter constants in Java build process

I have inherited a Java application (servlets) that runs under Tomcat. For historical reasons, the code has different "look and feel" options based on where the application will be deployed (essentially a matter of branding). There are several constants that control this branding process, which have different functions and should not be...

Do you have to mess with Rails's "routes.rb" file?

I never touch routes.rb beyond calling map.root to set a default route. I've always been content to use URLs of the form... /controller/action/perhaps_an_id and it works fine. Does this make me a bad person? Am I missing out on something totally awesome? What if I try to adopt RESTful design? Would that mean I have to edit routes.rb...

Why is PostgreSQL eating up all my precious HD space?

Hi again, I just finished transferring as much link-structure data concerning wikipedia (English) as I could. Basically, I downloaded a bunch of SQL dumps from wikipedia's latest dump repository. Since I am using PostgreSQL instead of MySQL, I decided to load all these dumps into my db using pipeline shell commands. Anyway, one of thes...

Postgresql.conf variables

Hi again, I have been playing around with the postgresql.conf file for a couple days now. I was wondering what variables you guys like customizing and why? Here is a sample of the file: # - TCP Keepalives - # see "man 7 tcp" for details #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds; # 0 selects the system default #tc...

Read MSDTC configuration

Hi All, Does anyone have any ideas on how to read the MSDTC configuration on the current machine? I am specifically trying to check that the user has performed the following steps: Open Component Management (Start > All Programs > Administrative Tools > Component Services) Double-click on Component Services, then expand Computers. Ri...

VS2008 Open .cs file in Code View instead of Design View

I am writing a windows service in VS2008 - c#. When I double click on a .cs file in the Solution Explorer it opens in Design View by default (Windows Form Designer). Is there a way to configure it to open in Code View (Text Editor) by default as this is driving me crazy. Thanks ...

Configuring IIS7 for PHP on multiple sites

I have PHP5.2.8 installed on IIS7, and it works fine for my default site (at C:\Inetpub\wwwroot). Now, I need to run local copies of my company's sites on my machine, and each of those are directores in wwwroot. I have set each up on a separate port so I can just go to http://localhost:[portnum] to get to each. If I try accessing a fi...

How do you access HTTP GET parameters in Nginx prior to version 0.7.8?

The changelog lists version 0.7.8 as the version that introduces the $arg_X notation to access the HTTP GET parameter X from within nginx.conf. Unfortunately, the wiki is very up to date. How do you access HTTP GET parameters from within nginx.conf before this version? ...

Query/Change SPNs on Windows Domain without SetSPN

Hi All, Has anyone had any luck with querying/changing SPNs on a Windows domain? Most of the hits on Google are SQL related: I can't find any information on how to do this myself. The most important things would be to query to SPN configuration and check for duplicates. According to Arnout I made the following code: static void Ma...

How do I reference SSIS on a build machine without installing SQL Server 2008 Client Tools?

I need to build SSIS packages on a build machine, and do not want the overhead of installing SQL Server Management Studio on this machine. A SQL Server 2008 SDK would be ideal, but I could not find where to download it. The dlls I require are (for example): Microsoft.SQLServer.ManagedDTS Microsoft.SqlServer.PipelineHost Microsoft.Sql...

.NET: Which Exception to Throw When a Required Configuration Setting is Missing?

Here's a standard scenario: if(string.IsNullOrEmpty(Configuration.AppSettings("foobar"))) throw new SomeStandardException("Application not configured correctly, bozo."); The problem is, I am not entirely certain which exception SomeStandardException should be. I perused the 3.5 Framework and found two likely candidates: Configura...

Retrieving application settings after a name change?

I have a Windows forms application that contains per-user settings. I'm using Properties.Settings.Default.Upgrade() to preserve these settings between versions and everything is fine. Recently I had to change the exe name of my application, so after an upgrade, all settings revert to default values. I guess the settings system thinks ...

How can I include a CDATA section in a ConfigurationElement?

I'm using the .NET Fx 3.5 and have written my own configuration classes which inherit from ConfigurationSection/ConfigurationElement. Currently I end up with something that looks like this in my configuration file: <blah.mail> <templates> <add name="TemplateNbr1" subject="..." body="Hi!\r\nThis is a test.\r\n."> ...

Does Visual studio Team Foundation Server really need to be on it's own machine?

So we decided to go with visual studio team foundation server for version control, etc. Getting ready to deploy today and read in installation guide: "You cannot install Team Foundation Server on a domain controller or a computer that is running other server products such as Exchange Server or Host Integration Server." That and other ...

How can I automatically enable content approval on a SharePoint list?

I'm trying to create a feature that both creates a list template and an instance of that list (using the <ListTemplate> and <ListInstance> elements. I would like for content approval to be turned on by default. According to the docs on ListTemplate, setting the EnableModeration attribute to TRUE should do it. However, when I try to insta...

Will .net 2.0 and 3.5 run side by side?

We're a development shop that still does most of our development in .net 2.0. We're starting to think about using some of the new things in 3.5 (LINQ, etc) and there are some other software packages we're looking at that need WPF and so on. We'd like to get 3.5 up and running on our test server, but without wrecking any of the 2.0 site...

Setting SendTimeout in my WCF app.config

Hi, Little confused looking at my app.config, it looks like this: <system.serviceModel> <servcies> <service> <endpoint address="" binding="basicHttpBinding"> <identity> <dns value="localhost" </identity> <endpoint> </service> </services> <behaviors> <serviceBehaviors> ...

SQL server hardware configuration

What is the best strategy in the hardware configuration of a SQL server machine? To my knowledge you set it up the following: RAID 1 (2 disks) --> OS + SQL Server installation RAID 1 (2 disks) --> SQL Server Logs RAID 5 (4 disks) --> SQL Server databases What have you experienced? Is there a better way to do it? ...

What is your PHP development environment configuration?

Hello, I've found some resources here about what is the best IDE for PHP. But they don't have a answer for my question. I would like to find an answer how to create rich and functional development environment configuration to create PHP web apps. What I think would be necessary to gain power in this area is: Code Completition Syntax ...

Linux system to manage configurations of servers?

I need a software to manage configurations of linux servers in one central location. It should be able to push changes to servers automaticly. Version control would be an advantage... ...