Latest Questions

how to secure nest js server on Heroku, I would like to know if the strategy I am using is secure or not

I am hosting my nest js server on heroku. I am using authGuards in nest js to validate the request using accessToken passed by client with the request (this acc

AWS CLI: Error parsing parameter 'cli-input-json': Invalid JSON received

I am trying to pass a json file as parameters to a aws cli command but am greeted with an error:Error parsing parameter 'cli-input-json': Invalid JSON received.

Indexing object with a generic key

First time I've run into this issue so apologies if the title doesn't make sense, couldn't figure out a good way to word it. I'm working with an API that return

Issues regarding the 'rails new' command

I am encountering issues when creating a new application on Ruby On Rails. Whenever I get create a new application on Ruby on Rails, my file was not created suc

How can I show more than one picture on the screen in Magnific Popup gallery?

I have added Magnific Popup gallery in the web page, it works. But it is necessary to show more than one picture on the screen in that gallery. It must be a big

My output not showing the full numbers but showing ?? instead

I'm trying to do benchmarking with JMH, the benchmarking result did come out but not perfectly Somehow there's ?? in the numbers, is it the problem with my IDE

How to consecutively count everything greater than or equal to itself in SQL?

Let's say if I have a table that contains Equipment IDs of equipments for each Equipment Type and Equipment Age, how can I do a Count Distinct of Equipment IDs

Vault Transit migrate to another server

I have a Vault server with Transit engine enabled, now I want to migrate the server to another location/hosting, Ho do I export/import existing keys?

Reactive Redis only one thread is used in a webflux service

In a Webflux server, detect function first looks up 2 redis hash value, and then do a heavy CPU calculation using the redis returned value, and then save result

Explicit lifetime annotations toy example

I'm trying to figure out a Rust lifetime issue and after boiling it down a bunch, I realized that I have no idea how I would explicitly annotate the lifetimes o

How to best handle dependencies on topics, services etc to gracefully handle startup and error recovery? (ROS2)

Is there a standard approach we should be using to handle dependencies on topics and services? Our system has a number of nodes and some nodes provide interface

Replace `process.env.XXX` with environment variables

I am building a React app where I need to use environment variables set in .env within javascript files hosted under the public folder (e.g. /public/sw.js). Ide

Convert DocumentReference property into String from Firestore

I have a list of elements (Tickets) and since I can't convert the json because of one property (in this case user_id) being a document reference, how can I achi

How to Override get_absolute_url in Django for different Fields?

I want to make the method get_absolute_url to be dynamic with different class based views. So if in a template where it displays a list of all the articles in t

Using java keytool to encrypt imported paswords with PBEWithHmacSHA256AndAES_128

I am looking to store sensitive passwords in a java keystore using java keytool's importpass. I am using Oracle java version 1.8.0_212, and cannot upgrade from

RASTER TO VECTOR : WriteVector from terra package leads to fatal error

I have this sampled code that I tried on RStudio these last days : library ('terra') binar <- rast("C:/Users/BIC_/Desktop/21_binarisation_SWIR.tif") poly_ra

How do I use variable in a query selector - js?

What am I doing wrong? there are 7 pictures with pre-made IDs from "img1" to "img7" function changeWidth() { let b = 50 let k = 0

Nest JS Circular Dependency Issue - Mongoose Module

I am trying to inject dependencies in mongoose module for root async. I want to kind of simulate a cascade delete using mongoose hooks. I have this module, whic

How to enable the Raspberry Pi 4 to work remotely?

Anyone knows how to operate the Raspberry Pi 4 remotely? So that I don't need to always connect it to a monitor when I want to use it. My Pi is Raspberry Pi 4 w

NodeJS FTP not throwing error when trying to delete non-existent file

I am working with ftp-npm and I am currently facing a weird bug... I have a method called refreshStore that contains this part of code : c.delete('/pathToMyFile

Empty Object when deserializing ViewPort object with ServiceStack

I'm having an issue since I migrated to the latest version of GoogleApi (by Vivet) After analyzing I have identified a problem with deserializing the ViewPort o

MUI DataGrid onCellEditStop returns old value

I am trying to use an editing API from "@mui/x-data-grid" and simply have editing on the cell and retrieve the new value. When I use onCellEditStop={(params: Gr

VBA to duplicate large dataset using array

I have data on sheet A and want to duplicate it on sheet B. Because it is a lot of data, I do not want to use copy-paste. If I really simplify it, this is my co

GoLang html template if condition

I made a web app in Go which search for a query in a mysql database. Everything works fine, but I do not know how to obtain following: if there is no result in

Filter in calendarView

How can I filter the list to the selected date of the calendarView My error in in line *emit(it) private fun getFilmsDbFlow(resultDb: ResultDb): Flow<Results

Runnig Python in Atom on MacBook doesn't work any more

I have installed and set an Atom on my MacBook. I have installed packages like a script, atom-python-run. I have installed the latest python from their official

How to do a take query with Query Builder?

I have a one to many relation on database. one productKind have many Product ProductKind.ts @Entity() export class ProductKind extends BaseEntity { @PrimaryGe

Merging CSVs into one sees exponentially bigger size

I have 600 CSV files of size ~1Mo for a total of roughly 600Mo. I want to put all of them into a sqlite3 db. So my first step would be to merge them into one bi

Unauthorized Error when I want to delete article with authentification (jwt)

I've created a route called login and another one function(middleware), if the authentication is good, this can be redirected to the delete route but unfortunat

Download a specific folder from on-prem GitLab

I have an on-prem GitLab with a huge repository with many folders. I'm trying to create a freestyle Jenkins job that would only retrieve the folder from the rep