Latest Questions

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":

Is it possible to use latest OWASP CRS rules in CloudArmor

CloudArmor appears to use OWASP CRS 3.0.1 rules which are now pretty dated (last update around 4 years ago). CRS is now on V3.3 and V3.4 is in development. Is t

How can I plot specific Excel data from two columns with conditions?

I have a huge spreadsheet of data that looks something like this: Date IDNumber Item 2021-05-10 1 Apple 2021-05-10 1 Orange 2021-05-10 2 Apple 2021-05-10 2 Gra

Is it possible to add a if condition inside tal:define?

I'm using python with Zope and I'm trying to create a variable with a if condition (if possible). I'm having a difficult time finding examples and resources onl

Catching SyntaxError from ast.literal_eval

I have the following code to evaluate some configuration values stored in a file: from ast import literal_eval for key, value in dict_read_from_file.items():

Is it possible to import data from ADLS to Dataverse using dataflow?

I need to get the data from data lake to dataverse database using dataflow.

How to project only the fields present in an array in MongoDB?

there is a document schema that has an array field called "updatedFields" which contains some fields names that you will find in "oldDocument" and "newDocument"

Invertible matrices - Convex or concave set

Is the set of matrices such that determinant is non-zero a convex or a concave set? GL(n)={X: det(X) not = 0}

Navbar isn't turning red when I scroll down

I am trying to make it so when I scroll down in my webpage it will turn the navbar red. when you are at the top of the page it blends with the background but wh

asdf fails node install with: permission denied error, how to grant it permission?

When i try to install a node version with asdf-vm i get the following error Trying to update node-build... ok mkdir: cannot set permissions '/tmp': Permission d

Firebase 502 Bad Gateway on Storage dashboard

Recently our downloads through Firebase Storage started failing with a 502 Bad Gateway error. We first noticed this in our apps, but later found out that the sa

Matplotlib: Transformation of coordinates

I've been struggling with this issue for a while now. I simply want to transform my data in display world, perform some operations, and then translate back to t

Not able to get data (node.js) from my client (react.js)

I'm not able to retrieve the data I'm sending from the client to the server. My react code is the following: axios.post('http://localhost:5000/post-entry', { da

How do I create a simple Helm chart from an Argo workflow?

Is there a recommended way for packaging a workflow into a Helm Chart? I am interested in generating a very simple test with no values (variables). I followed t

OAuth 2.0 flow using Keycloak with a back-end and front-end?

I'm working on a project that consists of: A back-end in Java (JEE project deployed on Wildfly) Front-end developed in Angular Keycloak for authorization and au

KOTLIN: Can I Call Multiple Class Methods Outside Apply block and Difference in Calling Methods Inside and Outside of Apply Block?

package com.example.learning fun main(args: Array<String>) { var person = Person("Ramu", 51, 50000F, 7.5F) person.apply{ name = "Sam"

Masonry JavaScript layout Disable and Reactivate problem with if

Can someone help me plz, I want to use masonry JavaScript when the screen is bigger than 800px and destroy/ disable it when screen is less than 800px. the probl

Cloud Armor Bypass?

Supposing I need to turn off Cloud Armor for a while. Will it be bypassed and traffic routed to the HTTPs load balancer? Or will the LB also be bypassed and tra

API cs-cart put request by react and axios

I use react in front-end and cs-cart API in back-end. In the following code I used axios.put() as follows: const data = JSON.stringify({ "test1": "val1" });

Sum of list values in a df, new column, values are objects

I have a df made of values from a dictionary. I can get rid of [], ',' and split it all in different cols (one col per number). But can't make the transfer to f