What is the difference between app.config file and XYZ.settings file?

UPDATE: In ASP.NET Core Land, configuration is no longer managed via either of these – see this fantastic writeup from Travis Illig with the a-z on Microsoft.Extension.Configuration and Microsoft.Extensions.Configuration.Binder which are effectively a superset of all this Settings (Both from a .settings set and Configuration.AppSettings), are stored in the .config file [alongside lots of other … Read more

IntelliJ: Never use wildcard imports

It’s obvious why you’d want to disable this: To force IntelliJ to include each and every import individually. It makes it easier for people to figure out exactly where classes you’re using come from. Click on the Settings “wrench” icon on the toolbar, open “Imports” under “Code Style”, and check the “Use single class import” … Read more

is it possible to open Settings App using openURL?

You can open settings apps programmatically try this(works only from iOS8 onwards). If you are using Swift: UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)) If you are using Objective-C [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; For other lower versions(less than iOS8) its not possible to programatically open settings app.

Store Dictionary in application settings

You can use this class derived from StringDictionary. To be useful for application settings it implements IXmlSerializable. Or you can use similar approach to implement your own XmlSerializable class. public class SerializableStringDictionary : System.Collections.Specialized.StringDictionary, System.Xml.Serialization.IXmlSerializable { public System.Xml.Schema.XmlSchema GetSchema() { return null; } public void ReadXml(System.Xml.XmlReader reader) { while (reader.Read() && !(reader.NodeType == System.Xml.XmlNodeType.EndElement && … Read more

git whitespace woes

Git1.6.0.4 seems a bit old, especially if you consider that: in 1.6.3.4, “git apply –whitespace=fix” did not fix trailing whitespace on an incomplete line in 1.6.3.2, “whitespace” attribute that is set was meant to detect all errors known to git, but it told git to ignore trailing carriage-returns. Could you try with Git1.6.4.1, and rather … Read more

Maven command to determine which settings.xml file Maven is using

Start maven with -X option (debug) and examine the beginning of the output. There should be something like this: … [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from c:\….\apache-maven-3.0.3\conf\settings.xml [DEBUG] Reading user settings from c:\….\.m2\settings.xml [DEBUG] Using local repository at C:\….\repository … (Original directory names are removed by me)

Where are user-mode .NET settings stored?

The setting files are stored in a different place for each user. To find them, click the start menu, click run, and paste: %USERPROFILE%\Local Settings\Application Data\ and press enter. There will be a folder with your “Company Name” (whatever it is set to in your assembly) and then some more subfolders. The settings are stored … Read more