Latest Questions

Expression does not evaluate to a constant

I've just started to learn C++ and I don't understand this error: std::string AFunction(const std::string& str) { size_t s = str.length(); char inP

Flutter http request not accepting headers but it works on postman

I am getting a really frustrating experience. Am making a post request to an api, works well on postman but refuses to work on flutter. Here is the error respo

Yarn workspaces monorepo with Firebase functions failed to initialize

I am trying to set up a monorepo that firebase functions will be able to require some shared logic from different directories - as for now I have a setup that w

Django many-to-many relations

I'm trying to create a web app in which users can participate in some groups (every user can be part of multiple groups), and I want to be able to make both que

It seems Phaser 3 throws "animationcomplete" notification twice for a single animation, how do I make it one?

I'm confused about the 'animationcomplete' notification. I thought I would receive the notification one time when the animation I listen finishes. It turns out

Java Swing - How can I make a frame "mandatory to interact with"?

I'm making a game in Java Swing. Every time the player levels up I display a new frame on top of the one containing the gameplay which has some options on what

Remove item from Nested list Java Stream

I'll appreciate some help with this please. Assuming I have "bookingId": 4, "flights": [ { ... "fl

Symfony doctrine specify fields in ManyToOne to improve performance?

For example i have a simple entity "Cars" with a ManyToOne relation "Brands". class Brands { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\C

What causes the difference between angular 8 and angular 13?

I have a piece of code of custom component. Here are related code: @Component({ selector: 'scrs-tab-container', template: `<ng-contnet></ngcontent>`

Iterate Opening a List of URL's with Selenium

I am having trouble iterating the action of opening a list containing URLs using selenium. the issue is in the part labeled #Second Part in my code. linklinkfin

Why am I getting NANs when concatenating a Data Frame with a Series

I have a Pandas Dataframe ('a') and a Series ('b') both with timeseries index (weekends excluded). I am trying to concatenate them. Both of them start with the

Lookup value in Query

I'm trying to replace the local variables i've declared below to capture them in calculated columns. So the [YTD] column would look up Today's Date - 1 and retu

Flutter Firestore StreamBuilder and ListView.builder() how to show index number

I have a collection called users from Firebase as users. I can list the users in this collection. but while listing, I want to print these users to the list wit

How to build unhashed files in a 'dist/' folder with ParcelJS (v2)

I'm trying to bundle some scss and js files into a dist/main.css and a dist/main.js file using Parcel (v2). I don't want any hashes within the file names (just

How to get group and group attributes in Keycloak

I am using Spring Boot, Bitnami/Keycloak:latest, java 11. I want to get the group and group attributes before the request reaches the controller because I need

How to update Jetpack compose UI by override method or outside the function

I am converting my older XML UI as per requirement. in there, I am unable to update by Jetpack compose UI by my override function. In some research I see many w

Android Studio Bumblebee emulator problem

I'm using M1 MacBook Pro. I recently upgraded Android Studio to Android Studio Bumblebee. When I want to run the emulator, it's just loading. I deleted virtual

Bat file to to run a group of text files in sequence

I am new here and I am having a bit of trouble obtaining my desired output. I have a locked down system with no Powershell etc and I need to manipulate some txt

Redux store data being reset upon "getServerSideProps" being called; not persisting

Overview: I have a TypeScript NextJS project that I am using Redux-toolkit with to manage state. My file structure for my Redux store and pages are as follows:

Learning MySQL with PopSQL and wanted to carry on with a tutorial but I cant connect to my database. Error 1049 No connection

I opened PopSQL and the there is a red dot at my connection. If I go into it and test it, it tells me Unknown database 'giraffe'. I opened mySQL and typed 'show

Schedule Selector when creating events

I want to prevent the user from being able to select multiple times when creating the event, but I don't know how to do this, for example, when an event is at 1

SQL query how to find the average number of rental books for each quarter

I am trying to find the average number of rental books for each quarter. Rental(RegNum, DateBorrowed, DateReturned) Books(RegNum, BookName, Category) What i am

Retrieval after serialization to disk using gob

I have been learning about databases and wanted to implement one as well for learning purposes and not for production. I have a defined schema: type Row struct

Switching from sdk 29 to 31. I get this error

I'm trying to upgrade from sdk 29 to 31 I am getting this error: Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodExcep

Porting Xamarin tutorial over to .NET MAUI

For my first ever mobile app project (which will eventually become an actual commercial project), I would like to try out .NET MAUI. Unfortunately since it's s

Running subprocess.Popen in a compiled script has a significant delay

Edit: In this specific example, Python 3.8 is being used on Windows 10. I need to run FFprobe through subprocess.Popen so I can capture and parse the output. If

How to convert rss to json for medium posts

I am trying to feed my website with my medium posts but I am not able to convert rss to json. So for this, like medium says I am trying to make this call https:

Xcode 13.3.1 showing Build input files cannot be found error after changing my device

I recently changed my device from iPhone 8 to an iPhone 13 mini and tried to run my app on it but xcode is failing and showing me Build input files cannot be fo

problem in importing images in flutter using image.asset()

I'm constantly getting this error saying: The following assertion was thrown resolving an image codec: Unable to load asset: ../images/mall.png Even though th

React router 404 Error On (Litespeed Webserver)

I am building movie app, initialize with create-react-app. I am using react-router@5. I get 404 Error when route url on production (on Litespeed webserver) but