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
I get "The type initializer for 'Microsoft.Cct.CctProjectNode' threw an exception." when opening ccproj files after installing Azure SDK 2.9
I have a solution with an Azure cloud project in it that's targeting the 2.7 version of the Microsoft Azure SDK which I could open/build and deploy without problems. Since Visual Studio was nagging me...
- Modified
- 15 Sep at 09:50
How to install Anaconda on RaspBerry Pi 3 Model B
I would like to know how to install the latest Anaconda version from Continuum on my Raspberry Pi 3 model B. Any help would be appreciated...
- Modified
- 7 Sep at 13:50
@ViewChild in *ngIf
## Question What is the most elegant way to get `@ViewChild` after corresponding element in template was shown? Below is an example. Also [Plunker](http://plnkr.co/edit/xAhnVVGckjTHLHXva6wp?p=previ...
- Modified
- 5 Sep at 03:3
NUnit: How to pass TestCaseData from a non-static method?
My test fails because of the message: ``` The sourceName specified on a TestCaseSourceAttribute must refer to a static field, property or method. ``` This is my Code: ``` const double MAX_DELTA = 0.0...
- Modified
- 13 Jul at 06:51
Exception: The XPath expression evaluated to unexpected type System.Xml.Linq.XAttribute
I've an XML file like below: ``` <Employees> <Employee Id="ABC001"> <Name>Prasad 1</Name> <Mobile>9986730630</Mobile> <Address Type="Perminant"> <City>City1</City> <Country>...
- Modified
- 20 Sep at 06:4
Entity Framework + sql injection
I'm building up an `IQueryable` where I am applying relevant filters, and I come across this line of code here. ``` items = items.OrderBy(string.Format("{0} {1}", sortBy, sortDirection)); ``` Is th...
- Modified
- 7 Sep at 04:57
Getting the count of records in a data frame quickly
I have a dataframe with as many as 10 million records. How can I get a count quickly? `df.count` is taking a very long time.
- Modified
- 6 Sep at 21:14
How to add a custom CA Root certificate to the CA Store used by pip in Windows?
I just installed Python3 from python.org and am having trouble installing packages with `pip`. By design, there is a man-in-the-middle packet inspection appliance on the network here that inspects al...
Set up JWT Bearer Token Authorization/Authentication in Hangfire
How can you configure Bearer Token Authorization/Authentication in Hangfire? I have a custom authentication filter that read the Authentication Token on the initial request but all other requests ([H...
- Modified
- 9 Mar at 13:53
Entity-Framework auto update
i try to implement Entity-Framework into my project! My Project is plugin-based so i do not know which object i have to save to database. I have implemented it so: ``` public class DatabaseContext ...
- Modified
- 6 Sep at 12:45
Java equivalent of C# Delegates (queues methods of various classes to be executed)
TLDR: Is there a Java equivalent of C#'s [delegates](http://www.tutorialsteacher.com/csharp/csharp-delegates) that will allow me to queue up methods of various classes and add them to the queue dynam...
The type 'Newtonsoft.Json.JsonConvert' exists in both 'Newtonsoft.Json.dll' and 'NuGetApi2.dll'
I am trying to serialize object on the fly into immediate window by using ``` Newtonsoft.Json.JsonConvert.SerializeObject(myObj); ``` However I am getting following error > The type 'Newtonsoft.J...
- Modified
- 26 Sep at 09:26