Latest Questions

Use RDD to map dataframe rows into custom objects pyspark

I want to convert each row of my dataframe into to a Python class object called Fruit. I have a dataframe df with the following columns: Identifier, Name, Quant

How can I create a Task that can cancel itself and another Task if needed?

Let's say I have a simple UWP app (so no .NET 5 or C# 8 without workarounds irrelevant to this situation), with many pages that contain buttons, all of which mu

Django form_valid method

In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo

Django form_valid method

In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo

Huggingface transformers) training loss sometimes decreases really slowly (using Trainer)

I'm fine-tuning sentiment analysis model using news data. As the simplest way is using Huggingface pre-trained model (roberta-base), I followed Huggingface tuto

Huggingface transformers) training loss sometimes decreases really slowly (using Trainer)

I'm fine-tuning sentiment analysis model using news data. As the simplest way is using Huggingface pre-trained model (roberta-base), I followed Huggingface tuto

Unexpected token '}' in D:\ .users.ejs while compiling ejs If the above error is not helpful, you may want to try EJS-Lint:https://github.com/RyanZim/

This is my controller file async function getUsers(req, res, next) { try { const users = await User.find(); res.render('users', {

How to update local data from rxdb to server database postgrasql through graphql in react

we are trying rxdb as local database and postgresql as a server database and through graphql end point we are able to push and pull data from local to server an

Logic App not picking up all messages from queue

I have a azure service bus queue which has a number of message's within it. And have a logic-app using a manual trigger. I then add a "Get messages from a queu

Using python and suds, data not read by server side because element is not defined as an array

I am a very inexperienced programmer with no formal education. Details will be extremely helpful in any responses. I have made several basic python scripts to c

Logic App not picking up all messages from queue

I have a azure service bus queue which has a number of message's within it. And have a logic-app using a manual trigger. I then add a "Get messages from a queu

How can I connect Microsoft PowerApps with Power Point

I want to export data from PowerApps to PowerPoint. Is there any possible way to do that?

React: How to get current Route path on each route change? React-router v5

The following code is giving base route instead of nested routes or I can say the current route function test() { const route = useRouteMatch(); useEffect((

VSCode Snippet - Dynamically generating characters based on user input length [duplicate]

I have this basic snippet for vue-html { "BANNER1": { "prefix": "banner", "body": ["<!-- ----------------", "/// $1", "

React: How to get current Route path on each route change? React-router v5

The following code is giving base route instead of nested routes or I can say the current route function test() { const route = useRouteMatch(); useEffect((

Chart.js Uncaught TypeError: Cannot read properties of undefined (reading 'options')

Edited the Details as I found a solution to display the Chart with the right datasets. Code Below will show the Two Charts, which visually looks great but butto

JcaPEMKeyConverter is provided by BouncyCastle, an optional dependency. To use support for EC Keys you must explicitly add dependency to classpath

I have a simple Flink streaming app. It runs well in a cluster created by start-cluster.sh command. Now based on the Flink tutorial, I hope to deploy it in appl

Character problem with endpoint '/{GROUP_ID}/feed' of Facebook API

The code below works without error, but the posted text is cut off in Facebook as soon as a "&" character is found. TOKEN_ID = '<Token>' GROUP_ID = '&

How do I deploy a dev container without running every other service?

Below is a docker-compose.yml from Visual Studio Code "Go & PostgreSQL" development container preset (original avaiable here): version: '3.8' volumes: po

Can't deploy React app in Production mode to Azure app service via VS Code

I have react app, which runs on Azure. I am using Visual Studio Code with App Service extension for its deployment to production and it works well. Unfortunatel

Can't deploy React app in Production mode to Azure app service via VS Code

I have react app, which runs on Azure. I am using Visual Studio Code with App Service extension for its deployment to production and it works well. Unfortunatel

How MQTT QoS token work in Paho MQTT C code?

I have a difficult to understand how token QoS work in Paho MQTT C code. My idea is that I want to read the PUBACK when using the QoS =1, for publisher to know

Deprecated functions in magento 2.4

I am building one custom module. I got following warnings from marketplace .Can anyone help me out in resolving these. loadLayout method is deprecated. Please u

Tauri Rust Invoke and return to frontend issues

I have invoked a function from my frontend to my backend. It works however I want to return results back to frontend and all I get is null #[tauri::command] fn

Suppress Publisher has been verified dialog popup for power point addin

I am installing PowerPoint add-in using a Wix installer. When I install with the default path then the "Publisher has been verified" popup does not display but

VirtualBox OS-X Monterey won't start: Failed to query SMC value from the host (VERR_INVALID_HANDLE)

I'm running VirtualBox 6.1.32 on Windows 10 64-bit and trying to stand up my very first VM using OS-X Monterey. When I start the virtual machine I get this erro

How can I create an automated line that cut a dendrogram based on cluster number?

I'm coding in python, trying to create an horizontal line based on decided number of clusters. In my case I used 5 number of clusters, and the distance (accordi

Enablin vsync in qt

I'm making an application in c++ and Qt. I'd like to know if the settings below are enough to have vsync enabled automatically by Windows for qt application. ev

Rust: Move issue in while loop

I have the following rust code and for the life of me I cant workout why I am getting a borrow-checker issue with this value and why does it get moved as part o

Draw a Polyline over street names in react-native-maps

I'm using react-native-maps to draw a bunch of Polylines on a custom styled map. However I can't get the Polylines to be rendered over the top of the street nam