application-settings

Vue.js exclude settings file from being bundled

99封情书 提交于 2019-11-30 18:57:45
问题 I am using the vue-webpack template and I have created a settings.json file to store environment variables that should be changed when installing the script. My settings.json (just store the absolute path to the API server): { "apiURL": "//localhost/app/server/API" } How can I keep the file from being minified/bundled in the production version such that I can change it and the updated file will be used next time the app is accessed (without having to build it again) ? In my app I use this

C# - User Settings broken

半城伤御伤魂 提交于 2019-11-30 18:42:24
We had a rare exception occur when reading the standard .Net user settings (this are the ones found in "project properties" in VS 2008): System.Configuration.ConfigurationErrorsException was caught Message="Configuration system failed to initialize" Source="System.Configuration" BareMessage="Configuration system failed to initialize" Line=0 StackTrace: at System.Configuration.ConfigurationManager.PrepareConfigSystem() at System.Configuration.ConfigurationManager.GetSection(String sectionName) at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName) at System

Keep settings in sync between forms application and windows service (or any n-tier, really)

浪尽此生 提交于 2019-11-30 14:42:29
I have a Windows Service that performs a number of periodic activities, and I want to change the settings of this service from a Windows Forms app. I'm not sure, though, about the best way to make sure the service has the most updated user preferences in it (how often to run, what folders to use for things, whatever else the user can specify). The user can change settings any time, at will, and I'd like the service know about it almost immediately. Here are the options I'm weighing: The form and service share use the same "Settings" object from a third, shared project, and the form uses a WCF

How to update external config files without rebuilding war file in Grails

荒凉一梦 提交于 2019-11-30 14:14:23
问题 How to update external config files (e.g.: config-ex.groovy , config-ex.properties ) without rebuilding the war file in Grails? Restarting the application server will apply the new updates from external config files. 回答1: If I understand well you want to externalized Grails config outside the war. You can define an external config in your config.groovy like this grails.config.locations = ["file:path/to/your/Configfile.groovy"] See the Grails doc 4.4 Externalized Configuration 回答2: Define your

Unable to access ConfigurationManager.AppSettings in a Windows Forms Application

試著忘記壹切 提交于 2019-11-30 11:36:30
How can I access ConfigurationManager.AppSettings in my Windows Forms Application? The error message reads: The name 'ConfigurationManager' does not exist in the current context. Add a reference to System.Configuration.dll. I've had this experience before where I had to go and add a reference to System.Configuration to be able to use this funcitonality. Right click on your project in the solution explorer, select Add Reference then select the .Net tab (it should be selected by default), and select System.Configuration 来源: https://stackoverflow.com/questions/1796851/unable-to-access

How to open settings app programmatically?

▼魔方 西西 提交于 2019-11-30 11:22:43
I'm using swift with ios 8.3. I want to open settings app from my application. I know that using the code UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!) will open my app settings. But I don't want to open my app settings. I just want to open the settings app and stay in the main page. If possible, navigate to "Cellular". Is there any way to acheive this? Try this. if let appSettings = URL(string: UIApplicationOpenSettingsURLString) { UIApplication.shared.open(appSettings, options: [:], completionHandler: nil) } Xcode 8.2.1 - iOS 10 Update on 11

How to update external config files without rebuilding war file in Grails

只谈情不闲聊 提交于 2019-11-30 09:58:45
How to update external config files (e.g.: config-ex.groovy , config-ex.properties ) without rebuilding the war file in Grails? Restarting the application server will apply the new updates from external config files. If I understand well you want to externalized Grails config outside the war. You can define an external config in your config.groovy like this grails.config.locations = ["file:path/to/your/Configfile.groovy"] See the Grails doc 4.4 Externalized Configuration Define your external Grails config with: grails.config.locations = ["file:some/path/to/Config.groovy"] Then to reload them

Settings.Default.<property> always returns default value instead of value in persistant storage (XML file)

吃可爱长大的小学妹 提交于 2019-11-30 09:03:21
I recently wrote a DLL in C# (.Net 2.0) which contains a class that requires an IP address. A co-worker of mine altered the class to retrieve the IP from a ".dll.config" (XML) file -- This apparently is automatically generated by the "Application Settings" file he created (Settings1.settings). The benefit of this was to allow the end-user to change the IP address in the XML/config file at will. Unfortunately, when I check his code out of the tree and try to compile (or use) this new code, any application calling this DLL only gets the default value, rather than the value from the file. The

Android - Push Notification are ON?

痴心易碎 提交于 2019-11-30 08:41:31
How to check programmatically if user turn off push notification in app settings? Can I open app settings intent directly from the app to prompt user to turn it on? Thanks Assuming you are referring to Google Cloud Messaging (since you are using the android and push-notification tag), there are no general settings used to enable/disable the GCM service (unlike the Apple Push Notifications service for iOS devices). When you install an app, if the app uses Google Cloud Messaging, it will be listed in the list of permissions that this app requires in order to work. By choosing to install the app

Documenting (XML) Application Settings in Visual Studio 2010

喜你入骨 提交于 2019-11-30 08:28:20
问题 I recently created a (C#) project with Visual Studio (2010) and used some Settings (which I created under Properties). The only place I found where I can add some XML comments for my documentation, would be in Settings.Designer.cs. However this file is auto-generated so whenever I change the Settings, the comments are gone. Even Visual Studio gives started giving mewarnings, "Missing XML comment for publicity visibly type or member .... " My question here is: What is the neatest way to add