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

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

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 ?

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

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

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

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

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

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

22 Mar at 17:37

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

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

12 Mar at 19:26

Why does AsyncLocal<T> return different results when code is refactored slightly?

When I call `WrapperAsync` `AsyncLocalContext.Value` returns null. When I run the same code block outside the method, in the `Main` method, `AsyncLocalContext.Value` is not null (which is what I would...

12 Mar at 10:4

post multipart/form-data in c# HttpClient 4.5

# Problem I am trying to post API to send data to API which calls my internal API service to send that data to other API i service. Entity contains property with files . this send only file to the...

Get city name either do not start with vowels or do not end with vowels

Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates. Input Format The STATION table is described as follows:...

25 Oct at 15:37

415 Unsupported Media Type asp.net core

# Detail I am trying to post a file from Postman to the endpoint I have created. but it gives me this error. I am not passing the header Content-Type in postman > 415 Unsupported Media Type # A...

Using SafeArea in Flutter

I am trying to understand the [SafeArea](https://docs.flutter.io/flutter/widgets/SafeArea-class.html) widget in Flutter. SafeArea code added to Flutter Gallery app [here](https://github.com/flutter/f...

12 Mar at 03:13

Getting current item by clicking button within a ListView (Xamarin.Forms)

I have following list view (the is set outside and a ): ``` <?xml version="1.0" encoding="utf-8" ?> <ListView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsof...

11 Mar at 14:37

Data Annotation to start with specific ID in ServiceStack

I have a simple Id in my model like this: ``` [AutoIncrement] public Int32 Id { get; set; } ``` It auto-increments whenever a new record is inserted, but it always begins with 0. What if I wante...

11 Mar at 18:43

VS Code C# - System.NotSupportedException: No data is available for encoding 1252

I am trying to use ExcelDataReader to read an .xls file on Ubuntu. I am using VS Code with C#. Here is the code: ``` var stream = File.Open(filePath, mode: FileMode.Open, access: FileAccess.Read); va...

Checking for duplicate strings in JavaScript array

I have JS array with strings, for example: ``` var strArray = [ "q", "w", "w", "e", "i", "u", "r"]; ``` I need to compare for duplicate strings inside array, and if duplicate string exists, there sho...

6 Nov at 15:14

Many-to-many self referencing relationship

I am new in EF. And I ran into a problem with creation many-to-many self referencing relation. I've tried to use solution from: [Entity Framework Core: many-to-many relationship with same entity](htt...

Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

I am trying to add HWIOAuthBundle to my project by running the below command. ``` composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle ``` HWIOAuthBundle github: [http...

10 Mar at 22:14

ServiceStack Output XML format - xml attribute

I am using ServiceStack and need to render XML in specific format. Here is my POCO class ``` [DataContract] public class LookupModelBase { [XmlAttribute, DataMember] public int Id { get; set...

ServiceStack: how to use distributed RedisEvents?

There is very little documentation (that I found) on how the distributed RedisEvents work in ServiceStack. > One limitation the default MemoryServerEvents implementation has is being limited for us...

Authentication plugin 'caching_sha2_password' cannot be loaded

I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error: > Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_passw...

4 Oct at 08:17