MongoDB C# Why can't you use DateTime.Date with IQueryable?
I have method set up in my MongoDB DAL class. ``` public IQueryable<MyModel> Retrieve(Expression<Func<MyModel, bool>> expression) { if (!BsonClassMap.IsClassMapRegistered(typeof(MyModel))) ...
angular2 submit form by pressing enter without submit button
Is it possible to submit a form that does not have submit button (by pressing enter) example : ``` <form [ngFormModel]="xxx" (ngSubmit)="xxxx()"> <input [(ngModel)]="lxxR" ngControl="xxxxx"/> <...
Using async/await with a forEach loop
Are there any issues with using `async`/`await` in a `forEach` loop? I'm trying to loop through an array of files and `await` on the contents of each file. ``` import fs from 'fs-promise' async funct...
- Modified
- 12 Mar at 12:19
How to markdown nested list items in Bitbucket?
I'm trying to see my markdown nested list items rendered with corresponding indentation when viewed in a browser live from the Bitbucket pages. But I can't figure out how it works even when using [the...
- Modified
- 8 Jan at 16:36
Make the ConfigureServices method async in Startup.cs
I need to add a couple of await functions in ConfigureServices in Startup.cs and am running into an issue. > System.InvalidOperationException Unable to find the required services. Please add all th...
- Modified
- 4 Jul at 08:31
stream data from c++ to c# over shared memory
I am attempting to stream data from a c++ application to a C# application using shared memory. Based on example I found, I have: c++ (sending) ``` struct Pair { int length; float data[3]; }...
- Modified
- 1 Jun at 16:0
ReactNative: how to center text?
How to center Text in ReactNative both in horizontal and vertical? I have an example application in rnplay.org where and is not working: [https://rnplay.org/apps/AoxNKQ](https://rnplay.org/apps/Ao...
- Modified
- 7 May at 11:55
What is the difference between OpenCV.NET, OpenCVSharp and EmguCV?
What is the difference between OpenCV.NET, OpenCVSharp and EmguCV? They are derived from OpenCV. So, what is the difference in their design, implementation and application philosophies?
- Modified
- 5 Sep at 11:45
Is it possible to filter nuget packages by supported platform?
For example, if I want only packages for [.Net Platform Standard](https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md). Now I am looking for a package, try...
- Modified
- 6 Jun at 12:22
How do overlap in Xamarin forms?
Does the concept of z-index? The picture shows that there is no overlap. [](https://i.stack.imgur.com/3uwbJ.png) How to set z-index? the top two custom select box ``` <AbsoluteLayout Padding="10,10,...
- Modified
- 1 Jun at 10:48
Atomic increment of 64 bit variable on 32 bit environment
Writing an answer for [another question](https://stackoverflow.com/q/37549166/1207195) some interesting things came out and now I can't understand how `Interlocked.Increment(ref long value)` works on ...
- Modified
- 23 May at 12:33
How to use Identity Server 3 for Servicestack service Authentication?
I am using Service stack version `3.9.71` for service creation. Now we have requirement to authentication this service. how we can authenticate servicestack service using Identity Server 3? I have r...
- Modified
- 1 Jun at 07:19
How to change date format in hive?
My table in hive has a filed of date in the format of '2016/06/01'. but i find that it is not in harmory with the format of '2016-06-01'. They can not compare for instance. Both of them are string ....
ModelState.IsValid always true when testing Controller in Asp.Net MVC Web Api
I have tried to make this work and made many google/stackoverflow searches with no luck at all. I have a simple Model: ``` public class MovieModel { public string Id { get; set; } [Required...
- Modified
- 7 Dec at 10:17
m2e error in MavenArchiver.getManifest()
I am seeing an error in my STS and am not sure how to debug it. Searching around I only see vague references to the error and no solutions. The error is: > `org.apache.maven.archiver.MavenArchiver.g...
- Modified
- 29 Jun at 11:57
error CS2012: Cannot open <executable path> access to <executable path denied>
I was working on a WPF application in Visual Studio 2015 and all went well until unexpectedly the build dropped me the CS2012 error inform me that it cannot access/update the executable in the /Debug ...
Application Insights not logging custom events
I have setup Application Insights in my ASP.NET Core application in the C# Controller and it is logging basic data like Page Views, Response Time, etc. But I want to create some custom events and log ...
- Modified
- 16 May at 18:43
How to make a phone call in Xamarin.Forms by clicking on a label?
Hello I have an app i'm working on in Xamarin.Forms that gets contact info from a web service and then displays that info in labels however I want to make the label that lists the phone number to make...
- Modified
- 31 May at 16:56
Executing Command line .exe with parameters in C#
I'm trying to execute a command line program with parameters from C#. I would have imagined that standing this up and making this happen would be trivial in C# but its proving challenging even with al...
tsc throws `TS2307: Cannot find module` for a local file
I've got a simple example project using TypeScript: [https://github.com/unindented/ts-webpack-example](https://github.com/unindented/ts-webpack-example) Running `tsc -p .` (with `tsc` version 1.8.10)...
- Modified
- 31 May at 14:40
Simple Injector initialize for both MVC and Web API controllers
I have a Web API controller that has some resources DI'd. Out of later necessity I have added an MVC controller, now I need same resources DI'd there as well. Here is my original configuration: ``` ...
- Modified
- 31 May at 15:15