Latest Questions

Build a CRUD App with React Hooks and the Context API

I want to build a CRUD App with React Hooks and the Context API. my problem is in the EditUser component. when I click on edit button to edit user it doesn't sh

What does duration [] mean when used in Prometheus UI Graph

In Prometheus when the below query would mean fetching all samples observed during 5m period and then perform the rate calculation with those samples and the th

How to enable Tailwind.css for Storybook in a Nx workspace Angular library?

I've created an Angular library in Nx workspace to provide ui-components (ui-kit). To this library I added Storybook which was working fine. Now I also want to

How do you get the tracking number for each shipment in a Shippo batch process?

I have successfully created and purchased a batch shipment using the shippo endpoints const batch = shippo.batch.create({...}) and shippo.batch.purchase(batch.o

extract image from stamp pdf annotation on PDFViewAnnotationHit notification

I want to know how I can extract image from Stamp Pdf annotation when PDFViewAnnotationHit notification triggered. We have pdf notification when we touch pdf an

Add row number column to a reactive data frame in Shiny

I am trying to add a row index column to a reactive data frame created on-the-fly from user inputs. I am able to do this outside of Shiny using the tibble::rowi

Tinyproxy causes login loop with label studio

I'm using tinyproxy as a forward proxy to proxy request to label studio. I can access the app. However, when I try to log in, the app keeps on redirect me back

Node.js Postgresql problem querying database using 'pg' module

I'm trying to insert data into a 'users' table inside a postgresql database using the 'pg' NPM module. But when I make a POST request, the transaction executes

How to handle map product not found in react dropdown

I would like to handle unmatch result in the code highlighted in bold below. Currently, it will use GraphAPI to get the information from AzureAD. if product mat

Latex expressions in pandas dataframes not rendering in vscode

I am trying to set some labels and the caption of my dataframe using mathjax, but it doesn't render in vscode. For example, when I do import pandas as pd test =

How to speed up integer nonlinear programming with 1446 variables in python Gekko?

I'm solving an integer nonlinear programming problem with python gekko, where there're 1446 integer variable, 31 constraints of the linear combinations of there

Vagrant error (from C:/HashiCorp/Vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/action/runner.rb:89:in `block in run')

from C:/HashiCorp/Vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/providers/virtualbox/action/import.rb:13:in `call' from C:/HashiCorp/Vagrant/embedded

Object passed by server cannot see the function in a class

I am passing an object from server and I cannot see it pass functions. here is my code. const express = require('express'); const app = express(); const path =

How do I take the users input and have the program loop that many times for a for loop? [closed]

How do I take the user's input for how many legs are on the trip and have it loop that amount of times? int counter = 0; int gas = 0

Can't save video to Application directory - Flutter

I am working on an app where I want to record a video to file with the timestamp as name. As I understand it you should be able to use the returned XFile and us

A Function That Check for Complete Cases in Several File Fail When Specifing A File Range

I have created a function that checks a string of CSV files for complete values and creates a table with these values. The function takes 2 arguments, the first

Check if a list is defined and avoid the "UNDEFINED" error

In the original TI-BASIC (for TI-83/84+) is there a way to check if a list has been defined? Currently calling dim(⌊LIST) will return an error if the lis

WPF Drawing Wheel Color Picker?

I'm have try drawing color picker by Ellipse LinearGradientBrush. <Ellipse Width="200" Height="200"> <Ellipse.Fill> <VisualBrush Tile

How to split csv comma separated value as single row in a new column using pyspark

I have a log file in csv which has a column contains a list of filepaths separated by comma. I want to split those filepaths into new rows using pyspark(or exce

How can I access camera and take photos within my R Shiny App? [closed]

I am willing to make my Shiny App accessing the camera and take photos every 5 seconds in the background. I do not want to see the photos on t

Tweepy Stream Error "Stream encountered HTTP error: 403",

i have elevated access and turned on OAuth 1.0a, therefore i have access to the Twitter API v1.1. I try to stream specific keywords, however i always get the er

Java For Loop Repeating Sequence Triangle Program

Can someone help me write the program in Java that prints the following triangle? I'm having trouble coming up with a solution. Example User input: Enter increm

How to get data from one controller by calling it from another controllers in Express without circular dependencies?

I am building an API using express js. I have structured it so that each data model (e.g. user, organization, etc.) has their own modules as such: router - vali

Type error for tfrecord when training my Dl model

I am trying to create the train records for training my dl and I am using the following commands to change the XML annotation files and images to the train file

How to fix: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_80_nts_x64'?

I get this error while attempting to run a php command from cmd.exe on Windows 10 pro. Looking in the ext folder, I can see I have the dll. I also have this li

Add column containing status to table based on number of occurrences

My SQL table contains two columns: Order and Order Line. Now I would like to add a third column (Status) to my table to indicate whether it's a single or multi

Wordpress | echo attribute_name and _value

I am using flatsome theme and i have a theme action hook called flatsome_product_box_after. Basically he is located after the product picture on my Shop Catalog

Parent Process Directory not recognized by the Icon and Background Image fields in Windows Terminal

Windows Terminal version 1.12.10732.0 Windows build number 19043.1645 Issue Forgive me if this has been addressed already somewhere else, but I realized that wh

Multiple processes running bash on a ssh server

When I run the "ps" command, I can see all the processes I'm running, but for some reason, there are two identical processes(except for the PID ofc) running bas

How do I ensure assets are present with Rail 7, cssbundling-rails, jsbundling-rails in test mode (RSpec)?

I'm upgrading a large, commercial (proprietary) Rails 6 application to Rails 7. We never used Webpacker, and are instead going directly from bundled gems for th