Latest Questions

error: request for member is of non-class type string & char

this is my Node Structure; class Node { public: string data; Node *next; Node *child; }; Node * createList(string *arr, int n) { Node *head = NU

when using vue-router all things goes well but there always has error when I click the nav items?

enter image description here when i click nav items there has an error, but the application goes well! <a @click="$router.push({ name:'my' ,param

Table relationship problem for an competition program (tennis/Padel)

I am trying to make a my first relationally table structure for a tennis/Padel competition program that registers the scores (sets.)of dubbel matches(4players).

Symfony + Laragon, debug toolbar not working

Symfony version: 5.4.8 Project works fine but debug toolbar is all time retrying to load... But if I start project with symfony serve and access localhost:8000

Converting a splitted objects of object to array of objects

I have this form of data coming from an API and I want it to convert into different structure in JavaScript . [ { "1": { "id": 1, "coinname":

Modifying equations that use INDIRECT() inside ARRAYFORMULA()

From what I have read, it appears that INDIRECT() does not function with ARRAYFORMULA(), however have seen some custom workaround solutions fo

How to generate a map with clusters in Python

I have this dataframe below and I would like to know how I can make a graph similar to the one I inserted in the attachment. Can you help with some material or

Hide Plotly Dash Sunburst Hover label

I am unable to hide the label, division and parent from hover tooltips path=[pune,division,taluka,village] value = df['Project Count'].tolist() fig_sunburst = p

Set mongoose schema with changing fields

I want to make a mongoose schema that will append timeseries data. I got the idea for that model after reading this (https://www.mongodb.com/blog/post/schema-de

Which relation in MongoDB is better?

For my whole projects I have relationed my multiple collection as this. User model Name:string, email:string, password:string, vehicles:[{ "vehicleId", "vehi

Merge partial pickle files to get back my original pickled model

I have pickled a RF model on my machine and its size is of 360Mb, Now I want to upload it to GitHub but I cannot do it by file upload nor by the terminal, I tri

java.lang.stackoverflowerror error in recursion

I've been trying to print the numeric pattern 4,5,9,18,34 through recursion but I'm getting java.lang.stackoverflowerror error. Here is my code for your referen

How we can access and save object value of foregn model as default value, if the field is empty while saving the related object model?

class ObjectSEO(models.Model): object= models.ForeignKey(Objects, related_name='seo', on_delete=models.CASCADE) meta_description = models.CharField(max_

How to avoid overflow of a bootstrap card image in card-body?

I am using bootstrap cards and I could manage the card image from overflowing outside the card area but the bottom of the image overflows in the card-body regio

C# MVC Route to different Controller map

I have 2 routes. 1e route for normal pages. 2e route for my json response controller (api with session auth) public static void RegisterRoutes(RouteCollection r

Drop duplicate IDs keeping if value = certain value , otherwise keep first duplicate

>>> df = pd.DataFrame({'id': ['1', '1', '2', '2', '3', '4', '4', '5', '5'], ... 'value': ['keep', 'y', 'x', 'keep', 'x', 'Keep', 'x'

Why can I add named properties to an array as if it were an object?

The following two different code snippets seem equivalent to me: var myArray = Array(); myArray['A'] = "Athens"; myArray['B'] = "Berlin"; and var myObject =

Word2Vec + LSTM Good Training and Validation but Poor on Test

currently I'am training my Word2Vec + LSTM for Twitter sentiment analysis. I use the pre-trained GoogleNewsVectorNegative300 word embedding. The reason I used t

My python code in my if statement will run even when false [duplicate]

My code yes = input("my input: ") if yes == "yes" or "yEs" or "yeS" or "Yes" or "YEs" or "YES" or "yES" or "YeS" or "Y" or "y": print("cor

How to upsert object in Mongoose Array?

I want to edit an array with mongoose, if the object id already exist in the array, then it will create a new one, and if it exist, it will update. My code: con

How to make two markers share same label in Matlab plots

I am building a MATLAB script to add two markers for a single label similar to below in Python. How to create two legend objects for a single plot instance? and

How do I delete images that are not used in the database?

I have written scripts that check images in a directory and in a database. I need to delete images in a directory that are not in the database. How can I do thi

Changing theme type with MUI createTheme, palette type

In createTheme function on MUI, in the palette section there is a "type" option. I have created two different palettes with type options dark and light as you c

Gap glitch between navigation bar and table view only on iPad

This issue does not exist when my app is run on the iPhone, and it also doesn't exist in the simulator, but whenever I run the app on my physical iPad this weir

Error initializing graphdriver installing docker on Ubuntu 20.04

I tried to install docker on Ubuntu 20.04 with the following commands: sudo apt update sudo apt install apt-transport-https ca-certificates curl software-proper

Plain code chunks for R input in knitr output

Goal In an R/Markdown document that I want to convert to LaTeX I want to set knitr options so that the entire document uses plain code chunks for all code input

onPressed from MaterialButton were trigged when the page from initialRoute

There're two buttons from my WelcomeScreen, when this page is loaded, two buttons will be pressed automatically. two buttons were used by the external widget"Ro

Installing GHCup vs vanilla GHC for haskell

I want to run Haskell programs(Mostly compiling binaries) but I don't need the other, dare I say, bloat along with the compiler. I just want to install the comp

Using ImmerJS to update child (by id) within a parent (by id)

How do I update the content of child12 using immerJS const [fields, setFields] = useState([ { name: "Parent 1", id: "parent1", child