configuration

Can I rename LOCAL, REMOTE and BASE as used in git mergetool?

Lets say I'm doing a rebase B of a branch onto master and there's a conflict. git opens up the default merge tool with 3 files as input : file.LOCAL, file.BASE, file.REMOTE (they're named a little differently, but LOCAL, BASE and REMOTE are in the file names and is how they are distinguished). Now, according to the mergetool man page: ...

Can IIS admin change password of Windows Service account

We have a service account defined for anonymous access which is used for several web sites hosted on the web server. This account has access to several network resources like report server, file servers and so on. While deploying a new web site, we used the same service account for anonymous access. IIS takes the username/password for ...

What's your best Ubuntu and Eclipse setup for Java development?

What're the best versions and configuration tricks for building a happy Java development environment with Eclipse on Ubuntu? I'm at Ubuntu 8.10 and Eclipse Ganymede 3.4.2, so I'm behind on both fronts. With my current setup, Eclipse often slows to a crawl and I have to restart. I'd love to upgrade to the latest OS and IDE. However, I've...

How to enable fall-through directories in Linux, so if /path0/file doesn't exist, path1/file is used

I'm seeking way to have linux fall-through on directories so that with this structure: /dir0/a.txt: "A" /dir0/b.txt: "B" /dir1/c.txt: "C" /dir1/b.txt: "BBB" dir1 falls back to dir0, leading to: cat dir1/a.txt: "A" cat dir1/b.txt: "BBB" cat dir1/c.txt: "C" ...

Config transformations and “TransformXml task failed” error message

I’ve just enabled config transformations on a .NET 3.5 project in VS2010 RC after watching Scott Hanselman’s video on web deployment. Unfortunately every time I go to publish I now get the following error: The "TransformXml" task failed unexpectedly. System.UriFormatException: Invalid URI: The URI is empty. at System.Uri.C...

Use WCF service as component with existing app.config

We have developed a WCF Service that will be used from another service. Both of these are on the same machine, but we have to host them in IIS. This restricts us to HTTP, which is kinda killing our performance. Is there any way to use the other service as a component (thus reference the dll's), but still use the same (or perhaps a c...

How do I change the way PostGres starts?

I'm really struggling trying to figure this out... Really, really hope someone here can dumb this down for me... Another related question was pretty much answered, and I felt bad about keeping it open... Basically, I have PostGreSQL installed. I just installed Darwin ports and the Pgtcl package or library or whatever you call it, acc...

what special issues are at play when loading a config file from the comand prompt with DTExec

If I run a package from the Management Studio, and specify a configuration file, everything works as expected. I can also set the package to get it's config path from an environment variable, and that approach works as well. However, if I try and run the package from the command prompt with DTExec I get the error: Cannot load the X...

Is it considered a good/bad practice to configure tomcat for deploying certain apps?

Disclaimer: I've never used the technique which is described below. That's why there may occur some mistakes or misunderstandings in its description. I heard that some teams (developers) use 'pre-configured' tomcat. As I understand they add different jars to tomcat \lib folder and do something else. Once I've read a thread in a java f...

While decrypting the web.config get an error

Hi Guys, I am just trying to test this. And here is my command line: aspnet_regiis.exe -pdf "connectionStrings" c:\web.config And this is the error I got. Error – "The configuration for physical path ‘C:\Web.Config’ cannot be opened. And the permissions of that file is not read only. Can anyone please suggest. ...

Limit Recursion Error / Rewrite Log file

I am getting an error from a probable infinite loop on my server. My set-up is an Apache2 server with all sites set-up using the Virtual Host method. Problem: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to ...

Uploadify works for Visual Studio but not for IIS 7(same machines), using Forms authentication. Does anyone have a working uploadify configuration for IIS 7 where they save to a subfolder?

I'm using the Uploadify jQuery control for client-side uploads. I think my IIS 7 configuration has issues with it. The uploadify POST immediately returns a HTTP 1.1 302 Found, back to my login page. I've tried to allow anonymous access to the uploading section(subfolder) plus the page(script) that processes the image in the web.config,...

Cannot login with PhpMyAdmin on Mac os x 10.6. Does anyone know a fix to this error message?

Hi, I just reinstalled Mac Os X 10.6.2 and had to reinstall/update my MySQL server. I run phpMyAdmin inside my localhost and I used to be able to login without a hitch. Since the updated (latest version MySQL 5.1.45 & PMA 3.3.1) versions I only get the following error when trying to login with phpMyAdmin: phpMyAdmin - Error Cannot st...

How to translate a config.ini file into C#.NET objects

config.ini: [globalloads] plugin.SWPlugin = 1 plugin.SWPlugin.params.1 = true plugin.SWPlugin.params.2 = 10 [testz : globballoads] plugin.SWPlugin.params.2 = 20 plugin.SWAnotherPlugin = 1 Simple enough? // load testz config and programmatically create this equivalent code: SWPluginAbstract p = new SWPlugin(true, 20); // go thru the ...

Autoloading Development or Production configs (best practices)

When programming sites you usually have one set of config files for the development environment and another set for the production server (or one file with both settings). I am assuming all projects should be handled by version control like git or svn. Manual file transfers (like FTP) is wrong on so many levels. How you enable/disable t...

config['pylons.g'] AttributeError pylons

Having the following error AttributeError: 'NoneType' object has no attribute 'sa_engine' on this line in model/init.py Session = scoped_session(sessionmaker(autoflush=True, autocommit=False, bind=config['pylons.g'].sa_engine)) When printing config dictionary, it has 'pylons.g' key but value at this key is None. I do not understand ...

config file in schedule.rb with Rails Whenever gem?

I have a file called config.yml in my /config folder of my rails application. I also have an initializer: config/initializers/load_config.rb with the following code: APP_CONFIG = YAML.load_file("#{RAILS_ROOT}/config/config.yml") I am using the Whenever gem to set up a cron job, and would like to use my APP_CONFIG to call a function li...

Eclipse: How can I set the {user} variable ?

I'm using Eclipse (v3.5.2 to be exact), and the several of the plugins I'm using use the {user} field to populate various things (for instance, Egit puts the username and email address in commits, and the StatEt plugin for R puts the username as the Authour tags in roxygen Rd doc files.) However, On my system my username is meaningless ...

Zend Framework - Reading Application.ini values from a Controller

I am trying to store my Google Maps API Key in my application.ini file, and I would like to be able to read it from my controller whenever its needed. How can I go about reading values from the application.ini from my controller? Thanks! ...

Configure NHibernate with mapping assembly dll in other dir than config file

Hi First I will try to explain what I want to do. The app loads a NhHibernate config file and parse the xml, allowing changes to the connection string and the mapping assembly. The problem is that when I run the app in the directory that contains NHibernate.dll and all references, it works well, but if I run the app from other direc...