Questions

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?

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...

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 `...

23 Oct at 07:43

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...

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 ...

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 ...

29 Aug at 07:19

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 ...

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> `...

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...

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...

11 Jul at 14:26

Post Base64 image to Mvc controller

Consider this base64 encode image ``` <img src='data:image/Png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABICAYAAABhlHJbAAAABHNCSVQICAgIfAhkiAAAAAFzUkdCAK7OHOkAAAAEZ0FNQQAAsY8L/GEFAAAACXBIWXMAABVlAAAVZQGF3...

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...

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...

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...

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">...

25 Feb at 14:46

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 ...

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...

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...

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...

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...

20 Oct at 12:7

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...

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...

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...

Unable to determine the relationship represented by navigation property ASP.NET core 2.0 Entity Framework

I am currently developing an ASP.NET app that uses EntityFramework, for the given code ``` public partial class EnumMeta : Meta { public EnumMeta() { this.Messages = new HashSet<Messa...

The property 'x' is not a navigation property of entity type 'y'

I'm using EF Core with ASP Core 2.0. Using latest Identity framework. I get this exception on page All. > InvalidOperationException: The property 'User' is not a navigation property of entity type 'G...