Questions

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...

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:...

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 ...

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...

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...

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...

24 May at 07:6

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...

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...

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. ...

'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 ...

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: `...

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...

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...

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...

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 ...

10 Aug at 20:20

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...

23 Feb at 10:42

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 ...

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...

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]...

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...

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...

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...

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...

10 Aug at 14:6

"Uncaught TypeError: a.indexOf is not a function" error when opening new foundation project

I've created a new Foundation 5 project through bash, with `foundation new my-project`. When I open the index.html file in Chrome an `Uncaught TypeError: a.indexOf is not a function` error is shown in...

Difference between decorating a property in C# with BsonRepresentation(BsonType.ObjectId) vs BsonId vs ObjectId

Am new to mongodb and am liking how easy it is not to worry about schema stuff, I have a question suppose you want an Id property in mongo and mongo uses `ObjectId` to denote property Id's, so far i s...

17 May at 09:2