How to change default browser with VS Code's "open with live server"?
It defaults to my safari but would like to change it to chrome. I looked in preferences, but there doesn't seem to be an option for that. Any ideas?
- Modified
- 14 Mar at 23:31
How to set bot's status
So I'm trying to make my bot's streaming to be with depression but I've tried multiple things and they don't work. I've tried these methods: ``` client.user.setPresence({ game: { name: 'with depressi...
- Modified
- 27 Dec at 22:11
ServiceStack JSON deserialization - complex POCO - returning null in .NET Core 2.0
We are using ServiceStack.NET as our web services layer. Earlier to .NET Core 2.0 version of ServiceStack (v5.0.2), the below complex POCO was being deserialized correctly by JsonServiceClient (from C...
- Modified
- 14 Mar at 19:7
Is there a `valueof` similar to `keyof` in TypeScript?
I want to be able to assign an object property to a value given a key and value as inputs yet still be able to determine the type of the value. It's a bit hard to explain so this code should reveal th...
- Modified
- 16 Mar at 01:40
Microsoft Dynamics 365 SDK Core Assemblies .NET Core Porting Error
When trying to use [Microsoft Dynamics 365 SDK Core Assemblies](https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies/) in a .NET Core 2.0 project, the following error occurs at runtime simpl...
- Modified
- 14 Mar at 15:55
Failover and client timeout
I am using ServiceStack 5.0.2 with Redis Sentinel (3 + 3) and having issues in case of a failover: commands being issued during or after a failover fail with timeout. I have come up with an idea to i...
- Modified
- 14 Mar at 14:14
How to clear Flutter's Build cache?
There seems to be a problem with flutter's build. I always need to perform > everytime I run the app to an emulator or device. Otherwise, the app loads a scaffold body which my code had from 2 wee...
How to implement drop down list in flutter?
I have a list of locations that i want to implement as a dropdown list in Flutter. Im pretty new to the language. Here's what i have done. ``` new DropdownButton( value: _selectedLocation, onChan...
- Modified
- 14 Mar at 08:46
Can you dynamically load cross platform Native/Unmanaged dlls/libs in .Net Core?
In .Net Core, you can PInvoke with [DllImport], But if you want to dynamically load and map native api calls, DllImport doesn't solve the problem. On windows we handled this with a DllImport to Lo...
- Modified
- 14 Mar at 14:39
The reference assemblies for framework .NETCore, Version=v5.0 were not found
I have a UWP project that was created using Visual Studio 2017. It builds fine on this machine (machine 1). However, when I copy the project over to a machine (machine 2) where I only have the Visual...
- Modified
- 15 Mar at 08:47
Import py file in another directory in Jupyter notebook
My question is related to [this](https://stackoverflow.com/questions/4383571/importing-files-from-different-folder). I am using Python 3.6 in Jupyter Notebook. My project directory is `/user/project`....
- Modified
- 19 May at 23:31
How to get coordinates of the selected item in a list view in Xamarin.Forms?
I want to get the coordinates (rectangle bounds: x, y, width and height) of the selected item in the listview relative to the screen (assume the listview fills the whole screen), so that I can create ...
- Modified
- 13 Mar at 19:8
Jest gives an error: "SyntaxError: Unexpected token export"
I'm using Jest to test my React app. Recently, I added [DeckGL](https://github.com/uber/deck.gl) to my app. My tests fail with this error: ``` Test suite failed to run /my_project/node_modules/dec...
- Modified
- 27 Feb at 16:47
C# Dependency Injection Runtime (dynamic) registration
I am using VS 2017 and .NET Core. Using Dependency Injection, I would like to register my service at runtime, dynamically. My goal is to write instances of my service that implement the service inter...
- Modified
- 13 Mar at 17:54
Selenium ChromeDriver - Run in background but not headless
I am looking for a way to run selenium tests with a chrome driver, in the background. With the background I mean as in, not the foreground focused window. I can actually do this, but as soon as action...
- Modified
- 26 Feb at 21:20
What could cause an XML file to be filled with null characters?
This is a tricky question. I suspect it will require some advanced knowledge of file systems to answer. I have a WPF application, "App1," targeting .NET framework 4.0. It has a `Settings.settings` fi...
- Modified
- 23 Mar at 19:11
How can I make rounded TextField in flutter?
Material Design for iOS doesn't look good, especially the . So is there any way to create your own ? Or Is ther any way to add some styling to TextField so it will look rounded ?
- Modified
- 13 Mar at 13:37
Why does the C# compiler remove a chain of method calls when the last one is conditional?
Consider the following classes: ``` public class A { public B GetB() { Console.WriteLine("GetB"); return new B(); } } public class B { [System.Diagnostics.Conditional("DE...
- Modified
- 13 Mar at 10:14
Iterate rows and columns in Spark dataframe
I have the following Spark dataframe that is created dynamically: ``` val sf1 = StructField("name", StringType, nullable = true) val sf2 = StructField("sector", StringType, nullable = true) val sf3 =...
- Modified
- 15 Sep at 10:12
ServiceStack OrmLite generic database search
I need simple search functionality in different tables through my application, so I was thinking creating a `GenericFilter` class, passing a query and some conditions and return the results in some wa...
- Modified
- 13 Mar at 08:38
Ansible Playbook: ERROR! 'command' is not a valid attribute for a Play
I'm just trying to write a basic playbook, and keep getting the error below. Tried a tonne of things but still can't get it right. I know it must be a syntax thing but no idea where. This is the code...
- Modified
- 8 Feb at 21:19
Why is a "You'll need a new app to open this localhost" popup being displayed when debugging my asp.net core 2.0 app in Edge?
I'm simply entering "MyMessages/Index" after localhost:51531/ and this popup is being displayed. Seems super weird to me but probably something simple. So I try to navigate to `localhost:51531/MyMes...
- Modified
- 12 Mar at 20:10
Mono Bug : Magic number is wrong: 542
I am trying to compile a C# Hello World application in Rider on Linux. When I try to run the app, I am promted the following exception: ``` Unhandled Exception: System.TypeInitializationException: Th...
Using Required and JsonRequired in ASP.NET Core Model Binding with JSON body
I'm using ASP.NET Core, and I have a request object annotated like this: And in my controller: I noticed an issue with model binding: When I send a request containing the header `Content-Type` ...
- Modified
- 5 May at 15:50
ServiceStack GetSession() reload (using jwt auth)
Hopefully a quick question.. I've found that when using jwt authentication ServiceStack's `GetSession()` method doesn't fully refresh the session when the optional parameter `reload == true`. ``` va...
- Modified
- 12 Mar at 19:26