user-preferences

.NET - Click-Once / Smart Client Applications - Browser Cookie Equivalent?

Is there an equivalent to browser cookies for Smart Client / Click Once application development on .NET 3.5? Some place I can store cookies on the user's machine rather than the server. Or to put it another way - what file location can you write to from a sandboxed Click-Once app that won't violate good security practices. I don't wa...

iPhone settings bundle

I want to allow the user to enter a valid date using the iPhone’s settings application. I have experimented with many of the PreferenceSpecifiers data node types including date. I have two issues: When I specify date as the type, my app within the settings app crashes. Working examples would be greatly appreciated. Since this approac...

NHibernate Web Application - Managing User Preferences

I've got a web application with an NHibernate Data Access Layer. I have a large number of user preferences that can be stored, these are mainly booleans for example registering that a dialog has been dismissed and should not be showed again. The problem is that with NHibernate I need to add to my database schema, and add a property to ...

(Rails) Managing USER PREFS with a MASTER PREFS fallback...?

Hi All, I'm looking for a mechanism by which to facilitate user preferences. I also want to have a set of "master" prefs that are used if the currently logged in user doesn't have a specific pref set. I see several questions similar to this, but they seem to get into theory instead of simply proposing a quality solution. Basically I'...

Finding the preferred application for a given file extension via unix shell commands

Hi, this may not be strictly about programming, but if I find no ready-made solution it may become a programming task: On UNIX, what is a command-line method for determining the user-preferred application for a given filetype? My ideal solution here would be a command that stopped me having to do the following: okular foo.pdf And al...

How to register user defaults using NSUserDefaults without overwriting existing values?

I have an AppDelegate class with +(void)initialize method that I use to register some defaults. Here's the code that I use: + (void)initialize { NSDictionary *defaults = [NSDictionary dictionaryWithObjectsAndKeys:@"NO", @"fooKey", @"YES", @"barKey", nil]; [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; } I also...

Best way of handling user settings in a program

I want to know what are the best ways/practices of handling user settings in a program. I'm writing a program and want to allow users to save settings which can be loaded automatically as soon as the program starts. I'm not just asking for codes, but the best practices of handling such as how to handle the settings at run time, should I ...

Storing iPhone application settings in app

My iPhone app has few settings that users is likely to change quite often. I would like to know if there's any suggested way of handling such settings (reading and saving them). On Apple sites I found only a tutorial about integrating your application settings with Settings app (link) but I don't want a user to exit my app so he could ju...

What is the way to handle a user preferences file in Flex3 ?

Hi, I need a way to handle user preferences in a file. Of course, users can update their preferences. What is the best way to do that ? .ini file or .xml file ... Any snippet to start with ? TIA ...

Where should I store user config data? Specificaly the path to the data file?

I have an app using a SQLite db, and I need the ability for the user to move the data file and point the app to where it moved to. I used the Entity Framework to create the model, and by default it puts the connection string in the App.Config file. From what I've read if I make changes to the connection string there then they won't take ...

UIRibbon: How to change font face and size?

How do you change the font face and font size used by the Windows Ribbon Framwork's UIRibbon? The font used by the ribbon does not match the font the user has chosen as their Windows preferences - which is the preference my application uses. This means that as the font in Windows gets bigger, the ribbon gets smaller: Here an an older...

Different options on how to keep a website's preferences?

Hello, I am in the process of renovating our CMS and I've run into a situation that I don't know which solution to adopt. Basically each one of our clients houses their website's content in their own database. This includes content, surveys, search words used by visitors, menu strucutre, etc. A lot of the content on our clients' websit...

Saving state of a Window in Java/SWT

Hello, I'm trying to build a small application using Java and SWT for the GUI. I'm looking for a way to store in some file the preferences set by the user, I mean, if the window was resized then that new size should be saved for next time the application starts. The same thing with some controls like textbox and so on. I came up with t...

Cocoa multiple user preferences on a single mac account?

Hi, I am currently in the planning phase for a scheduling and data tracking software. I want to let the primary user add password protected profiles to the program so that different people can use the program with access to different sets of the data and different capabilities. On of the things that I would like to add is the ability to ...

Vista/7: How to get glass color?

How do you use DwmGetColorizationColor? The documentation says it returns two values: a 32-bit 0xAARRGGBB containing the color used for glass composition a boolean parameter that is true "if the color is an opaque blend" (whatever that means) Here's a color that i like, a nice puke green: You can notice the color is greeny, and th...

Scheduling Email Notifications

I'm trying to figure out a good solution for sending email notifications based on user preference. Users can set up notifications to come Everytime the event occurs Once an hour Once a day Once a week Would the best way to do this be to set up a crontab that runs a .php every minute checking to see if anything needs to be sent out? ...

How do you handle user preferences?

Like most software, users are able to specify how they'd like to handle certain things. In my case, users can specify what kind of formatting they would prefer. There are 3 options, leave unformatted, camel case or proper case. I currently have it working but it feels very clunky and repetitive. Here is a jist of the class. public stati...

re-prompt to choose default activity

is there a way to reprompt the user to choose a default activity for an intent? For example, user selects his default home apk and I want him to reconsider his choice once again. I know how to do that on 2.1 and before, but is there a way to do that now on 2.2? Famous Home Switcher, which did similar thing, does not work on 2.2 anymor...