Latest Questions

calculate weighted average over several columns with NA

I have a data frame like this one: ID duration1 duration2 total_duration quantity1 quantity2 1 5 2 7 3 1

How to assign two or more values to a QMap Variable in Qt

I am getting confused of how to store the values assigned from 3 different functions and storing them in a single map variable QMap<QString,TrainInfo>*Tim

How to add key and values to anobject by splitting a string inside the object

I have the following array: [ { “Key”: “CUST”, “Segment”: “A;B;C;D;E” } ] I want to transform it to

nextjs router locale undefined

I have done a lot of research and tried many things, but unfortunately, I haven't found a solution, so I had to ask again. I am working locally on a project and

Set the date value to the mat Input date picker in Angular TS

I have a requirement to read the query parameter for date and set the value of the Mat Input value to the value read by the query parameter. I am using Mat date

Azure ad nested group

Our on prem AD is connected to Azure AD. Groups in on prem AD are used to control permissions to various resources. Does this configuration support nesting of s

Mongodb: Merge nested objects based on common identifier

I have 3 objects like this {"_id":{"$oid":"625f0e73b1d7269de9ebdaeb"}, "Type":"scalar", "Temperature":22.79, "Vibration":{"A-P2P":{"X":85},"Z2P":{"X":43},"Crest

Reverse Array Queries

For a given array of integers, perform operations on the array. Return the resulting array after all operations have been applied in the order given. Each opera

StringVar.get() doesn't seem to be entirely working (Tkinter)

The relevant code is this: import tkinter as tk from tkinter import ttk import quiz global menu_root def get_question(): question_input = question_respons

Can't click on stack trace links in Android Studio anymore

After a recent update for Flutter I found that in Android Studio the package links in stack traces are no longer clickable. This is not the case with Visual Stu

how to change gradle version in nativescript

I'm confused as how to change a specific configuration somewhere to determine the version of my gradle, in a nativescript project. My workspace is created with

How to call Phtml file in Email template

I am trying to call p html file in email template for low stock notification to admin. Can you please suggest any plugin or code. Thanks

How to localize pdf with flutter_localizations

I'm using dart pdf to generate PDF files. It works, but now I want to provided the pdf based on the user language. Within the other parts of the app I use flutt

How to order a query by translated attribute of associated model in Rails using Mobility gem

I've two associated models: class Food < ApplicationRecord extend Mobility belongs_to :food_set, inverse_of: :foods translates :name, type: :string,

Are indexes built CONCURRENTLY different in any way?

Does PostgreSQL CREATE INDEX CONCURRENTLY mean that even after initial index build, new and future inserts won't be indexed immediately (strongly consistent in

I am getting error around <?xml version="1.0" encoding="UTF-8"?> line

I'm new to java and learning spring-mvc framework. I'm Writing simple program to for login page . I'm getting error around line.

Google Tag Manager- is there a way to track when a checkbox is selected and then the user hits the Checkout button on that same page?

Sorry if this is a dumb question. I'm a GTM noob and from googling I see tutorials on tracking the clicks (checkbox element and Checkout button) separately but

Openapi Generator. How to generate method with HttpServletResponse as parameter?

everyone. I use strategy "Design first". I describe specification. One of the methods accepts HttpServletResponse as paramether. But i don't know ho to describe

Client XYZ is configured for secret but secret was not received

I'm using AWS PHP SDK and I'm getting this error when trying to signup a new user: Error executing "SignUp" on "https://cognito-idp.eu-central-1.amazonaws.com";

John Martin Introduction to Languages and the Theory of Computation book

Show that if L ⊆ Σ* and L is infinite and recursively enumerable, then L has an infinite subset that is not recursively enumerable and an infinite su

MIPS Assembly - how to calculate the square of n recursively

I want to write a program that calculates the square of n using recursion based on the equation n^2 = (n - 1)^2 + 2(n - 1) + 1 But I don't know how to write th

Passing ReactiveSecurityContext into GraphQL - How to enable Spring @PreAuthorize annotation for Reactive Resolvers

After I migrated to Reactive GraphQL, Spring ReactiveSecurityContext is not accessible in GraphQL. The question here is, how I can use Spring @PreAuthorize anno

Why isn't the size increase animating with ngShow (angularjs)?

I have this dropdown that I want the height to be animated. I'm using max-height to achieve this and it kinda works, but when it expands it won't do the transit

Why I cannot authenticate an app in Azure

I am trying to authenticate app in azure, but getting the following error, Response status code does not indicate success: 401 (Unauthorized). Authentication

How to Get Subcollection docs in Firestore Collection Group Query Flutter

I have a collection and Subcollection, I want to get the data of subcollection along with main collection data. I am using collectionGroup query, but don't know

How can I disable debian python path/recursion limit

So, as of late, I've been having path length limit and recursion limit issues, so I really need to know how to disable these. I can't even install modules like

Apache POI incorrectly printing cell that is auto formatted to time

I am trying to print out a cell from an encrypted Excel workbook. The cell contains a time and when i try to print cell.getNumericCellValue(), the result is a r

Having State names as names instead of numbers Python

I'm trying to have an if statement condition based on state value being equal to a certain value (0,1,2,3 etc.) Is there away to have the condition be with name

anyone know what ppMediaTypeMixed and ppMediaTypeOther refer to?

long time user of the forum but first time I'm actually asking something so please let me know if I'm doing something wrong. So I'm writing a Powerpoint Macro t