Latest Questions

Using CombineFn instead of CoGroupByKey to handle hotkeys

I have a two very huge PCollections <KV<Long,XYZ>> and <KV<Long,ABC>>. I need to create a PCollection <KV<XYZ,ABC>> which I

How to create numpy array for a dataset?

I've a dataset of almost 3k colored images each of dim 1920x1080 and I want to store it in a numpy array so when calling shape on it in returns (3716,493,491,3)

Is it possible to setup live typescript type checking in Vscode virtual workspaces

I am using Vscode to edit my typescript projects in virtual workspaces which I am connecting to through SSH FS extension. Whilst benefitting from the convenienc

H2 database error for SQL Server prod DB "BOOLEAN" and "CHARACTER VARYING(5)" are not comparable

SQL Server has bit type column to store true and false. In where clause we check column_name = 'false' it works fine on SQL Server (dev and prod env) but it fai

How to add page numbers with their own overlay background to PDF using Ghostscript?

I want to find a way how to add overlay page numbers on PDF pages with motley background. The problem is that if I use a usual approach like this: (pagecount.ps

I Installed Odoo 14 but when i run the terminal it shows odoo 15

I installed Odoo 14 but when i run my terminal it shows odoo version 15. When I try to Install the module Hr_payroll it throws the following error. <data nam

Kafka Consumer - Point to specific offset in Spring boot Kafka

I'm trying to seek the offset to some specific offset. It seems I need to use seekToTimestamp and there is no seekToOffset or something. I've research a lot but

Problem while plotting in grouped date values in R

I was trying to plot the max values from a dataset with x-axis = Date and the y-axis = max_value grouped by Stations, like the picture I found on this link, but

Genesys Pulse - Adding a Custom Statistic to a Template

I'm trying to add a custom Statistic to Pulse Web. This statistic is currently used in CCpulse and I'm trying to replicate it in Pulse Web. From the documentati

PHP PDO Sort Function error codes: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256'

i am trying the sort operation in function but i am getting the error given below. I'm leaving the function codes below error: Xdebug has detected a possible in

jq - Get objects with latest date

Json looks like this: cat test.json |jq -r ".nodes[].run_data" { "id": "1234", "status": "PASSED", "penultimate_status": "PASSED", "

jetpack Compose with Coil not loading URL images

New to Jetpack Compose and Coil, but not new to Android or Java/Kotlin. I'm not able to show images from a URL...Something basic missing? I took the Google/Andr

Mockito+Kotlin+SpringBoot, `when` section doesn't mock, but invoke method meant to be mocked

I'm trying to modify existing test of kotlin+springboot project. Mockito.`when`(serviceA.getData(anyString())).thenReturn(data)// existing mocking Mockito.`when

jQuery Month picker dropdown dialog misaligned when zoomed in or zoomed out a webpage (refer the 3 images given)

Observe these three images. zoom 100% zoom 110% zoom 90% you can see it live here, just open any monthpicker dialog & perfrom zoom-in zoom-out. My questi

Deploy angular universal on IIS 10

I am trying to deploy angular universal on IIS 10, I followed this article https://www.thecodehubs.com/how-to-deploy-ssr-angular-universal-to-iis/ This is my W

Linux find xargs command grep showing path and filename

find /folder/202205??/ -type f | xargs head -50| grep '^Starting' There are 20220501 20220502 20220503 and so on folders... This command searches all first 50 l

How to make people go towards a specific patch and avoid certain patches on the way to the destination?

I am building an evacuation model for my university lecture hall. The problem I am facing is that the people always walk over the gray patch that is not suppose

SwiftUI App crashes after second continuous open

I have a working SwiftUI app with a start animation that appears to sometimes cause it to crash - this happens only when the user quits the app completely right

Exception Handling using a Constructor (JAVA)

I'm currently working on a project in which I am to ask the user to input 2 numbers, divide them, and then throw an exception if the denominator is 0. I feel li

How to use Solana Wallet Key to sign TX for ArweaveJS

Is there any way to use a Solana wallet keypair and load it into the JWKInterface as per the node_modules/arweave/node/lib/wallet.d.ts and then create an Arweav

Watson Assistant call transfer. vgwActTransfer not working

When I add a vgwActTransfer to a dialog node in Watson assistant to transfer the call, it just hangs up. Here's the how I have it currently: { "output": {

print current directory in bash command inside cloud build yaml

So i want to print the current working directory after reading the git tag of the commit example : /demo /test /prod So when a tag contains verxxx-demo the inl

Grouping elements in loop using React Native

I'm listing events with their start date+time. This works well, but I want to group the event by their dates as events happen on the same day. I want to do this

I made a user database of Online-users in Firebase database using in activity first but when i use intent to go to other activity , it vanishes

I want to maintain online-user firebase db throughout the app, not just an activity. in onCreate() i'm building the fire db and in onStop() I'm removing the use

R efficient Drilldown chart with loop using Highchart

I bring you a problem in which I have found myself when doing a job. I need to perform a 'drilldown' that contains around 100 columns and I am running into an e

Cast Issue with AWS Glue 3.0 - Pyspark

I'm using Glue 3.0 data = [("Java", "6241499.16943521594684385382059800664452")] rdd = spark.sparkContext.parallelize(data) df = rdd.toDF() df.show() df.select(

How to create Line string in google Maps like Here Maps?

this code is to create linestring in Here Maps, I tried to find the same thing in google maps but I couldn't this.GetCoordinates = function (polyPoints) {

GTK treeview: disable highlight when selected

I try to disable highlight on a row when it is selected for a GtkTreeView widget (default is blue background and white text color). I tried to change the STATE_

AWS Enviroment fails to connect with the Database

I've created a simple Spring Boot application in IntelliJ and tested the connection with the AWS database, which gives me no error. After creating a mvn clean i

How to fetch redis cli set json and fetch from Get Api Spring boot redis?

I want response from redis cli to postman as this http://localhost:8585/api/home/getBestTrainerBasedRating [ { "trainerid": 28, "rating": 5.