Latest Questions

ERROR "nonstatic member reference must be relative to a specific object

#ifndef WORLD_H_ #define WORLD_H_ using namespace std; class World{ public: friend class DoodleBug; friend class Ant; friend class Organism; i

Switching to normal mode requires Shift in addition to ESC [closed]

I have always used <Esc> for switching mode to Normal mode (from Insert mode). Now I have a new macbook and I need to use <shift-Esc&

Find rows with duplicate values in two columns where at least one value in one column is a specific value

So, I'm not sure how it works and I haven't found a sufficient answer by googleing (probably not using the right buzz words). So here it comes: Let's say I have

python - write to txt file. the problem: some file names are ok, some file names get error

for example: testdata.txt - is fine datatest.txt - fail it happens with a lot of file names, some names are just fine a lot of other names fail. examples on scr

How to set up multiple HTTPS connections in Java

I'm using HTTPS to connect to web services. The problem is that I need to connect to 2 web services and then they have different certificates. In this class the

Unable to create @manyToMany realtion ship in mikro-orm

I have issue with my @manyToMany relationship in mikro-orm framework. I created this entity: enum NotificationCategory { REPORT = "report", PARKING = "p

Visual Studio Code (version 1.67.1) --- Quick Actions Issue

I was facing a issue in Visual Studio Code, version 1.67.1 (updated recently in 2022) --- Issue is that i have quick action active, but its giving very limited

Error cannot find "%>%" when knitting to html?

Sorry I am quite a beginner with R: It runs in the R-markdown, but when I want to knit it to html, it gives this: Error in pdb %>% filter(human, canonical_ma

AWS Amplify 503 error when using Next.js getStaticProps revalidate

I have tried to use Nextjs getStaticProps function on a page and deployed it on AWS Amplify. However when I gave the option 'revalidate' AWS cloudfront occurred

WPF Binding in textblock does not work but in its tooltip does

I have a weird issue. In my application (witten with C# .net framework 4.8 with Microsoft's MVVM toolkit) I have a ListView bound to a BindingList<VisualMach

how to multi-select by label using playwright's locator.selectOption

I've got a multiselect <select> element where I want to select more than one item via the label. I know it is possible to multiselect by value. <selec

What factors could cause bad_alloc?

I was writing an AVL tree implementation but got an error due to bad_alloc on another platform. However, the code works perfectly for me in CS50 IDE without any

del builtin not functioning on list

So I'm trying to create a program that deletes the cells in jupyter notebook that are code cells and delete go into the cells that have the word solution and re

How to monitor CPU and RAM consuming by a .NET Core application

I am working on an ASP.NET Core Web API application in which I am working with the files security. I want to monitor the maximum and minimum RAM and CPU consump

ALB host based routing without domain name

I'm trying to configure host based routing in AWS ALB for ClearML server using this tutorial. However, I don't have a domain name. So can I only use alb's dns f

R error message output goes off the slide in beamer presentation R markdown

I'm using R markdown to make a beamer presentation. When I try to include an error message output from R on the slide it goes off the page. Here is my code: ---

Not able to attach Role via AWS Cloud9

I am new to Cloud9 and following this URL to setup Kubeflow in AWS. Unfortunately, I am not able to attach the role to the user as mentioned in this URL. Could

Argo workflowtemplate timeout

Tried Argo Workflow template with both timeout and activeDeadlineSeconds and this template also has retryStrategy. In both case, timeout are applied for each ru

Debugger executable not found error in CLion

I'm new to using CLion and when I try to debug I get an error saying Debugger executable not found: C:\Program Files\JetBrains\CLion 2021.3.3\bin\gdb\win\bin\gd

Summing row values after a groupby but based on a dictionary condition?

I am trying to figure out how to add row entries of the numeric columns(supply,demand) . I am at a complete loss. My initial thoughts are to do this with a dic

Is there a way to vectorize seq() and grep() to use on conjunction with dplyr?

Apologies if this is obvious, I don't have much experience with R. I have a function contains_leap_year(date1, date2) that I want to pass in as a condition to d

Java Stripe : How to Complete an "Incomplete" Payment

I'm using PaymentIntent to make a payment. I specify the customer that has all the billing info, but the payment is specified as "Incomplete", I checked this ST

'Manifest...' error when loading deployed Gatsby site on Amplify

I have a Gatby/Material UI website that I just deployed on AWS amplify and it seems like the CSS is not loading on the first render. If I click a button that ro

Retrieving values based on other values (dataframe) - how to make my code more efficient?

So after much trying I've managed to get something a bit closer to what I intend to do. Scenario is as follows, a dataframe with many columns of which one conta

packer unable use filter to pick the correct image-id (amzn-Linux2)

I am trying to use packer to create a new AMI. I want to use the base image as "ami-03ededff12e34e59e" ( Amazon Linux 2) I am using the following filters : data

hello I am getting an error that shows up in discord modal it tells Something went wrong. try again discord.js

Hello I made a mail command which would take message from modal and send it to a mentioned user but it gives this error in modal window and does not log anythin

How to run a command after Tailwind JIT compiler ran a build in watch mode?

Context: I need to run a command every time Tailwind's just-in-time compiler ran a new build in watch mode. To be more specific, I need to rebuild Drupal's cach

Is it possible to create MKUserLocation programmatically?

I tried to do it this way, but this is wrong. let meMarkerDot = MKUserLocation() meMarkerDot.coordinate = location.coordinate //Cannot assign to property: 'coo

Simple Flutter Slide Left Animation?

I want some nested UI widgets to slide into a Column, from left (off screen) to right (on screen). The Column has an Expanded with a "flex: 4" and a Container.

ElasticSearch can't get multiple suggestor values from the same document

Can you help me please? I have a problem with Completion Suggester in ElasticSearch Example: I have this mapping : PUT music { "mappings": { "properties":