Kestrel error: address already in use (dotnet core)

Summary: it works as `dotnet run`, but it doesn't work as `dotnet myappname.dll`. My linux skills are limited, but I am trying to go by the book so I don't mix things up (following [this tutorial](ht...

ASP.NET Core appsettings.json update in code

I am currently working on project using asp.net core v1.1, and in my appsettings.json I have: ``` "AppSettings": { "AzureConnectionKey": "***", "AzureContainerName": "**", "NumberOfTicks": 6...

Getting json body in aws Lambda via API gateway

I'm currently using NodeJS to build a bot on AWS lambda via AWS Api Gateway and I'm running into an issue with POST requests and JSON data. My api uses 'Use Lambda Proxy integration' and even when I t...

Add multiple labels in Xamarin Forms

I have the following label: ``` <Label Text="{x:Static local:FontAwesome.FACheck}" FontFamily="FontAwesome" TextColor="Green"/> ``` And an event on button: ``` correctButton.Clicked += (sender, e...

14 Jan at 07:34

json error Bad JSON escape sequence

I am working with json but i got an error Bad JSON escape sequence My json def is `"{\"test123 \": \"î'ï\u0014¹\u0019ö\\±ýŽ± \u0013Eú\", }"`

6 May at 07:22

Rounding mismatch between ASP .net C# Decimal to Java Double

I am translating .NET code to Java and ran into precision not matching issue. .NET code: ``` private decimal roundToPrecision(decimal number, decimal roundPrecision) { if (roundPrecision == 0) ...

25 Mar at 21:56

How to validate username and password of user before log in in ASP.net Identity?

In my ASP.Net application, want to validate username and password of users before logging them into the application. I am using ASP.net Identity framework for membership. Want to make sure whether th...

13 Jan at 22:19

Change default format for DateTime parsing in ASP.NET Core

I get a Date in an ASP.NET Core Controller like this: ``` public class MyController:Controller{ public IActionResult Test(DateTime date) { } } ``` The framework is able to parse the date, ...

Autofit Row Height of Merged Cell in EPPlus

I'm using EPPlus and C# and trying to autosize/autofit the height of a row to accommodate the height needed to show all of the contents of a merged cell with text wrapping. However no matter what I tr...

23 May at 12:2

ef-core load collection property of nested tph inherited member

Given the following class structure ``` public class Parent { public Guid Id { get; public List<BaseChild> Children { get; set; } } public abstract class BaseChild { ...

Returnsasync(null) creates a build error when using Moq for unit testing in VS15

When I use `ReturnsAsync(null)` in a C# unit test method in Visual Studio (with `Moq`), I get the error: > "The call is ambiguous between the following methods or properties" and then a list of the...

24 Jul at 20:14

How to extend css class with another style?

I have nearly 30 classes and I want to apply this classes to my button element. I don't want to add class attribute for every button element. Is there any way to create a new button class like; ``` ....

13 Jan at 13:22

Convert python datetime to timestamp in milliseconds

How do I convert a human-readable time such as `20.12.2016 09:38:42,76` to a Unix timestamp in ?

2 Apr at 04:36

Servicestack request header doesn't contains cookie

I'm using ServiceStack Authentication to authenticate, and using http to do so. This might be duplicate to my previous post, but this is another question. When I'm sending a post-request auth/logout t...

13 Jan at 13:31

Gradle: getting the root project directory path when starting with a custom build file

The structure of my Gradle project is the following: ``` Project ├── app └── build.gradle ├── foo └── bar.txt · · · └── build.gradle ``` Normally to get the absolute path of the `foo` fol...

13 Jan at 13:13

How to measure time elapsed on Javascript?

I created a simple game that start and ends the timer when the user finishes clicking on 16 boxes. I want to measure the elapsed time for the user to complete the game. How do I do it using Javascript...

2 Jul at 12:13

Program hangs in release mode but works fine in debug mode

The code below works as expected in debug mode, completing after 500 milliseconds, but hangs indefinitely in release mode: ``` public static void Main(string[] args) { bool isComplete =...

What is MonoBehaviour in Unity 3D?

``` using UnityEngine; using System.Collections; public class VariablesAndFunctions : MonoBehaviour { int myInt = 5; } ``` The full code is here [Unity Official Tutorials](https://unity3d.co...

16 May at 14:13

How to sign out other user in ASP.NET Core Identity

How can i sign out another user (not the currently logged one) in ASP.NET Core Identity. I know there is a [SignOutAsync()](https://github.com/aspnet/Identity/blob/5480aa182bad3fb3b729a0169d046287333...

Should I use async if I'm returning a Task and not awaiting anything

In an async method where the code is not `await`ing anything, is there a reason why someone would mark it async, await the task, and then return? Besides the potential un-necessity of it, what are th...

13 Jan at 01:52

Setting connection string with username and password in ASP.Core MVC

I am working on my first ASP.NET Core MVC application.What is the right way to specify the connection string in a ASP.NET Core MVC application with a sql server backend requiring sql authentication? >...

16 Nov at 16:37

Pandas Split Dataframe into two Dataframes at a specific row

I have `pandas` DataFrame which I have composed from `concat`. One row consists of 96 values, I would like to split the DataFrame from the value 72. So that the first 72 values of a row are stored in...

11 Oct at 21:41

ASP.NET Core MVC Hangfire custom authentication

I managed to work Hangfire on my ASP.NET Core MVC application, and now I am trying to add admin authorization. I added the following code to the Startup.cs file: ``` app.UseHangfireDashboard("/hangf...

19 Dec at 08:21

Laravel Inner Join?

I have a PHP backend that I'm currently changing over to use the Laravel framework. However, I'm not quite sure how the Laravel inner join works. The SQL query i'm trying to move over to Laravel is: ...

25 Apr at 10:39

Assert.ThrowsExceptionAsync isn't working

## Question: I haven't found much about [MSTest V2](https://blogs.msdn.microsoft.com/visualstudioalm/2016/06/17/taking-the-mstest-framework-forward-with-mstest-v2/) for examples or [documentation](...

14 Jul at 08:54