Latest Questions

User Access Roles In Firestore

I have Firestore setup as shown in the images below. I am trying ensure that a user can only have access to projects of a specific company provided the user is

Old Opera: Dragonfly will not load

I know that Dragonfly is quite old and hasn't been seen since Opera version 14, but I am trying to target a specific version of Opera (9.50). Every time I open

run function file in google colab

In Google Colab, how can I execute the function file related to the original code? In the main code is part of the function that is in the file. PY is another,

Extracting rows from list in data frame where at max numbers [duplicate]

So i've been given a pandas data frame and created a definition for the maximum variable in one column. max_energy = D202['USAGE'].max() max_e

How to redirect the existing URL to new URL

I have a simple html website and in app folder I have a file called application_14.apk now I have sent the download link of this application to my users, later

Multiple SQL Server statements do not work on same form

I am working on a C# project with a Microsoft SQL Server database. This is how I have connected the database: DataSet ds_display = new DataSet(); SqlDataAdapte

Webpack Hot module replacement, react 18 ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before

I updated React to v18 and my Webpack dev server gives me a console error whenever the hot module replacement fires and injects the new javascript code: Warning

Outlook VSTO - Get all items in a group calendar

I am looking for a way to access a group calendar in Outlook VSTO Add-In. I am only able to search the default calendar in outlook. I have shared an image from

Any way to make use of ImageClassificationInstance in C#?

I keep getting Grpc.Core.RpcException: Status(StatusCode="Unimplemented" ... exception when I try to use the ImageClassificationInstance objects to classify usi

matrix with nodes that refer to which openings/connections they have

I would like some help on a problem that has been stressing me for a while now It revolves around recurdive backtracking maze generation, but should reurn a mat

Upgrade from Elasticsearch 5.2.1 to 6.8.22 encounter issue: java.lang.LinkageError

Our project need to upgrade elasticsearch from 5.2.1 to 6.8.22. We encounter an issue now. The war can be deployed successfully in jboss server, but will contin

How to align an embedded map to the center?

I am working with HTML code in Virtual Studio Code I am trying to align an embedded map to the center, how can I do it? This is my HMTML code below <section

how can anyone send email to me on my website in js

I am creating a project as I have created a contact page. I want any user to send me a email by putting his email and message in input box of contact page. I ha

Port scanner using net.DialTimeout always manages to connect even when ports are closed

---UPDATE I send the code to a friend who then tested it on his pc. The output was as it's supposed to be. This means the issue is not code related but somethin

Decoding API data with RestClient

I am not entirely sure how to do this or really where to begin, I can't seem to find any information pointing me in the correct direction. I am calling an API a

selecting one file/folder from the directory

I am building a program that manages the quantity and distribution of files and folders from folder "a" to "b" in java (io , nio, apache commons-io) libs. I got

How to share same implementation and maybe share fields

How can I simplify this code? I still can't wrap my head around rust's traits and structs after OOP. struct Player { entity: Entity, hp: i32, atk: i

Why can I "captureless-capture" an int variable, but not a non-capturing lambda?

The following function is valid (as of C++20): void foo() { constexpr const int b { 123 }; constexpr const auto l1 = [](int a) { return b * a; }; (v

How to make ball bounce off of triangle in Py.Processing?

Im building a game in processing python. It is similar to pong except the paddles can rotate thus changing the direction of the ball. There is also supposed to

Using UIBarButtonItemAppearance have both the system and the custom back button images

I am using UIBarButtonItemAppearance for the first time and I'm confused on how to put a custom image for the back button. This is how I do it: private func cre

How to convert a arraylist <String> to arrayList <Integer> and Calculate the values of Integers on it?

How i am supposed to calculate ArrayList String from Listview values into ArrayList Integer and back to Listview, Because i've been making a application for And

Error creating json file in node js

I have followed many solutions provided in the previous questions but mine is not working. The problem is in .json extension. Whenever I use filename.json, the

How can I plot a pandas dataframe where x = month and y = frequency of text?

I have the following dataset: Date ID Fruit 2021-2-2 1 Apple 2021-2-2 1 Pear 2021-2-2 1 Apple 2021-2-2 2 Pear 2021-2-2 2 Pear 2021-2-2 2 Apple 2021-3-2 3 Apple

Add elements in a list at the n index of a other list

calibres_prix =['115-135', '1.87'], ['136-165', '1.97'], ['150-180', '1.97'], ['190-220', '1.97'], ['80-95', '1.42'], ['95-115', '1.52'], ['150-180', '1.82

TypeError: forward() missing 1 required positional argument in a method

I use the following model: model = DeepGraphInfomax(128, pos_summary_t).to(device) which looks like: class DeepGraphInfomax(torch.nn.Module): def __init__(s

Installing python package from private gitlab repo in Dockerfile

I'm currently trying to install python packages from a private gitlab repo. Unfortunately, I get problems with the credentials. Is there any way to install this

How can I split string like key and value using scala in efficient way:

How can I split string like key and value using scala in efficient way: I would like to split below emp string into key value pair. var emp = "Map(employees -&g

PERCENTILE IF using ARRAYFORMULA for a set of conditions

I need to calculate the percentile using an if condition to calculate it by group of conditions, but Google Sheets doesn't provide PERCENTILEIF function. A nona

Fetch doesn't retrive data

I am currently building a login form which will be using a restAPI for the registration/Auth but I'm receiving a 401 error when using fetch to test the retrieve

Mathematica equivalent of Pandas groupby and sum

I imported a World Health Organization (WHO) csv file with Covid-19 cases per country from January 2020 into Mathematica. The file is a table with "Date Reporte