Latest Questions

is there a better way to add a list of integers containing users id as serialized json string to SQL as one record?

I'm working on a Blazor app that's similar to Facebook groups, I have to make a notification function where users can receive a notification message when someon

Spring Data Elasticsearch query all indices

I can GET http://localhost:9200/_all/_search?q=query to search all indices for the query string. However, I can't find a way to do this using spring data elasti

Text showing behind logotype and menu

I'm a complete beginner, trying to make html and css work for me, and I need help! I will have a go at describing my problem in English. In my top left corner I

Java VTDGen VTDGenHuge, get details after positionning with XPath

I have the following xml file : <?xml version="1.0" encoding="UTF-8"?> <ns:t xmlns:ns="http://www.myaddress.com"> <ns:cs> <ns:c

Is there any way to show in the inspector a scene with the possible zones to spawn the player?

I'm trying to make an intiutive inspector to select a scene and the possibility of select a "zone" as well to the player spawn position in the scene selected. R

What's the correct way to send PARAMS when using HttpClient.SendAsync()?

I have an application that is using a remote API. That API requires that I send PARAMS before it will accept the request as valid. Currently I send x-www-form

Retrieval of highest value of a column and their dates

I have done code in MySQL to get the highest deaths value country-wise with their reporting date in MySQL. I am being able to get the highest deaths value but t

Gutenberg blocks and page templates

I developed a pretty complex site with many different page templates, where I echo a lot of custom post-type content, as well as ACF flexible content. Now I wou

Moving Agent A to Nearest Agent B and from their to another nearest Agent B on GIS

So I have an agent vehicle and another agent shop of about 10 on GIS. I have another agent warehouse. So I have placed the vehicle at the warehouse and want it

Delete an element at a specified index, return untouched list if given negative or 0 as an index

Hi I really am needing help with this Prolog problem. I want to delete an element at a specified index but only when given an index that is greater than 0. If t

i want to make urls

1.Link is "https://www.xyz.{country}/dp/{asin}" 2.I have to pick two things from csv file which country and asin. CSV file contains : Asin Country 0

Simplification code to avoid if else division problem

I would like to make an optimisation by avoiding to use theIf else i used this element because when E = 0in the logic of my probelm B = [0 0 0 0 0]. By consequ

Polymorphic list elements in Spring configuration?

Is there an easy way to have polymorphic list elements in a configuration? E.g. for the following application.yaml: Vehicles: one: type: Bicycle id: 4

Error installing pyQt5: error: metadata-generation-failed

I was tring to install PyQt5 and a get this error: note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generati

Subset rows of a table if they contain a specific character vector

I know this is a common question and I've read through many other stackoverflow entries but I am still stuck, apologies! I'm a beginner to R (still!). I have an

Sort List<Object> by month name in Java

I am having following data in ArrayList in Java. I am trying to sort it by month in a year. It should sort by December, November, and so on. I have tried differ

Threading and Tkinter - How to use the threading module with my simple example?

I don't understand how to use the threading module properly. In this example I have two tkinter widgets, a button and a progress bar. The progress bar (configur

What is big O of this pseudocode?

For this pseudocode, what would be big O of this: BinarySum(A, i, n) { if n=1 then return A[i] // base case return BinarySum(A, i, n/2) + Binar

What is an undefined reference/unresolved external symbol error and how do I fix it?

What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?

Additive deserializing with Serde

I'd like to additively deserialize multiple files over the same data structure, where "additively" means that each new file deserializes by overwriting the fiel

How to post multiple images to mastodon using api with bash curl

I'm starting to learn to use rest api via bash curl by writing a simple mastodon bot. I can attach multiple images using curl https://example.com/api/v1/statuse

Assign value only when key is a valid property of a type in TypeScript [duplicate]

I have a type, e.g.: type Output = { fieldA?: string; fieldB?: string; } And I have an object, e.g.: const input = { fieldA: "A", fie

How to upload into and download from SQLite database doc file in C# .NET?

I have decided to develop desktop program with usage of SQLite datatbase and with help of C# programming language. One of the necessary functions that must be p

Permission denied when trying to open a PDF file (in the default PDF viewer) from an Android app

My app has "Files and media: Allow management of all files" permission. However, when I try to open a PDF file LogCat reports the following errors: 2022-04-20

I get error when running npm start in vs code

(node:6852) [LRU_CACHE_OPTION_maxAge] DeprecationWarning: The maxAge option is deprecated. please use options.ttl instead (Use `node --trace-deprecation ...` to

Can using volatile affect the behavior of simple property checking system?

I'm maintaining a project where someone has suggested that we make some variables volatile. I'm trying to understand if it's needed at all (or could be needed).

object segmentation using mean shift

i have this image: I am interested to do segmentation only in the objects that appear in the image so i did something like this import numpy as np import cv2 fr

conda package on Nexus Repository

My company uses Nexus repository as npm proxy for package management. Does anyone have experience using Nexus to hold Conda packages (Python) and for proxy? In

Clojure - How to connect to MongoDB/DocumentDB via TLS Connection using Monger

I am not able to connect via TLS and monger to an AWS DocumentDB database. I downloaded the PEM file from AWS and added it to a new keystore file keytool -impor

is installing mongodb on cpanel reliable?

CPanel says that it does not support mongo installation but I can install it manually. My question is should I install it or just subscribe mongo atlas and conn