Maven: Trying to Deploy with credentials in settings.xml file

You need to provide the repositoryId=VeggieCorp (not id) property so that maven knows from which <server> configuration it has to read the credentials. $ mvn deploy:deploy-file \ -Durl=http://repo.veggiecorp.com/artifactory/ext-release-local \ -Dfile=crypto.jar \ -DpomFile=pom.xml \ -DrepositoryId=VeggieCorp See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

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

How do I open the Bluetooth Settings Activity programmatically?

Maybe I missed something but isn’t this simpler future proof solution? Intent intentOpenBluetoothSettings = new Intent(); intentOpenBluetoothSettings.setAction(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS); startActivity(intentOpenBluetoothSettings); It is definitely not possible to “remove” the other settings. On phones just one category of settings is shown. On tablets, because of some extra space, settings are shown in master-detail layout so there is no empty … Read more

How do I change the `prefers-reduced-motion` setting in browsers?

Oh, I didn’t see the “User Preferences” section in the mdn documentation. 🤦🏻‍♂️ For Firefox, the reduce request is honoured if: In GTK/Gnome, if gtk-enable-animations is set to false. This is configurable via GNOME Tweaks (Appearance tab or General tab, depending on version). Alternately, add gtk-enable-animations = false to the [Settings] block of the GTK … Read more

MySQL too long varchar truncation/error setting

You can disable STRICT_TRANS_TABLES and STRICT_ALL_TABLES. This allows the automatic truncation of the inserted string. Quote from MySQL Documentation. Strict mode controls how MySQL handles invalid or missing values in data-change statements such as INSERT or UPDATE. A value can be invalid for several reasons. For example, it might have the wrong data type for … Read more