i'm deploying my app to a shared hosting environment, and apparently i need to set up the root path in my environment file. when i try to boot it up i get this error:
** Starting Rails with production environment...
/home/donner/etc/rails_apps/donnerparty/config/../vendor/rails/railties/lib/initializer.rb:902:in `read': No such file or...
I intend to use the Pugh Decision Matrix to analytically reach a decision on this long running debate about the best approach (only with an academic interest though, it will be difficult to take sides).
I invite you to suggest appropriate criteria for the comparison between these two approaches.
...
Hi,
I'm writing an IHttpFilter which needs to be in a seperate project (these are all C# projects) to be used in a set of ASP.NET MVC Applications. In the IHttpFilter I have to determine a few things that are specified in the web.config file.
Is there a way of retrieving the current web.config file from an external assembly at runtime?...
I had a rare error in my Rails application. A CSS file was referring to non existing image files. And missing PNG file was somehow mapped to a controller action. Fortunately the action wasn't changing DB. This seems to be not OK that missing PNG can trigger controller action.
So should I disable mod_rails for static asset directories? ...
Env.: VS2008 C# project
Hi,
I need to build my app for use in 2 different environments. In one of those environments, I need to use a 3rd party DLL assembly.
I could isolate the code that uses this DLL using #if blocks. But how do I conditionally include the reference to the DLL in the CS project file?
Edit: womp has a good point in ...
What is best practice for using subversion (SVN) for managing a project that requires a single configuration file that has multiple concurrent versions for different environments.
I.e.
Project ABC is used for three different environments, that use the same code, except for a slightly modified configuration file. AND
Project ABC is al...
I have created a virtual directory on the IIS (IIS 5.1 that's what i'm using). when i try t o run the applciation from my browser using the URL
http://localhost/sitename .
i'm able to see the initial landing page . But when i force a controller action call like this .
http://localhost/controllername/actionMethodName
i receive the 40...
I'm writing a SQL CLR assembly that will be deployed to a third-party database server, but which needs to execute stored procedures residing in my database server. All the pieces are in place, but I don't know how to make the connection string configurable. Articles such as this: http://msdn.microsoft.com/en-us/library/ms345135%28SQL.90%...
Hi,
I am running JBoss 4.0.2 server and over the years it has created a large number of log files that I would like to clean up.
I would like to keep the same logging level but also have it delete any log files older than 3 months.
Is there a way to do that in the configuration or should I just write a perl script?
Thanks.
...
Here is the situation. I had a clean build of my asp.net web application working. I then went into the bin folder under the web app and replaced two referenced dll's with two older version of the same dll's. (Same name etc.) After testing I replaced those dll's back to the new ones and now my application keeps throwing the configuration...
Hello,
By default git instaweb is expecting lighttpd web server, whereas on OSX Leopard server apache2 is the default one.
Adding the following to .git/config :
[instaweb]
local = true
httpd = apache2 -f
port = 4321
modulepath = /usr/libexec/apache2
and running 'git instaweb' results in :
apache2 not found.
Install apache2 or use...
I have a Python app. It loads config files (and various other files) by
doing stuff such as:
_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
CONFIG_DIR = os.path.join(_path, 'conf')
This works fine. However, when I package the app with py2exe, bad things happen:
File "proj\config.pyc", line 8, in <module>
Window...
Is there a way of running an ASP.NET website in a subfolder of the website?
As an example, say I wanted to run the screwturn wiki (http://www.screwturn.eu/) in a folder called "wiki" on my website, can I alter the web.config of the screwturn website to tell it that it is running in the "wiki" folder? (like saying that "~/" = "/wiki/")
...
I'm about to take a look at how to implement internationalisation for an ASP.NET MVC project. I'm looking at how to allow the user to change languages. My initial though is a dropdownlist containing each of the supported langauages. Whoever a few questions have come to mind:
How to store the list of supported languages? (e.g. just "...
I'm trying to figure out if there's a way to determine the JVM startup properties from within a running java process. Specifically I'm trying to find out where parameters such as -Xmx (max heap size) and -XX:MaxPermSize are stored. I'm running Sun's 1.6 jvm.
If you're wondering why I want to do this, I have a number of JVM webservers ...
Hi,
As suggested on msdn social forum,
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/ab59671a-f0a3-4182-ba5b-7fa17f0a6118?prof=required
I turned off the the Visual Studio hosting process and verified that the changes are saved to MyApp.exe.config file instead of MyApp.vhost.exe.config file when still running under Debug...
In my Spring xml configuration I'm trying to get something like this to work:
<beans>
<import resource="${file.to.import}" />
<!-- Other bean definitions -->
</beans>
I want to decide which file to import based on a property in a properties file.
I know that I can use a System property, but I can't add a property to the JVM a...
I have a source tree for a .war file that I need to modify so that I can add some application-specific configuration info (in this case a jdbc connection string, but I may have other properties-like resources). What are the best practices for where to put configuration info and how to access this from within the Servlet?
I'm guessing th...
Okay. Forgive me, but I'm going to vent a little here. Visual Studio doesn't recognize my TNSnames for oracle so I can't connect to my database. I believe the problem is that I have multiple homes on my machine, one for me (In C:/app/{UserName}/product/11.1.0) and one general one which was already installed on my machine (In C:/oracle/pr...
Hello,
I'm developing a plugin like application for a web site. Due to requirements it will live in the same physical path and the same application pool as the main web site which I do not have the source code for. So they both share the same Web.config and some other dependencies.
I need to set a license for a third party dependency a...