configuration
How do I configure log4net so that log.IsDebugEnabled is true?
Before calling LogManager.GetLogger(“”) You have to call log4net.Config.XmlConfigurator.Configure(); In an ASP.NET app you probably want to put this call in Application_Start
Nginx is throwing an 403 Forbidden on Static Files
MacOs El Capitan: At the top of nginx.conf write user username group_name My user name is Kamil so i write: user Kamil staff; (word ‘staff’ is very important in macOS). This do the trick. After that you don’t need to change any permission in your project folder and files.
How do I correctly configure a WCF NetTcp Duplex Reliable Session?
How do I correctly configure a WCF NetTcp Duplex Reliable Session?
Is there a way to change the background color of the xcassets view in Xcode 5 or Xcode 6?
A reasonable work around is to select the image asset, (eg click on the 1x or 2x version) and then press the spacebar. This will show the asset in a popover with a light grey background.
Spring Boot: read list from yaml using @Value or @ConfigurationProperties
use comma separated values in application.yml corsHostsAllow: http://foo1/, http://foo2/, http://foo3/ java code for access @Value(“${corsHostsAllow}”) String[] corsHostsAllow I tried and succeeded 😉
Angular4 APP_INITIALIZER won’t delay initialization
Looks like you forgot to return value from factory: export function init(config: ConfigService) { return () => { return config.load(); // add return }; } or the same code can be written a bit shortly: export function init(config: ConfigService) { return () => config.load(); }
How to use user secrets in a dotnet core test project
See instructions in https://patrickhuber.github.io/2017/07/26/avoid-secrets-in-dot-net-core-tests.html, in particular in InitialiseTest add // the type specified here is just so the secrets library can // find the UserSecretId we added in the csproj file var builder = new ConfigurationBuilder().AddUserSecrets<HttpClientTests>(); Configuration = builder.Build() However note that it will not allow to run tests on build server
How to setup a group in supervisord?
You need to use a * wildcard to select all programs in a group: supervisorctl restart tapjoy:* Note: it may that your shell requires you to escape the *, usually with \*
Do I need to escape backslash in a config file?
You don’t need that. Anything within an attribute value is character data. Since you’re reading these values using C#, they’ll get escaped as if they would be a literal path string in code. Anyway, you might want to know that C# has @ operator to declare verbatim strings, meaning that you don’t need to escape … Read more