Changing directory in Google colab (breaking out of the python interpreter)

So I'm trying to git clone and cd into that directory using Google collab - but I cant cd into it. What am I doing wrong? > !rm -rf SwitchFrequencyAnalysis && git clone [https://github.com/ACECentre/...

20 Jun at 09:12

MarkupExtensions, Constructor and Intellisense

I am trying to create my own MarkupExtension for localization. The idea is to pass a name of a resource (for example 'Save') to the markup extension and the return would be localized value (for exampl...

17 Jan at 08:19

Login with ASP Identity fails every time with "Not Allowed" (even when 'email' and 'username' have the same value))

Registering a user works fine, as it logs in via this line: ``` await _signInManager.SignInAsync(user, isPersistent: model.RememberMe); ``` But if I want to log in with the same user again does not...

How to create a mock instance of IOptions<MyOption>?

I'm using `IOptions<>` according to [https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options)...

16 Jan at 18:31

Can one reduce the number of type parameters?

I find it annoying that one has to specify the types of both Foo and FooFactory in the call to RunTest below. After all, if the test knows the type of the Factory, the type the Factory is creating is ...

16 Jan at 18:15

Why is my configuration manager deploy check box disabled in Visual Studio 2017?

I am trying to publish my solution to Microsoft Azure in Visual Studio 2017. In the configuration manager, the Deploy check box is grayed out and I can not put a check mark in it. I understand a sim...

Scaffold-DbContext to different output folder

I'm implementing repository pattern in company solution I work for, separating model classes in a Backend project and database context and migrations in DbContexts project. I'm using Scaffold-DbConte...

16 Jan at 13:21

NHibernate HQL Generator to support SQL Server 2016 temporal tables

I am trying to implement basic support for SQL Server 2016 temporal tables in NHibernate 4.x. The idea is to alter SQL statement from ``` SELECT * FROM Table t0 ``` to ``` SELECT * FROM Table ...

cURL request in Laravel

I am struggling to make this cURL request in Laravel ``` curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X GET http://my.domain.com/test.php ``` I've been trying...

16 Jan at 11:0

Cross-platform implementation of SendKeys in C#?

I need to automate desktop applications (not a web browser) testing on Windows, Mac and Linux. On Windows I use SendKeys, what do I use on Mac and Linux? Are there any cross-platform .NET Core SendKey...

Issue in installing php7.2-mcrypt

As I'm trying to load mcrypt extension module from PHP 7.2.X version. So I tried to make use of PECL library that is compatible to the current version of my PHP, in order to get installed and followed...

5 Oct at 11:37

How to provide a private Side by Side manifest that correctly locates a .NET Dll as COM Provider?

I'm researching about the configuration of a private registration free WinSxS with the plain provision of assembly manifest files, to stitch Delphi executables (COM clients) and .NET (C#) COM visible ...

4 Aug at 01:59

Custom tag helper not working

I followed a few guides on creating a custom tag helper for ASP Core. This is my helper: ``` using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; using System; ...

Calling Functions on Unity-Application embedded in Winforms-Application

I am currently developing a simple prototype for an editor. The editor will use WinForms (or WPF, if possible) to provide the main user interface and will also embed a Unity 2017 standalone applicatio...

22 Jan at 15:21

Create Microsoft Graph GraphServiceClient with user/password unattended

I am creating a console application that connects to Microsoft Graph using the Microsoft Graph API (as shown in [https://github.com/microsoftgraph/console-csharp-connect-sample](https://github.com/mic...

17 Jan at 08:46

How to change request headers in .NETCore2 implementations

For testing purposes I need to alter the Authorization header of an incoming HttpRequest - from Basic to Bearer (the processing is done in a ServiceStack plugin which acts during the PreRequestFilters...

15 Jan at 17:11

How to test IActionResult and its content

I'm developing an ASP.NET Core 2 web api with C# and .NET Core 2.0. I have changed a method to add it the try-catch to allow me return status codes. ``` public IEnumerable<GS1AIPresentation> Get() {...

15 Jan at 13:46

How to remove a virtualenv created by "pipenv run"

I am learning Python virtual environment. In one of my small projects I ran ``` pipenv run python myproject.py ``` and it created a virtualenv for me in `C:\Users\USERNAME\.virtualenvs` I found it al...

13 Nov at 21:39

How can I insert element into beginning of vector?

I need to insert values into the beginning of a `std::vector` and I need other values in this vector to be pushed to further positions for example: something added to beginning of a vector and values ...

10 Jul at 13:15

Error:Cannot fit requested classes in a single dex file.Try supplying a main-dex list. # methods: 72477 > 65536

I want to add fused location services but it shows me some error. Help me. ``` apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "27.0.1" defau...

8 Dec at 19:11

Stylesheet not loaded because of MIME type

I'm working on a website that uses [Gulp.js](https://en.wikipedia.org/wiki/Gulp.js) to compile and browser sync to keep the browser synchronised with my changes. The Gulp.js task compiles everything p...

29 Sep at 00:4

Undefined constant error in php 7.2

I have theses errors in php `v7.2` but don't see any `E_WARNING` when using php `v7.1`. How can I resolve following errors? > /web13/web/boutique/includes/Sites/Shop/NavigationHistory.php on line 39...

15 Jan at 16:15

What is ref struct in definition site

I think I've heard a term "ref like struct" in GitHub some time ago. Now that I have my hands on latest C# version (7.3), I could finally test it my self. So this seems to be a valid code: ``` publ...

24 Aug at 14:14

Python AttributeError: 'dict' object has no attribute 'append'

I am creating a loop in order to append continuously values from user input to a dictionary but i am getting this error: ``` AttributeError: 'dict' object has no attribute 'append' ``` This is my ...

12 Jan at 22:0

Servicestack 4.5.4 AutoBatch requests failed validation

We are writing an api that imports data from a spreadsheet. We have a create endpoint that we are using the Auto Batched feature, because we want to make one call from the UI rather than one call per ...

12 Jan at 17:58