Latest Questions

Platformio compilation error in bison file

I'm using bison with flex combined with Arduino framework in Platformio. Compiling .y and .l files goes without a problem, but when I'm trying to make a Build i

Why is it not dividing correctly [closed]

Why is this code not dividing correctly? This code is supposed to find the sum of all the numbers that can mod b(from 1 to a), and the numbers

Problem with adding image on map with leaflet-distortableimage to the correct coordinates using corners

Maybe someone faced a similar problem. When such a code is executed, the image added to the map is displayed not in the coordinates specified in the corners, bu

Expected type 'object'. Found 'string|false'.intelephense(1006) on json_encode()

Please find my code sample below where I take the POST input data and convert into JSON after which I check if the data has the required info or not. I'm using

setInterval freezes react app after some time (couple days)

I have a react app (nextjs) and show a QR code that refreshes itself every 5 seconds and a clock which updates every 1 second. Further, I have added service-wor

How do I find the difference in hours between two time zones?

I have this code here that can find the time in two different timezones at the moment. I want to calculate the difference in hours, between the two timezones. d

Sympy: Differential Geometry - Christoffelsymbols (&Riemann Metric)

I am a little bit puzzled. I wanted to check the christoffelsymbol calculation and Riemann Tensor calculation by using the Schwarzschildmetric. But I do not get

How to convert a stream to another type without using map?

I've this code: Stream<int> get fooStream async* { barStream.listen((_) async* { int baz = await getBaz(); yield baz; // Does not work });

check weather the user readed data or not in flutter using firestore

I was developing the chat app in flutter using firestore, the users successfully chat one-to-one. but I also want to send the notification to the user that some

How can I access each element in an array and use it for filtering data

I am trying to get an array in my req.query and want to use the elements in that array for filtering of data but unable to do so. As you can see in the below co

Summernote with bootstrap 5 font styling and font sizing doesn't work

I'm integrating summernote-bs5 in my software. I include it from cdn: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.20/s

Disabled dropdown option didn't work in semantic UI

This is my Cshtml <div class="field"> @Html.LabelFor(modelItem => modelItem.plateNumber) @Html.DropDownListFor(m => m.plateNumber, new Selec

Load section of config file into dictionary in net 5.0

I have to work on an application in net 5.0 not developed by me, that I don't know. I would like to add a section in the config file and load it into a dictiona

Buffer Overflow not spawning shell in ARM Assembly?

(I know, Too many answers already, but need help) After i executed my payload to spawn a shell i had this error. Does someone know the problem ? close failed in

MLFlow trying to launch non-existent python

Launching mlflow ui from a brand new conda environment, called, say B, results in: Fatal error in launcher: Unable to create process using '"C:\Users\user_name

List View Constrain jump to top

I am trying to learn SQL database with a tutorial. I add user and age to database and get them back and displayed using listView using ViewAll button then if

Trouble scraping values from url link

I am new to web scraping and am trying to extract a value from Yahoo finance. I am using pandas and match to search for the right row of data amongst the tables

drf-yasg, How to add model choices on api doc?

I have a model like this: class User(AbstractUser): PERMISSION_CHOICES = [ (0, 'boss'), (1, 'leader'), (2, 'bro'), (3, 'sis'

What is a NullPointerException, and how do I fix it?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause

How to get the url of a downloaded file

I have done a lot of research but I can find a way to get the url of a file already downloaded.. I want to get the urls to make a program to sort my files by th

URL rewrite module IIS - redirecting act differently when I change rule name

Recently I have been facing very strange issue with IIS rewrite module. So, I am trying redirect one of URL to a desired URL. <rule name="Redirect to merchan

How to use an if statement to break a while loop when the word exit is typed?

I want to make it so that when the word "exit" is typed the loop breaks and it prints a message. How do you do this? This is the code I have so far: file=open("

How it's logically possible to exit this loop while gathering data

here's the API for refence: https://github.com/JeremySkalla/pysmashgg/tree/3b04a4b2d83bbfe765c519ac37c437f478984742 There is a function in the API event_by_game

networkx find egdes in shortest path

Can networkx tell me the edges that a shortest path travelled on? The example below gives me the output [['A', 'C']]. Is there a way to know the path travelle

How to extract image from TCP Stream

I need your help. I was creating an application in c# that converts the data from the IP camera to an image (JPEG). I was able to convert the image using the be

Mongo updateMany statement with date.withZoneSameInstant(xxx)

I have this collection in my Mongo database: id | place | local time -------------------------- 3 | A | 12pm 4 | A | 11pm 5 | B | 4pm

How to solve a "permission denied" error on git bash?

I am using git bash to run my python program, but unfortunately more recently when trying to install some modules using git bash, I get a "permission denied" er

Luasockets get the lua files

can I get the the .lua files that comes with luasockets somewhere? Like ftp.lua , http.lua etc... I have no idea how to build something I trying a lot with VStu

Two of the same commands give different result (output as utf8)

I have a .bat file that contains two commands: SQLCMD -S . -d "databaseName" -E -i "path_to_query1.sql" -y0 -s "|" -f o:65001 > outputPath1.json SQLCMD -S

Get pixels of a recyclerView item

I'm wondering if it's possible to get the pixels of an item of a recyclerView, let's say I have an horizontal recyclerView and all the items are the same size (