Latest Questions

Using offset in finding the name for the largest value

I wish to find a way to find the three largest AuM values for each category and the Owner: I found the n-th largest AuM per category using the Large-formula co

Laravel 9 - Passport custom api for Authorization

In my application, I am using Passport for Authentication. I have created a Password grant client for generating access tokens for our mobile and web app. Now I

Getting error $ operator not defined for this S4 class when findings mean of residuals [duplicate]

heyy i have a problem with getting the the below error. I am new to R and not sure how to resolve this!! I am trying to find the mean of resid

How to check if an optional workflow_dispatch input is set or not

I have an input defined as workflow_dispatch: inputs: level: description: 'level to process' type: number required: false I

Micropython with PN532 V3 Elechouse

I have a ESP32S with micropython installed and I have a PN532 from Elechouse to read NFC tags. Is there any possible way to combine these two together? I've onl

Etymology of "sink" in SwiftUI / Combine?

I'm joining development on an existing SwiftUI / Combine iOS project, which is my first exposure to the technology. The names of functions like assign(to:on:) a

How to filter very small values in r?

I have a large dataset in which one column is p-values that range from 0.9 to being extremely small like 5e-79. In R I can sort the data in descending order and

Python to Powerpoint: Export svg to a pptx file

I was experimenting with the python-pptx library to automate the process of adding images to my presentations. I used code such as: from pptx import Presentatio

Typing custom event with typescript

I'm asking for a suggest on how to type correctly the schema for how an EventObject should be, including what's inside the "extendedProps" key. As of now I've d

I'm trying to print unicode characters from QPython

Trying to print unicode characters like ┌┌┝├ from QPython 3.6 (under Android on a Chromebook with Chrome OS 100) but print(u"┌^

How to install PyQt5 on M1 arm64 architecture?

I have an M1 mac, but I've noticed that whenever native python is running any automation script (like PyAutoGui) it progressively gets slower and slower, almost

How to use foreign keys migration with database migrations. (errno: 150 "Foreign key constraint is incorrectly formed")?

CodeIgniter 4 has a handy solution for migrations and seeders. Without the usage of foreign keys, everything is working perfectly. But when I use foreign keys I

MongoDB how to update an object property in nested array

I have the following structure in my MongoDb where I have a topic object inside of a topics array. Within the topic object, I have a messages array. What I am t

PySimpleGuiWeb change ip address

I have a python script that uses PySimpleGuiWeb. I want to host it on my server and connect to it from another computer. But the script is running on 127.0.0.1.

Unable to identify bug where final iteration (index) in ForEach does not update the view (SwiftUI)

Original question/post: Below is a snippet from an educational animals app for kids that is currently in beta testing. The below represents cards in a tab view

Delete keys via sandbox_patch_state

Is it possible to delete a key from state via sandbox_patch_state? I've tried this, but it only set values to empty string. http http://localhost:3030 id=1 json

Yocto Dunfell - glibc do_stash_locale failed in multilib enabled environment

Yocto build failed in glibc. Build failed in do_stash_locale with below error. ERROR: lib64-glibc-2.31+gitAUTOINC+1094741224-r0 do_stash_locale: The recipe lib6

Configuration of GitHub Actions: Avoid running CI twice when merging PR into main

I am using GitHub a ctions to manage my CI and the following events trigger my workflow: on: pull_request: branches: main push: branches: main I ob

Terraform Azure - Error while loading schemas for plugin components: Failed to obtain provider schema:

I am getting below error after running terraform plan. I tried running below command but did not help : terraform init - upgrade terraform init terraform plan

flask-security-too with peewee + mysql not working

After beating my head against the wall for a bit, I've decided I need help from the gurus here on stackoverflow. It's very possible I'm missing something incre

How would I get the data I need from this array?

I am trying to get all the data from my firebase firestore and put it into a javascript react table but I am having a difficult time. async function GetAllDataO

How to compile a py file from another py file by using a module ? (Therefore not Cmd)

I want to make a code (that I'll call compiler.py), that'll compile any py file I need without using cmd commands, only modules(Things that are compilable So I

Using try except in a function

I'm trying to figure out how to get try/except to work within a function. Here is what I have now and it produces a traceback error when I enter anything not nu

Create an array of object properties for each item that has the same key

I'm merging two objects together to create a filter object. However I want to group the merged objects property values where the keys are the same. So... [{cate

Fixing vulnerability of maven-core

I am receiving critical vulnerability on maven-core package https://nvd.nist.gov/vuln/detail/CVE-2021-26291. Need to upgrade maven-core to 3.8.1+. Here ${sprin

Uploading CICD artifact to Blob Storage with a time stamp

So I'm working on a CI/CD Pipeline in Azure DevOps and I want to add the functionality of sending the artifact at every run to blob storage, so we can revert to

How to access private members in friend function in header class

I have created header file for definition of Class Name.h class Name { private: char* Fname; char* Lname; public: Name(char* ='\0', char* ='\0'

get max value of non duplicated records

Is it possible this? I have the following table: Col1 Col2 col3 code1 US 9 code1 0 5 code2 US 4 code2 0 11 code3 0 11 and I'm trying to get the higher col3 va

Monitor ActiveRecord records and find patterns

Well, I'll try to be as clear as possible in my problem, and I hope to get answers with Ruby because I'm currently studying Ruby on Rails, but of course other s