docker build with --build-arg with multiple arguments

According to the [documentation](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables-build-arg), it's possible to define multiple args for the flag `--build-arg`, but ...

26 Dec at 06:13

How to display svg icons(.svg files) in UI using React Component?

I have seen a lot of libraries for svg on react but none gave me how to import an svg file in the react component. I have seen code which talk about bring the svg code into react rather than using the...

23 Aug at 07:10

XmlCodeExporter and nullable types

`System.Xml.Serialization.XmlCodeExporter` generates code (in code CodeDom form) from an XSD schema. But it does it with some quirks. For example an optional element: ``` <xs:element name="Something"...

17 Feb at 13:4

WordPress WooCommerce ASP.net API WebHookHandler: The WebHook request must contain an entity body formatted as HTML Form Data

I am trying to create a WebHookHandler for Webhooks send from WordPress WooCommerce in ASP.NET C#. I started with creating a ASP.NET C# Azure API App WebApplication Project and adding the relevant r...

Getting usmStatsUnknownEngineIDs on SNMPv3 Discovery

I am trying to get `SNMPv3` to work using `sharpsnmplib` but i am stuck on the discovery step. ``` Discovery discovery = Messenger.GetNextDiscovery(SnmpType.GetRequestPdu); ReportMessage report = d...

16 Aug at 10:23

How do I add a CA root certificate inside a docker image?

I am running an ASP.NET Core 1.1 Web API in a Docker 1.13.1 container on Ubuntu 14.04. When the code attempts to retrieve some data from an HTTPS server, I get this certificate authentication error: ...

17 Feb at 09:50

Why IManageApiKeys dependency is not resolved with ServiceStack ApiKeyAuthProvider?

Here is my ``` Plugins.Add(new AuthFeature(() => new AuthUserSession(), new IAuthProvider[] { new ApiKeyAuthProvider(AppSettings) { RequireSecureConnection = false, InitSchema = true}, new Cre...

17 Feb at 08:41

How do yield and await implement flow of control in .NET?

As I understand the `yield` keyword, if used from inside an iterator block, it returns flow of control to the calling code, and when the iterator is called again, it picks up where it left off. Also,...

22 Feb at 12:38

Add validation to a MediatR behavior pipeline?

I'm using ASP.NET Core, the built-in container, and MediatR 3 which supports ["behavior" pipelines](http://github.com/jbogard/MediatR/wiki/Behaviors): ``` public class MyRequest : IRequest<string> { ...

How to plot vectors in python using matplotlib

I am taking a course on linear algebra and I want to visualize the vectors in action, such as vector addition, normal vector, so on. For instance: ``` V = np.array([[1,1],[-2,2],[4,-7]]) ``` In ...

How do I use jsvserviceclient.js with custom routes on service stack?

I started using servicestack javascript client for our application. Our webservices uses servicestack with custom routes (api.geni.us/v1/groups/list?format=jsv). The problem is that on the current cli...

16 Feb at 17:8

Post FromBody Always Null

I've got a new API that I'm building with ASP.NET Core, and I can't get any data POST'ed to an endpoint. Here's what the endpoint looks like: ``` [HttpPost] [Route("StudentResults")] public async ...

10 Jun at 02:22

Keep NULL rows last on Dynamic Linq Order By

I am using this snippet below for Ordering my Linq queries dynamically and works great. I am not great at reflection or complex linq queries but I need a way that when ascending order is used, that N...

19 Mar at 22:34

best practice for using async await in webapi

I have .NET core Web API which as service layer. Service layer has all EF code. If have basecontroller with this code ``` protected Task<IActionResult> NewTask(Func<IActionResult> callback) { re...

How to convert T object to Amazon DynamoDB Document dynamically

I am trying to use DynamoDB in Amazon AWS in my MVC .net project. And I am also trying to do a Business-DataAccess-Model layered project. I have a GenericDataRepository class which implements an Add()...

5 May at 15:52

Get last record of each group in entityframework?

I want to retrieve last inserted record of each in entity-framework. Here is my table data. ``` ID RegNo MobileNo CreatedDate 26727 190077348 9696562673 13-02-2017 06:31 26729 ...

In Typescript, what is the ! (exclamation mark / bang) operator when dereferencing a member?

When looking at the sourcecode for a tslint rule, I came across the following statement: ``` if (node.parent!.kind === ts.SyntaxKind.ObjectLiteralExpression) { return; } ``` Notice the `!` oper...

10 May at 11:21

Post Stream in ASP.NET Core Web Api

Hello lovely people of Stack Overflow. Since yesterday I have a problem and I have been browsing SO since then. I have a UWP Client and ASP.NET Core Web Api. I just want to send a stream to my web api...

Changing the URL in react-router v4 without using Redirect or Link

I'm using [react-router v4](https://reacttraining.com/react-router/) and [material-ui](http://www.material-ui.com/) in my React app. I was wondering how to change the URL once there is a click on a `G...

Xamarin - Cannot use PopModalAsync

I am trying to use `PopModalAsync` to remove the modal page. However, the `Navigation.ModalStack.Count` is 0. If I use `PopModalAsync`, it will throw an exception: `System.ArgumentOutOfRangeException...

Override property of the base class with a derived class

In a C# code, if the `Rebar` class derives from `Reinforcement` class and the `RebarShape` class inherits the `ReinforcementShape` class. Is it possible to override the property `ReinforcementShape` i...

JQuery UI Autocomplete not reaching ActionResult C# MVC

I have read many posts with the same issue, but none help, so apologies for the duplicate question :( Ive followed the simple sample on the JQueryUI site by hard coding values and the autocomplete wor...

Javascript ServiceStack Client serialization error

So I have a master/detail scenario between two views. The master page shows a list and after clicking on one of the items, I send a message via the EventAggregator in Aurelia to the child view with a...

16 Feb at 16:48

How to window.scrollTo() with a smooth effect

I can scroll to 200px using the following ``` btn.addEventListener("click", function(){ window.scrollTo(0,200); }) ``` But I want a smooth scroll effect. How do I do this?

Python 3 - ValueError: not enough values to unpack (expected 3, got 2)

I have a problem with my Python 3 program. I use Mac OS X. This code is running properly. ``` # -*- coding: utf-8 -*- #! python3 # sendDuesReminders.py - Sends emails based on payment status in sprea...

15 Feb at 20:18