Latest Questions

Symfony: how to add a serializer group on a Route depending on logged in user's roles

I'm using JMSSerializerBundle in my entities definition, and RestBundle's annotations in controllers. I have an entity with public and admin-protected attribute

querydsl cannot find symbol error in spring boot mongo

I'm trying to use @querydslpredicate and tried to add all the dependences and plugin for the same <dependency> <groupId>com.quer

Connecting filebeat to elasticsearch using docker: Connection refused

I am new to the forum as well as elk stack. I tried setting up the elk stack using docker.I was successful and then I added filebeat to the compose file. Ever s

How can we extract a next numeric value to a string in python

There is a need that I have a taken a output in a string such as string is "Initial: [818 v1] any other string or words here" and here I want to take 818 from t

Is there a possibility to remap Heroku PORT environment variable to another name?

I need to deploy an existing web application to Heroku using Docker and it expects the port to be passed as APPNAME_PORT and not PORT. I know I can rebuild the

Is it possible to rename Teams in Laravel Jetstream?

In the old Laravel Spark (now Spark Classic) you could utilise a configuration method Spark::prefixTeamsAs('bands'); a new project I'm working on uses the new L

PSPDFKIT adding stamps to each page

Checking through the trial for using this framework for my client and while I can add a "received" stamp on a single page there doesn't seem to be a way to add

Docker bash shell script does not catch SIGINT or SIGTERM

I have the following two files in a directory: Dockerfile FROM debian WORKDIR /app COPY start.sh /app/ CMD ["/app/start.sh"] start.sh (with permissions 755 u

Python Seaborn and Pandas Data Presentatation in Graphical Form

I was trying ML in python. During the process I had to come across seaborn.pairplot or other plot function and pandas.plot functions. To be simple I'm putting t

Angular - Error: initial exceeded maximum budget. Budget 5.00 MB was not met by 197.06 kB with a total of 5.19 MB

When I was building my Angular-12 peroject I got this error: Error: initial exceeded maximum budget. Budget 5.00 MB was not met by 197.06 kB with a total of 5.

Accepting body with generic type

I'm creating a web API that accepts a custom object. This works when someone does a POST request in JSON format. But now I have someone asking if they can post

SoapUI specify alternate logdir as a property defined on the command line

I'm upgrading from SoapUI 5.4.0 to 5.7.0 and trying to put the log files in a specific directory. Note: The alternate error logs directory was working prior to

Go Ethereum Sending EIP155 Transaction

I am trying to send a EIP155 transaction using go but when signing i keep getting the error "transaction type not supported". I was wondering if i am doing some

Webscrap product price with javascript

im making a blog were i will show a product and all of it's prices on all the websites that sell this product, but i whant the prices to be up to date so i deci

Spreadsheet RegexReplace but exclude non-number

How to RegexReplace but only for number. I tried this formula, but it didn't go as I expected: =REGEXREPLACE(A2, ":<BR CLASS="""">[0-9]", ": [0-9]") Th

Why does howSum solution work in Javascript but not in Python? (Dynamic programming)

This is a follow-up to this question asked on Stack Overflow. Write a function 'howSum(targetSum, numbers)' that takes in a targetSum and an array of numbers as

Get value from object of unknown content by key in typescript

I'm writing function that'll return single value from object by key or return empty object if key does not exist. Code: //example data: const obj = { data:

How to iterate over rows of each column in a dataframe

My current code functions and produces a graph if there is only 1 sensor, i.e. if col2, and col3 are deleted in the example data provided below, leaving one col

Maximise a windows application using Robot Framework

I am trying to maximize a desktop application with robot framework. I read somewhere that i could use key combinations Windows + Up Arrow but how do i implement

Integrating Protobuf into Unreal Engine 4 (Linux)

I'm having trouble integrating protobuf (3.20.4) into UE4 as a static library and packaging for linux. The packaging fails with these errors : undefined symbol:

orocos ros integration, createStream causes execution to stuck in a loop

I'm integrating orocos with ros, basically i created a component that read data from some input ports and write on output ports that create streams, because i w

How to provide completely custom JSON for example in Swagger?

I have Java endpoint which receives json-deserializable object. Unfortunately, Swagger is unable to auto-generate good example for it. Is it possible to provide

How can I format price in javascript?

I have this PHP code below which can format product price. I want to do this same task with javascript. Is there any way to do this same task with javascript? P

.NET JsonDeserializer fails when I rename List<> property with JsonProperty

I'm trying to deserialize json that looks like this: { "Total": 1, "Page": 1, "Products": [ { "ID": "524c20a3-a8ec-44f2-9685-311f1f7d1498",

Not getting any test ETH from any faucet

not getting any free test ETH for the Rinkeby network from any of the faucets I know, such as rinkeby authenticated faucet= https://faucet.rinkeby.io/ chainlink

SharingMusicPlayer.swift:12:79: Cannot convert value of type 'AVAudioPlayer.Type' to expected argument type 'AVAudioPlayer'

This is what I have in my singleton: import AVFoundation import Foundation class SharingMusicPlayer { static let sharingMusicPlayer = SharingMusicPlayer(ba

Qt missing OpenSSL 3.x support on Ubuntu 22.04

I tried to build my application which uses QNetworkManager to communicate to a server. I did not have any problems on older Linux versions but with the newest U

unable to locate package "software-properties-common" docker image

I am trying to create an ubuntu focal image using docker file. I have this line in my dockerfile: FROM ubuntu:focal AS systemdependencies RUN apt update \

Revit failed to Load ImagePath

i try to Place a Temporary In-Canvas Graphic in Revit like this: var activeUiDoc = document.Application.ActiveUIDocument; var activeDbDoc = activeUiDoc.

BigQuery: Set expirationTime on Snapshot

I'm trying to create a BigQuery snapshot of a table with an expiration date 60 minutes in the future. It looks like I can't define a expiration time when creati