ASP Core WebApi Test File Upload using Postman
I have created an endpoint that takes an arbitrary file: ``` [HttpPost()] public async Task<IActionResult> CreateFile(IFormFile file) ``` When I test it with Postman, the `file` is always null. He...
- Modified
- 3 Feb at 23:12
Mat-table Sorting Demo not Working
I am trying to get the `mat-table` sorting to work locally, and while I can get the data to show up as expected, clicking on the header row does not do the sorting as it does on online examples (nothi...
- Modified
- 23 Oct at 19:28
What version of TLS does my C# program use?
I develop a C# program in Visual Studio 2013 which communicates with a SOAP webservice. How can I tell which version of TLS my program uses?
- Modified
- 23 Oct at 12:4
How to use ImageBackground to set background image for screen in react-native
When I use in react-native it gives warning that using with children is deprecated and will be error in future. User instead. So, If I use it doesn't give expected result which I was getting usin...
- Modified
- 27 Feb at 10:56
Trying to utilize combination of generic parameters
This is confusing, as I'm getting seemingly contradictive errors. I'm using generics, constraining `T` to `Something`, then constraining `U` to `AnOperation<Something>`. I expected that an object `...
How to create MSI installer for ASP.NET Core application using Wix Toolset
I need insights/suggestions for going in right direction and I guess it won't be an easy task. The requirements are: 1. Install .Net core 2.0 if not installed already. 2. Install Windows Hosting bu...
- Modified
- 22 Oct at 22:6
How to clear react-native cache?
In react-native development, there are multiple caches used when the app is built: 1. React-native packager cache 2. Emulator cache 3. Java side cache (.gradle) folder (only in android) 4. npm cache ...
- Modified
- 20 Jun at 09:12
Adding Git credentials on Windows
I am on a Windows 10 system and am trying to add my credentials to Git in Git Bash. I cannot find a way to store my password. I checked GitHub's documentation, which said just to enter the line `git ...
How to add a new project to Github using VS Code
All the tutorials i've seen till now shows to first create a repository on github, copy the link go to vscode and `git clone` it and from that on, you can do commits and pushes. Is that the right way ...
- Modified
- 25 Oct at 22:24
Accessing Session object inside an Asp Core 2 View
I want to show Session in view. Is that possible? I try with this in my view ``` <div class="content-header col-xs-12"> <h1>Welcome, @HttpContext.Session.GetString("userLoggedName")</h1> </div> `...
- Modified
- 22 Oct at 18:18
Generic logging of AppHost requests incl. bodies in ServiceStack
I want to Log every single HTTP Request that my `ServiceStack` `AppHost` tries to handle. I've come up with a decent solution but i dont know if this might explode somewhere, as i inject a `MemoryStre...
- Modified
- 22 Oct at 12:34
How to read file with async/await properly?
I cannot figure out how `async`/`await` works. I slightly understand it but I can't make it work. ``` function loadMonoCounter() { fs.readFileSync("monolitic.txt", "binary", async function(err, da...
- Modified
- 11 Jul at 14:26
Post Base64 image to Mvc controller
Consider this base64 encode image ``` <img src='data:image/Png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABICAYAAABhlHJbAAAABHNCSVQICAgIfAhkiAAAAAFzUkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAABVlAAAVZQGF3...
- Modified
- 21 Oct at 14:0
How to filter array of objects in react native?
I want to filter this data array into state and city array. How can I achieve this using lodash or any other better way rather than for loop and maintaining extra arrays. ``` data: [ { id: 1, nam...
- Modified
- 21 Oct at 12:57
Why does HttpListener "conflict with an existing registration" when listening to a Strong Wildcard (http://+:port) http.sys/urlacl binding?
Imagine that an elevated user (eg. installer) configures a URL reservation: ``` netsh http add urlacl url="https://+:8105/" user="SVCACCOUNT" listen=yes ``` Now when Owin started (running under SVC...
- Modified
- 21 Oct at 05:45
Azure Function Http Trigger validating body data
Is there a way currently to validate objects in Azure functions using something similar to Data Annotations and Model State in the MVC framework? Or what is the standard approach to data validation an...
- Modified
- 20 Oct at 21:59
Formatting ToShortDateString to dd/MM/yyyy
I have Calendar like this one: ``` <td> <asp:Calendar ID="Calendar1" runat="server" OnSelectionChanged="DateChange"> </asp:Calendar> <asp:TextBox ID="TextBox2" runat="server">...
pip install -r requirements.txt [Errno 2] No such file or directory: 'requirements.txt'
I am setting up the base for a django project, I have cloned a repo and I have just created a virtual environment for the project in the same directory. But when I try to run the command `pip install ...
- Modified
- 3 Dec at 21:27
Error referencing Net Standard from Net 4.6.1 / 4.7
I have a web app initially targeting 4.6.1. This web app references a class library; in turn, this references a Net Standard 1.6 class library. Adding the reference to the Net Standard library was t...
- Modified
- 20 Oct at 15:5
How to generate components in a specific folder with Angular CLI?
I am using Angular 4 with Angular CLI and I am able to create a new component with the following command. ``` E:\HiddenWords>ng generate component plainsight ``` But I need to generate a child compon...
- Modified
- 18 Dec at 00:35
Merge two array of objects based on a key
I have two arrays: Array 1: ``` [ { id: "abdc4051", date: "2017-01-24" }, { id: "abdc4052", date: "2017-01-22" } ] ``` and array 2: ``` [ { id: "abdc4051", name: "ab" }, { id: "abdc4052...
- Modified
- 5 Oct at 15:35
Handling bad CSV records in CsvHelper
I would like to be able to iterate through all records in a CSV file and add all the good records to one collection and handle all the "bad" ones separately. I don't seem to be able to do this and I t...
Headless Firefox in Selenium C#
I want to run firefox headless. Not hide the browser window or open it in a virtual desktop, Firefox supports headless mode by using "-headless" flag. Problem is I know how to do it in chrome but no...
- Modified
- 20 Oct at 12:25
How to run a .NET Core console application on Linux
I am using Visual Studio 2015 and created a .NET Core console application. After compiling, I have my project DLL file in the folder. And if I want to run it on another computer, I have to install .N...
- Modified
- 26 Feb at 18:38
How to SetBasePath in ConfigurationBuilder in Core 2.0
How can I set the base path in ConfigurationBuilder in Core 2.0. I have googled and found [this](https://stackoverflow.com/questions/33169589/specify-the-application-base-path-in-configurationbuilde...
- Modified
- 20 Aug at 01:9