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

Angular Material - show mat-error on button click

I am trying to do validation using the `<mat-form-field>` and `<mat-error>`. This works fine when user tabs out of the input without filling. But how do I force this error to show when I click a butto...

3 Nov at 21:18

Add custom tag in tagLib sharp

I want to add text to a custom tag, to an MP3-file. I tried doing [like this](https://stackoverflow.com/questions/34507982/adding-custom-tag-using-taglib-sharp-library), but I can't get the tag to cha...

14 Oct at 12:54

Default sorting in Angular Material - Sort header

How can I change Angular Material code below, so that data-table is sorted by 'name' column, ascending order by default. Arrow (indicating current sort direction) must be displayed. This is what I wa...

18 Oct at 13:55

Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null

I have a component in React which I am importing in index.js, but it is giving this error: > Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing,...

23 Jul at 19:49

Can you host a ServiceStack Web App in IIS?

I have made a ServiceStack Web App that uses a custom AppHost from a plugin (similar to the example [https://github.com/NetCoreWebApps/WebApp/tree/master/src/apps/chat](https://github.com/NetCoreWebAp...

14 Oct at 05:0

Enable HTTP compression with ASP.NET Web API

We serve files for a website from our Asp .NET Web API: ``` public class Startup { public void Configuration(IAppBuilder app) { var clientHostname = System.Configuration.Configuration...

ClickOnce Application with PackageReferences auto to Prerequisites

How can I get PackageReference packages to be included with the ClickOnce automatically? I am trying to convert a ClickOnce application from packages.config to use PackageReferences as I have a good ...

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

I keep getting the following errors with mysql connection through XAMPP and I don't know what to do: [](https://i.stack.imgur.com/nATTy.jpg) That's the code in the config.inc.php ``` <?php /* * Th...

27 Dec at 19:59

Use Async/Await with Axios in React.js

Following [How to use async/await with axios in react](https://medium.com/@adityasingh_32512/how-to-use-async-await-with-axios-in-react-e07daac2905f) I am trying to make a simple get request to my ...

RuntimeError: There is no current event loop in thread in async + apscheduler

I have a async function and need to run in with apscheduller every N minutes. There is a python code below ``` URL_LIST = ['<url1>', '<url2>', '<url2>', ] def dem...

Automapper: Map single object with list of objects inside to just list

I have the following dto object: ``` public class PriceDto { public string Ticker {get; set;} public double Open {get; set;} public double Close {get; set;} } ``` The source objects: ``` ...

13 Oct at 08:49

Cannot find Bitmap Class in Class Library (.NET Standard)

I want to make a Class Library (.NET Standard) and I'm using System.Drawing, but I get the error: > CS0246 C# The type or namespace name 'Bitmap' could not be found (are you missing a using directive ...

C# .NET Core How to debug System.IO.FileNotFoundException in System.Private.CoreLib.dll?

When I run .NET Core Web API Application on VS 2017, In Output's Debug panel, keep showing me Exception throw: `'System.IO.FileNotFoundException' in System.Private.CoreLib.dll` However, applicati...

13 Oct at 02:30

What is the fluent object model to make this work?

As practice for writing fluent APIs, I thought I'd make the following compile and run: ``` static void Main(string[] args) { Enumerable.Range(1, 100) .When(i => i % 3 == 0).Then(i => Cons...