settings

Best way to access user/site settings

There have been a couple of questions that sort of dealt with this but not covering my exact question so here we go. For site settings, if these are stored in a database do you: retrieve them from the db every time someone makes a request store them in a session variable on login ??????? For user specific settings do I do the same a...

What' the best way to save iphone app setting?

I'd like to allow user to change the setting of app. But I am not sure where shall I save the configuration. Is there any local space allocated for app? Thanks. ...

Best practices for storing UI settings?

hi there, we're currently planning a larger WPF LoB application and i wonder what others think being the best practice for storing lots of UI settings e.g. Expander States Menu orders Sizing Properties etc... i don't like the idea of having dozens of stored values using the delivered SettingsProvider (i.e. App.config file) although ...

Best way to read/set IE options?

What is the best way to read and/or set Internet Explorer options from a web page in Javascript? I know that these are in registry settings. For example, I'm using the JavaScript Diagram Builder to dynamically generate bar charts within a web page. This uses the background color in floating DIVs to generate the bars. I would like to ...

In SQL 2005/2008 management studio, how to I get the 'summary' tab to be visible?

Hi, In SQL 2005/2008 management studio, how to I get the 'summary' tab to be visible? I close it by mistake and want to open it again...any way without restarting it? ...

How to detect trusted site in IE?

Is it possible to determine whether my web site is being accessed as a trusted site? In another question we determined that, in general, it is not prudent to have visibility to client IE settings. Would this qualify as an exception? The reason I'd like to do this is that some functions won't work unless the site is being accessed as a...

How can I avoid automatically attaching to T-SQL for debugging in Visual Studio 2008?

When debugging web sites that I'm working on, I tend to use Attach to Process rather than F5 to start debugging (since the site's already on in Firefox). However, occasionally when doing so, I'll get the following error: EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'. I know this is caused by att...

Is there a setting to disable 'collapsing to definition' of comments in VS2005?

Is there an outlining setting to disable 'collapsing to definition' of comments in Visual Studio 2005? ...

Changing Keyboard Input language in Java

Is there a way to set/change the keyboard input language in Java (eg from English to German)? Example Use Case: Script to be used for playback is recorded (typed in) on a German keyboard. The automated playback is done on a English keyboard...fails if keyboard is not set to German automatically before script is run. ...

Oracle setting per user default scheme (not altering a session)

Hi all, is there a way to change an oracle user's default schema? I found it in the FAQ that I can alter it in the session, but it's not what I want. E.G. the user at log on always sees another schema as default. Thanks in advance. ...

.NET Settings Relative Path

I am working on an application where I have an images folder relative to my application root. I want to be able to specify this relative path in the Properties -> Settings designer eg. "\Images\". The issue I am running into is in cases where the Environment.CurrentDirectory gets changed via an OpenFileDialog the relative path doesn't re...

How to do hierarchical configuration in .NET's app.config

app.config configuration sections are nice, but I often need multiple configuration sets, but with small difference. what I want is: Have one section with default configuration (this one is created with the designer, and thus has the auto-generated strongly-typed accessors in the Settings class Another section with only the "new" item...

How to make Visual Studio's Settings view show lists better?

Currently , Visual Studio (2005 and 2008) can handle strings, numbers, connections, color, etc in their designer view a String collection can also be entered there. however, the default view shows the XML source, instead of the strings (when editing it, it is displayed OK) is there a way to have the string list display correctly? ...

How to Export/Import Toolbars in Visual Studio

I export my settings in Visual Studio and if I ever move to a new machine or have problems, I use those backed up settings to restore Visual Studio to the way I like it. It also allows me to maintain a consistent development environment between the various machines that I use. This works great for keybindings, syntax highlighting, user ...

How do you export settings from the Database Publishing Wizard?

I'm using the Database Publishing Wizard in VS2008 to push changes to my hosting provider. It doesn't look like those settings go with the project (which seems a little silly to me), but rather they go with the machine. On each new machine that I'd like to publish from I need to go through the process of digging up my database settin...

Programatically changing the culture of a DataGridView?

I'd like to change the pricing column on my DataGridView based upon currency a user selected currency ComboBox. Currently, the price column is formatted to "C2". This defaults to look like "$1.00". However, if my user were to switch the currency to be Great British Pound, I'd like to display the Great British Pound sign ("£") rather ...

How do I store an enum value in a Windows Forms settings file?

I'm using Windows Forms and VS2008. I want to store an enum value in my application's settings file. The settings editor in VS2008 only gives me a limited set of types. Amazingly, enums don't seem to be one of these types that are automatically supported - have I understood this correctly? From reading up on the subject, it seems lik...

Storing vim settings with a document

Is there any way to save the state of vim settings with a document? To clarify: I'm editing a document and I change a bunch of settings. I don't necessarily recall which; and I don't want to use these settings again, except for the current document. I don't want to manually try to remember what I've changed; or what the magic abbreviati...

Which Tomcat 5 context file takes precedence?

Tomcat documentation says: The locations for Context Descriptors are; $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml $CATALINA_HOME/webapps/[webappname]/META-INF/context.xml On my server, I have at least 3 files floating around: 1 ...tomcat/conf/context.xml 2 ...tomcat/Catalina/localhost/myapp.xml 3 ...tomcat/webapps/myapp/...

Saving user settings/database/cache... in Java (On every OS)

My Java application is saving stuff in 'user.home' but on windows this does not seem to be the correct path to save application information (as a friend told me). An other option is using the preferences api but it's not possible to set up the hsqldb location using the preferences api. Also, I want all files to be available in the same f...