How can I display the application version revision in my application’s settings bundle?

There is another solution that can be much simpler than either of the previous answers. Apple bundles a command-line tool called PlistBuddy inside most of its installers, and has included it in Leopard at /usr/libexec/PlistBuddy. Since you want to replace VersionValue, assuming you have the version value extracted into $newVersion, you could use this command: … Read more

Can a spring boot @RestController be enabled/disabled using properties?

I found a simple solution using @ConditionalOnExpression: @RestController @ConditionalOnExpression(“${my.controller.enabled:false}”) @RequestMapping(value = “foo”, produces = “application/json;charset=UTF-8”) public class MyController { @RequestMapping(value = “bar”) public ResponseEntity<String> bar( return new ResponseEntity<>(“Hello world”, HttpStatus.OK); } } With this annotation added, unless I have my.controller.enabled=true in my application.properties file, the controller won’t start at all. You can also use the … Read more

App.config: User vs Application Scope

Basically, application settings cannot be changed during the running of a program and user settings can. These user settings should then be saved so the user is presented with a familiar experience when (s)he runs the application next. Edit: For examples, you might write your application with different modules, and need to ensure that your … Read more

How to fix Error: “Could not find schema information for the attribute/element” by creating schema

Quickest, easiest laziest way to solve the problem: Right-click on the project icon in Solution Explorer and choose “Properties”. Go to the “Application” tab and choose an earlier .NET target framework. Save changes. Go to the “Application” tab and choose the initial .NET target framework. Save changes => problem solved!

Opening the Settings app from another app

As mentioned by Karan Dua this is now possible in iOS8 using UIApplicationOpenSettingsURLString see Apple’s Documentation. Example: Swift 4.2 UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!) In Swift 3: UIApplication.shared.open(URL(string:UIApplicationOpenSettingsURLString)!) In Swift 2: UIApplication.sharedApplication().openURL(NSURL(string:UIApplicationOpenSettingsURLString)!) In Objective-C [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; Prior to iOS 8: You can not. As you said this has been covered many times and that pop up … Read more

How can I save application settings in a Windows Forms application?

If you work with Visual Studio then it is pretty easy to get persistable settings. Right click on the project in Solution Explorer and choose Properties. Select the Settings tab and click on the hyperlink if settings doesn’t exist. Use the Settings tab to create application settings. Visual Studio creates the files Settings.settings and Settings.Designer.settings … Read more

tech