Questions

visual Unhandled exception in Debugger::HandleIPCEvent when breaking on certain breakpoint

I get the following exception (in Dutch, English translation follows in the text) which breaks my debugger when I press 'OK' it stops the debug session and closes the application: [](https://i.stack....

29 May at 15:20

error APPX3212: SDK root folder for 'Portable 7.0' cannot be located

I'm trying to build my solution using TeamCity / MSBuild. It's a WebAPI project which shares some entities in a PCL with a mobile client. I see there are a few caveats around getting the PCL refere...

Sequelize - update record, and return result

I am using sequelize with MySQL. For example if I do: ``` models.People.update({OwnerId: peopleInfo.newuser}, {where: {id: peopleInfo.scenario.id}}) .then(function (result) { ...

22 Jul at 11:8

Download a file with ServiceStack HttpResult: how to specify a file name for downloaded content?

I am using ServiceStack for a simple web application. The main purpose is to let a user download a file. I am using an HttpResult as follows: ``` public class FileDownloadService : Service { public ...

22 Jul at 11:6

How to unpack an .asar file?

I have packed my Electron application using the following command: ``` asar pack app app.asar ``` Now, I need to unpack it and get the whole code back. Is there any way to do so?

7 Aug at 00:28

How can I prevent bitwise OR combinations of enum values?

I know that you can use `FlagsAttribute` to instruct the compiler to use bitfields for an enumeration. Is there a way to specify that enum values cannot be combined with bitwise OR? Example: ``` en...

22 Jul at 16:34

Change Date Format(DD/MM/YYYY) in SQL SELECT Statement

The Original SQL Statement is: ``` SELECT SA.[RequestStartDate] as 'Service Start Date', SA.[RequestEndDate] as 'Service End Date', FROM (......)SA WHERE...... ``` The output date format ...

22 Jul at 08:10

Set a read only property defined in a interface within a concrete class

I have an interface with a read only property ``` public interface IPerson { string Name { get; } } ``` and a concrete class... ``` public class Person : IPerson { public Person() { ...

22 Jul at 07:38

Multiple relationships to the same table in EF7(Core)

I have such models ``` public class Question { public string Id { get; set; } = Guid.NewGuid().ToString(); public Answer Answer { get; set; } public List<Variant> Variants { get; set; } ...

22 Jul at 08:7

How to convert concurrentbag to list?

I have few task which I can do in parallel. As list is not thread safe i am using `concurrentbag`. Once all the task are completed I want to convert the `concurrentbag` to list. I have [searched in...

23 Jul at 10:25

How to use JQuery with ReactJS

I'm new to ReactJS. Previously I've used jQuery to set any animation or feature that I needed. But now I'm trying to use ReactJS and minimize the use of jQuery. I'm trying to build an accordion wit...

10 May at 20:37

How can I get the WebBrowser control to show modern contents?

I've created a Winforms app that uses a WebBrowser control; I dynamically assign its Uri. It worked fine for awhile, but now I'm getting this msg: The last two words are a link, and following that ...

Visual Studio Code - remove branches deleted on GitHub that still show in VS Code?

In VSCode, after I do a pull request and delete the branch on GitHub, that branch still shows up in Visual Studio Code. If I select the branch, it gives an Error, as expected. How do I remove these ...

Python: download files from google drive using url

I am trying to download files from google drive and all I have is the drive's URL. I have read about google API that talks about some `drive_service` and `MedioIO`, which also requires some credential...

How to convert C# Resource File Strings into methods and not just properties?

Example, the EntityFramework Microsoft.EntityFrameworkCore.Relational project has the following text in the resource files: ``` ... <data name="FromSqlMissingColumn" xml:space="preserve"> <value>Th...

Why does this evaluate to False?

I'm a bit confused and can't explain this behaviour: ``` Vector3 k = new Vector3(Mathf.NegativeInfinity, Mathf.NegativeInfinity,Mathf.NegativeInfinity); Debug.Log(k==k); // evaluates to False ``` t...

21 Jul at 16:21

How can i read EXIF data in AspNet.Core

What's the best way to read EXIF info of a picture in Asp.Net Core. I am using ImageProcessorCore alpha from myget to rotate pictures but i haven't found a way to read exif data is there a in library ...

Combining multiple Attributes to a single Attribute - Merge Attributes

On a control I am using multiple attribute properties: ``` [Browsable(false)] [Bindable(false)] [EditorBrowsable(EditorBrowsableState.Never)] [DesignerSerializationVisibility(DesignerSerializationVis...

Is current request being made over SSL with Azure deployment

``` context.Request.IsSecureConnection ``` Always returns false in an Azure deployment . After looking through the headers sent for an Azure deployed site I've found: ``` X-Forwarded-Proto=https `...

2 Aug at 10:51

How can I refresh just a Partial View in its View?

What Am I doing wrong guys? This is the idea... Index view ``` <div class="col-lg-12 col-md-12 col-xs-12"> @Html.Partial("PartialView", Model) </div> ``` Controller ``` public ActionResult Pa...

iOS 10 - Changes in asking permissions of Camera, microphone and Photo Library causing application to crash

iOS 10, Now Requires User Permission to Access Media Library, Photos, Camera and other Hardware like these. The solution for this is to add their keys into `info.plist` with a description for user tha...

11 Apr at 07:5

Is there a way to change tuple values inside of a C# array?

The array I'm using is `int[,,]` and I want to make the first value of each (what I assume to be) tuple in one method and then I want to modify the second two values several times. (in another method)...

23 May at 12:8

Catching exceptions with "catch, when"

I came across this new feature in C# which allows a catch handler to execute when a specific condition is met. ``` int i = 0; try { throw new ArgumentNullException(nameof(i)); } catch (ArgumentNu...

21 Jul at 07:35

How to run html file on localhost?

I have an HTML file and I run it on localhost. But, this file includes a mirror using a webcam. For example, how can I run [this HTML file](https://web.archive.org/web/20150826061821/http://myprojectg...

Console chart drawing

I need a way to draw a `Dictionary<int,int>` into a console application like ``` Dictionary<int, int> chartList = new Dictionary<int, int>() { {50,31}, // x = 50, y = 31 {71,87}, ...

21 Jul at 06:48