How to display hidden files with Visual Studio Code

The "open file" dialog in [Visual Studio Code](https://en.wikipedia.org/wiki/Visual_Studio_Code) is not showing hidden files. For example, when looking at my home directory, none of the `.` files are ...

31 Jul at 20:36

ASP.NET Core docker build error

I'm new to ASP.NET Core and docker. I've created a simple ASP.NET Core 2.0 app and try to use docker with it on Windows. However, I get this error: `Your Docker server host is configured for 'Linux'...

WCF much slower than WebAPI running same code

I currently have 2 exposed endpoints. The first is WebAPI (.NET 4.6). The second is WCF (.NET 3.5). They are both capable of performing the same calculation, however the WCF is on average 10 times slo...

25 Oct at 21:49

DateTime formats used in InvariantCulture

I have to pre-validate in Javascript a string that will be a DateTime in c#. The DateTime parse uses InvariantCulture. Does anyone know the DateTime formats defined for InvariantCulture?

16 Oct at 19:58

C# Fields Capitalization Convention

My textbook (Visual C# How to Program, 6/e) states that fields in C# should use camelCase. This corresponds with examples given in Microsoft C# Guide: [https://learn.microsoft.com/en-us/dotnet/csharp/...

16 Oct at 19:14

Disable click outside of angular material dialog area to close the dialog (With Angular Version 4.0+)

I am currently working on password reset page of an Angular 4 project. We are using Angular Material to create the dialog, however, when the client clicks out of the dialog, it will close automaticall...

How pass objects from one page to another on ASP.Net Core with razor pages?

I'm developing a web application using Asp.net core 2.0 with razor pages. I'm creating an object with some data and want to send that object to another page. Actually I'm doing this: ``` var customO...

16 Oct at 14:23

Angular: Cannot Get /

I am trying to open, build and run someone else's Angular 4 project but I am not able to view the project when I run it my way. I don't see what is going wrong or what I should do now. I already had e...

How to fake declared services in Startup.cs during testing?

I would like to write integration tests for my Asp .net core application, but I don't want my tests to use real implemetation of some services. ``` public class Startup { public void ConfigureSer...

26 Oct at 12:19

Styling mat-select in Angular Material

How to style mat-select's panel component. From the docs I get that I need to provide panelClass so I make it like this: ``` <mat-form-field> <mat-select placeholder="Search for" [(ngModel)]="...

React-Redux: Actions must be plain objects. Use custom middleware for async actions

> Unhandled Rejection (Error): Actions must be plain objects. Use custom middleware for async actions. I wanted to add comments with every posts. So when fetch posts are run I want to call fetch comm...

15 Sep at 14:29

Swagger - Web API - Optional query parameters

``` [HttpGet] [Route("students")] [SwaggerOperation(Tags = new[] { "Student" })] [SwaggerResponse(HttpStatusCode.OK, Type = typeof(ResponseModel<IList<Student>>))] [SwaggerResponseExample(HttpStatusCo...

Repeated Tasks using Timer Interval vs Task Delay

I'm implementing a scheduled job like methods and have narrowed down to approaches. One that implements a Timer Interval and the other based on Task Delay. I've also considered using Azure Timer tri...

16 Oct at 05:58

InvalidOperationException: Cannot create a DbSet for 'Role' because this type is not included in the model for the context

The following solution works in .net core 1.1, but after upgrading from 1.1 to 2.0, I received the following error: > InvalidOperationException: Cannot create a DbSet for 'Role' because this type is ...

How to update an "array of objects" with Firestore?

I'm currently trying Firestore, and I'm stuck at something very simple: "updating an array (aka a subdocument)". My DB structure is super simple. For example: ``` proprietary: "John Doe", sharedWith...

Scanning images for finding rectangles

I'm trying to scan a constant size image and locate the drawn rectangles in it. The rectangles can come in any size, but only red colored. This is where the problem starts. I'm gonna use an already...

Servicestack request add param to every query

I want to modify the RequestURI in the request from a Servicestack 'JsonServiceClient', however, the request URI is readonly. The Restful API that i'm trying to use requires a 'apikey' be sent in the ...

15 Oct at 14:8

Azure CDN + Asp.net MVC Cloud Service compression for bundles not working

I am using Azure CDN which is pointing to my Azure Cloud Service. I have enabled bundling for my JS and CSS files, and in BundleConfig I have set `bundles.UseCdn = true`. Everything is working fine,...

15 Oct at 12:3

Model binding is not working on POST request in ASP.NET Core 2 WebAPI

This is my model. ``` public class Patient { public string Name { get; set; } public string Gender { get; set; } public double Age { get; set; } public DateTime DateOfBirth { get; set; } pu...

How to make Firefox headless programmatically in Selenium with Python?

I am running this code with python, selenium, and firefox but still get 'head' version of firefox: ``` binary = FirefoxBinary('C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe', log_file=sys.std...

System.InvalidOperationException: 'A path base can only be configured using IApplicationBuilder.UsePathBase().'

I have an ASP.Net Core 2 Solution running in Docker which is working fine on 1 machine the is running VS 2017 Professional but on another machine running VS 2017 Community I am getting the following e...

17 Oct at 23:26

xUnit - Display test names for theory memberdata (TestCase)

I've been using NUnit for testing and I'm really fond of test cases. In NUnit you can easily set each test name in the test case using the SetName function in a TestCaseData class. Does xUnit have a ...

26 Oct at 13:52

Angular + Material - How to refresh a data source (mat-table)

I am using a [mat-table](https://material.angular.io/components/table/overview) to list the content of the users chosen languages. They can also add new languages using dialog panel. After they added ...

31 Jul at 07:53

How to use microsoft reporting services with .net core

I'm interested in using reporting services in my vue.js .net core project. I don't need the reportviewer control, just to execute the appropriate code to process it remotely to return as a bytestream ...

4 Sep at 03:14

Artisan migrate could not find driver

I am trying to install Laravel. I have installed `Xampp`, but when I try to setup my database using `php artisan migrate`I get the error: > `config/database.php` file has the relevant connections: ...

9 Jul at 12:38