Latest Questions

To compare two programs with each other

Help me understand how the program works. I take it from the book of Steven Pratt “Program language C” I find on page № 289 exercise №6.

Java Selenium - how to test browser network -> payload?

Java Selenium - how to test browser network -> payload ? I have following code that works: WebDriver driver; BrowserMobProxyServer proxy; Proxy

Reading Data in Vertex AI Pipelines

This is my first time using Google's Vertex AI Pipelines. I checked this codelab as well as this post and this post, on top of some links derived from the offic

Upload a pdf file in core php

//=============== PDF File Upload===================== if (isset($_FILES["pdfile"])) { $filename = $_FILES['pdfile']['name']; $dir = "../pdfs/st

How to make cell values conditional on other cell values in Excel VBA?

I'm wanting to automate a few things in Excel, problem is I am definitely not a programmer / scripter so this is all foreign to me. I have a list that changes i

I want to get the count of an empty xml file having only closing tag. Using count function. I want to get count as zero

I have an xml payload as <?xml version="1.0" encoding="UTF-8"?> <Data/> While using count(/Data)=0 to check whether the data is zero or not it is n

Why is my useEffect not being called when I take a item out of my cart in React?

I am doing a simple food ordering web app with React and for some reason, I can't get my useEffect to run when the cart is changed with the X button to delete a

TypeError: Cannot read properties of undefined (reading 'add')

I've been stuck on this for ages and can't figure out why the error pops up. async function verify(i) { try { var g = await client.guilds.cache.get(

Android stop foreground service executes onStartCommand

Why calling context.stopService(stopIntent) is going to execute onStartCommand am i missing something? i had to do this in the onStartCommand if (ACTION_STOP_SE

Why does jQuery or a DOM method such as getElementById not find the element?

What are the possible reasons for document.getElementById, $("#id") or any other DOM method / jQuery selector not finding the elements? Example problems include

Calling FileField objects in template renders incorrect path

I've implemented a FileField model in my project. I can successfully upload svg files and they save to the desired location. Within my project, I make heavy use

How can I include external modules when compiling Python code with Cython?

I have an extension that I compile with cython into the related *.pyd or *.so files, which are then imported into my very basic main.py: if __name__ == "__main_

Determine Whether Two Date Ranges Overlap

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap? As an example, suppose we have ranges denot

Unable to run unique iterations for individual objects

I'm trying to present 25 entries (name, company, skill, etc.) on the page and am having trouble getting the unique information. i.e. I only see the first entry

Error status after sending 32768 bytes from serial port in Python

I am making uart communication using serial library. I can send and receive data, but when the number of bytes sent reaches 32768 or more, I get the error; Val

Google maps remove UI from tab order

In my application I have dialog that opens google maps. When navigating google maps with tab the UI at the bottom of the map is "tabable". How can I remove this

PLPGSQL function returns ERROR: integer out of range even if value is correct

I'm experiencing strange behaviour on two Postgres functions returning a single bigint value. The first one returns the correct value while the second one throw

pm2 can't find package.json when start

I try to start my app on VPS.I can start my app in terminal, but when I work with pm2 , I get the error 0|gentle-s | Error: Cannot find module '/root/my-app/ind

generic type to add missing properties in type

I have the onMessage function that gets events from SDK of the third party in my app interface TypeA { a:string, b:undefined } interface TypeB{ b: '

Python Django error "Select a valid choice. That choice is not one of the available choices."

I am relatively new to Django so I am likely doing something obviously wrong but I cant seem to figure out what exactly. I have a model called Report and this h

In Typescript "keyof Record<string, string>" is not "string"

I'm hitting this wall since days now and I'm not sure anymore if I'm the problem or if typescript is broken... I defined a generic class with the generic extend

Service stope after few Hours in android

I am creating one foreground service and start this service using STICKY. It detect phone lock and on event. It working fine for few hours but after some time t

Gradle task list that can be parsed

I am looking for a way to retrieve the output of gradle tasks in a way that can be (easily) parsed. Ideally in JSON for instance. I feel that I am missing the

Reentrant lock not updating the shared resource properly

I have a shared variable count, which I am incrementing in increment() method and two threads are access this. I'm getting the wrong final count. Here is the s

how many rows will the query return?

table t has a field X which is the primary key. the table has 5 rows. how many rows will the query returnenter image description here

Circle drawn in Openlayers not changing properly

I have a JS file that allows me to draw a circle on an interactive made with Openlayers 4.6.5. The problem I currently have is that once the circle is drawn, I

How to make my animated image stay in the same place even when I scroll down the screen?

I have placed an animated image on my landing page however when I scroll down the screen the animated image also moves with the screen, I have put position: fix

Can not connect to firebase authentication browser module

Hey everyone I am learning firebase phone authentication in web app. I have an error that I can not find the solution. I imported the browser module for firebas

For MudBlazor component MudSelect, how do I get selected value to align in the center?

I have a very simple drop down, a MudSelect, which is working fine. When you list the choices they align fine in the middle, but I do not know how to get the s

how in GridLayout (Android) to fit the last two blocks to full width?

I am currently learning the Android front-end development, and our teacher gave us this task: We need to create the next grid in Android Studio: Task Grid using