Questions

Webpack: "there are multiple modules with names that only differ in casing" but modules referenced are identical

I'm using webpack 3.8.1 and am receiving several instances of the following build warning: ``` WARNING in ./src/Components/NavBar/MainMenuItemMobile.js There are multiple modules with names that onl...

28 Nov at 14:42

How to extract table as text from the PDF using Python?

I have a PDF which contains Tables, text and some images. I want to extract the table wherever tables are there in the PDF. Right now am doing manually to find the Table from the page. From there I a...

30 Sep at 06:58

aspnet core jwt token as get param

I'm working an an aspnet core 2 web api project, which main consumer is a vue web app. Api uses jwt tokens as authentication method, and everything works fine. Now i've put up all code to manage ima...

28 Nov at 21:23

startForeground fail after upgrade to Android 8.1

After upgrading my phone to 8.1 Developer Preview my background service no longer starts up properly. In my long-running service I've implemented a `startForeground` method to start the ongoing notifi...

No module named 'tqdm'

I am running the following pixel recurrent neural network (RNN) code using Python 3.6 ``` import os import logging import numpy as np from tqdm import trange import tensorflow as tf from utils impo...

Code Coverage Tool for C# with VS Code for Mac OSx

How can I check the code coverage of my C# Unit Tests in VS Code? The Code Coverage tool that I've used (because of it's simplicity, it is usable in the terminal) is [MiniCover](https://github.com/luc...

Angular 4 - get input value

I would like to know how to get the value from an input on angular 4. I looked over the documentation on angular and the example with the key event doesn't work very well for me and I can't find a pro...

28 Nov at 11:27

How do you convert from ArrayBuffer to byte array in javascript?

How do you convert from ArrayBuffer to byte array in javascript? I get the data of an image in ArrayBuffer format from angular. I want to convert the arraybuffer data to []byte so it matches the back...

28 Nov at 09:42

Access Connection String inside an ASP.NET Core controller

I'm developing an ASP.NET Core 2.0.2 Web API with C# and .NET Framework 4.7. I want to get the connection string from `appsettings.json` in a method's controller. I did it in Startup.cs: using Micro...

6 May at 07:21

Jquery AJAX: No 'Access-Control-Allow-Origin' header is present on the requested resource

I am trying to post data to an API from my localhost:4502 port. When i tried to post data to this API using POSTMAN the data got added in the backend by providing the Basic Authorization key. The same...

7 Mar at 10:5

How do I set the default browser as chrome in Visual Studio Code?

I am setting up my VS Code environment for the first time, but I can't figure out how to set Chrome as the default browser for the workspace.

27 Dec at 13:12

Create new folder with pathlib and write files into it

I'm doing something like this: ``` import pathlib p = pathlib.Path("temp/").mkdir(parents=True, exist_ok=True) with p.open("temp."+fn, "w", encoding ="utf-8") as f: f.write(result) ``` > Erro...

22 Feb at 16:16

How to sign out from Azure AD 2.0/MSAL in a desktop application?

I'm using MSAL in a WPF desktop application that needs to allow users to sign in and out against Azure AD v2.0. [Microsoft's Graph access sample](https://github.com/Azure-Samples/active-directory-dotn...

27 Nov at 18:22

Using Microsoft Extension Dependency Injection on WinForms in C#

My knowledge in DI is very limited. I am developing a WinForm project in a solution which every else where in the solution, [Microsoft Extension Dependency Injection](https://www.nuget.org/packages/Mi...

27 Nov at 17:14

MemoryCache - prevent expiration of items

In my application I use MemoryCache but I don't expect items to expire. Items are therefore inserted to the cache with default policy, without `AbsoulteExpiration` or `SlidingExpiration` being set. Re...

7 May at 05:50

Most Efficient way to detect duplicate http requests

I'm using service stack to accept http requests that add rows to a back-end database, fairly standard stuff. The problem I have now is that sometimes, the devices sending data to the service, send the...

27 Nov at 15:30

Is the ServiceStack RequestContext is thread-safe in .NET Core

ServiceStack's `RequestContext` for .NET Core is using static `AsyncLocal` data : ``` public static AsyncLocal<IDictionary> AsyncRequestItems = new AsyncLocal<IDictionary>(); ``` per request end wo...

27 Nov at 07:13

Oracle Connection Pooling in .Net

We have a system that uses an Oracle database. I've been asked if the system makes use of connection pooling which I'm not sure about. We are using the `Oracle.DataAccess.Client.OracleConnection` W...

26 Nov at 13:43

The type or namespace name 'Azure' does not exist in the namespace 'Microsoft'

I am working on a Windows 10 UWP app and would like to store some information in Cosmos DB. Following the getting started instructions does not work with Microsoft Azure DocumentDB NuGet package 1.19....

26 Nov at 12:27

VB.NET equivalent for the C# 7 is operator declaration pattern

Is there a VB.NET equivalent to the [C# 7 is operator declaration pattern](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/patterns#declaration-and-type-patterns)? `bmp` `...

No provider for Http StaticInjectorError

I am trying to pull the data from my api, and populate it in my ionic app, but it is crashing when I enter the page the data should be populated on. Below are my two .ts files: ``` import { Componen...

10 Jun at 13:26

In an ASP.NET Core Web App, what's the difference between AddJsonOptions and AddJsonFormatters?

I'm trying to control json output settings across the board, like for normal HTTP 200 OK results to things like when model validation fails (HTTP 400 BAD Request) etc. I ran across these two methods ...

11 Jul at 13:34

Cannot sign out the OpenIdConnect authentication of identityserver4 on ASP.NET Core 2 application

My Identity Server is using identityserver4 framework ([http://localhost:9000](http://localhost:9000)). And I register the client on Identity Server as below. ``` clients.Add( new Client { ...

26 Jun at 10:9

Exception before Main

I created app with following code (just for research purposes): ``` using System; using System.CodeDom; using System.Linq; using System.Reflection; using System.Security.Permissions; namespace Hello...

26 Nov at 10:42

How to Unit Test Startup.cs in .NET Core

How do people go about Unit Testing their Startup.cs classes in a .NET Core 2 application? All of the functionality seems to be provided by Static extensions methods which aren't mockable? If you take...

16 Feb at 13:23