Latest Questions

Unable to run npm install in a gatsby project

I'm working on a project where I'm unable to run npm install as I'm getting the following error. npm WARN deprecated [email protected]: Critical security vulnerabili

Custom Alert works only once

I have created custom alert with Modal in react native but it renders only once. This is my component import {Text, View, Modal, TouchableOpacity} from 'react-n

Error /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found

firstly, I google'd a lot but nothing I found related to my case, I have an ELF executable file I'm trying to run it in my Ubuntu WSL, I've changed the permissi

Switch wireframe to shade all

After a long search and unsuccessful attempts, I ask you to help me here. I need a python script that in maya will switch wireframe to shaded (key 5:smooth shad

Find last available date if date does not exist in other DataFrame

Suppose that you have two data frames which can be created using code below: df1 = pd.DataFrame(data={'start_date': ['2021-07-02', '2021-07-09',

How to update key values by append the existing one for the record in MongoDb collection

I have a Collection allRecords as {'name':'tom', 'subjects':'Physics'} {'name':'jerry', 'subjects':'Maths'} I have one json file is testData.json as {names:",t

shortest distance between a point and a rectangle based on numpy implementation

Goal: For a point a and a rectangle B, I would like to calculate the shortest distance between these two objects. Motivation Because this calculation is part of

is it possible to write an es6 onChange arrow function?

What's the correct syntax for the onChange es6 function? function myEvent(e){ console.log(e.target) } <select onChange=(event)=>{console.log(event.ta

start_time__c field of custom object is not working in trigger i don't no what to do?

I have to do this:- If an attendee has registered to parallel sessions (Sessions happening at the same time/overlapping sessions), then a checkbox (Registered_T

Correct way to create a software install script which can manage dependencies

I'm currently working on an university research related software which uses statistical models in it in order to process some calculations around Item Response

Getting "error while generating package metadata" when installing TkFontAwesome

I'm trying to install TkFontAwesome using python -m pip install tkfontawesome, but always get the following error: Collecting tkfontawesome Using cached tkfon

Arrays sorting Program

you are given a stream of integers represented by an array[ ] of size N. Whenever you encounter an element arr[i] , you need to increment its first occurrence (

Jest test does not find provided route

Started working on a new application and decided to write tests from very early stage to avoid any future mistakes. However, little bit struggling I guess with

i can't seem to understand a C code to sort a linked list of data

i have been given a code to sort a linked list that contains links (we call them maillons in french, sorry i don't really know how it's called in english) of Op

Automate end date depending on session type (=duration in calendars days), start date AND if bank holiday?

I am developing an automated calendar for a school on AirTable, but I am struggling to add if there is a bank holiday between the start date and end date. If th

Generating multiple labels for documents

Currently, i am working on a task where we are scraping pages from web and trying to generate labels for each webpage. For that, we have extracted the text data

Error when parsing redis aggregation reply. redigo: unexpected element type for Strings, got type []interface {} on reply position 4

I use redigo to use redis in golang I have tried to use group with reducerTOLIST but I got the following error: Error parsing Aggregate Reply: redigo: unexpect

Use an array as chart values

I need an array with chart values, I obtained one but after exiting from the function it became blank, here's what happens: Example function AddvotoTec(voto

node.js get https no responding 504

I am trying to make an https request in my backend node.js web app. I have the following code: const express = require('express'); const https = require('https'

Matching values in different datasets by groups in R

I have the following two datasets: df1 <- data.frame( "group" = c(1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5), "numbers" = c(55, 75, 60, 55, 75, 60, 5

Remove appData after uninstall Electron app

I want to remove the appData after my app was uninstalled. The deleteAppDataOnUninstall: true option was useful when i run the uninstaller.exe,but not work when

How do I check if variables of two different turtle breeds match?

I am trying to move a turtle towards it's offspring based on a shared variable. In my initial code I ask a male (breed) that has a display, but not a bower, to

Xpath using using random.randint(2,8) always identifies the first item using Python Selenium

Working on a random question picker from a codechef webpage but the problem is even when i am using random value of i, it always clicks the first question. Code

Prometheus Compaction Issue

We are facing an issue with the Prometheus due to compaction in an OKD cluster 3.11. We have observed that Prometheus is not able to delete the .tmp files. The

Cannot replace or delete the response to Slack slash command

I'm building a Slack bot that handles slash commands. I'm following the Slack documentation https://api.slack.com/interactivity/handling#message_responses and m

Javascript regex on array

I currently have this example array: array = [1.2%, 16%, 9.0%, 8%] I want to get the highest number so I did this: Math.max.apply(null, array); But it shows a

problem in Downloading brownie software tried pip and pipx method not work

File "C:\Users\ASHU\AppData\Roaming\Python\Python310\site-packages\pipx\main.py", line 779, in cli return run_pipx_command(parsed_pipx_args) File "C:\Users\ASHU

Flutter - Why is there a windows folder in my app?

I have a folder named windows in my Flutter app. It's also causing some C++ and other files to show up in source control changes. Is it safe to delete this fold

A react app inside a monorepo (lerna) package causing conflicting 'react' package

I created : A reusable react component package, and A react app for testing the component Both of them are inside a monorepo (lerna). The problem is the "react"

Active Directory replication between multiple controllers fails

I am coming to the forum because I have a big problem with the replication of my domain controllers. I explain the situation: Context : I have 2 local sites con