Questions

Exception of type 'System.StackOverflowException' was thrown

My program throws this exception: > System.StackOverflowException when the compiler executes the set property. The `wine` class: ``` class wine { public int year; public string name; p...

10 Sep at 09:26

What is the reason behind CS1998 "method lacks await operators"

The C# compiler generates a CS1998 warning when an `async` method lacks any `await` operators. I know that `async` introduces overhead in the method by adding a statemachine and exception handling...

2 Jun at 14:28

ServiceStack SqLite Creation of Compute field

I am trying to use inMemory database (using ServiceStack.OrmLite.Sqlite.Windows) for unit testing in servicestack based web api. i created a table to insert into inmemory database using the existing M...

How to cast a nullable DateTime to UTC DateTime

I'm reading back a DateTime? value from my view. Now I check to see if the `NextUpdate` DateTime? `HasValue` and if so convert that time to `UTC`. From reading up on this it seems I need to use a `nu...

How to unset (remove) a collection element after fetching it?

I have a collection which I want to iterate and modify while I fetch some of its elements. But I could't find a way or method to remove that fetched element. ``` $selected = []; foreach ($collectio...

10 Dec at 14:49

Visual Studio error: "The debugger cannot unwind to this frame." on any exceptions

I used to be able to edit and continue when an exception occurred in my Visual Studio 2015 C# (WPF if relevant) projects. I often get simple things like null reference exceptions, and I could just qui...

How to call another components function in angular2

I have two components as follows and I want to call a function from another component. Both components are included in the third parent component using directive. Component 1: ``` @component( ...

5 Sep at 06:15

Set an "on demand" only job in HangFire

In Hangfire, I have successfully set recurring jobs and am able to trigger manually if I want to, thanks to the Web UI and its "trigger" button. ``` RecurringJob.AddOrUpdate(..); ``` [](https://i.s...

2 Jun at 08:59

Replace entity in context with a different instance of the same entity

I have an entity which is not connected to my `dbcontext`. I want to change that. However there is already another instance of the same entity attached to `dbcontext`. If I just add my new entity, I g...

16 Dec at 09:33

PHP Unset Session Variable

I'm a noob programmer so I apologies in advance for any obvious mistakes. I've spent the past week creating a product database kinda thing. I've got too the point where I can add products using a form...

2 Jun at 09:7

How to redirect output of systemd service to a file

I am trying to redirect output of a `systemd` service to a file but it doesn't seem to work: ``` [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/b...

11 Jun at 15:50

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithDexForDebug'

Due to `65K` error in my project I need it to migrate to Android Studio . While running > ./gradlew assembleDebug I am getting the error: ``` Execution failed for task ':app:transformClassesWithDe...

16 Jun at 18:8

Memory usage of Dictionaries in C#

I have some code that I added a nested dictionary to, of the following format ``` Dictionary<string, Dictionary<string, Dictionary<string, float>>> ``` After doing so I noticed the memory usage of ...

1 Jun at 20:52

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))) ...

8 Feb at 08:56

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"/> <...

13 Dec at 04:19

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...

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...

Using Linq to GroupBy and Sum datatable

**Hi, I have a Datatable like this:** ``` Id Amount 1 Amount 2 Amount 3 1 2 2 2 12 4 6 ...

2 May at 10:19

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...

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]; }...

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...

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?

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...

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,...

1 Jun at 10:48

What is dtype('O'), in pandas?

I have a dataframe in pandas and I'm trying to figure out what the types of its values are. I am unsure what the type is of column `'Test'`. However, when I run `myFrame['Test'].dtype`, I get; ``` dt...

8 Jun at 23:47