Strongly typed Guid as generic struct
I already make twice same bug in code like following: ``` void Foo(Guid appId, Guid accountId, Guid paymentId, Guid whateverId) { ... } Guid appId = ....; Guid accountId = ...; Guid paymentId = ...;...
How to ignore ssl_client_socket_impl.cc(1061)] handshake failed in selenium c# ChromeDriver
I have added But still getting: > ssl_client_socket_impl.cc(1061)] handshake failed error How to suppress this error from console?
- Modified
- 1 Sep at 11:7
Where is JRE 11?
# UPDATE: You can find [JRE 8](https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html), [JRE 9](https://www.oracle.com/technetwork/java/javase/downloads/java-archive-...
Deploying a plain ASP.NET Core 2.2 Web App in Azure using Web Deploy is throwing an error
I went to publish an ASP.NET Core web application using Azure through the screen in Visual Studio 2017. I used all of the defaults, though my app uses migrations so I had to tell it to run them in th...
- Modified
- 11 Apr at 22:15
aspNetCore 2.2.0 - AspNetCoreModuleV2 error
After updating my project to "Microsoft.AspNetCore.All" 2.2.0, I get an error when running in IIS, but not when running in Visual Studio. `HTTP-Fehler 500.21 - Internal Server Error Der Handler "aspN...
- Modified
- 12 Dec at 01:31
Async method deadlocks with TestScheduler in ReactiveUI
I'm trying to use the reactiveui test scheduler with an async method in a test. The test hangs when the async call is awaited. The root cause seems to be a command that's awaited in the async method...
- Modified
- 22 Dec at 17:11
How to run BackgroundService on a timer in ASP.NET Core 2.1
I want to run a background job in ASP.NET Core 2.1. It has to run every 2 hours and it will need to access my DI Container because it will perform some cleanups in the database. It will need to be `as...
- Modified
- 11 Dec at 19:57
Unexplained crashes related to ntdll.dll
I have an application that I've written that crashes intermittently, but I'm unable to capture an exception at the application layer. I always get an entry in the event log but doesn't give me much i...
AttributeError: 'Series' object has no attribute 'reshape'
I'm using sci-kit learn linear regression algorithm. While scaling Y target feature with: ``` Ys = scaler.fit_transform(Y) ``` I got > ValueError: Expected 2D array, got 1D array instead: After ...
- Modified
- 11 Dec at 13:18
NETSDK1061: The project was restored using Microsoft.NETCore.App version 1.0.0, but with current settings, version 2.0.9 would be used instead
I'm developing a mobile app and using MS App Center for CI. Yesterday the Unit Test project failed to build in App Center with the following error. I couldn't recreate the issue on any developer machi...
- Modified
- 1 Nov at 08:4
Typescript error This condition will always return 'true' since the types have no overlap
I having this condition on a form group: ``` if((age>17 && (this.frType=="Infant")) || (age>40 && this.frType=="Grandchild") || (age<=5 && (this.frType!="Child" || this.frType!="Infant" ...
- Modified
- 11 Dec at 07:59
Download folder from Amazon S3 bucket using .net SDK
How to download entire folder present inside s3 bucket using .net sdk.Tried with below code, it throws invalid key.I need to download all files present inside nested pesudo folder present inside bucke...
- Modified
- 4 Jun at 03:41
Can I set state inside a useEffect hook
Lets say I have some state that is dependent on some other state (eg when A changes I want B to change). Is it appropriate to create a hook that observes A and sets B inside the useEffect hook? Wi...
- Modified
- 23 Jul at 15:44
ServiceStack: Getting FileNotFoundException when properties are null?
I am using ServiceStack and have discovered something odd. I am getting the `FileNotFoundException` on `System.Numerics.Vectors` when the WS Dto contains some `null` values. For example, I have a Dto ...
- Modified
- 10 Dec at 12:49
Inject Entity Framework Core Context into repository with ServiceStack when unit testing
I have a repository class ``` public class PersonRepository : IPersonRepository { private DataContext _context; public PersonRepository(DataContext context) { _context = context;...
- Modified
- 10 Dec at 13:39
First Enum Value Not Mapping Correctly In JSON Response
I have the following endpoint: ``` public List<SubBranch> Get(GetSubBranch request) { SubBranch subBranch = new SubBranch(); subBranch.BranchId = 1; subBra...
- Modified
- 10 Dec at 01:57
Servicestack Roles Users and Groups
Since roles don't contain permissions. I am a bit confused by the Roles and Permission in ServiceStack. It appears they are really the same thing? I want to implement a Group, that has roles, that ha...
- Modified
- 30 Dec at 02:7
Why is summing an array of value types slower then summing an array of reference types?
I'm trying to understand better how memory works in .NET, so I'm playing with [BenchmarkDotNet and diagnozers](https://benchmarkdotnet.org/articles/configs/diagnosers.html). I've created a benchmark c...
- Modified
- 11 Dec at 01:39
ORMLite Service stack Self reference tables
I have a class of companies and sub companies. These can be nested to any level and displayed in a treeview. I am trying to figure out how to do a self reference in ormlite to build out a hierarchy us...
- Modified
- 11 Dec at 15:20
How to create a LoggerFactory with a ConsoleLoggerProvider?
The [ConsoleLoggerProvider](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.console.consoleloggerprovider) has four constructors: 1. ConsoleLoggerProvider(IConsoleLoggerSet...
- Modified
- 7 Oct at 10:44
Why ServiceStack.Redis does not use SET Timeout for acquiring lock?
if you look at the code of [RedisLock.cs](https://github.com/ServiceStack/ServiceStack.Redis/blob/master/src/ServiceStack.Redis/RedisLock.cs) class you can see that it is reading the lock value to val...
- Modified
- 9 Dec at 09:11
What is the type of the 'children' prop?
I have a very simple functional component as follows: ``` import * as React from 'react'; export interface AuxProps { children: React.ReactNode } const aux = (props: AuxProps) => props.chil...
- Modified
- 13 Oct at 08:51
ServiceStack Http Util - GetJsonFromUrlAsync terminates program abruptly
Using the ServiceStack Http Util extension methods, and following the exact instructions [found here](https://github.com/ServiceStack/ServiceStack/wiki/Http-Utils), invoking: ``` var result = await u...
- Modified
- 8 Dec at 19:55
What is the difference between the nuget packages hangfire.aspnetcore and hangfire and hangfire.core?
What is the difference between the `nuget` packages [HangFire.AspNetCore](https://www.nuget.org/packages/Hangfire.AspNetCore/) and [HangFire](https://www.nuget.org/packages/Hangfire/) and [HangFire.co...
- Modified
- 8 Dec at 13:58
How to point Go module dependency in go.mod to a latest commit in a repo?
Starting with v1.11 Go added support for modules. Commands ``` go mod init <package name> go build ``` would generate `go.mod` and `go.sum` files that contain all found versions for the package dep...