Nuget Package ... does not exist in project ... Package ... Already exists in folder

I've been fighting with this error for several hours and can't come up with a solution that works. I have an ASP.Net API within a multi-project solution which has its references/dependencies improper...

Using ASP.NET Core's ConfigurationBuilder in a Test Project

I want to use the `IHostingEnvironment` and `ConfigurationBuilder` in my functional test project, so that depending on the environment the functional tests run using a different set of configuration. ...

Web Service template missing from Visual Studio 2015 Professional

I've been tasked with creating a custom web service for a client solution. I've recently installed Visual Studio Pro 2015 and I can't seem to find the template for an .asmx Web Service. I remember it ...

Why use async with QueueBackgroundWorkItem?

What is the benefit of using `async` with the ASP.NET `QueueBackgroundWorkItem` method? ``` HostingEnvironment.QueueBackgroundWorkItem(async cancellationToken => { var result = await LongRunningM...

How to get response from S3 getObject in Node.js?

In a Node.js project I am attempting to get data back from S3. When I use `getSignedURL`, everything works: ``` aws.getSignedUrl('getObject', params, function(err, url){ console.log(url); });...

How can I generate a self-signed cert without using obsolete BouncyCastle 1.7.0 code?

I have the following code which generates a nice self-signed cert, works great, but I'd like to update to the latest BouncyCastle (1.8.1.0) and I'm getting warnings about obsolete usage: ``` var pers...

29 Apr at 15:21

Testing properties with private setters

Currently in a part of my project a domain object like below exists: ``` public class Address { public virtual string HouseName { get; set; } public virtual string HouseNumber { get; set; } ...

Getting DefaultNetworkCredentials to pass through to WCF Service

I have a WCF service I have created in a WebApplication with the following configuration in web.config ``` <service name="RedwebServerManager.WebApplication.DesktopService" behaviorConfigu...

29 Apr at 11:0

How do I install a pip package globally instead of locally?

I am trying to install flake8 package using pip3 and it seems that it refuses to install because is already installed in one local location. How can I force it to install globally (system level)? `...

29 Apr at 12:51

How to convert numpy arrays to standard TensorFlow format?

I have two numpy arrays: - - What shape do the numpy arrays need to have? Additional Info - My images are 60 (height) by 160 (width) pixels each and each of them have 5 alphanumeric characters....

Error in blob's returned coordinates

I am trying to detect and crop a photo out of a blank page, at unknown random locations using AForge, following the article [Here](http://www.aforgenet.com/articles/shape_checker/) I have downloaded ...

28 Apr at 20:51

How to run bootRun with spring profile via gradle task

I'm trying to set up gradle to launch the `bootRun` process with various spring profiles enabled. My current `bootRun` configuration looks like: ``` bootRun { // pass command line options from ...

28 Apr at 18:57

How to make a ReadOnlyCollection from a HashSet without copying the elements?

I have a private `HashSet<string>` which is the backing field of a read-only property which should return a read-only collection such that callers cannot modify the collection. So I tried to: ``` pub...

28 Apr at 18:51

Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()

I want to filter my dataframe with an `or` condition to keep rows with a particular column's values that are outside the range `[-0.25, 0.25]`. I tried: ``` df = df[(df['col'] < -0.25) or (df['col'] >...

Can you have an interface be dependent on a class?

I'm studying SOLID principles and have a question about dependency management in relation to interfaces. An example from the book I'm reading ( by Gary McLean Hall) shows a `TradeProcessor` class tha...

Angular 2 - View not updating after model changes

I have a simple component which calls a REST api every few seconds and receives back some JSON data. I can see from my log statements and the network traffic that the JSON data being returned is chan...

26 Jan at 10:38

Bluetooth Pairing (SSP) on Windows 10 with 32feet.NET

I've just started a project that will require me to pair a Windows 10 tablet with another bluetooth device. I decided to start with a simple windows forms app to familiarise myself with the process. ...

16 Jul at 16:46

How can I generate a tsconfig.json file?

How can I generate a `tsconfig.json` via the command line? I tried command `tsc init`, but this doesn't work.

21 Apr at 23:12

Issue with ORM Lite Composite Key Workaround

I am implementing the composite key workaround suggested here: [https://github.com/ServiceStack/ServiceStack.OrmLite/#limitations](https://github.com/ServiceStack/ServiceStack.OrmLite/#limitations) ...

28 Apr at 13:27

Combine Web API 2 and Service Stack in one app

I am developing an application with Angular 1.5 and Web API 2, but I would like to switch to ServiceStack. The app is running already in production. The idea is to have v1 with Web API (.../api/v1/.....

28 Apr at 13:5

Ansible: How to test that a registered variable is not empty?

How can I test that stderr is non empty:: ``` - name: Check script shell: . {{ venv_name }}/bin/activate && myscritp.py args: chdir: "{{ home }}" sudo_user: "{{ user }}" register: test_my...

11 May at 15:24

Form validation with react and material-ui

I am currently trying to add validation to a form that is built using material-ui components. I have it working but the problem is that the way I am currently doing it the validation function is curre...

27 Mar at 00:23

How to extract data out of a Promise

I have a promise that returns data and I want to save that in variables. Is this impossible in JavaScript because of the async nature and do I need to use `onResolve` as a callback? ``` const { foo...

Custom advanced entity validation with Dynamic Data

I'm looking for a solution to perform some custom entity validation (which would require database access, cross-member validation...) when the user saves its changes in a Dynamic Data screen, with Ent...

Adding setter to inherited read-only property in C# interface

I have an interface that declares some properties (shortened to `Id` only in the example) with only a `get` method. Classes implementing this interface do not have to provide a public setter for this ...

28 Apr at 07:14