Latest Questions

Gatsby v4 - Joining Author Details Into a Post [closed]

Using Gatsby v4. In my blog posts there is a field author. There is a separate authors file which includes details of the blog post authors -

How to save audio as File in flutter and send it to a flask server?

I'm trying to send an audio file (.m4a) to a flask server in my flutter app. the audio file is recorded using FlutterSoundRecorder package and saved to path "au

Assign variable a value oustide a listener in Kotlin [duplicate]

I'm kinda new to Kotlin and Firebase. I have this problem and I can't figure out why it happens. I'm trying to get the Firebase Cloud Firest

How to skip endpoint from middleware processing in asp.net framework

I created an owin middleware for asp.net framework. I want to mark some endpoints (methods of controller) to skip them from middleware processing. For asp core

WooCommerce automatically add variable product to cart based on another product variation

Bear with me - I'm a newbie. Here's what I'm trying to do: if [product A/variation 1] is in the cart then add [product B/variation 1]. I need help setting up a

Combine @Component and @ConditionalOnBean into one annotation

I want to combine two Spring annotations into a single one. More exactly I want to combine @Component and @ConditionalOnBean into one annotation named @SubCompo

Importing extra API data via importJSON + usage of data from json in formulas

I have made a google sheet with support of Tanaike. It is fully functional but I want to change something in the input and also a colum resulted in another form

How to run npm start without opening browser for react development on linux

I am learning react and find myself running npm start on the terminal a couple of times but its annoying how it opens a new browser window everytime. I'm tryin

Computational complexity of finding (not necessarily contiguous) longest zero 'subarray'

I understand that there are efficient algorithms to find contiguous zero subarrays of any given 2-dimensional array of numbers. Is there an algorithm for findin

dplyr get linear regression coefficients

I'm wondering if there is a better way is to get linear regression coefficients as columns in dplyr. Here is some sample data. mydata <- data.frame( S

My customAdapter for recycler view is not working

What is the problem causing the recycler view not to show? MainActivity.java import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widge

Open other webiste in new tab alogn with my website

I have a website-1 (www.example.com). When a customer reaches out to my website, the other website-2 (www.example2.com) should be open in a new tab correspondin

Finding max consecutive 1 in a given array (leetcode)?

class Solution { public: int findMaxConsecutiveOnes(vector<int>& nums) { int ctr = 0, max = 0; for(int i=0; i<nums.size(); i++)

Why Response.Redirect causes System.Threading.ThreadAbortException?

When I use Response.Redirect(...) to redirect my form to a new page I get the error: A first chance exception of type 'System.Threading.ThreadAbortException

pdf.js get password-protected file content

I want to retrieve the content of a password-protected file as a File object using PDF.js library. I tried to get the raw data from the promise and convert it t

How can I validate two fields like password and confirm password in Struts 2?

I am doing web application in that I want to validate two fields in the JSP form. In registration filed I have so many fields. In that I want to validate passwo

Live data observer triggered twice on fragment created

The issue that I have is not actually bug or big problem. And all works as it should, but nevertheless it annoys me. In Fragment pbserver: viewModel.pageNumbers

Entity Framework : invalid object name "TableName1"

I have a problem with Entity Framework, I think I have a problem defining the one to many mapping, but I can't seem to find it. When I try to save my changes an

How to determine the total freespce of the db PostgreSQL

How to identify the total size of the db (Used) and the total size of the db. for the total size of the db (Used) : pg_database_size('dbName') cmmnd works. But

AUTONOMOUS_TRANSACTION in DB2 Luw

I have an application migrated from oracle to db2. There is a package defined where some of the procedures are using pragma autonomous transaction to maintain s

Cordova Android: Can I get any information on underlying Java/HTTP exceptions

I have an Ionic/Cordova Android application that is deployed on various different client internal networks, where the application connects to a http service run

React - prevent calling useEffect for the first mount [duplicate]

I want to prevent calling my useEffect on the first mount. how can I do this? I want the best practice. I don't want to use if condition impor

How to see what package a function comes from?

How can see from which package a function (or some other object) originates? For example the function take!()

failed to deploy solana smart contract (solang compiler)

I run: Solana-keygen new --force solana airdrop 5 I have a solidity smart contract that looks like this: // SPDX-License-Identifier: MIT pragma solidity ^0.7.0;

"java.lang.IllegalStateException: TableMetadataFactory cannot be used before it is started" running Gunit tests

When running Gunit tests for ClaimCenter using the following command and tomcat running we get an error related to the TableMetaDataFactory. call ant -f Gunitte

Error when trying to download species models in R with ebirdst::ebirdst_download()

I've requested an access key and set it. Sys.getenv("EBIRDST_KEY") returns the correct key. ebirdst_download(species = "Sharp-tailed Grouse") returns an error

showing image from 4k video

Hi i'm using opencv to read the frame of a 4k video: ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('frame', gray) but it do

Failed to build h5py on mac M1

I am trying to install AlphaFold in a python virtual env. While trying to install dependencies, I get this error: ERROR: Could not find a version that satis

Seeing timeouts in HAProxy dashboard, but no latencies seen on application side

We have been facing a weird issue lately for our GRPC service. During some time period, we're seeing significants numbers of timeouts on our HAProxy dashboard,

How to disable cursor when hovering over angular component?

I currently have a horizontal mat-stepper component which can be found below; The user is currently able to go back to the previous step by clicking the "Back"