Latest Questions

Where does CloudFlare detect web and terminal requests?! On equal terms

My problem is opening sites on CloudFlare in CLI. I do not mean when there is a challenge and I do not want to solve the challenge. Consider this site as an ex

Importing DICOM image path (using MacBook, google collab) but getting [Errno 2] No such file or directory

I'm having trouble reading the file path that contains a DICOM image. I'm familiar with retrieving a file path on Windows and reading it but I'm currently using

Migrating to 'Morphia' from Hibernate OGM

I have been running MongoDB (5.0.7) for a number of years with Hibernate ORM & OGM. Currently using 'org.mongodb:mongodb-driver-core:4.6.0'. (2022.04.26) Us

How to load 3rd-party scripts into a site using web workers

I have seen a lot about offloading large scripts from the main thread to help improve website performance and Google's Core Web Vitals. I am curious if there is

Is there a library to share Oracle Connection Pools across multiple servers?

Are there open-source solutions to share Oracle connection pools across server instances so application instances don't suck up limited connections? For example

Shorthand for union of all properties of type

Context: I'm making function that accepting const asserted argument: function langs<T extends Partial<Record<Lang, LangDict>>>(dict: T & R

Error mysql syntax use 'declare pfee int default null;',check the manual that corresponds to your MySQL server version

delimiter // create procedure payFees(in deviceid int, in fee int) begin declare pbalance int default null; declare ptype varchar(2) default ""; dec

How to ping message author and user in Discord.js embed

i recently started with Discord.js and i am currently making a hug command. the command itself is working fine, but the problem i am facing is that i want the b

PHP conditionally pass nested arrays as function argument

I got two nested index arrays, which I want to populate with values using a function. But on a conditional basis: if this, populate the first array; if that, po

.net framework setup swagger UI to point to index.html instead of swagger/ui/index

In all our .net core projects that use swagger, to access it we simply go to URL/index.html. However, for some reason the .net framework swagger is pointing to

How to narrow down the union type of a class generic?

This class holds either a single Item or an array of items Item[], determined by a setting at runtime (this.config.isMultiple). How can I narrow down the class'

How to fetch files from Windows Shared Network Drive and upload to Azure Data Lake Storage location using Python?

I have requirement where I need to fetch files (having .xml as extension) from Windows Shared network drive location and upload them to ADLS (Azure Data Lake St

How to separate tables based on the model using FSM and FSM-Log?

I'm currently logging status changes to several models in my Django REST API using the django-fsm and django-fsm-log packages. However, all of the logs are stor

ReactJS app inside Laravel's public folder .htaccess configurations

I am hosting a React application inside the public directory of a Laravel app where: /public_html/ app bootstrap config

MAMP download asking for .Net core 3.1 Runtime. Unsure which one to select

I was following a tutorial to download MAMP earlier, and I ran into this problem which wasn't explain in the tutorial. After I successfully downloaded MAMP, and

confluentinc/cp-kafka docker log4j warnings

docker pull confluentinc/cp-kafka I use this code to pull the kafka image. Then, use the following to start the containers. docker run --rm -d --name kafka-se

min, max functions in sass SassError: Internal Error: Incompatible units:

I am trying to do use the functions min and max in sass. with two values of different type, width: max(55vw, 650px); And it gives me the error SassError: Intern

Command prompt not opening in windows 10

I am trying to open the command prompt but if I open it just opens for a second then gets closed. I also use the command prompt for vscode and I am not able to

How to apply a mask date (mm/dd/yyyy) in TextField with Jetpack Compose?

I have a TextField in which there cannot be more than 10 characters, and the user is required to enter date in the format "mm/dd/yyyy". Whenever user types firs

FastAPI route: Adding dynamic path parameters validation

I'm trying to add validation to my route in a fastapi server, followed the instructions here and managed to have added validation on my int path parameters like

Error running springboot oauth2 application: java.security.PrivilegedActionException: null

I am new to spring security. I am trying to create a security application basing on the tutorial available in internet. pom.xml <parent> <g

Speed up millions of regex replacements in Python 3

I have two lists: a list of about 750K "sentences" (long strings) a list of about 20K "words" that I would like to delete from my 750K sentences So, I have to l

Error: Could not identify the intended function with name 'swapExactTokensForTokens'

I'm trying to swap tokens using swapExactTokensForTokens() (Pancakeswap Router function), web3 imported in Python. Here's my code and error below. Please be spe

I need help for a query elasticsearch

I need help for a query. This is my query and my sample : GET /product/_search { "query": { "bool" : { "must" : { "multi_match" : {

MSBuild not publishing Web.config to the root of the publish folder

I'm running the following MSBuild command from PowerShell to publish a solution file: $Configuration = "Release" $slnFullPath = "...\Solution.sln"; $PublishPath

Issues with Gatsby & Strapi optional data

I have a model made in Strapi which contains a specific component which can be used to add social media links. Each link contains a text field and a link field.

"Unable to find drag handle" mistake in react-beautiful-dnd

I have a list of cards that want to drag and drop. I want the user could drag and drop by pressing on the specific place (div) on the card (not the whole card

R RestRserve Add Etag to static path

Let's say I have a REST API using RestRserve like this, is there a way to add an Etag to enable caching on cloud services? writeLines("Hello World", "myfile.txt

How to use $when in an adaptive card template to find out the length of an incoming data payload and drop an input block

I have an adaptive card in the form of a JSON file, which contains an Input.ChoiceSet. This is provided with a data payload, which is dynamic and so it is not t

Download all the files from Azure blob storage , zip it and upload the zip file in JAVA

I want to download all the files from Azure blob storage, create a zip file out of these files and upload the zip file back to the blob storage. As the file siz