I have the following location directive in my nginx config file:
server{
...
location ~* .js$ {expires 1d;}
...
location / {
...
}
}
I expect a file served by this URL http://www.mydomain.com/javascripts/myfile.js to have an expiration of +1 day, but I am seeing an expiration of +20 years. What am I doing wrong?
...
I usually use Commons Configuration for manage my applications configs. I have used properties files configuration. Now I'm interested in using a JNDIConfiguration but I'm not able to understand how this works reading the documentation or googling it.
Contextualizing, I'm working in webapps running in an JBoss AS.
Where will be the pro...
I'm trying to build a class diagram in Sparx Enterprise Architect for future usage in Ruby project.
How should I set up base code datatypes (Settings -> Code Datatypes...)?
It should be something like: Datatype = Common Type (additional notes, if any). Does anyone know what pairs should be input?
I'd also highly appreciate advice on h...
Seems this namespace is limited to IIS7 and upwards. Are there any managed libraries from Microsoft or elsewhere that enable you to survey the configuration (just looking for read only config) for a given set of IIS installations?
Otherwise one would have to poke through web.configs, the metabase, and try to cobble it all together.
...
Hello,
I'm programming a fairly simple application which I want to cut to just one simple exe file + some data storage (XML for example).
My question is regarding configuration files. Where to put those files? I saw few applications that have just exe file (uTorrent, Media Player Classic - I can use them without any installation), but ...
I am working on a .NET app that will also run on iphone via monotouch and osx/linux via mono. The app will hold profiles for various users and the profile used for a particular session will be selected on startup, kind of like Skype.
To store per-user settings, I am considering using the Application Settings system that's part of .NE...
Hi,
I just installed the rails-settings plugin to help manage the configuration of my app. I can declare settings with namespaces like so:
Settings['preferences.color'] = :blue
Settings['preferences.size'] = :large
Settings['license.key'] = 'ABC-DEF'
However, according to the documentation, I should be able to return all the se...
We have created a WinForms application and store some configurations via the ConfigurationManager class. In order to store the information I use
Configuration pConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
pConfig.AppSettings.Settings.Add("updates", szUpdatesURL);
pConfig.Save(ConfigurationSaveMode.Mo...
Unit and integration testing is usually performed as part of a development process, of course. I'm looking for ways to use this methodology in configuration of an existing system, in this case the Asterisk soft PBX.
In the case of Asterisk, the configuration file is as much a programming language as anything else, complete with loops, j...
Please some help on how to debug this!
On my development machine I can succesfully host a local WCF service that uses a SQLIte database for its storage.
I simply xcopied the wcf service dll's, the database file and the System.Data.SqLite.dll to the win 2008 server. The server hosts the the WCF service in IIS7.This worked without a hitch...
A user wants me to create an app that does something everything he presses the X key.
Now he asked me to make it so he can change what key he has to press. Maybe he wants X key today, maybe C key tomorrow.
How can I easily do this in C#? What is the best way?
...
I develop an open-source Objective-C framework, and I use Doxygen to generate the documentation (http://dysart.cs.byu.edu/CHDataStructures). Overall, Doxygen does a nice job, but I have a perennial annoyance that I can't figure out for the life of me.
I use the \name command and Member Groups to group methods by task (these Apple docs s...
I'm using stripped down as much as possible configuration of Qt but now I need to use the dbus and can't figure out what I need to include to be able to use it? There doesnt seem to be anything obvious to me using the qconfig tool. The errors I get at the moment when making are:
qdbus_symbols.cpp:53: error: expected initializer before ‘...
We are developing a large scale business application using most new technologies through .NET 3.5 and we are using EF as DataAccessLayer in our architecture in addition to Transaction management which automatically uses System.Transaction and MSTC.
We need to deploy this application by ClickOnce method for over 300 end-user in each custo...
Using NetBeans 6.8 I managed to write a JAX-WS Web Service client for a service which runs in the Internet.
Within NetBeans, communication through the HTTP firewall works fine.
Now I tried to run the client in a Servlet in JBoss 4.2.3.GA, here the request fails with the message:
HTTP transport error: java.net.UnknownHostException: www...
I'm using ConfigParser to load in data from a configuration file as follows:
test.conf:
[myfiles]
fileone: %(datadir)s/somefile.foo
filetwo: %(datadir)s/nudderfile.foo
load.py:
import ConfigParser
config = ConfigParser.ConfigParser({'datadir': '/tmp'})
config.read('test.conf')
print config.items('myfiles')
print config.get('myfile...
My Scenario
I have a class library that is going to be called from multiple separate executable applications. This class library needs to know about an address of a database server (and many other configuration options, auth info, etc) to access. I have a configuration and administration application, separate from the class library, tha...
I've been having a hell of a time trying to get LDAP authentication working with this application (apache Roller). It seems like it would just be "populate the right fields and go", but I'm still attempting to authenticate against the database (the default authentication method).
I don't understand what's telling spring-security to use...
It's somehow related to Eclipse. For example:
<Host>
<Context docBase="foo" path="/foo" reloadable="true"
source="org.eclipse.jst.j2ee.server:foo" />
</Host>
...
When I scroll to the bottom of an open document in the Eclipse editor, the last line is at the bottom of the file. This is a tad annoying when editing code at the bottom of the file / screen.
How can I enable Eclipse to scroll (much like Vim or VS) down far enough that the last line of code reaches the top of the editor window?
I'm as...