How to adapt IObjectContextAdapter from EF 6 to EF Core

I am trying to port this class to EF core: [https://github.com/mehdime/DbContextScope/blob/master/Mehdime.Entity/Implementations/DbContextScope.cs](https://github.com/mehdime/DbContextScope/blob/mast...

Convert float64 column to int64 in Pandas

I tried to convert a column from data type `float64` to `int64` using: ``` df['column name'].astype(int64) ``` but got an error: > NameError: name 'int64' is not defined The column has number of ...

13 May at 18:23

React-router and nginx

I am transitioning my react app from webpack-dev-server to nginx. When I go to the root url "localhost:8080/login" I simply get a 404 and in my nginx log I see that it is trying to get: ``` my-nginx...

13 May at 10:14

What is analog for HttpListener in .NET Core

I'm porting application from .NET 4 to .NET Core and can't find analog for HttpListener class ``` Error CS0246 The type or namespace name 'HttpListener' could not be found (are you missing a using...

How to ignore null values for all source members during mapping in Automapper 6?

I've been looking everywhere: stackoverflow, automapper documentation, internets and just couldn't find any info on this one, even tho this seems to be a very common problem. My mapping: ``` CreateM...

23 May at 10:31

.NET 4.7 returning Tuples and nullable values

Ok lets say I have this simple program in .NET 4.6: ``` using System; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static async void Main() { ...

12 May at 21:55

Scroll to element on click in Angular 4

I want to be able to scroll to a target when a button is pressed. I was thinking something like this. ``` <button (click)="scroll(#target)">Button</button> ``` And in my `component.ts` a method like....

25 Jun at 22:33

Serialize JSON using DataAnnotation to apply decimal formatting rules

We have several complex classes with a variety of decimal (and other) properties. Of the dozens of decimal properties, they all fall under 3 specific formatting rules: 1. Leading zero, one decimal p...

Get YAML for deployed Kubernetes services?

I am trying to deploy my app to running in . The app can be found at: [https://github.com/Industrial/docker-znc](https://github.com/Industrial/docker-znc). The is built into an image on . I have ...

C# Display text on the taskbar | Windows 10

I want to display a text in the taskbar like the NetSpeedMonitor program . I thought about how Windows did that with der Date and Time display, but I couldn't find any answer. I want to do this with C...

12 May at 15:55

Servicestack Multi Tenancy

Does the [Servicestack](http://docs.servicestack.net/) support the Single Deployment with Single Database multi-tenancy method? [The documentation says only about multiple databases](http://docs.servi...

12 May at 15:43

Using R.NET.Community in .NET Core 2.0 Preview 1

For a while, I've been hoping to use [R.NET.Community](https://www.nuget.org/packages/R.NET.Community/) in a .NET Core app. Obviously though with the NuGet package not having been ported to .NET Core,...

12 May at 13:51

Collision detection not working unity

First, I know that this question has been asked a lot, but I cant find a solution, so mi problem is, Im making an educational game, and I have a vein and the blood flow (with many box colliders) and a...

12 May at 18:34

If '<selector>' is an Angular component, then verify that it is part of this module

I am new in Angular2. I have tried to create a component but showing an error. This is the `app.component.ts` file. ``` import { Component } from '@angular/core'; import { MyComponentComponent } fro...

12 May at 12:12

How to install and use obfuscar?

I just finished my C# project(WPF), but now I meet problems on using "obfuscar" (another applicaion would be welcome, if easier to use). Of course I looked already on internet for it, but didn't find...

12 May at 11:49

Difference between Buffer & Stream in C#

I read that Buffer is a sequence of bytes. But I also read that Stream is also a sequence of bytes. So what is the difference between Stream & Buffer?

13 Aug at 05:18

How to get return values and output values from a stored procedure with EF Core?

``` ALTER PROCEDURE [dbo].[SearchMovies] --@Year int = null, @CategoryIds varchar(50) = null, @Keywords nvarchar(4000) = null, @PageIndex int = 1, @PageSize int = 2147483644, ...

How to use jQuery Plugin with Angular 4?

I want to use a range slider in an angular project and I tried using one available module for angular 4. It works fine during compilation but when I try to build it for deployment, it throws the below...

19 Dec at 19:52

How to upgrade Angular CLI to the latest version

Using `ng --version` I got: > @angular/cli: 1.0.0 which is not the latest release available. Since I have Angular CLI globally installed on my system, in order to upgrade it I tried: `npm update a...

12 May at 07:35

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists

[](https://i.stack.imgur.com/WB1Uv.png) ``` <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi...

12 May at 07:4

Export private/public keys from X509 certificate to PEM

is there any convenient way to export private/public keys from .p12 certificate in PEM format using .NET ? Without manipulating with bytes at low level? I googled for hours and almost nothing is usabl...

11 Feb at 19:20

How can I set the user-agent in the http header

I'm trying to set the user-agent in my http header in our override function GetWebRequest in C# My request is being returned with an error and I was told they are not seeing the user-agent. I've tried...

30 Aug at 07:11

com.fasterxml.jackson.databind.exc.MismatchedInputException: Can not deserialize instance of object out of START_ARRAY token

Getting the MismatchedInputException. Searched a lot of questions here but found JSONMappingException mostly. I don't understand if they are same or different. Following is the entity: ``` @Entity @...

Transforming a ZPL string into a JPG image and PDF

Good Afternoon, I am currently working on a project that dynamically generates a ZPL string. Below you can see an example and you can use [http://labelary.com/viewer.html](http://labelary.com/viewer....

11 May at 18:6

Unexpected outcome of node.js vs ASP.NET Core performance test

I am doing a quick stress test on two (kinda) hello world projects written in [node.js](/questions/tagged/node.js) and [asp.net-core](/questions/tagged/asp.net-core). Both of them are running in produ...