How can I deal with this Git warning? "Pulling without specifying how to reconcile divergent branches is discouraged"
After a `git pull origin master`, I get the following message: ``` warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squelch this message by running one o...
- Modified
- 22 Sep at 18:10
Invariant Violation: "main" has not been registered
New to React Native: I started a brand new project with Expo init and then I followed the instructions mentioned inhttps://reactnavigation.org/docs/hello-react-navigation I run the project with expo ...
- Modified
- 30 Jun at 02:26
Testing C# 9.0 in VS2019 - CS0518 IsExternalInit is not defined or imported ... How do I define/import it?
: .NET 5.0 is out now, but the solution below is still required if you're targetting .NET Standard 2.1 --- C# 9.0 is still under development. There are a couple references which lead me to believe...
ASP.NET Core 3.0 Identity Server 4 (4.0.0) SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: 'empty'
I keep getting the following error between postman and IdentityServer 4 ``` Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: 'empt...
- Modified
- 28 May at 20:18
How to enable nginx reverse proxy to work with gRPC in .Net core?
I am running into a problem where I am unable to get nginx to work properly with gRPC. I am using .Net core 3.1 to server an API that supports both REST and gRPC. I am using below docker images: - - ...
"Analyzer with Code Fix" project template is broken
How to setup a roslyn code analyzer project with a unit-test project in Visual Studio 2019 v16.6.2? A few months (and a few Visual Studio updates) ago I experimented with setting up a code analyzer ...
- Modified
- 30 Jun at 15:4
What is a method that's inside another method called?
What type of method is `String dgvValue(int cell)` in the below code? ``` private void btnEdit_Click(object sender, EventArgs e) { if (dgvGuestList.SelectedRows.Count > 0) { String dgv...
C# Manually stopping an asynchronous for-statement (typewriter effect)
I'm making a retro-style game with `C#` `.NET-Framework`, and for dialogue I'm using a for-statement, that prints my text letter by letter (): [](https://i.stack.imgur.com/4TV3L.gif) I'm working with ...
CocoaPods not installed or not in valid state
``` Launching lib/main.dart on iPhone 11 Pro Max in debug mode... Warning: CocoaPods is installed but broken. Skipping pod install. You appear to have CocoaPods installed but it is not working. Th...
ServiceStack documenting body parameters in Open API (Swagger UI) Issue
I am looking for any way to document body parameters in ServiceStack API with Open API plugin. It is showing proper documentation when written for query or path parameters but is there any way to do i...
- Modified
- 25 Jun at 11:56
Error "A strongly-named assembly is required" when referencing ServiceStack.Authentication.MongoDb.MongoDbAuthRepository version 2.10.3:
I have a ServiceStack Console project using the latest Nuget Packages, When instantiating the AppHost object in my code, I get the following exception: > Could not load file or assembly 'MongoDB.Drive...
- Modified
- 25 Jun at 13:0
How to force System.Text.Json serializer throw exception when property is missing?
Json.NET behaviour could be defined by attributes: either use default or just throw an exception if json payload does not contain required property. Yet `System.Text.Json` serializer silently does not...
- Modified
- 9 Jan at 16:15
HttpResponseMessage.Content.ReadAsStreamAsync() vs HttpResponseMessage.Content.ReadAsStringAsync()
``` var request = new HttpRequestMessage(HttpMethod.Get, $"api/Items"); request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); using (var response = await _httpClient.Se...
- Modified
- 24 Jun at 20:33
Unable to generate assets to build and debug. OmniSharp server is not running
On Visual Studio (VS) Code, coding on C#. I'm trying to generate assets to build and debug and I'm getting the following error message: I'm running: - - - - So far I've tried unistalling VS code and...
- Modified
- 24 Jun at 16:20
How do I install python on alpine linux?
How do I install python3 and python3-pip on an alpine based image (without using a python image)? ``` $ apk add --update python3.8 python3-pip ERROR: unsatisfiable constraints: python3-pip (missin...
- Modified
- 24 Jun at 12:25
Validation 30000 No Type Specified for the Decimal Column
What's the best way of specifying a decimal precision without using attributes. I just need to set it in one place for all decimal's in my Data.Models. Its tedious specifying attributes for every deci...
- Modified
- 9 Dec at 14:14
Vertical slice architecture with ServiceStack
i have a `dotnet new` [template project](https://github.com/dj-nitehawk/MongoWebApiStarter) where i'm doing [vertical slice architecture](https://headspring.com/2019/11/05/why-vertical-slice-architect...
- Modified
- 24 Jun at 05:14
Request hangs after RefreshToken expires JsonHttpClient ServiceStack
I'm using ServiceStack JsonHttpClient client (5.9.0) in my Xamarin.Forms mobile app. Client is set like this: ``` client = new JsonHttpClient(App.BaseEndpoint) { RefreshToken = RefreshToken, }; va...
- Modified
- 22 Jun at 20:53
Could not load file or assembly Visual Studio 2019 (Community)
This is going to be one of those questions for which there are hundreds of answers, so please bare with me as I have tried most of them! I have been breaking up a very large project into smaller compo...
- Modified
- 22 Jun at 19:44
What is "name" property in the constructor for HttpGetAttribute?
When I use , intellisense tells me that besides the first argument, i.e. , I also have and . While the latter is obvious to me, I got a bit uncertain on what the parameter had as its purpose. Headin...
- Modified
- 20 Jul at 14:7
Uploading and Downloading large files in ASP.NET Core 3.1?
I am working on an ASP.NET Core 3.1 API project using clean architecture and I have the following classlibs (tiers): - - - - - I want to server (like 2Gb of file size or even more) and download them...
- Modified
- 26 Jun at 12:5
Node.js: SyntaxError: Cannot use import statement outside a module
I am getting this error `SyntaxError: Cannot use import statement outside a module` when trying to import from another javascript file. This is the first time I'm trying something like this. The main ...
- Modified
- 20 Jun at 16:56
Best way to test input value in dom-testing-library or react-testing-library
What is the best way to test the value of an `<input>` element in `dom-testing-library`/`react-testing-library`? The approach I've taken is to fetch the raw input element itself via the `closest()` me...
- Modified
- 12 Oct at 15:0
Set Cache directory for WebView2
I am using WebView2 in WPF control to host the new edge. In my code, I want to cache the cookie and browser specific data to a cache directory. The cache location should be set in the CoreWebView2Env...
what is the Alternate for AddorUpdate method in EF Core?
I want to achieve the ADDorUpdate() method in Generic repository using EF Core like below? Can anyone help me? ``` public virtual void AddOrUpdate(T entity) { #region Argument Validation ...
- Modified
- 18 Jun at 11:43