The inline constraint resolver of type 'DefaultInlineConstraintResolver' was unable to resolve the following inline constraint: 'apiVersion'

I have a basic WebApi implementation setup with the default Values controller. After [reading a blog about RESTful WebApi Versioning](https://www.hanselman.com/blog/ASPNETCoreRESTfulWebAPIVersioningMa...

ASP.NET Core - Overriding the default ControllerFactory

I'm in a specific situation where I'd like to override the default ASP.NET ControllerFactory. I'd like to do this because I want to be in full control of what type of controller I handle each reques...

servicestack client authentication encrypt password

I have Xamarin application that is using servicestack as back-end API the current implementation to authenticate users is sending plain text from client side to server then authenticate users , what i...

14 Aug at 20:26

The $(TargetFrameworkVersion) for FormsViewGroup.dll (v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0) xamarin

the error is on visual studio 2017 and xamarin: > Severity Code Description Project File Line Suppression StateWarning The $(TargetFrameworkVersion) for FormsViewGroup.dll (v7.1) is g...

Why is TryParse in C#7 syntax (empty out parameter) emitting a warning if you compile it?

In C#7, you are allowed to do ``` if (int.TryParse("123", out int result)) Console.WriteLine($"Parsed: {result}"); ``` or - if you don't use the result and just want to check if the ...

14 Sep at 12:55

Pagination in a .NET Core API Project

I am trying to implement pagination on `.NET Core` `RESTful` API's (with `EF`). Rather than re-inventing the wheel, I was hoping there was a way to either use a generic function that could hook into...

2 May at 10:47

How to partially cut ViewCell separator line in Xamarin Forms?

I am using `ViewCell` to create rows in my table settings page. I have a setting to select a Light or Dark theme. ``` <ViewCell Height="50"> <StackLayout x:Name="darkTheme" VerticalOptions="FillA...

2 May at 09:49

Use Debug.Log from C++

When making C++ plugins in Unity it is easier to use [Debug.Log](https://docs.unity3d.com/ScriptReference/Debug.Log.html) to quickly view variable values but this function is only available from C# si...

2 May at 07:52

UNAUTHORIZED with API key

I try to authenticate a call from a service to another service using an API key. An administrative service creates 'service account users' when it is started for the first time. Now when a service cal...

4 May at 06:36

Unity/Firebase How to authenticate using Google?

I'm trying to implement Firebase Authentication system in my Unity Game Project. Everything is setup properly on the console panel on the website. I've read the docs and can't find a way to login into...

Relative imports - ModuleNotFoundError: No module named x

This is the first time I've really sat down and tried python 3, and seem to be failing miserably. I have the following two files: 1. test.py 2. config.py config.py has a few functions defined in it...

re.sub erroring with "Expected string or bytes-like object"

I have read multiple posts regarding this error, but I still can't figure it out. When I try to loop through my function: ``` def fix_Plan(location): letters_only = re.sub("[^a-zA-Z]", # Search ...

29 Dec at 08:38

How to loop through a JSON object with typescript (Angular2)

I am new to Angular2 and I am trying to loop through a JSON object that I am getting back from a GET request but can't work it out. ``` { Results: [{ Time: "2017-02-11T08:15:01.000+00:...

1 May at 20:41

ServiceStack selfhosted performance on Raspberry

I have a C# console application with a self hosted ServiceStack server (based on AppSelfHostBase). It has both REST API (get and post) and a "standard" html/javascript website. If i run the code unde...

1 May at 18:54

How to get connection string out of Azure KeyVault?

A hypothetical web-site currently connects using: ``` public SqlConnection CreateConnection() { DbConnection connection = new SqlConnection(); connection.ConnectionString = GetConnectionString(...

Getting a list of all users stored in a IAuthRepository

Looks like there is no method to retrieve a List from the IAuthRepository or do I miss something? I use the Redis implementation, so I need a couple of hashes or Alias keys to do some filtering too. ...

1 May at 16:39

How to check if the docker engine and a docker container are running?

In a script, I need to check: a) Is the docker engine running? b) Given a container name, is that docker container running?

30 Oct at 19:17

Typescript Servicestack Client authentication for SSE events

I am trying to use typescript [servicestack-client](https://github.com/ServiceStack/servicestack-client) to hook to SSE events from ServiceStack Server. The authentication is made by sending `Authent...

Laravel throws 'The bootstrap/cache directory must be present and writable' error after update

I used 'composer update', which updated a few packages. During the updating process the website still functions. However, after it says 'The compiled services file has been removed', the website doesn...

1 May at 11:28

How to check undefined in TypeScript

I am using this code to check whether a variable is undefined, but it's not working. ``` var uemail = localStorage.getItem("useremail"); if (typeof uemail === "undefined") { alert('undefined'); }...

24 Feb at 19:12

Proper way to move Rigidbody GameObject

I just started learning Unity. I tried to make a simple box move by using this script. The premise is, whenever someone presses 'w' the box moves forward. ``` public class PlayerMover : MonoBehaviour...

15 Jun at 16:46

multiple JsonProperty Name assigned to single property

I have two format of JSON which I want to Deserialize to one class. I know we can't apply two `[JsonProperty]` attribute to one property. Can you please suggest me a way to achieve this? ``` string ...

14 Nov at 08:41

How to get a single value from FormGroup

I am aware that I can get the values of a form using ``` JSON.stringify(this.formName.value) ``` However, I want to get a single value from the form. How do I go about doing that?

Composite Key EF Core getting error when using Fluent Api

So I have the following class in Entity Framework Core. I am trying to do a code first migration and can't for the life of me figure out how to make the fluent API for this work. ``` public class Pa...

How to get root directory of project in asp.net core. Directory.GetCurrentDirectory() doesn't seem to work correctly on a mac

My project has a folder structure to the tune of: - - - - - In the server (running in the Project/Server folder) I refer to the folder like this: ``` var rootFolder = Directory.GetCurrentDirectory...

6 Dec at 22:22