How to create symbols for multi-project Nuget package?

So I'm really struggling to figure this out. I have a solution with a few projects, say, A, B, and C. A references and uses B and C (both project references). I wanted to create a Nuget package from ...

25 Sep at 09:44

How to get div 'text' value in Cypress test using jquery

Using Jquery in Cypress.io test, how to get the div 'text' value called 'Wildness' from the below html tag. I have tried below in my Cypress test, but it is throwing undefined in console. ``` const ...

25 Sep at 05:39

How to change status bar color in Flutter?

I am trying to change the status bar color to white. I found [this](https://pub.dartlang.org/packages/flutter_statusbarcolor) pub on flutter. I tried to use the example code on my dart files.

SendAsync and CopyToAsync not working when downloading a large file

I have a small app that receives a request from a browser, copy the header received and the post data (or GET path) and send it to another endpoint. It then waits for the result and sends it back to...

Cannot resolve scoped service 'Microsoft.AspNetCore.Identity.UserManager`1[IdentityServerSample.Models.ApplicationUser]' from root provider

i am extending the identity server to use custom identity server implementation ``` public static void UseMongoDbForIdentityServer(this IApplicationBuilder app) { //Resolve Repository wi...

Validate phone number with Yup?

I'm trying to validate a phone number with Yup: ``` phone: Yup.number() .typeError("That doesn't look like a phone number") .positive("A phone number can't start with a minus") .integer("A phon...

8 Nov at 14:51

ServiceStack In Memory Client Memory Limits

Does your In Memory Client support memory limits as a percentage of total memory available of the application? .NET 4.0 supported memory limits in the web.config. .NET Core doesnt support limits on to...

24 Sep at 14:35

How can I get a Span<T> from a List<T> while avoiding needless copies?

I have a `List<T>` containing some data. I would like to pass it to a function which accepts `ReadOnlySpan<T>`. ``` List<T> items = GetListOfItems(); // ... void Consume<T>(ReadOnlySpan<T> buffer) //...

24 Sep at 10:4

How to invalidate tokens after password change

I am working on an API that uses JWT token auth. I've created some logic behind it to change user password with a verification code & such. Everything works, passwords get changed. But here's the c...

ServiceStack: is it open source? or does it require a license?

I'm looking into ServiceStack, I see it referenced as open source some places but other places it looks like you need a license to use it. Is it open source like things like Spring, Hibernate, JBoss,...

24 Sep at 02:51

IntelliJ can't recognize JavaFX 11 with OpenJDK 11

I'm having trouble getting IntellJ to recognize JavaFX packages. With a new JavaFX project, with OpenJDK 11, when trying to build the project, IntelliJ can't recognize the JavaFX packages. I've impor...

Where is index.g.cshtml

I am trying to work through this tutorial, [ASP.Net Core Razor Pages](https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-2.1&tabs=visual-studio), but (often) when I build t...

.Net Core cookie will not be set

I'm trying to set a simple cookie in the easiest way in my controller-action but can not get it to be persistent and show up in the browser. ``` public IActionResult IndexPost() { var option = n...

9 Sep at 19:15

ServiceStack - SAML2

Is there some out of the box plugin for SAML2 auth or I would have to build mine from scratch? If there's none, which library would you suggest, earlier I tried Kentor and I like how it's done, too b...

22 Sep at 11:12

ServiceStack: How to enable and view built-in profiler in self-hosted?

When I read the docs on ServiceStacks built-in [profiling](http://docs.servicestack.net/built-in-profiling), I am not sure how to enable it in a self-hosted solution: > Then starting it in your Globa...

27 Jun at 10:24

googletrans stopped working with error 'NoneType' object has no attribute 'group'

I was trying `googletrans` and it was working quite well. Since this morning I started getting below error. I went through multiple posts from stackoverflow and other sites and found probably my ip is...

Net Core Error The name 'Ok' does not exist in the current context

I am receiving the following error: The name 'Ok' does not exist in the current context. How would I resolve this issue in my Controller API? Return Ok is already embedded in the controller. ``` usi...

21 Sep at 22:12

Round a decimal number to the first decimal position that is not zero

I want to shorten a number to the first significant digit that is not 0. The digits behind should be rounded. Examples: ``` 0.001 -> 0.001 0.00367 -> 0.004 0.00337 -> 0.003 0.000000564 -> 0.0000006 ...

13 Jun at 15:24

DBContext disposing doesn't change the number of opened connections

In highload legacy application I've found tons of code which just creates new DBContext, then makes request and doesn't dispose the DBContext at all. Monitoring shows 200 connections opened all the t...

What are the differences between Microsoft.NET.Sdk and Microsoft.NET.Sdk.Web

I have a solution with two host projects (one is a [Web Host](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-2.1) and the other is a [Generic Host](https://le...

20 Sep at 23:52

Difference between OpenJDK and Adoptium/AdoptOpenJDK

Due to recent [Oracle Java SE Support Roadmap](https://www.oracle.com/technetwork/java/javase/eol-135779.html) policy update (end of $free release updates from Oracle after March 2019 in particular), ...

18 Dec at 19:28

Objects are not valid as a React child. If you meant to render a collection of children, use an array instead

I am setting up a React app with a Rails backend. I am getting the error "Objects are not valid as a React child (found: object with keys {id, name, info, created_at, updated_at}). If you meant to ren...

20 Sep at 15:49

Repeat a RDLC ReportViewer subreport

I'm really new to RDLC so please forgive me if I'm missing something obvious. I have some data that needs to get repeated, based on a 1:Many dataset that's linked to the main report. It's not someth...

24 Sep at 12:54

How to implement drag and drop in Blazor?

I know Blazor is a new technology. Its current release states v0.5.1 However I'm currently implementing a PoC for a new web application. We'd like to have the feature drag&drop in the app. I tried ...

20 Sep at 13:25

what is this ASP.NET Core log message: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager

I have this at every app start. Does anyone know where this comes from? > info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using '/Users/...

9 Apr at 13:6