Latest Questions

Javascript: Cypress: select sample with not contain value

I want to select a random value from a dropdown, with the restriction that a specific value should not be selected. const initialOrderReason = cy.xpath("//t

How to send a mail from gitlab after any activity?

We are using gitlab for CI/CD. my colleagues need pipeline, merge request, commit related status. How should I receive the mails from them and how did they rece

Relationships in Entity Framework with users from AzureAD

I'm relatively new to Microsoft solutions and I need your guidance. I'm quite certain the answer exist somewhere, but I lack key words for my searches. My stack

TopAppBar flashing when navigating with Compose Navigation

I have 2 screens which both have their own Scaffold and TopAppBar. When I navigate between them using the Jetpack Navigation Compose library, the app bar flashe

Turing machine for multiplication of two unary number

I am creating a Turing machine that computes the multiplication of two numbers using unary representation within 300 step limit. For example 2 * 3 as 110111 and

Scroll to top when adding new items

I have a usecase where I would like a LazyColumn to scroll to the top if a new item is added to the start of the list - but only if the list was scrolled to top

Remove duplicate in key-value pattern

Hi I have an input which consist of duplicates. "Jacob":56002 "Mark":1002 "Jacob":56002 "Jacob":1001 "Mark":1002 Desired Output: "Jacob":56002 "Jacob":1001 "Ma

How to avoid TclError if I want to update the results obtained from entries instantly?

I want to add two numbers and add them and update the result instantly without using a button. I have written this code using after() to do that. from tkinter i

Error: missing revert data in call exception while testing with Hardhat

I want to test get my function TokenUri using hardhat. Here it is: function tokenURI(uint256 tokenId) public view virtual override returns (string memory){

Scrapyd-client schedule.json produces an AttributeError

I am trying to deploy my Scrapy spider using Scrapyd and Scrapyd-client. I have managed to successfully create a project containing my spider, but when i try to

Symfony 5 select QueryBuilder select object return soft deleted propery

I have object: Shipment with property Supplier of class Company App\Entity\Shipment id:1234 status:"wait" supplier:Proxies\__CG__\App\Entity\Company when $q

C# Convert Integer into Roman Numeral and Number in Words

I need a help because I've created a program wherein if the user inputs enter an integer number then it will convert the number into Roman Numerals and in Words

Spring cloud loadbalancer - Feign + SimpleDiscoveryClient with healthcheck/retry

I'm struggling to switch from Ribbon to Spring Cloud Loadbalancer after upgrading spring cloud versions. Setting up the SimpleDiscoveryClient with Feign was eas

How to get exact code coverage in sonarcloud for angular

I am trying to produce code coverage report in sonarcloud for angular-12. Could someone help me how to configure azure pipeline for generating correct code cove

Is there a way in typescript to type a string as JSON string and specify the parsed objects type?

{ key1: "{\"key2\": \"123\", \"key3\": \"ABC\"}" } In the above object the value of key1 is a JSON string that needs to be parsed. Is there a way in typescri

Multiple errors when importing Gradle project

I wanted to read the source code of a java project, so I cloned the project into a directory, and opened it in VSCode. The project used gradle as a dependency m

The getter 'documents' isn't defined for the type 'Object'

I have a collection called status in Firebase. I'm trying to pull data from here. However I am getting this error. I tried some solutions but I still get the sa

Explain what is the advantage of websocket over sending normal http requests at intervals?

I hope the question is clear. What prevents just sending a GET request every 1 second, for example, what will be the difference?

Custom hook not updating in component

I have a custom hook that looks roughly like this: export default function useMyHook() { const [foo, _setFoo] = useState([]); const [bar, setBar] = useState

Heroku and GitHub: "Items could not be retrieved, Internal server error"

I simply want to connect to my GitHub account. When I do it, I get this error message as a small red pop up on the upper right side of the pag

Is there other way to get the Microsoft Edge DevTools Preview without Microsoft store?

I always debug the WebView control with VS, I refer to the this official document Debug a WebView control in a UWP App. Recently, I found there is a best way to

Explain what is the advantage of websocket over sending normal http requests at intervals?

I hope the question is clear. What prevents just sending a GET request every 1 second, for example, what will be the difference?

Why I'm getting segmentation fault with python3 C-API and c FILE *

I get segmentation fault when i try to pass opened python 3 file object to c routine via FILE * pointer. I try porting a python 2 code to python 3 and as so far

Heroku and GitHub: "Items could not be retrieved, Internal server error"

I simply want to connect to my GitHub account. When I do it, I get this error message as a small red pop up on the upper right side of the pag

aws-sdk-go-v2 set custom header on PutObjectInput

I am in a situation where i need to set a custom header on putting an object to an s3 compatible storage system. _, err := uploader.Upload(ctx, &s3.PutO

How to deploy qt applications in raspberrypi 4

i want deploy qt applications in raspberrypi and share apps with other raspberrypi without instal qt. As an executable file. I tried linuxdeployqt but it error

Is there other way to get the Microsoft Edge DevTools Preview without Microsoft store?

I always debug the WebView control with VS, I refer to the this official document Debug a WebView control in a UWP App. Recently, I found there is a best way to

Another approach to create and form Tfrecord for training and testing data

I am currently using this command to create a train.record file !py generate_tfrecord.py -x C:/Users/Desktop/dataset/Workspace/images/train -l C:/User/Desktop/d

Bootstrap datatables - multi-filter column search CSS issue

What I am doing is to render table in HTML from Flask server. Bootstrap code I have referred to is from this link: Bootstrap multi-filter my HTML code: <tabl

Why I'm getting segmentation fault with python3 C-API and c FILE *

I get segmentation fault when i try to pass opened python 3 file object to c routine via FILE * pointer. I try porting a python 2 code to python 3 and as so far