Latest Questions

How to plot a Sequential Bayes Factor as participants are added

I am currently analyzing eye-tracking data using the Sequential Bayes Factor method, and I would like to plot how the resulting Bayes Factor (BF; calculated fro

Pad a number with leading zeros in JavaScript [duplicate]

In JavaScript, I need to have padding. For example, if I have the number 9, it will be "0009". If I have a number of say 10, it will be "0010

How can I update the value from the database in React

When I edit the form here, I need to show the value in the database. so how can i get this value const dataValue = ndata.filter((obj) => obj._id === dataid )

Azure DevOps Server 2020 - Publish Artifact ignoring File Copy Options

We have a build pipeline that's been working for a year or two. This builds and creates a few artifacts - ASP.Net web application, windows services, etc. The is

How to make grid sytem resposive in tailwind css

Hello hope are you well! I am working on a component Vue.js, and I am used utility class tailwind CSS to styles. Based on my task, I have to created a div as

Trying to add touch listener to a clipped image

Hi I have tried to cut a square/rectangle image to a circular one using the ClippingNode in cocos2dx but when I try to click on the clipped image and try to get

Coloring row when condition is met

I am trying to color the cell when condition is met and valid value for package of a product is found in another column in a different sheet. There is a problem

Alter table add column if not exists in MySql

I need to make an alter table via migration on a node:14 server with umzug. The code is : IF NOT EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_

Variable in library path with JMeter is not working

My JMeter plan config looks like this: as you can see from the picture the mypath variable has a default value /somehwere which may change based on the machine

Is there any way i can load my inline and external scripts in WordPress plugin for AMP site?

I got stuck on loading scripts in amp sites (WordPress). I have built a custom plugin and it's working fine in WordPress but in mobile amp view, the scripts are

getting syntax error while executing yo command, here i have attached the output

click here to see yo command output highlighted and the error, i tried to install yo using command npm install -g yo Please help to come out of this issue node

dockerfile --platform option of the FROM instruction not work

Docker version: my base_image with multiple architecture:  Dockerfile: I use FROM --platform=linux/arm64 ${base_image} to force use the arm64 image bu

cors issue in post request while deploying laravel inside docker

I have a laravel app which is running behind nginx proxy manager. The laravel app is running inside a docker container and nuxt frontend is also running inside

Export metrics of ClearML to Prometheus and show them in Grafana

Are there any metrics I can get from the API server? or any docker image I can point to the backend and get some metrics? Most important is the see how many tas

Phaser 3: Call function from another class

I have create updateCanvas() function in file a.ts: export class loadscene extends Scene { textures1!: any textures2!: any textures3!: any constructor()

Flutter project debug is stopping in my Redmi note 9 phone

Launching lib\main.dart on M2003J15SC in debug mode... lib\main.dart:1 Plugin project :firebase_core_web not found. Please update settings.gradle. Invalid depf

Plot percentage change figure with 95% CI and stats

I am planning to reproduce the attached figure, but I have no clue how to do so: Let´s say I would be using the CO2 example dataset, and I would like to

How to resolve Excel not removing duplicates?

Probably a dumb question, but I'm having an issue where Microsoft Excel is successfully finding duplicates and SAYING its deleting them in my CSV file, but not

Why does EF insert the same Guid Ids in different fileds?

I've a Page entity dependent on Investor entity as investor creates a page: public class Page { [Required, DatabaseGenerated(DatabaseGeneratedOption.Identit

how do i change the payload in a pcap file with python

i am trying to change the payload in a *.pcap file with python without success. for example, after reading the first packet as show in the code attached ,i try

Logging the "begin" event in serilog-timings

Nicholas Blumhardt's Serilog timigs (or on the GitHub: serilog-timings) is a convenient tool for logging the duration of different operations. However - at lea

Can DBT directly connect to Google sheets?

we currently have a DBT instance that sits over our Google BigQuery data warehouse. Now we've recently been asked to incorporate some data from Google Sheets in

Inline index addition in gams

I want to use an index equation to iterate over a tensors, whereas I always want to extract the value at index i and index i+1. An example: Variable x; x.up = 1

LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Deploy Spring-Boot Application on Wildfly

I am trying to deploy a Spring-Boot Vaadin java application on a Wildfly server with a .war. Unfortunately I always get this error message: 2022-04-28 00:23:18,

Rename several columns using start with in r

I want to rename multiple columns that starts with the same string. However, all the codes I tried did not change the columns. For example this: df %>% renam

How to plot multiple chart on one figure and combine with another?

# Create an axes object axes = plt.gca() # pass the axes object to plot function df.plot(kind='line', x='鄉鎮別', y='男', ax=axes,figs

Flutter unable to build app for android 12

I am trying to build my Flutter App to support Android 12. It works fine up to Android 11, but is not supporting Android 12. I trying to add android:exported="t

Setting state in useEffect hook does not change state value

am writing an app in react native and i got a problem with useState and useEffect hooks. I would like to change increment state value by one every 10 seconds. H

Fetch after clone from mirror re-downloads everything

I have a local mirror of a remote repo, and a working copy cloned from this local mirror. Now I do fetch on this working copy (against the remote) and expect it

React - Module parse failed: You may need an appropriate loader to handle this file type 6:15

Help me with this error: NPM run error my webpack setting: module.export = { module: { rules: [ { test: /\.js$|\.jsx/, exclu