Latest Questions

Can't export SignIn from "aws-amplify/ui-react"

I am using "aws-amplify/ui-react" withAuthenticator and would like to pass a SignIn component with some custom logic. It is possible to do with "aws-amplify-rea

How to write text on top of rectangle instead of below?

I'm trying to create a rectangle with text on top, but the text shows below the rectangle. How can I make the text go to the front layer? My code so far: from t

What happens if I using 'env.process()' whenever I need it?

I'd like to have a bed cleaner only when necessary. The error does not occur as shown in the code below, but the result is not accurate. Increasing or decreasin

ImageMagick lambda layer aws SAM

I have the following template.yaml from a SAM application AWSTemplateFormatVersion: "2010-09-09" Transform: AWS::Serverless-2016-10-31 Description: > image

How to include OpenGapps in AOSP 12 build?

I am building AOSP 12 for my Pixel 3a sargo. It worked but I wanted to install Gapps on it. When I tried to flash any Gapps zip in TWRP, it said that my system

How to construct a class from a pack in C++?

I am trying to initialize a class with a pack passed as an argument to my function. Here is what I got so far: struct Vec3 { float x, y, z; }; template<

why am I getting this "Cannot find module server.js"?

I had a Traversy Media tutorial on how to learn the MERN stack that I was following. I had the first part installed on my desktop and it was working properly. o

How to create a navigation menu for existing site using HTML, CSS

I am pretty new to coding. My boss is asking me to add a navigation bar to the existing website so all the services are hidden in the Service option. Can anyone

Hasura inherited role permission inconsistency

I am trying to define two roles in Hasura: role_1: In my_table, can update: column_A and column_B role_2: In my_table, can update: column_C I want an end user t

Is there a way to display a field of a map[key-string] with value-struct, in html, in golang? [closed]

I have a datatype of map[key-string] value-struct, and I'm trying to display a field(Timing) of the struct I tried all sort of variations for

Create folders and files from txt batch script

I've already found most of the answers, but I still can't use the batch file to create what I need. I need to create folders according to the list in folders.tx

ModuleNotFoundError: No module named 'sklearn.utils._typedefs'

When I try to execute the exe file made my pyinstaller I got the error message No module named 'sklearn.utils._typedefs'. I use from sklearn.ensemble import Ra

remove outliers from df based on one column

My df has a price column that looks like 0 2125.000000 1 14469.483703 2 14101.832820 3 20287.619019 4 14469.483703

Fetching values from one column based on other column keys in long-formatted dataset

I have a long format dataset of 100,000+ individuals, capturing clinic visits at 5 different time points (not chronological). I've included an example dataset b

Emmet for React.js Classes: "styles.something"

I am a React developer using VSCode. When you type .hello, it inserts<div className="hello"></div>. However, that is useless because my classes are

Extract div class text and sub tables in rvest

I am trying to recreate a table from this website under "Battle Pass Rewards." The final result is a data.frame with each of the following areas as different co

How do i get the mouse position to a part in roblox?

I truly want to know. How do i get the mouse position to a part in roblox? Like, i want to get the mouse position, on screen, aligned with a part. Let's say the

Get node path relative to the SConstruct from inside a SConscript

In a hierarchical build, one of my SConscript files, located in a sub-directory needs to print paths of a few nodes (for use by an external script). However, th

node + ts-jest + ESM, jest.mock doing nothing

I am using ts-jest with ESM imports on nodejs. The problem is that my jest.mock is not working, it is not mocking. import { jest } from "@jest/globals"; jest.m

How to convert animated webp to gif in android / java?

I want to convert the animated webp files to gif file and looking for solution since couple of days but did not get any easy straight solution yet. I tried ffmp

Load data from reading files during startup and then process new files and clear old state from the map

I am working on a project where during startup I need to read certain files and store it in memory in a map and then periodically look for new files if there ar

Update or create row based on ID - Google Script

It's been several days since I'm stuck on this problem. I've tried everything I saw but I think I miss some logic of the Google Script. I have a php form which

How to solve the problem with installing google colab?

Tried to solve a simple problem from google.colab import files import numpy as np file = files.upload() !ls my_array = np.loadtxt('train_vector.csv', delimi

setState not updating state with multiple varaibles

I am working on one reactjs project. where the user needs to pick two different dates starting date and end date. When a user picks first date i need to update

grab UserSecrets from a NuGet package

I've written a C# class library for my company to use internally, and it uses DotNet UserSecrets to allow each developer to have their own credentials set witho

Unusual Target Invocation Error in Unit Tests

I'm trying to run a group of 12 unit tests. When I run the entire group, one test passes and the rest fail with the same error: Could not find default endpoint

How to include multiple values under a section in inifile

I am trying to create a puppet manifest using inifile. This would be for a configuration file where I need to have the following format. [safe] directory =

How to get the current month and the next months until next year in javascript

so I want to get the current month and the next 12 months in vanilla js. For example, upon writing this question it's April 2022, So I want to have this output:

Why is my collections.sort leading to different outputs in 2 arraylists with the same data [closed]

I am having some trouble sorting 2 arraylists of mine which have the exact same data, one is received through my API and the other is parsed t

PDF file sent from flask to client is empty when downloaded

I have a flask server that sends a pdf file with the send_file function. When I test this route on postman I can view and download the pdf. However when I try t