Latest Questions

Pyspark performance tunning - cache or not to cache?

I am trying to speed up the calculations from multiple operations that I am adding as columns in a pyspark data frame, when I found the sparkbyexamples article

UE4 How to make character face direction of the movement

G'day, I'm new to coding in general and I was wondering if there was a way to make the character face in the direction of movement using blueprint coding, I kno

tail recursion count, split & get the prefix of a list functions

Language: Scala I'm working on some tail recursion questions in Scala. (GOAL) A function that counts the number of ones in a list. The function takes a list of

Android: Automatically modify metadata of any new file(s) saved or downloaded

Is there a way to attach a piece of custom code to the Android OS which automatically deletes all the metadata of any new file(s) saved or downloaded (e.x. owne

Error message TypeError: this.subQuery is not a function appears

If I run the tests with jest, I got always the error message TypeError: this.subQuery is not a function with a reference on the marked line in the testModelDb.t

How to not count a swipe for a press in kotlin android studio

I'm building a game that when the user pressed in to first activity title screen it starts the game but I don't want to count a swipe as a click because the use

Vuelidate vue.js latest for vue3 using the helpers.forEach approach for array of objects

Using Vuelidate vue.js latest for vue3 using the helpers.forEach approach for array of objects. I tried running the form but the validation is causing an error

Docker Windows 10 installation Error Component CommunityInstaller.ExecAction failed: Process InstallerCli.exe exited

I get below error when try to install Docker Desktop for Windows 4.0.0 Component CommunityInstaller.ExecAction failed: Process InstallerCli.exe exited with code

How to override custom Jackson deserializer in child project?

In our company library (say lib-a) we have an interface: public interface MyInterface { ... } and its default implementation: public enum DefaultMyImpl imp

Glue Dynamic Frame Parse text file with ¶ delimiter

I have a text file which look like below. HDR¶20200101 BDY¶1¶Jimmy BDY¶1¶Something TRL¶123 I would like to parse it to a Glue Dyn

Frontend/Backend Serving on Ubuntu Server 20.04

I am working on my first web-project and therefore use an Ubuntu Server 20.04 with apache2. Now i struggle with the correct frontend/backend-serving of my websi

Upgrading Jest to v28 - Error Test environment jest-environment-jsdom cannot be found

Has anyone successfully upgraded to latest Jest version 28.0.0? I'm receiving an error: Error: Test environment jest-environment-jsdom cannot be found. Make sur

Changing key name of a dictionary by comparing while keeping key value python

I have a dict with two strings "Candy-one" and "Candy-two" as the key and Capacity as the key pair. I wish to replace the strings "Candy-one" and "Candy-two" wi

How to return all rows in a column when using cross apply and DelimitedSplit8K_LEAD together in SQL Server?

This code works to return the info that I need from the column but IT IS ONLY RETURNING ONE ROW and I need it to return them all. You can leverage the Delimited

how to get username and password entered in vaadin flow LoginForm?

How to get username and password entered in vaadin flow LoginForm? I know it is from e, but how? If this is not possible how can I extend the LoginForm and modi

Handling exception with Mono flow

I have a WebFlux handler as below. @Transactional public Mono<ServerResponse> submitOrder(final ServerRequest request) { return context.retrieveUser

Read the next column as translate after I find rhe word which I type

Hello everyone in this program I can find any word in a text file I want using Socket , but I need to write also the next column as translate and I don't know h

LinkedIn AdGroups API returning empty results

I am trying to GET campaign groups that are in an AdAccount using python API. I have generated access token from LinkedIn UI & it has a validity of 2 months

JFlex complaining about caret character

I'm trying to produce a simple standalone scanner with the use of JFlex. What I want to do now is to simply recognize the beginning of a line with the use of th

Auto generation of serial no. based on two criteria in Google Spreadsheet

If column C has the word "Matured", and D has a valid date, then formula in column E should automatically generate a serial no., one higher than the previously

why am i not getting the data from Rapidapi

i want to use rapidapi to get some data using redux, but when i console.log the data i will be getting GET https://coinranking1.p.rapidapi.com/coins/coins 401

I made my own strcpy function, but it is not working. How to fix it?

I attempted to make my own mystrcpy() function, which takes the same arguments as the standard function. It is not responding. The array does not get copied. si

child is not fully visible inside an "overflow-x: visible" parent

two questions in the example below: why grida is not centered horizontally -margin: 0 auto why cins is not fully visible - parent is overflow-x:visible .gri

how to alter reduce function so it produce different result

I have this array: data: [ '+section1+', 'big text 1 here.', 'big text 2 here followed by list:', '-this is list item;', '-this is another list item;'

Primefaces file download handling errors

Basically my problem is: How do I display an error message on my page and cancel a download, when the generation of the file to download has failed. Primefaces

[Python][SQL Machine Learning Services] Cannot install XGBoost on my SQL instance

I am trying to find a solution to my problem. We are trying to install XGBoost package on our MS SQL 2018 and we are facing this problem: Error Description The

CKEditor5 Vue(tify)2 Laravel - Cannot read property 'getAttribute' of null

I followed this https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/frameworks/vuejs-v2.html#integrating-a-custom-build-from-the-online-bui

Getting 503 errors on an Azure Static Web App

We have an Azure Static Web App that is returning 503 errors a few times a day. The site is just HTML, there are no Azure Functions being used. One person may b

Group unique values in r

I have a following data: I want o summarise the data in three columns by Subject type and other two columns sates number of schools and number of students by ea

Pass Parameters from Excel sheet to Power Query from MS SQL

I am using Excel 365. I have a Power Query (PQ) that reads off a MS SQL database and I need to set parameters for that query from a table in the same Excel work