OWIN OpenIdConnect Middleware IDX10311 nonce cannot be validated
I have an application using the OWIN middleware for OpenIdConnect. The startup.cs file uses the standard implementation of app.UseOpenIdConnectAuthentication. The cookie is set to the browser, but i...
- Modified
- 9 Sep at 13:22
What is difference between System.Threading.Tasks.Dataflow and Microsoft.Tpl.Dataflow
There are 2 different official TPL Dataflow nuget package. I am confused to choose which one i should to use. As far as i understand System.Threading.Tasks.Dataflow version is tiny bit newer than ot...
- Modified
- 9 Sep at 13:21
Why the increment of an integer on C# is executed after a function return its value?
Why this two functions return different values? When I call this function passing 0 as parameter it returns 1 ``` public static int IncrementByOne(int number) { return (number + 1); } ``` How...
- Modified
- 11 Sep at 13:21
How to see logs from npm installation?
I am unable to install ionic through npm. Are there any logs that I can check to see what's wrong and if yes, where are they located? What I see is the waiting stick dancing forever. I've waited for ...
- Modified
- 9 Sep at 13:13
Clipping to a Path in WPF
I am attempting to create a user control in WPF that allows the user to select specific regions of a shoe (heel, edge, sole etc) The idea is that you have an image (drawing) of a shoe which you can c...
ADAL .Net Core nuget package does not support UserPasswordCredential
In ADAL.Net 3.x UserPasswordCredential is introduced on top of UserCredential from 2.x. But the same UserPasswordCredential is not exposed in the .Net Core under the same nuget package? UserCredentia...
- Modified
- 9 Sep at 16:19
Add Attachment base64 image in MailMessage and read it in html body
Currently I have to send emails with `MailMessage` and `SmtpClient` but I need to send a picture that is currently in `base64` `string` within the `MailAddress` body. I have understood that it is ne...
- Modified
- 9 Sep at 09:49
How to save plots from multiple python scripts using an interactive C# process command?
I've been trying to save plots(multiple) from different scripts using an interactive C# process command. My aim is to save plots by executing multiple scripts in a single interactive python shell an...
- Modified
- 17 Sep at 10:19
Post files from ASP.NET Core web api to another ASP.NET Core web api
We are building a web application that consist of an Angular2 frontend, a ASP.NET Core web api public backend, and a ASP.NET Core web api private backend. Uploading files from Angular2 to the public ...
- Modified
- 8 Sep at 17:49
Saving a base64 string as an image into a folder on server using C# and Web Api
I am posting a Base64 string via Ajax to my Web Api controller. Code below Code for converting string to Image ``` public static Image Base64ToImage(string base64String) { // Convert base 64 str...
- Modified
- 8 Sep at 15:1
Generic enum as method parameter
Given a constructor ``` public MyObject(int id){ ID = id; } ``` And two enums: ``` public enum MyEnum1{ Something = 1, Anotherthing = 2 } public enum MyEnum2{ Dodo = 1, Mousta...
Why are HashSets of structs with nullable values incredibly slow?
I investigated performance degradation and tracked it down to slow HashSets. I have structs with nullable values that are used as a primary key. For example: ``` public struct NullableLongWrapper { ...
- Modified
- 25 May at 09:23
Create Cookie ASP.NET & MVC
I have a quite simple problem. I want to create a cookie at a Client, that is created by the server. I've found a lot of [pages](http://www.codeproject.com/Articles/244904/Cookies-in-ASP-NET) that des...
- Modified
- 1 Sep at 10:44
MongoDB query with multiple conditions
I have data with multiple documents : ``` { "_id" : ObjectId("57b68dbbc19c0bd86d62e486"), "empId" : "1" "type" : "WebUser", "city" : "Pune" } { "_id" : ObjectId("57b68dbbc19c0bd86d62e487"), "em...
Run/Group Tests by Category Attribute of NUnit in Visual Studio
I am trying to use the Category Attribute of NUnit with my Visual Studio Profession 2015. However, the attribute doesn't seem to be categorizing the Tests in the Test Explorer. ``` [Test] [Category("V...
- Modified
- 27 Oct at 01:40
C# Generic Interface and Factory Pattern
I am trying to create a Generic interface where the parameter type of one of the methods is defined by the generic I've changed the question slightly after realising I have probably confused matter...
- Modified
- 8 Sep at 10:36
Selecting List<string> into Dictionary with index
I have a List ``` List<string> sList = new List<string>() { "a","b","c"}; ``` And currently I am selecting this into a dictionary the following structure: ``` //(1,a)(2,b)(3,c) Dictionary<int, str...
- Modified
- 8 Sep at 08:36
Extension gd is missing from your system - laravel composer Update
I newly install Dompdf in Laravel Project via Composer (`composer require barryvdh/laravel-dompdf`). After enter the Command Terminal Reply Following Errors. ``` Problem 1 - dompdf/dompdf v0.7.0 ...
Adding a button to the title bar Xamarin Forms
Haven't been able to find quite the right answer for this yet. I want to add a button into the navigation / title bar at the top of a Xamarin Forms Navigation Page. Note that I need to know a method t...
- Modified
- 3 Apr at 06:40
Show distinct column values in pyspark dataframe
With pyspark dataframe, how do you do the equivalent of Pandas `df['col'].unique()`. I want to list out all the unique values in a pyspark dataframe column. Not the SQL type way (registertemplate then...
- Modified
- 25 Dec at 16:18
Can't make Jackson and Lombok work together
I am experimenting in combining Jackson and Lombok. Those are my classes: ``` package testelombok; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonPr...
How to get content value in Xunit when result returned in IActionResult type
I have a unit test project using Xunit and the method we are testing returns `IActionResult`. I saw some people suggest using "NegotiatedContentResult" to get the content of the `IActionResult` but ...
- Modified
- 7 Sep at 23:31
DataTables: Cannot read property style of undefined
I am getting this error with the following: ``` jquery.dataTables.js:4089 Uncaught TypeError: Cannot read property 'style' of undefined(…) _fnCalculateColumnWidths @ jquery.dataTables.js:4089 _fnInit...
- Modified
- 7 Sep at 18:22
Resolving interface with generic type in ServiceStack Request filter
My question is - is it possible and if it is - how, to resolve interface in ServiceStack request filter that uses generic type and the type is retrieved dynamically from of request. The idea is that ...
- Modified
- 7 Sep at 17:48