Basic authentication with fetch?
I want to write a simple basic authentication with fetch, but I keep getting a 401 error. It would be awesome if someone tells me what's wrong with the code: ``` let base64 = require('base-64'); let ...
- Modified
- 4 Jun at 07:34
C# 7 Tuples and names in .NET Core
With C# 7 new Tuple feature we should be able to access fields by it's names derived from the type. This is not possible in .NET Core. Why? -> **Works only with Item1; Item2. Not with .lat .lng.**
Mirrored mesh and wrong UV map runtime export
EDIT: So after a brief contact with the Assimp dev, I was pointed towards the import process. As I took over the code from someone else, I did not think looking that part: ``` using (var importer = n...
How do I get .NET Core projects to copy NuGet references to the build output?
I'm trying to write a plugin system with .NET Core, and one of my requirements are to be able to distribute the plugin DLL along with its dependencies to the user for install. However, I can't figure...
ASP.net core web api: Using Facebook/Google OAuth access token for authentication
For serveral days now I am trying to get OAuth authentication with Google and Facebook to work within my ASP.net core web api project. - - - - - - In my android and angular app I am able to r...
- Modified
- 7 May at 16:1
How to select rows with NaN in particular column?
Given this dataframe, how to select only those rows that have "Col2" equal to `NaN`? ``` df = pd.DataFrame([range(3), [0, np.NaN, 0], [0, 0, np.NaN], range(3), range(3)], columns=["Col1", "Col2", "Col...
How do you manage multiple AWS Lambda functions in Visual Studio?
In the AWS Lambda Visual Studio walkthrough to create a Lambda function: [http://docs.aws.amazon.com/lambda/latest/dg/lambda-dotnet-create-deployment-package-toolkit.html](http://docs.aws.amazon.com/l...
- Modified
- 7 May at 03:0
Using ServiceStack JsonServiceClient with Angular Cli
I'm attempting to use the ServiceStack typescript client ([https://www.npmjs.com/package/servicestack-client](https://www.npmjs.com/package/servicestack-client)) @version 0.0.34 with an Angular 4.0 ap...
- Modified
- 7 May at 00:51
Draw custom shape on Google Map and store into Oracle database using C#
Is it possible to make a Custom shape (Using Mouse) on the Google Map using `Gmap` library in C# and then save it into the database and on the client request draw the stored shape on Google Map again?...
- Modified
- 15 May at 01:23
How to import image (.svg, .png ) in a React Component
I am trying to import an image file in one of my react component. I have the project setup with web pack Here's my code for the component ``` import Diamond from '../../assets/linux_logo.jpg'; ex...
- Modified
- 25 Jun at 08:49
How do I set the background color of my main screen in Flutter?
I'm learning Flutter, and I'm starting from the very basics. I'm not using MaterialApp. What's a good way to set the background color of the whole screen? Here's what I have so far: ``` import 'pack...
Specify Date format in MVC5 (dd/MM/yyyy)
I'm trying to handle user input for date values, I want to prompt user to input date in this format: dd/MM/yyyy ### What I tried to do I read and implement the answer for Darin in this question: https...
- Modified
- 16 May at 18:38
How to mock Automapper (IMapper) in controller
I am trying to write a unit test for my existing MVC Web Aplication. In that I am facing some problem in automapper (`IMapper`) Whenever am using map function it returns `null` value. My Controller C...
- Modified
- 6 May at 08:21
How to get the width of a react element
Im trying to create a range input that displays a tooltip right above the slider thumb. I went through some vanilla JS examples online and it seems that I need to have the width of the element to aco...
- Modified
- 21 Nov at 09:41
Python + BeautifulSoup: How to get ‘href’ attribute of ‘a’ element?
I have the following: ``` html = '''<div class=“file-one”> <a href=“/file-one/additional” class=“file-link"> <h3 class=“file-name”>File One</h3> </a> <div class=“location”> ...
- Modified
- 5 May at 22:45
ServiceStack ServerEvents: send event from another process
I have a need to send server-side events from another process which is performed at the time and I have no idea how to do it )) I would be grateful for any help! Thank you in advance! ``` public ov...
- Modified
- 5 May at 21:11
*ngIf else if in template
How would I have multiple cases in an `*ngIf` statement? I'm used to Vue or Angular 1 with having an `if`, `else if`, and `else`, but it seems like Angular 4 only has a `true` (`if`) and `false` (`els...
- Modified
- 20 May at 13:2
ServiceStack Service which has a Stream in its request breaks metadata page
When I create a simple ServiceStack service with a Stream in the request, I find that I am unable to access the metadata page for the service method. The service itself appears to work (I can send a ...
- Modified
- 5 May at 14:38
C# Download big file from Server with less memory consumption
I have a big file of memory size 42 mb. I want to download the file with less memory consumption. Controller Code ``` public ActionResult Download() { var filePath = "file path in server"; Fi...
- Modified
- 11 May at 05:46
How to set combobox default value?
In , It has a , Which have data binded by the DataSource. When going to set the text property for a ComboBox. > Selected ComboBox -> Property -> Text : "--Select--". Design page shows the given t...
Why does negating a value change the result when XORing it with 1?
I know the working of XOR, ``` Console.WriteLine(1^1); // returns 0 ``` results to ``` 00000001 00000001 -------- 00000000 ``` but how does this return 2? ``` Console.WriteLine(-(-1^1)); // ...
- Modified
- 5 May at 10:15
Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3
I can't get rid of this error! [](https://i.stack.imgur.com/JwtrU.png) I have tried all sorts of things like clearing Derived Data(Preferences->Locations->click gray arrow to open Derived Data folde...
- Modified
- 6 Feb at 17:37
Not implemented/supported/invalid operation async method
What is the correct way to mark async method as not implemented/not supported or invalid operation. For the simplicity I would use only `NotImplementedException` in examples, but the question applies ...
- Modified
- 4 May at 21:47
Using decimal values in DataRowAttribute
I've got a c# assembly for Tests to run in Visual Studio 2017 using MSTest.TestAdaptor 1.1.17. I want to use a DataTestMethod to run a test with several datasets. My Problem is, I want to use decimal ...
- Modified
- 5 May at 08:27