Finding all cycles/enclosed shapes in a 2D grid

I have an "infinite" 2D grid and I want to detect closed/complete "structures" - areas of any shape which are enclosed on all sides. However, I need to identify each individual closed circuit - includ...

11 Jul at 00:53

flutter remove back button on appbar

I am wondering, if anyone knows of a way to remove the back button that shows up on the `appBar` in a flutter app when you use `Navigator.pushNamed` to go to another page. The reason I do not want it ...

25 Dec at 03:32

VS code right click menu new class c#

I'm currently following some tutorial I bought which refers to 2 options called "New C# class / New C# Interface", while I'm only seeing "New file." I'm new to VSCODE and installed only C# from OmniS...

7 Jul at 20:30

C# 7:How can I deconstruct an object into a single value using a tuple?

One of the nice new features of C# 7 is the possibility to define deconstructors for classes and assign the deconstructed values directly to a value tuple. However, in the case that the object is de...

7 Jul at 16:44

How do I use ServiceStack.Text in my web api project

I am new to ServiceStack.Text and finding it hard how to use it in my project. I did a nuget install but how do I add it to my formatters collection so it uses that by default? I am using Asp.Net Cor...

How to get am pm from the date time string using moment js

I have a string as `Mon 03-Jul-2017, 11:00 AM/PM` and I have to convert this into a string like `11:00 AM/PM` using moment js. The problem here is that I am unable to get `AM` or `PM` from the date t...

7 Jul at 13:24

If condition inside of map() React

I have a `map()`function that needs to display views based on a condition. I've looked at the React documentation on how to write conditions and this is how you can write a condition: ``` {if (logged...

7 Jul at 11:39

StringBuilder and string equality check

I am trying this sample of code and `OpTest` when `System.Console.WriteLine(s == t);` it returns `false`. Can somebody explain this? ``` public static void OpTest<T>(T s, T t) where T : class { ...

7 Jul at 07:25

Getting "Cannot evaluate a security function" when using conditional breakpoints and in immediate window

When developing .NET Core 2.0 applications, I'm having issues with conditional breakpoints, watch evaluations, and immediate window evaluations. I'm receiving the following error: > `modifiers.GroupB...

5 Aug at 17:2

How to specify output bindings of Azure Function from Visual studio 2017 preview 2?

In Azure portal, one can easily configure the output bindings of an Azure function, from the 'Integrate' page of that function. These settings Eventually go into the function.json. [](https://i.stac...

Message "the term 'ng' is not recognized as the name of a cmdlet"

Today, while working through some basic AngularJS introduction, I ran into a problem. I opened PowerShell to get going on the project. NPM worked. I was able to install Angular using: ``` npm install ...

How to start Spyder IDE on Windows

I downloaded spyder using the `pip install spyder` in my windows 10 32-bit operating system, but i dont see any desktop icons or exe files to start running the IDE. I downloaded spyder 3, any my py...

24 Jul at 14:8

Unable to infer schema when loading Parquet file

``` response = "mi_or_chd_5" outcome = sqlc.sql("""select eid,{response} as response from outcomes where {response} IS NOT NULL""".format(response=response)) outcome.write.parquet(response, mode="ove...

20 Jul at 16:46

What is the replacement for TestContext.DataRow["MyColumnName"]

Using MSTest in a .Net Core Unit test project. I am attempting to use a csv datasource to provide the data for a test method. Previously, I would use something like below in a .Net Framework test pro...

6 Jul at 15:59

Pip error: Microsoft Visual C++ 14.0 is required

I just ran the following command: ``` pip install -U steem ``` and the installation worked well until it failed to install `pycrypto`. Afterwards I did the ``` pip install cryptography ``` command b...

Why are structs so much faster than classes for this specific case?

I have three cases to test the relative performance of classes, classes with inheritence and structs. These are to be used for tight loops so performance counts. Dot products are used as part of many...

10 Jul at 07:17

Get element height with Vuejs

I want to get the height of a div in order to make the height of another div matching it. I used the method clientHeight, but It doesn't return me the good value (smaller value). Actually, It seems to...

10 Sep at 05:19

How to keep output window always open in Visual Studio 2017

I am developing C# Windows Forms App, and need to output some debug message using `Debug.Print()`. However, the output window is always being minimised on each new debug session. How do I keep it dock...

ER_NOT_SUPPORTED_AUTH_MODE - MySQL server

## Failed at Connecting Node.js Server to MySQL-Database ---         I had installed on a , but decided that I wanted to use a SQL Database instead. I uninstalled, and completely removed , aft...

Postman Error: tunneling socket could not be established, statusCode=407

I am using the desktop version of Postman at a client site to test an API. However, I am unable to access any SSL sites in Postman, such as the Git Hib API: [https://api.github.com/users/karlgjertsen]...

6 Jul at 09:57

Jupyter notebook not trusted

I am using Anaconda to work on a Jupyter notebook which displays "Not Trusted" (see on screenshot below). [](https://i.stack.imgur.com/h2pjL.png) What does it mean? Is it a problem? How can I solve...

27 Mar at 12:41

'Task' does not contain a definition for 'CompletedTask' for C#

I'm following the tutorial at [https://discord.foxbot.me/docs/guides/getting_started/intro.html](https://discord.foxbot.me/docs/guides/getting_started/intro.html) to a tee, and yet I'm getting an erro...

6 Jul at 02:5

Enumerable.Repeat for reference type objects initialization

I have a question about Enumerable.Repeat function. If I will have a class: ``` class A { //code } ``` And I will create an array, of that type objects: ``` A [] arr = new A[50]; ``` And next, ...

5 Jul at 22:24

Unhandled exception of type 'System.ApplicationException' occurred in System.Drawing.dll

I have a winforms app. In development mode, when debugging from Visual Studio .NET 2003 (Yes, I know it's old, but this is a legacy project), I get this error when I try to open a new form. In order t...

How to post a dynamic JSON property to a C# ASP.NET Core Web API using MongoDB?

How to post a dynamic JSON property to a C# ASP.NET Core Web API using MongoDB? It seems like one of the advantages of MongoDB is being able to store anything you need to in an Object type property bu...