Preventing referenced assembly PDB and XML files copied to output

I wanted to be able to add and remove referenced assemblies in my primary application while avoiding the the need to maintain which files I needed to delete or exclude. I dug through Microsoft.Common.targets looking for something that would work and found the AllowedReferenceRelatedFileExtensions property. It defaults to .pdb; .xml so I explicitly defined it … Read more

The type WebMvcConfigurerAdapter is deprecated

Since Spring 5 you just need to implement the interface WebMvcConfigurer: public class MvcConfig implements WebMvcConfigurer { This is because Java 8 introduced default methods on interfaces which cover the functionality of the WebMvcConfigurerAdapter class See here: https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurerAdapter.html

Loading custom configuration files

the articles posted by Ricky are very good, but unfortunately they don’t answer your question. To solve your problem you should try this piece of code: ExeConfigurationFileMap configMap = new ExeConfigurationFileMap(); configMap.ExeConfigFilename = @”d:\test\justAConfigFile.config.whateverYouLikeExtension”; Configuration config = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None); If need to access a value within the config you can use the index operator: config.AppSettings.Settings[“test”].Value;

Activate a virtualenv via fabric as deploy user

As an update to bitprophet’s forecast: With Fabric 1.0 you can make use of prefix() and your own context managers. from __future__ import with_statement from fabric.api import * from contextlib import contextmanager as _contextmanager env.hosts = [‘servername’] env.user=”deploy” env.keyfile = [‘$HOME/.ssh/deploy_rsa’] env.directory = ‘/path/to/virtualenvs/project’ env.activate=”source /path/to/virtualenvs/project/bin/activate” @_contextmanager def virtualenv(): with cd(env.directory): with prefix(env.activate): yield def … Read more

no matches for kind “Deployment” in version “extensions/v1beta1”

In Kubernetes 1.16 some apis have been changed. You can check which apis support current Kubernetes object using $ kubectl api-resources | grep deployment deployments deploy apps true Deployment This means that only apiVersion with apps is correct for Deployments (extensions is not supporting Deployment). The same situation with StatefulSet. You need to change Deployment … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)