How can I use Microsoft.Net.Compilers at solution level?
I want to start using [Microsoft.Net.Compilers](https://www.nuget.org/packages/Microsoft.Net.Compilers/) to simplify work with our build server. However, I could only get it to work at a [per-project ...
if else function in pandas dataframe
I'm trying to apply an if condition over a dataframe, but I'm missing something (error: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().) ``` raw_data = ...
- Modified
- 13 Apr at 11:52
Sourcetree change password of existing account
I use Sourcetree to pull and push to a server over ssh. Sourcetree has remembered the password but the password has changed. I cannot find how to inform Sourcetree of the new password. Based on Google...
- Modified
- 27 Jul at 01:40
Return null value in ServiceStack json
In case when object is null, service stack returns ``` {} ``` But I want to return null value, how I can achieve this? My serialization code: ``` public override Task WriteToStreamAsync(Type typ...
- Modified
- 13 Apr at 10:18
Check postgres replication status
Can someone suggest the steps to check pgsql replication status and how to identify if the replication is not happening properly? We use streaming replication with pgsql9.0 and pgsql9.4
- Modified
- 17 Oct at 13:45
Bootstrap change navbar color
In Bootstrap 4, how do I go about changing the background color of a navbar? The code from twbscolor doesn't work. I want to make the background color a different color and the font color white. ``` <...
- Modified
- 30 Mar at 13:35
Version for package `Microsoft.EntityFrameworkCore.Tools.DotNet` could not be resolved
I am deploying a new .NET Core application to my server. I'm trying to run the EntityFramework migration, as the project was created using the "code-first" method. The command to be run is > dotnet ...
- Modified
- 29 Feb at 07:11
ExpressionChangedAfterItHasBeenCheckedError Explained
Please explain to me why I keep getting this error: `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.` Obviously, I only get it in dev mode, it doesn't happen...
- Modified
- 20 Sep at 05:10
bootstrap 4 row height
I try to have something like this with bootstrap 4[](https://i.stack.imgur.com/sF9pd.jpg) with equal size in the height of green rows and red row ``` <link href="https://cdnjs.cloudflare.com/ajax/li...
- Modified
- 20 Dec at 14:50
Xamarin.Forms.Maps 2.3.4 custom MapRenderer disables everything
My problem occurs after I updated Xamarin.Forms and Xamarin.Forms.Maps to the new version (2.3.4). After that I also updated all google play services in Android project (and a lot of libraries that I...
- Modified
- 12 Apr at 16:28
Assembly Binding redirect: How and Why?
This is not a problem question but a general understanding question on assembly binding redirect's working. 1. Why binding redirect shows only major version and not minor, build and revision numbe...
- Modified
- 12 Apr at 09:41
'dotnet build' specify main method
I am using `dotnet` to build a .NET Core C# project from the command line. The project has multiple classes with a `main` method. Thus I get the error: ``` $ dotnet build Microsoft (R) Build Engine v...
Spark difference between reduceByKey vs. groupByKey vs. aggregateByKey vs. combineByKey
Can anyone explain the difference between `reducebykey`, `groupbykey`, `aggregatebykey` and `combinebykey`? I have read the documents regarding this, but couldn't understand the exact differences. An ...
- Modified
- 20 Sep at 11:15
JSON.NET is throwing 'additional text found in JSON string after finishing deserializing object."
I have a Javascript control that returns JSON string as an AJAX to the server. But when I try to save, Newtonsoft is throwing the exception > Additional text found in JSON string after finishing dese...
- Modified
- 12 Apr at 08:16
Uncaught (in promise) SyntaxError: Unexpected end of JSON input
I am trying to send a new push subscription to my server but am encountering an error "Uncaught (in promise) SyntaxError: Unexpected end of JSON input" and the console says it's in my index page at li...
- Modified
- 12 Apr at 07:38
Visual Studio Code open tab in new window
I am trying to open a tab in a new window in Visual Studio Code so I can move it to another screen. If I drag the tab the other screen, a file is created. Is there a shortcut to open a tab in a new Vi...
- Modified
- 22 Mar at 07:27
How to push JSON object in to array using javascript
I am trying to fetch the JSON data from an url.It is in the form of object i have to push the object data into array. ``` var my_json; $.getJSON("https://api.thingspeak.com/channels/"+did+"/feeds.jso...
- Modified
- 12 Apr at 06:26
How can I throw an exception in an ASP.NET Core WebAPI controller that returns an object?
In Framework WebAPI 2, I have a controller that looks like this: ``` [Route("create-license/{licenseKey}")] public async Task<LicenseDetails> CreateLicenseAsync(string licenseKey, CreateLicenseReques...
- Modified
- 12 Apr at 23:50
How do I send a specific json to this service stack request
How do I implement the method call to generate this request in `ServiceStack`? ``` [Route("/publishmanifest", "POST")] public class PublishManifest: List<string>, IReturn<bool> {} To accept requests ...
- Modified
- 12 Apr at 05:12
cordova Android requirements failed: "Could not find an installed version of Gradle"
I'm trying to build a Cordova Android project using the most recent tools. I followed the instructions [here](https://cordova.apache.org/docs/en/latest/guide/cli/): ``` $ cordova create myApp com.myC...
Create Local SQL Server database
I've used SQL Server Management Studio before, but only when the server is already up and running. I need to start from the beginning and create my own instance on the local computer. The instructio...
- Modified
- 11 Apr at 21:0
How to structure data validation in .net Core web API?
I have a asp.net Core web API with the following structure: ``` View Layer: API endpoints | V Controller Layer: Controller classes implementing endpoints | V Business Logic Layer: Ser...
- Modified
- 11 Apr at 20:44
How to dynamically load assemblies in dotnet core
I'm building a web application, where I would like separate concerns, i.e. having abstractions and implementations in different projects. To achieve this, I've tried to implement a composition root c...
- Modified
- 23 May at 11:54
React router changes url but not view
I am having trouble changing the view in react with routing. I only want to show a list of users, and clicking on each user should navigate to a details page. Here is the router: ``` import React fro...
- Modified
- 12 Jun at 18:21