Latest Questions

React: filtering a todo list based on button clicked

I'm new to React and currently working on a to-do list app. Currently, I'm able to add, delete and edit the to-do list. I have a problem filtering my to-do list

Netsuite data-view not working on other file

I'm trying to move header logo from header.tpl to header_menu.tpl <div class="header-logo-wrapper"> <div data-view="Header.Logo"></div> &l

What's the best practice for Python multiprocessing to write to a shared dictionary?

I have millions of NumPy arrays that I wish to process, ultimately generating a collective histogram plotting the frequencies of seen integers. I wish to utiliz

denormal exception in gdb debugger for gfortran

I'm compiling with gfortran including the compiler options -g -fbacktrace -ffpe-trap=invalid,zero,overflow,underflow,denormal This has lead to an executable tha

error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory

I am trying to run an Android emulator in a Docker container. /opt/android-sdk/emulator/emulator -avd "Android_API_29" -noaudio -no-boot-anim -netdelay none -ac

Use Go to encrypt message with ssh-rsa public key which then can be decrypted using openssl rsautl -decrypt

I have been trying to solve this for days. In Go code I am looking to take a ssh-rsa public key like: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGnnY4LuLq7Bs7VnFk2V

Time series Forecasting with Daily values

I am doing forecasting with auto.Arima with uni-variate data but my forecast is not correct. I have used all the steps correctly but the point forecast value is

Why does 'around' work but 'area' doesn't in Overpass Turbo?

I have the following overpass turbo query: [out:json]; area[name="Zagreb"]; ( node["tourism"~"museum|gallery"](area); node["amenity"~"cafe|bar"](area); ); o

npm install --timing not saving full debug log

I'm running npm install --timing, and when it completes it will output something like: npm ERR! A complete log of this run can be found in: npm ERR! /Users/

Mat-Option selected option based on patch value from api subscription

In my case i have several controls with mat-autocomplete with mat-options. in which the same form is handled for new entry creation and edit an existing entry d

copy text onclick from <p> tag

<div class="d-flex flex-row justify-content-between"> <p class="mb-0 me-1 py-2 ps-4 add-text" id=

Javascript functions stop working when using import at top of script, even without trying to use what's imported

I'm trying to recreate a simple program of mine using lit instead of just basic js, but adding import statements seems to break every function. Things seem to w

C# properties and "tostring" method

I was trying to understand properties better and I came across this page with this example: https://www.tutorialspoint.com/csharp/csharp_properties.htm using Sy

Adding Python 2.7 to an app packet after macOS 12.3 does no longer include Python

Last year I got a PortJump packet from Codeweavers for an open source Windows software, not knowing that it uses Python 2.7 supplied by macOS < 12.3 only (P

Bad Request | CSRF Token Not Found | CSRF Handling for Flask WTF

The Issue I work for a couple of simple volunteering organizations helping with management and running campaigns, but we needed a system to track peoples hours

Create a date object in a specific time zone and convert it to UTC in JavaScript

My application is currently storing the date and time of a particular event in the following format: date: 2022-05-06 time: 00:00 // (12:00 AM) Each event's ti

How to determine the winner in a race?

I have created a program that places several nodes (which act as animals) on the screen; they're supposed to race eachother. Animal.js is the parent object of t

Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code

I am running a react application and it shows the following error: Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in yo

What is the right way to measure server/client latency (TCP & UDP)

I am sending and recieving packets between two boards (a Jeston and a Pi). I tried using TCP then UDP, theoritically UDP is faster but I want to verify this wit

can not generate resource nestjs : typeScript

I am getting this error: TypeError: Cannot read property 'properties' of undefined Failed to execute command: node @nestjs/schematics:resource --name=post --

Spring Data JPA: how to make one to one relationship with SQL Server JSON column

Spring Data JPA: how to make one to one relationship with SQL Server JSON column? Class EntityA { long id; @Type(type = "json") @Column(columnDefinition =

How to do a for loop in html(razor) using c#

Hello guys i am trying to create a table with all information i have taken from an api in .cshtml.cs and to show them in the html page. But i can't quite figure

Measure compute shader execution time in Unity

Is there a way to measure the execution time of a given compute shader in Unity ? I thought to "artificialy" add a compute buffer in this compute shader and mak

Heroku deployment with Git fails with 504 Gateway TImeout

Due to the recent problems on Heroku´s Dashboard, I am trying to deploy directly my app through Git as stated here: https://devcenter.heroku.com/articles

How can I detect image artifacts?

I need to make the script that will return True if image contains visual artifacts that look like gray clusters of pixels Kind of artifact that I want to catch

Create role only if FindInMap value is present? / What to do if Mapping doesn't have values for some keys?

I have a role that I want to create only if there are entries for the given keys in the Mapping. The confusion comes when I have no values to put in for certain

kafka and parallel consumer: why order is important into a microservice architecture

I started to dive into kafka ecosystem. I was surprised to find out that by default, each consumer only digests one "event" at a time, sequentially! It's given

how to build libxml2 for Android NDK

I try to compile libxml2 for android ndk but I get this error: libxml2-2.9.8/include/libxml/encoding.h:28:19: fatal error: iconv.h: No such file or directory Y

Adding 2nd fxml within pane of 1st fxml

I'm brand new to javafx so apologies for the basic question! My question is how to add a 2nd fxml inside a pane from the 1st fxml. I've got a mini program here.