Latest Questions

Gitlab pipeline failing on "Cleaning up project directory and file based variables"

I have a Gitlab pipeline that is failing when it attempts docker build (using Kaniko) I am yet to do a successful docker build BUT this particular error has sta

How to avoid repeating the same 'else' statement in multiple nested if/else?

In the code below, 'else' is same for all 'if' statements? Is there a way to have just one 'else' statement, rather than repeating the same code in all 'if' sta

Usage of Multiple JMS Connection Factory

I have written a JMS Listener class which will listen almost 100+ queues, once after processing, it sends back message to Response Queue again. Register this li

Podman Non-Root "Error setting up pivot dir"

First time posting on StackOverflow so please be gentle! I'm setting up a new RHEL8 server to run Podman. Previously, I've done this on a pretty vanilla server

Assertion `argc >= 2' failed. Abandon (core dumped)

I'm traying to calculat the multiplication of tow matrix using OPENCL with C: ` #include <CL/cl.h> # include <stdio.h> # include <math.h> # in

Storing and retrieving access token when using Client Credential Flow in .Net

I m using a client credential flow to access the API. I am getting the access token each time client make a call to Web API which seem to me may not be good but

Match variable value to array's index to get month

example of getDepart date format getDepart = 2022-04-29 desired result 29 APR, 2022 const getStringDepart = () => { const months = ["JAN", "FEB", "MA

How to read a C struct (or Numpy record array) into a Polars Dataframe?

I have a binary file containing records from a C struct. I would like to read that file into a Polars Dataframe. I can accomplish that as below, but I'm wonderi

Request a full access keys from the user on near protocol

I am writing an application on near, and I need the user to be able to deploy a smart contract from my application, but for this I need to request the user for

R: Labels not displaying at a ggplot2 graph

Given this R script: library(glue) library(ggplot2) ir.data <- read.csv(file="~/apps/mine/cajueiro_weather_station/sensor_data/temperature_data.csv", header

Getting an error while sending the "sendkeys" in appium server

In appium server , am trying to send the keys inside the text box , where am facing this trouble Call to 'sendKeys' failed [element.sendKeys("hello")] Error res

Reorganize files in Salesforce DX project

We have an existing salesforce 2GP package that follow the default directory layout with components in main/default. I would like to break that up into feature

How to call enterprise SAP Conversational AI(Chatbot) API with OAuth (Postman)

we are trying to call SAP Conversational AI(Chatbot) API with OAuth using postman but we are getting an error as Unauthorized Pre-requisites Client ID. Client S

When I try to open MAMP in windows it throws error "install .Net core"

After installing MAMP in windows, when I open it, it throws the below error. "To run this application, you must install .Net core. Would you like to download it

Java regex repetition not allowed inside lookbehind

I am looking for a way to split a string after every 3rd comma. I have found an old answer from 2013 Split a String at every 3rd comma in Java which I think is

How to test webflow website without publishing

My client built the website using webflow but there is a bug in there. I tried to find a way to test the code (console.log etc) but seems like the only way of d

return value cannot be used in this context at begin

Create function getallWeekDayorWeekends ( @givenDate as date, @choice as int ) RETURNS Table as BEGIN if(@choice = 1) return (SELECT cast(DATEADD(DA

Azure AD restrict users to login if not assigned to aplication without user assignement

We want to use Azure AD as the authentication mechanism for our project. To do that, in our organization Azure AD, i have registered an application for our proj

AWS Lambda Function Direct Post Payload Always Null

I'm trying to use Lambda Functions (C#) with the Function URL for direct access. In postman I'm sending a basic json body that matches the class properties in m

Someone could help me with this exercise for beginners in neo4j,why it returns me anything?

The schematic is: The question is:Who are the friends of the friends of Claudia My code: MATCH (a:Student)-[:friend]->()-[:friend]->(b:Student) MATCH (a

How can I add a conditional within my model that changes a model field based on a previous fields value?

Using Django/python. So I have a 'food' model that is taking multiple user inputs, one of which is 'type' and has the options of 'fresh' and 'pantry'. Another i

UWP App will not build using windows-latest (windows 2022) on Azure Pipeline

I am trying to build a UWP app using the latest version of windows for my vmImage, currently the build script looks like this: Build script Code # Universal Win

How to do if else condition on Pyspark columns with regex?

I have a pyspark dataframe event_name 0 a-markets-l1 1 a-markets-watch 2 a-markets-buy 3 a-markets-z2 4 scroll_down This dataframe has event_name column EXCL

Android camera intent

I need to push an intent to default camera application to make it take a photo, save it and return an URI. Is there any way to do this?

Pytest does not find my tests in Poetry project (VSCode finds)

I've just created my first Python package using Poetry using the usual poetry new mypackage command. My problem is that pytest does not execute any test when I

Can we create ksql table from topic together with topic data?

I have a db connector, which will detect the timestamp column update on my user table on my database and push it to my kafka topic. Thus, my kafka topic will ke

Mongod Active: Failed (code=exited, status=217/USER)

I am using ubuntu16.04 on VPS. It has been migrated to another company's VPS and is in use. nginix works fine and my node application works fine. When the mongo

Cannot create leases container (Gremlin API) with /id as partition key, but comos db trigger requires /id as partition key

I am trying to create a cosmos db trigger for Gremlin API, since the trigger requires partition key as /id, I am not able to create it either from settings in t

How to save a UUID in SwiftUI using @AppStorage

When using @AppStorage("navigationWaypointID") var navigationWaypointID: UUID? I get a No exact matches in call to initializer. I can work around by using a St

Entries are outputting mutliple times

My entries field is outputting the correctly selected FAQs multiple times? I have an FAQ structure which has my Questions and Answers. I then created a Entries