Latest Questions

SwiftUI - Custom map pin's onTapGesture action is selecting a wrong pin view when there are group of pins in the save position(Zindex bug)

My map code is actually really simple: // // ContentView.swift // MapTest // // Created by Asi Givati on 24/04/2022. // import SwiftUI import MapKit import

Jetpack Compose vector parsing issue

I'm trying to load a vector but keep getting this error stack trace java.lang.IllegalArgumentException: Unknown command for: R at androidx.compose.ui.graph

How to correctly compute the gradient of a curve using numpy gradient?

I have a curve which is composed of 1200 values and i just want to compute its derivative so i use numpy gradient function. Here is the code i'm using: data = n

Shadowdom access form selenium javascript/typescript

I'm trying to get access to some shadow dom elements using selenium in Javascript/Typescript, but can't quite seem to get it to work as expected. I haven't bee

NextJS: Can't get client side cookies without refreshing

When user logs in, I set the cookies with js-cookie for client side access. The cookie must be -I think- client accessible since I use Redux Toolkit for async t

How do I continue a for loop when no data is present which causes an index error?

I am learning python and I'm guessing something very obvious is at fault here. I have a web scraping program that, I suspect, upon finding an empty data field t

How to implement SAML SSO with AZURE AD in ASP.NET MVC Web Application

I create a simple .NET web application and I want to implement SAML SSO with Azure AD. I am using .NET version 4.8. I couldn't find any documentation to set up

How to formate or validate date in java like 20992012 or 12122022? [duplicate]

i have to validate date yyyyMMdd or MMddyyyy or ddMMyyyy. if i pass input 20221224, ho to make this is valid? but how can i do this in regex

how to add 'host_name' extension for SNI in java (using jetty)

i am trying in every way to add the SNI to my client (jetty 11.0.9). The server requires me to send host_name, but there is no way with jetty. can anyone do it?

upload image using react react and nodejs

i am trying to upload image path in mysql database and show it in homescreen .currently i am having difficulty in storing image path in my sql database and imag

Drag and drop without QLineEdit (or at least doesn't require user to highlight the text)

I want the user to be able to drag and drop a premade block of text, for the purpose of placing and reordering some items, but the only way I can see how to do

How to add a hover effect with dynamic styles to a component element?

I have this Angular component where hover effect is currently applied with pseudo-class :hover in .scss file. But I want to apply the hover effect with dynamic

How do I search most common words in very big file (over 1 Gb) wit using 1 Kb or less memory?

I have very big text file, with dozens of millions of words, one word per line. I need to find top 10 most common words in that file. There is some restrictions

What is the reason, sometimes the parameters in class does not defined in __init__ but added as instance variables?

Why does these attributes (commented) does not included in the init ? class RRT(object): def __init__(self, start, stop, obstacle_list, rand_area): self.s

error device-tree: can't request region for resource [mem 0x01c20800-0x01c20aff]

ERROR SHOW: [ 156.303744] blinkled: loading out-of-tree module taints kernel. [ 156.303871] blinkled: module verification failed: signature and/or required ke

CloudFront gives 403 when origin request policy (Include all headers & querystring) is added?

I am trying to set up a CF distribution with custom origin name that points to a custom domain setup in Route53 with latency based routing (to multiple regions)

Error while running the command npm install

I'm trying to run a react code and used the command npm install and error(s) pop up: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\AJ\Deskto

Docker Compose ports are being ignored on up

This is my Docker Compose file containing 4 api containers: version: '3.4' services: api1.api: image: ${DOCKER_REGISTRY-}api1 build: context: .

Custom mocking for testing with pytest

I have a code base (shown below), with a src directory containing the code, that I have developed, alongside with some supporting Third Party libs in tp directo

Posts text and image to pdf in react

I'm trying to create a blog post website where anyone can post anything. And also any user can download any post in one click. So is it possible to implement a

How can I connect to my REST API with powershell (CYPHERTRUST)

I am searching for how to connect to my rest API with a Powershell script I know that I need a to send my Body with the POST Method but cant define how to do it

Simulating a request with Hmac signature

I am trying to send a request after reverse engineering a private API, but the headers have these two elements that are crucial for the success of sending this

Telethon Is Not sending The Code to Sign up With New Number using send_code_request

ph = input("Enter Phone Number: ") async def sign_up(): try: x = await bot.send_code_request(ph, force_sms=True) print(x)

How to make navigation toggle button above body content view in html?

I have my navigation toggle to hide and show side navigation But if i zoom in the screen, The navigation button will go behind the body content view. .navigatio

jest supertest with express-session

I want to test my routes with jest but I don't know how to mock or simulate a session in my test to pass the first if line 2 app.get('/getMailSuiviList', (req,

Does GlusterFS works only in the same subnet?

I would like to know if GlusterFS is working only in the same subnet ? How can I make it works if it can ? Thanks

How to update a single property using PATCH method in Node JS? [closed]

I want to create a PATCH method to update a single property for my API but there is something I don't understand.

Django form validation based on custom function that calls api to validate form input value

I've been trying to look around for resources on how to do this, but no luck so far. Any direction would be appreciated! I'm attempting to run a custom function

Parsing a restricted Word file

I am working on a Windows standalone application. [ I can not disclose the name as per our company policy] I installed Azure Information Protection Client. Then

Pyspark how to join common columns values to a list value

i am trying to join columns values to a list of values df1= name | department| state | id| -----+-----------+-------+---+ James|Sales |NY |101 Maria|F