Latest Questions

Do I need to cleanup files created by tempnam() myself?

I created a bunch of tempnam() files for use during my request. Do I need to specifically unlink() them when they're not needed anymore, or will PHP / the syste

Can't find specific single user email query in Mongodb database?

API response show all user data in database to website UI const [product, setProduct] = useState([]); const [user] = useAuthState (auth) useEffect(() => {

While logging in through admin in Apache superset it redirects me back to login page

I installed apache superset v1.4.1 successfully without any errors on my work machine(aws instance ec2 ubuntu 20) when i try to login through admin it redirects

$_SESSION array is empty after redirection - Wordpress

I have a WordPress page template themename/template-payment.php <?php /** * Template Name: payment */ session_start(); ?>

how to apply a format on multiple excel files at once (hide gridlines & autofit columns)

I'm trying to apply a specific format on an iterate excel files, i need to hide the gridlines and autofit columns width, i tried many codes and styles but no on

createEffect logs reactive updated signal, though dom is not updated with the reactive property

I think this time I've reproduced my issue here. I am using this create_delayed function from previous question, now the createEffect in elevate function logs t

ScyllaDB: Schema vs. No Schema?

On one hand, ScyllaDB markets itself as a wide-column database which implies that a single row can contain any number of columns and the number of columns don&r

Issue in moving nodes under new node

I am facing an issue rearranging the nodes in given output structure. Company1, Company2, Company 3 is static. These won't change. So I need three of them in SC

Convert binary key to ASN1(PEM) format

Given a private key; generate a keyfile that contains both the private and public keys. Given a public key; generate a keyfile that contains only the public key

i have this exception "org.hibernate.tool.schema.spi.CommandAcceptanceException:

this is my code package com.examplesector.choosesectors.models.Entity; import lombok.*; import javax.persistence.*; import javax.validation.constraints.Size;

Python's tqdm progress bar in IDLE

I have problems using the Python tqdm progress bar with IDLE. Instead of displaying a dynamic progress bar, as it happens in Jupyter, IDLE prints new progress

Minified js file has unicode symbols like A-Za-zÀ-ÖØ-öø-ʸ̀֐ࠀ῿‎Ⰰ-﬜︀﹯﻽ which is breaking code

A third party minified js file that I am using for my project has unicode symbols like "A-Za-zÀ-ÖØ-ö&Atild

CV2 cap.set(1,idx); cap.read(), Does it Read Frame idx or Frame idx+1

In CV2 will this chunk of code read the frame for the given frame number or the next frame? desiredFrames = [3,5,7,n] cap = cv2.VideoCapture("somefile") for id

PHP: reading and parsing a nested JSON file

I want to use a json file as a kind of database. In it I have categorized file names and now I want to read them via PHP. { "settings": { "prefix": "pix", "

How get two joined tables from database in Spring Jpa?

I have two tables, joined each other. How I can get from database both of them using Spring data jpa? Code as below, @Entity @JsonNaming(PropertyNamingStrategie

Separate field name and value from long line in python

I have python custom data like this: (item_id[s]-b2tc34x;item_name[s]-Fan Blade;item_price[i]-2450)(item_id[s]-b3td42h;item_name[s]-Fan Cable) note: parentheses

Iterate Object and replace values

I have this Object: { "data": { "success": true, "historical": true, "date": "2022-01-01", "base": "MXN", "rates": { "COFFEE": 0.021

Rest API call for kubeflow in GCP

I have a pipeline deployed through gcp cloud based Kubeflow. Now I want to manage the pipeline from outside the google account i.e from different google account

Is layer_activation (register_forward_hook) the same as gradient?

I was wondering if the intermediate layer output initialised by register_forward_hook is the same as the gradient of the intermediate output wrt the image?

Filter a Component from a textbox VueJS

Can we show and hide a component based on textbox value? I saw v-if can do conditional rendering, but when textbox is null, nothing appear. And when i any chara

Intermittent (time dependent) error when using Node Package rate-limiter-flexible in Express Node.js application

My overall goal is to apply the basic logic of the package "rate-limiter-flexible" for my Express Node.js application. I've gotten the basic functionality with

Why object is not null in below java code? [duplicate]

In below code the answer is "kjl". here the object is assigned to null. Why object is not null here? public class Main { public static voi

cURL and shell task

I am using gulpfile.js in my project to download files and it is working fine. var shell = require('gulp-shell'); gulp.task('folder_xyz', shell.task('curl --out

list of strings exist within a list of dict keys?

I have a list of strings: ignore_list = ["new job", "encountered error", "SLA"] and a list of dictionaries: ticket_list = [{"Title": "new job to action", "Leve

Passing innerHTML value of ID as the ("string") reference for getSheetByName()

I making a schedule app with pages for each day of the week. There are pages for Mon-Fri. Each page pulls info from their corresponding sheet also labeled Mon-F

Add 1 hour to time from user input

I'm coding a script that asks the user for a time (24 hour format), and then adding 1 hour to the inputted time. Later on in my script, I add the time that it g

no validator found for custom annotation and validation for enum springboot java8

Getting this error HV000030: No validator could be found for constraint EnumChecker validating type MyEnum Check configuration for ‘myenum’. Using t

My JavaScript code is memory leaking, but I don't know how to fix

I have a Discord bot written in Nodejs (JavaScript), but I run into a memory leak issue recently. My code is using ~10GB memory, and it keep increasing. I run p

Read edgelist of directed Graph

I am trying to apply different clustering methods to my networkx Graph, which is quite big (2631 edges and 2179 nodes). For that to work I would like to build/l