ServiceStack don`t save session cookies after login request form cross domen
I have a backend and angularjs on the client, they will work on different domains. I set up the cors as follows: ``` Plugins.Add(new CorsFeature( allowCredentials: true, ...
- Modified
- 19 Mar at 23:24
Could not load file or assembly 'Microsoft.Build.Framework'(VS 2017)
When I try running the command "update-database", I get this exception: > Specify the '-Verbose' flag to view the SQL statements being applied to the target database. System.IO.FileNotFoundExce...
- Modified
- 29 Jan at 23:7
Export result set on Dbeaver to CSV
Normally I use Dbeaver for windows and always export my result set like this: - This step by step puts my result set in my clipboard and I can paste it wherever I want to work with it. The problem...
PyTorch reshape tensor dimension
I want to reshape a vector of shape `(5,)` into a matrix of shape `(1, 5)`. With numpy, I can do: ``` >>> import numpy as np >>> a = np.array([1, 2, 3, 4, 5]) >>> a.shape (5,) >>> a = np.reshape(a, (1...
.Net Core Machine Key alternative for webfarm
I have been using dotnet core to create an application that runs in a Kubernetes cluster on Linux hosts. As I was testing it noticed getting exceptions when validating the CSRF tokens, that makes sens...
- Modified
- 10 Apr at 14:36
Execute action when entity matches user-defined query/filter/rule
Normally you write a query and get all the records (entities) that match it. I need to do the reverse. Let's say I have 1M customers with a couple dozen denormalized properties: ``` public class Cus...
- Modified
- 23 May at 12:2
Angular 4 call parent method in a child component
I want to call parent method (deletePhone) in child component in Angular 4. How can I do that properly? my parent component looks like: ``` export class ContactInfo implements OnInit { phoneFor...
- Modified
- 20 Jun at 15:49
API keys remain empty
I refer to [this question](https://stackoverflow.com/questions/43292099/authenticate-server-to-server-communication-with-api-key/43292283#43292283). I try to create a server account if it does not exi...
- Modified
- 23 May at 11:46
How to get ALL parameters send to a servicestack service?
I was just wondering how to use base.Request in a service. for example, if the caller Post a form to the servicestack service, normally I can get each parameters by using ``` base.Request.GetParam("...
- Modified
- 10 Apr at 11:6
AADSTS50020: We are unable to issue tokens from this api version for a Microsoft account
I'm writing a simple C# mobile application which I've registered at [https://apps.dev.microsoft.com/](https://apps.dev.microsoft.com/) to access live.com/outlook.com mailboxes (not outlook 365 mbx). I...
- Modified
- 11 Apr at 13:47
What does --net=host option in Docker command really do?
I'm a little bit beginner to Docker. I couldn't find any clear description of what this option does in docker run command in deep and bit confused about it. Can we use it to access the applications r...
- Modified
- 14 Apr at 07:3
How to set timeout in Refit library
I am using Refit library in my Xamarin App, I want to set 10 seconds timeout for the request. Is there any way to do this in refit? Interface: ``` interface IDevice { [Get("/app/device/{id}")] T...
- Modified
- 10 Apr at 06:0
JSON.NET: How to serialize just one row from a DataTable object without it being in an array?
I have a database class that calls into a database and retrieves data. The data is loaded into a `DataTable` object with an `SqlDataAdapter`. I then want to take only the first row of data (in truth, ...
Why is it not allowed to declare empty expression body for methods?
I had a method which has an empty body like this: ``` public void Foo() { } ``` As suggested by ReSharper, I wanted to convert it to expression body to save some space and it became: ``` public void ...
React Native Error - yarn' is not recognized as an internal or external command
I am not able to run the sample react Native AwesomeProject project. Can anyone help? Below is the details. > C:\Users\dip\AwesomeProject>react-native run-android 'yarn' is not recognized as an i...
- Modified
- 4 Sep at 00:27
Android Plugin UnitySendMessage Never Called
This was working a few weeks ago, but now I've noticed my `OnReward` message is no longer called from my custom plugin. In my rewardcenter.cs class I call the plugin class to set the listener to the ...
System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Html.IHtmlContent] in ViewComponent Section of View
I am new to view component and don't understand why I am getting this error at all. ``` public class Last6ClosedJobsViewComponent : ViewComponent { private readonly Eva804Context ctx; publi...
- Modified
- 9 Apr at 21:33
Unknown discriminator value MongoDB
I basically want a collection that saves multiple types of objects/documents but all of them inherit from a base interface.. However, I am keep getting this exception when loading: `Additional info...
Prevent content from expanding grid items
Is there anything like `table-layout: fixed` for CSS grids? --- I tried to create a year-view calendar with a big 4x3 grid for the months and therein nested 7x6 grids for the days. The calendar...
- Modified
- 19 Feb at 10:28
Sort an array of objects in typescript?
How do I sort an array of objects in TypeScript? Specifically, sort the array objects on one specific attribute, in this case `nome` ("name") or `cognome` ("surname")? ``` /* Object Class*/ export c...
- Modified
- 13 Jan at 00:12
How to create dependency injection for ASP.NET MVC 5?
Creating Dependency Injection with ASP.NET Core is fairly easy. The documentation explains it very well [here](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?highlight...
- Modified
- 9 Apr at 19:43
VS2017 Setup Project - Where?
I'm trying to create a setup project / installer for a C# project but can't find the 'setup project' template in VS2017. In VS2015 it was under: Other Project Types >> Setup and Deployment >> Visual ...
- Modified
- 9 Apr at 15:3
Show comments in nuget package
How do I include the comments that I write above my methods and properties in my nuget package? Ie. So when the library is consumed the user can use intellisense and read what the method is about? eg...
how to stretch/resize svgs in uwp's xaml?
Since the creators update came out, uwp can use svg images as briefly explained [here (minute 3)](https://channel9.msdn.com/Events/Windows/Windows-Developer-Day-Creators-Update/Building-personal-and-p...
ServiceStack ambiguous conflict in Servicestack.Core
Servicestack.Core I need get property from reflection: ``` PropertyInfo property = branch.GetType().GetProperty("Prop"); ``` but I get this conflict: > The call is ambiguous between the followin...
- Modified
- 8 Apr at 22:21