How to get current model in action filter
I have a generic action filter, and i want to get current model in the `OnActionExecuting` method. My current implementation is like below: ``` public class CommandFilter<T> : IActionFilter where T :...
- Modified
- 10 May at 17:6
How to resolve the conflict between 2 mscorlib versions in Visual Studio and Xamarin Studio?
For more than 2 days I have been trying to fix this error, but I have not succeeded. This is the error : > No way to resolve conflict between "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKe...
- Modified
- 11 Aug at 13:33
Saving many-to-many relationship in Entity Framework Core
For example, I have 3 classes, which I'm using for many-to-many relationship: ``` public class Library { [Key] public string LibraryId { get; set; } public List<Library2Book> Library2Book...
- Modified
- 16 Aug at 12:28
Select all columns but group by only one in linq
I have been looking for a way to get multiple columns but group by only one in SQL and I found some info. However I can not came up with a way to do it in linq. I have the following toy example table:...
- Modified
- 6 May at 07:24
Can't bind to 'ngModel' since it isn't a known property of 'input'
I have this simple input in my component which uses `[(ngModel)]` : ``` <input type="text" [(ngModel)]="test" placeholder="foo" /> ``` And I get the following error when I launch my app, even if the ...
- Modified
- 25 Apr at 04:43
React: why child component doesn't update when prop changes
Why in the following pseudo-code example Child doesn't re-render when Container changes foo.bar? ``` Container { handleEvent() { this.props.foo.bar = 123 }, render() { return <Child b...
- Modified
- 11 Aug at 09:40
DELETE_FAILED_INTERNAL_ERROR Error while Installing APK
[](https://i.stack.imgur.com/F2Isr.png)I am using Preview. I am facing the issue > Failure: Install failed invalid apkError: While installing apk, I have made changes in build.gradle but could not re...
- Modified
- 20 Jun at 09:12
When Spring Boot starts up, it throws the "method names must be tokens" exception
When Spring Boot starts up, it throws the `method names must be tokens` exception ``` 2016-08-11 16:53:54.499 INFO 14212 --- [0.1-8888-exec-1] o.apache.coyote.http11.Http11Processor : Error parsing...
ServiceStack - Saving AutoQuery Requests
Regarding ServiceStack's AutoQuery, I would like to enable the user to 1. [Save] AutoQuery requests (& provide a name for the Request) - see screenshot 2. view all saved request & re-run a given re...
- Modified
- 12 Aug at 05:23
Hangfire Dashboard Authorization Config Not working
I've downloaded the nu-get package `Hangfire.Dashboard.Authorization` I'm trying configure the OWIN based authorization as per the docs as follows but I get intellisense error `DashboardOptions.Autho...
- Modified
- 11 Aug at 21:21
How to isolate EF InMemory database per XUnit test
I am trying use InMemory EF7 database for my xunit repository test. But my problem is that when i try to Dispose the created context the in memory db persist. It means that one test involve other. ...
- Modified
- 11 Aug at 13:21
'react-native' is not recognized as an internal or external command, operable program or batch file
I recently started with react-native. I install it using the tutorial on the Facebook site and everything works well for a day or two until this message comes up: ``` 'react-native' is not recognized ...
- Modified
- 2 May at 09:8
Getting Azure Active Directory groups in asp.net core project
I created a new project using Visual Studio 2015 and enabled authentication using work and school accounts against Azure Active Directory. Here is what the generated configure function looks like: `...
- Modified
- 27 Jun at 15:54
Why is my asynchronous function returning Promise { <pending> } instead of a value?
My code: ``` let AuthUser = data => { return google.login(data.username, data.password).then(token => { return token } ) } ``` And when i try to run something like this: ``` let userToken = Auth...
- Modified
- 27 Apr at 08:21
How to select a range of values in a pandas dataframe column?
``` import pandas as pd import numpy as np data = 'filename.csv' df = pd.DataFrame(data) df one two three four five a 0.469112 -0.282863 -1.509059 bar True b 0.932424 1.22...
- Modified
- 10 Aug at 22:28
Error: the update operation document must contain atomic operators, when running updateOne
In my collection, there is only one document. ``` > db.c20160712.find() { "_id" : ObjectId("57ab909791c3b3a393e9e277"), "Dimension_id" : 2, "Attribute" : "good", "Hour" : "20160712_06", "Frequency_co...
- Modified
- 29 Nov at 17:56
docker entrypoint running bash script gets "permission denied"
I'm trying to dockerize my node.js app. When the container is built I want it to run a `git clone` and then start the node server. Therefore I put these operations in a .sh script. And run the script ...
Better way to find last used row
I am trying to find the last row the same way I found the last column: ``` Sheets("Sheet2").Cells(1,Sheets("Sheet2").Columns.Count).End(xlToLeft).Column ``` I know this way but it is not as helpful a...
Should thread-safe class have a memory barrier at the end of its constructor?
When implementing a class intended to be thread-safe, should I include a memory barrier at the end of its constructor, in order to ensure that any internal structures have completed being initialized ...
- Modified
- 20 Jun at 09:12
Is it possible to display a custom message in the beforeunload popup?
When using `window.onbeforeunload` (or `$(window).on("beforeunload")`), is it possible to display a custom message in that popup? Maybe a small trick that works on major browsers? By looking at existi...
- Modified
- 18 Jul at 19:10
How can I implement DbContext Connection String in .NET Core?
My situation is quite similar to this link or at least my code is similar and I am trying to find a way to apply this same method in .NET Core syntax. [Pass connection string to code-first DbContext]...
- Modified
- 23 May at 12:10
UriBuilder().Query will wrongly encode non-ASCII characters
I am working on an asp.net mvc 4 web application. and i am using .net 4.5. now i have the following `WebClient()` class: ``` using (var client = new WebClient()) { var query = HttpUtility.ParseQu...
- Modified
- 18 Aug at 06:58
How to return an Excel file from ASP.NET Core Web API web-app?
In similar questions, with this code works to download a PDF: > I'm testing with local files (.xlsx, .pdf, .zip) inside the Controller folder. [Similar Question Here](https://stackoverflow.com/quest...
- Modified
- 17 Sep at 09:21
Ansible Ignore errors in tasks and fail at end of the playbook if any tasks had errors
I am learning Ansible. I have a playbook to clean up resources, and I want the playbook to ignore every error and keep going on till the end , and then fail at the end if there were errors. I can ign...
- Modified
- 10 Aug at 16:44
How to make a simple rounded button in Storyboard?
I just started learning iOS development, cannot find how to make simple rounded button. I find resources for old versions. Do I need to set a custom background for a button? In Android, I would just u...
- Modified
- 10 Aug at 14:6