Typescript Interface - Possible to make "one or the other" properties required?

Possibly an odd question, but I'm curious if it's possible to make an interface where one property or the other is required. So, for example... ``` interface Message { text: string; attachment...

4 Jan at 12:48

How can I list all of the configuration sources or properties in ASP.NET Core?

I want to ensure that a particular configuration property is being read from a configuration source. I was going to print out all of the configuration sources (or print out all of the configuration pr...

28 Jun at 16:36

Angular 2 Hover event

In the new framework, does anyone know the proper way to do a hover like an event? In there was `ng-Mouseover`, but that doesn't seem to have been carried over. I've looked through the docs and ...

10 Sep at 07:11

Failing a build in Jenkinsfile

Under certain conditions I want to fail the build. How do I do that? I tried: ``` throw RuntimeException("Build failed for some specific reason!") ``` This does in fact fail the build. However, ...

8 Jun at 13:6

how to get docker-compose to use the latest image from repository

I don't know what I'm doing wrong, but I simply cannot get `docker-compose up` to use the latest image from our registry without first removing the old containers from the system completely. It looks ...

23 May at 10:31

Difference between ASP.NET Core (.NET Core) and ASP.NET Core (.NET Framework)

What is the difference between ASP.NET Core Web (.NET Core) vs ASP.NET Core Web (.NET Framework)? and does .NET Framework provide [similar performance](http://web.ageofascent.com/asp-net-core-exeeds-...

7 Jun at 16:32

Skip and Take in Entity Framework Core

I have simple POCO classes: ``` public class Library { [Key] public string LibraryId { get; set; } public string Name { get; set; } public List<Book> Books { get; set; } } public c...

Why Visual Studio 2015 freezes crashes hangs on Designer view?

I go to the designer Visual Studio freezes(Not Responding) for 30+ seconds and once I click on any element/widget after that, it freezes again for 30+. Does that for 5 times maybe then I will be able...

10 Oct at 23:54

Swashbuckle parameter descriptions

I'm using SwaggerResponse attributes to decorate my api controller actions, this all works fine, however when I look at the generated documentation the description field for parameters is empty. Is a...

7 Jun at 13:50

Load test doesn't show more than 4GB for Working Set PerformanceCounter

I'm trying to create [load test](https://www.visualstudio.com/docs/test/performance-testing/run-performance-tests-app-before-release) to some application. . To do so I added `Process / Working Set` to...

Entity Framework Core - Customise Scaffolding

In Entity Framework 6 we can add the T4 templates the scaffolding uses by running ``` Install-Package EntityFramework.CodeTemplates.CSharp ``` But in Entity Framework Core the scaffolding system do...

7 Jun at 12:25

Project not selected to build for this solution configuration

The error: ``` >------ Skipped Deploy: Project: DrawShape.Android, Configuration: Debug Any CPU ------ >Project not selected to build for this solution configuration ``` The configuration in Config...

7 Jun at 09:7

Bold or italic in C# or VB documentation comments?

Is there a way to use or inside documentation comments? Something like: ``` /// <summary>Cleanup method. This is <b>recommended</b> way of cleanup.</summary> public void CleanAll(); ``` The [list...

4 Feb at 06:50

DOMException: Failed to load because no supported source was found

I'm getting in video.play(); line. I'm getting this issue only after adding video.setAttribute('crossorigin', 'anonymous'); I'm developing app in mobile so for cross origin i need to add this line. A...

7 Jun at 08:43

How to create a nuget package with both release and debug dll's using nuget package explorer?

I'm using the Nuget Package Explorer to create some nuget packages. I've managed to do so just building a project in Release mode in VS and adding both the dll and pdb files to the package. So far s...

7 Jun at 07:59

JavaScript iterate key & value from json?

I am trying to iterate the following json: ``` { "VERSION" : "2006-10-27.a", "JOBNAME" : "EXEC_", "JOBHOST" : "Test", "LSFQUEUE" : "45", "LSFLIMIT" : "2006-10-27", "NEWUSER" : "3", "NEWGROUP" : "2", ...

19 Sep at 09:11

Should I implement business logic on a Model or a ViewModel

When I'm processing business logic in an MVVM app. Should I do this on the Model or the ViewModel? For example, if I want to re-calculate costs after an Asset has been re-valued, should I operate on ...

7 Jun at 06:36

What is FCM token in Firebase?

In the new Firebase, under Notification, they have mentioned that developer can send notification to a particular device. For that, in console it asks for an FCM token. What is it exactly and how can ...

How to load image files with webpack file-loader

I am using to manage a project. I want to load images in javascript by webpack `file-loader`. Below is the : ``` const webpack = require('webpack'); const path = require('path'); const NpmInstallPlu...

30 Jun at 13:48

How to configure Spring Security to allow Swagger URL to be accessed without authentication

My project has Spring Security. Main issue: Not able to access swagger URL at [http://localhost:8080/api/v2/api-docs](http://localhost:8080/api/v2/api-docs). It says Missing or invalid Authorization ...

How do you make gRPC client Timeout in C# if the server is down?

I am writing a connection back to a TensorFlow Serving system with gRPC from a C# platform on MS Windows 10. I have seen many references to Time-out and Dead-line with the C++ API for gRPC, but can't...

7 Jun at 03:24

Using an array from Observable Object with ngFor and Async Pipe Angular 2

I am trying to understand how to use Observables in Angular 2. I have this service: ``` import {Injectable, EventEmitter, ViewChild} from '@angular/core'; import {Observable} from "rxjs/Observable"; ...

7 Jan at 17:26

How to get rid of underline for Link component of React Router?

I have the following: [](https://i.stack.imgur.com/Od7Ho.png) How do I get rid of the blue underline? The code is below: ``` <Link to="first"><MenuItem style={{paddingLeft: 13, textDecoration: 'none'}...

30 Jun at 19:6

How to install JQ on Mac on the command line?

I need to know the most efficient way of installing JQ on Mac (El Capitan). The code is downloaded to my Mac but I would like to know how I can install and operate it via the command line.

ServiceStack Custom User Authentication

Does anyone have an actual example of how to use int RefId as proposed in this [question](https://stackoverflow.com/questions/11117469/how-can-i-extend-servicestack-authentication/37667766#37667766)? ...

23 May at 12:24