Latest Questions

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

Running shell command that has nested quotes via ssh

I have this following shell command: ssh user@host "df | grep /dev/ | \ awk 'BEGIN{print "DISK", "%USAGE", "STATUS"} {split($5, a, "%"); \ var="GREEN"; print $

how to pass outlet context to nested route in react router v6

I am using react router dom v6 how can I access the context in a nested route in the second child <Routes> <Route element={<Parent/>}>

Is there any way to enable/disable a annotation by property in Spring Boot?

I have some property file like: application.properties enable.test.controller=true enable.cross.origin=false I want to enable/disable some functions based on t

Postgres - How to surround parameter value with single quote

I want to delete data from the Postgres table which are older than n days. For which I am using the below-stored procedure, I want to pass n days via parameter,

How do I set custom tracer in ModelCamelContext?

I am implementing simple camel application using camel 3.14.0. I start using modelcamelcontext. But there is below exception during setting custom tracer. 2022-

tkinter creating buttons in for loop passing command arguments

I am trying to create buttons in tkinter within a for loop. And with each loop pass the i count value out as an argument in the command value. So when the funct

'Could not load the progress of the import' PhpMyAdmin Import Issue

Quite simply, I'm trying to import an SQL file into PhpMyAdmin (I've tried two different SQL files so far) and I get an error saying 'Could not load the progres

How to convert city name to coordinates in JS?

Is there a way to convert city name into coordinates? Openweather api provides access to historical data but i need to have "lat" and "lon" coordinates instead

How to force to open a google play link in google chrome instead of the Play Store app?

In my flutter application, I need to force open a google play store link through google chrome and not through the play store app. How can I do it? It is possib

Dart snapshot generator failed with exit code -6

I am trying to make a Android build from Android studio for flutter app but getting below error. How can I resolve the issue? Current flutter version: 2.10.2 &#