IFormFile always return null in asp.net core 2.1

Here's how I upload file my Api action : ``` [HttpPost] public async Task<BaseListResponse<MediaStorageModel>> MediaBrand(IFormFile file, int brandId) { var files = new List<IFormFile>(); fil...

How to generate UUID in Angular

## How do I generate a UUID in Angular? I tried the packages [https://www.npmjs.com/package/uuid-generator-ts](https://www.npmjs.com/package/uuid-generator-ts) and [https://www.npmjs.com/package/@t...

14 Dec at 16:56

Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFrameworks"

I can't run my unit tests. I have the next error: > Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFram...

VSTS Build Pipeline: Test fails connecting to Azure Key Vault

I am trying to use VSTS (now Azure DevOps) to do a CI/CD pipeline. For my build pipeline, I have a very basic setup involving doing a restore, build, test, and publish steps. For my test step, I hav...

git push --force-with-lease vs. --force

I am trying to understand the difference between ``` git push --force ``` and ``` git push --force-with-lease ``` My guess is that the latter only pushes to the remote ?

7 Dec at 19:15

Cannot apply indexing with [] to an expression of type IConfiguration

I have been trying to fix this problem, but nothing comes to mind anymore... Web application to use Tokens, but something keeps me back. ``` var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(...

15 Oct at 19:8

Why would one ever use the "in" parameter modifier in C#?

So, I (think I) understand what the `in` parameter modifier does. But what it does appears to be quite redundant. Usually, I'd think that the only reason to use a `ref` would be to modify the calling...

15 Oct at 16:17

Bogus.Faker: How to pick a random enum value

I'm using c# to create random test data for my unit tests. I want to know how to easily pick a ? Any suggestions?

15 Oct at 15:0

Python pip raising NewConnectionError while installing libraries

I've Python 3 running in a linux server. I need to install some libraries (obviously) so I'm trying : ``` pip3 install numpy ``` Which, is resulting in the following error: ``` Collecting numpy ...

15 Oct at 11:47

Service Stack (4.5.0) Swagger UI

I have added the swagger feature plugin to an existing service stack API, which enables swagger UI and renders the end points for the developers to try out. I need to modify the swagger UI and for th...

15 Oct at 08:47

Return Dictionary with Object Value in OrmLite

Is it possible in ServiceStack OrmLite to return a key-value dictionary with a value that's an object (class or anonymous type)? For example: ``` var q = db.From<Customers>() .Select(c => ...

15 Oct at 06:34

Visual Studio Code debugger doesn't stop at breakpoints

[https://github.com/discord-bot-tutorial/Community-Discord-BOT](https://github.com/discord-bot-tutorial/Community-Discord-BOT) The c# debugger for vscode doesn't stop at breakpoints with this specifi...

How do I use Visual Studio Code to develop Unity3D projects in Ubuntu

I have KDE neon (based on Ubuntu 18.04). I have installed the latest Linux version of Unity3D [from this link](https://forum.unity.com/threads/unity-on-linux-release-notes-and-known-issues.350256/page...

15 Oct at 05:12

Why don't non-capturing expression trees that are initialized using lambda expressions get cached?

Consider the following class: ``` class Program { static void Test() { TestDelegate<string, int>(s => s.Length); TestExpressionTree<string, int>(s => s.Length); } st...

IntelliJ: Error: java: release version 10 not supported

In IntelliJ, I'm getting this strange error message when I try to build from the build menu > Error: java: release version 10 not supported I don't understand this, since in , I have these settings se...

C# FormattableString concatenation for multiline interpolation

In C#7, I'm trying to use a multiline interpolated string for use with [FormttableString.Invariant](https://learn.microsoft.com/en-us/dotnet/api/system.formattablestring.invariant?view=netframework-4....

New Azure WebJob Project - JobHostConfiguration/RunAndBlock missing after NuGet updates

Easy Replication 1. Create a new project 'ASP.NET Web Application (.NET Framework). 2. Build compile, update NuGet, all works. 3. Add: Add New Azure WebJob Project. 4. Build, compile. Happy 5. Updat...

25 Feb at 16:40

How do you test for the non-existence of an element using jest and react-testing-library?

I have a component library that I'm writing unit tests for using Jest and react-testing-library. Based on certain props or events I want to verify that certain elements aren't being rendered. `getByT...

12 Oct at 15:59

How to create an online-offline application using servicestack

I'm trying to figure out how to create an offline / online approch to use within a huge application. Right now, each part of the application has its own model and datalayer, who directly read / wr...

12 Oct at 12:58

ReactNative Metro Bundler not starting automatically

`react-native run-android` not starting bundler so i tried `react-native start` it showing below error. ``` ┌──────────────────────────────────────────────────────────────────────────────┐ │ ...

12 Oct at 10:20

How to get a SELECT DISTINCT on a SelectMulti query in ServiceStack OrmLite?

I'm trying to get a distinct result set of tuples, but the Distinct never gets added to query. Example ``` List<Tuple<Alpha, Beta>> results; var q = dbConn.From<Alpha>() .Join<Alpha, B...

12 Oct at 09:6

ServiceStack.ServerEvents: Non-public subscriptions based on logged in user - how to structure and use SSE?

I have read all the docs regarding Server Side Events on ServiceStack, as well as search SO and googled about it, but I havent yet found an answer to: I am considering using the `ServerEventsFeatur...

12 Oct at 08:53

Space between Column's children in Flutter

I have a `Column` widget with two `TextField` widgets as children and I want to have some space between both of them. I already tried `mainAxisAlignment: MainAxisAlignment.spaceAround`, but the resul...

3 Jan at 03:57

Plotly chart not showing in Jupyter notebook

I have been trying to solve this issue for hours. I followed the steps on the [Plotly website](https://plot.ly/python/getting-started/#start-plotting-online) and the chart still doesn't show in the no...

Change ServiceStack default format to JSON, but keep HTML format for SwaggerUI

Essentially, I want all of my responses returned in JSON by default, searched for an answer and stumbled upon this discussion: [ServiceStack default format](https://stackoverflow.com/questions/1031722...

11 Oct at 20:28