Latest Questions

How do I change this recursive approach to iterative approach?

This is a game function from pygame. If user press left (pygame.KEYDOWN.K_LEFT), angle -= 1. Else if user press right (pygame.KEYDOWN.K_RIGHT), angle += 1. 'Eve

Apple developer rejects my application in Test Flight

After pushing the application to test flight, I added a MobileTest Developer to check the app in test flight, but the application has been rejected in the Apple

How to import existing lambda from arn and add SQS as event source? Amplify

I'm trying to create an SNS topic that an SQS queue subscribes to which acts as an event source for a Lambda function. I'm trying to do this with the amplify cd

NumPy Slicing HackerRank

I have wrote a function named array_slice which gets four numbers n, n_dim, n_row, n_col from the user and performs array operations given below. Instructions:

After click view not display on screen if I set visibility to VISIBLE - Android

I got a view and in xml it is visible <LinearLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="wrap_c

Error when set sameSite from strict or lax to none - HTTP only cookie - ExpressJS

I am running on a MERN stack project. Back-end runs on port 5000, and front-end runs on port 3000. After I've built to production, I pushed the server file to H

Issue with flexbox / gap in Bootstrap website under breadcrumbs

I got an issue with one of my pages based on Bootstrap which I do not really understand. We added recently breadcrumbs (also BS) for navigation, but on some pag

How to make agents wait for capacity to open up before moving?

I have each work cell set up as a Service with capacities set to 1 and delay times are based off of time studies from the floor. Currently, the agents wait for

strconv.ParseInt fails if number starts with 0

I'm currently having issues parsing some numbers starting with 0 in Go. fmt.Println(strconv.ParseInt("0491031", 0, 64)) 0 strconv.ParseInt: parsing "0491031":

R 4.2.0 doesn't start in RStudio (Windows 11)

R 4.2.0 does not start in RStudio. Attached is the screenshot. It says, "The R session process exited with code - 1073740791" R 4.2.0 starts normally outside RS

How do I import flask while using pipenv, I am running into a 'module not found' error

I have installed flask using pipenv but when trying to import, I'm running into an error yet the import is listed in the Pipfile. What might be the issue?

send "&" in url angular

I'm using the Angular version 12 I want to send the following object in query params: { dynamicQueryOperators: 6&dynamicQueryOperators=8 } But in the end

Flutter onPressed link instagram profile url with http

How can i use my api instagram link field, when I click it, it will open the instagram page or any url? now my widget variable giving this error The argument ty

Android: Check if my app is allowed to run background activities

I have an app that runs a stopwatch service, and I run the service in the foreground. I have a notification showing the timer, that updates each second. The not

Using 11ty as CMS for backend system

Not 100% sure if this is possible but the goal is to have a single point of entry (naked domain https://example.com) for entire system Backend/application (load

How to multiply three "big numbers" and then divide them by 100 in emu8086?

My class actually has no idea how to use assembly as all we had learned from the past few months is Java, and we were suddenly tasked to do this activity. Pleas

Update the first chart in vue-chartjs

I am having two pie charts, but changes applies only to the last one even if they have different canvas id here is the html code I used to add them <Pie :c

Why doesn't rustc infer the type based on std trait implementations?

Consider the following code: use std::net::IpAddr; pub struct Server { host: IpAddr } impl Server { fn new(host: IpAddr) -> Self { Self {ho

How can we trigger a parameterised jenkins release job manually (it takes Pull request ID) only if Pull request build job was successful?

I have setup a jenkins pipeline job which gets triggered whenever a new Pull request arrives on my github repository main branch (this job builds and run tests

Why aws s3 sync <source> <target> --delete doesn't delete folder that is in the target folder and not on the source folder

Please I would like to know: Why aws s3 sync --delete doesn't delete folder that is in the target folder and not on the source folder? Here an example: I use

collectionView with compositional layout, setcontentoffset position miss because dynamic height

i use collectionView with compositional layout and diffableDataSource collectionview cells are self sizing. func collectionView(_ collectionView: UICollectionVi

is there a way to change the storage class of newly uploaded objects in an AWS S3 bucket?

I am using nakivo as a backup solution, and one of the backup repositories is an AWS S3 bucket for off site storage, i would like to save on cost by making sure

EasyOCR disables Cuda GPU when installed

Hello after installing EasyOCR via pip install easyocr via Anaconda Prompt (base) I receive this error. OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\m

Get working days (Monday-Friday) and replace them with "between" in query

I have some query in which I am substituting 2 dates in a field "between". SELECT ... FROM ... WHERE o.EventDate between @startDate and @endDate How to make it

How to make a game download through a button in Macromedia\Adobe Director?

I'm making a game on Director, and I would like to add a one-button download from the end point, but I have no idea how to do it! In the screenshot I made an ex

How to use like query on FullText Index Column

I have this user table structure. `users` ( `id` bigint(20), `balance` bigint(20), `current_parent` bigint(20), `parents` varchar(45

Gtk4: Example of gtk_popover_menu_bar_add_child

I am looking for an example of the utilization of the function: gtk_popover_menu_bar_add_child In particular how to setup what the documentation is calling the

How do I push git even after using PAT

I tried to push some command to remote GitHub, even after using the PAT (personal access token) I'm still facing this problem. please help. C:\Users\adegu\proje

How to maintain script tag position on webpage?

I am using a script tag to add a widget to my Next.js app. I have create a section component for this widget but when I run the app it renders below my footer b

Use Ajax to Retrieve MediaWiki Full Image URL

MediaWiki has a url that directs to the full image url. <img src= "https://www.mediawiki.org/wiki/Special:FilePath/Wikimedia_Hackathon_Prague_2019_-_Gr