Null-conditional operator evaluates to bool not to bool? as expected
I've just upgraded from VS 2010 to 2015. I like the new [null-conditional operator](https://msdn.microsoft.com/en-GB/library/dn986595.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1) which is also k...
How to setup single Nuget packages folder for multiple solutions and projects in Visual Studio 2015
We are developing multiple solutions in Visual Studio 2015. The solutions share some core projects that need nuget packages. The nuget references cannot be resolved when the nuget package is added fro...
- Modified
- 17 May at 11:18
SQLite Database Encryption C#?
I'm using ORMLite and SQLite for my ORM and database in a WPF application. The way I am currently encrypting my data is by using an AES 256 function that encrypts each individual string in the databas...
- Modified
- 22 May at 01:27
convert string to number node.js
I'm trying to convert req.params to Number because that is what I defined in my schema for year param. I have tried ``` req.params.year = parseInt( req.params.year, 10 ); ``` and ``` Number( req....
- Modified
- 17 May at 08:58
How to get the Current Date in ReactNative?
I am building my first ReactNative iOS and Android app. I am an iOS coder with Swift and Obj-C. How do I fetch the current date using ReactNative. Shall I use Native Modules or is there an ReactNativ...
- Modified
- 17 May at 08:49
The ADO.NET provider 'Oracle.ManagedDataAccess.Client' is either not registered in the machine or application config file, or could not be loaded
I am using `.NET4.5.1`, `MVC5`, `EF6`, with `Oracle.ManagedDataAccess 4.121.1.0` and `Oracle.ManagedDataAccess.EntityFramework 6.121.2.0` I was able to generate Model from existing database (part of ...
- Modified
- 23 May at 12:25
git status (nothing to commit, working directory clean), however with changes commited
I found many questions with similar subject, but I didn't found any practical guidance about this issue: why `git status` informs me `nothing to commit, working directory clean`, even tough I have mad...
- Modified
- 20 Dec at 01:41
Plotting a python dict in order of key values
I have a python dictionary that looks like this: ``` In[1]: dict_concentration Out[2] : {0: 0.19849878712984576, 5000: 0.093917341754771386, 10000: 0.075060643507712022, 20000: 0.06673074282575861, ...
- Modified
- 17 May at 02:55
ServiceStack Validator - Request not injected
I have a validator and I'm trying to use some session variables as part of the validation logic, however the base.Request is always coming back as NULL. I've added it in the lambda function as directe...
- Modified
- 17 May at 02:40
How to implement class constants?
In TypeScript, the `const` keyword cannot be used to declare class properties. Doing so causes the compiler to an error with "A class member cannot have the 'const' keyword." I find myself in need to ...
- Modified
- 28 Dec at 23:59
ServiceStack/ORMLite: How to conditionally include certain columns in LoadSingleById?
The requirements of this project require that certain values be retrieved/inserted based on a user's permissions level. So let's pretend I have a DB table "Users" and this class represents the class m...
- Modified
- 17 May at 13:56
Dapper and Enums as Strings
I am trying to use `Dapper` and `Dapper-Extensions` and to serialize my `enums` on the database as `string`. Right now they are serialized as integers (inside a `VARCHAR` field) instead. Is there an...
How to declare and import typescript interfaces in a separate file
I want to define several interfaces in their own file in my typescript-based project, from which I'll implement classes for production as well as mocks for testing. However, I can't figure out what th...
- Modified
- 16 May at 21:14
Which Enum constant will I get if the Enum values are same
Is there a logic to which constant I get if there are more than one enum constant that has the same value? I tried the variations below, but couldn't get a reasonable logic. ### Main Method: ```...
Put GC on hold during a section of code
Is there a way to put the GC on hold completely for a section of code? The only thing I've found in other similar questions is `GC.TryStartNoGCRegion` but it is limited to the amount of memory you spe...
- Modified
- 24 May at 21:8
Filter Pyspark dataframe column with None value
I'm trying to filter a PySpark dataframe that has `None` as a row value: ``` df.select('dt_mvmt').distinct().collect() [Row(dt_mvmt=u'2016-03-27'), Row(dt_mvmt=u'2016-03-28'), Row(dt_mvmt=u'2016-0...
- Modified
- 5 Jan at 06:30
How do I solve The Entity Framework provider exception
I have published my WCF project onto a server, i have also published an MVC application onto the same box which consumes the WCF services. When trying login on my MVC application, this uses a wcf se...
- Modified
- 16 May at 18:11
Sort collection by multiple fields in Kotlin
Let's say I have a list of People which I need to sort by Age first and then by Name. Coming from a C#-background, I can easily achieve this in said language by using LINQ: ``` var list=new List<Pe...
- Modified
- 25 Mar at 21:59
Remove Time Zone Offset from DateTimeOffset?
This code: ``` DateTimeOffset testDateAndTime = new DateTimeOffset(2008, 5, 1, 8, 6, 32, new TimeSpan(1, 0, 0)); //CLEAN TIME AND DATE testDateAndTime = testDateAndTime.DateTime.Date; var dat...
- Modified
- 17 Oct at 20:29
Is it possible to open developer tools console in Chrome on Android phone?
An AngularJS application works fine on desktop, but is not rendering properly on mobile (actual code is showing). This is on an Android phone. I would like to see what errors are showing in the conso...
- Modified
- 16 May at 14:28
AutoMapper throwing StackOverflowException when calling ProjectTo<T>() on IQueryable
I have created classes using EF Code First that have collections of each other. Entities: ``` public class Field { public int Id { get; set; } public string Name { get; set; } public virt...
- Modified
- 16 May at 09:49
HTML5 event handling(onfocus and onfocusout) using angular 2
I have a date field and I want to remove the place holder by default. I am using javascript `onfocus` and `onfocusout` events for removing placeholder. Can anyone help with using angular2 directive?...
- Modified
- 5 May at 12:25
Specifying the order of matplotlib layers
Suppose I run the following script: ``` import matplotlib.pyplot as plt lineWidth = 20 plt.figure() plt.plot([0,0],[-1,1], lw=lineWidth, c='b') plt.plot([-1,1],[-1,1], lw=lineWidth, c='r') plt.plot(...
- Modified
- 28 May at 07:30
List of all available languages for Windows .NET framework
I've been searching for the answer over the net, but I don't seem to be able to find a comprehensive list of all languages available for my app with their exact display name. (I find many lists, but n...
- Modified
- 20 May at 06:46
Create Round Button with Border IN UWP Windows 10 C#
I am trying to create a round button, with a White Border and a Transparent Background (as the old AppBarButtons in Windows 8.1) in UWP Windows 10. I have found several samples like these: [https:/...
- Modified
- 15 May at 16:50