Latest Questions

Convert POST Request to Doctrine Entity

Coming from a NodeJS environment, this seems like a nobrainer but I somehow did not figured it out. given the function: /** * @Route("/", name="create_

next-auth JWEDecryptionFailed

I am using this code to be able to use the credentials next-auth provider along with cognito as oauth serviice: this to allow email and password auth. I am runn

How to set data in Firebase .onSnapshot()

I'm trying to set data with this function and its not setting the variable. How can I set information for outside use with this? Here is my code const docRef =

Pandas Merging 101

How can I perform a (INNER| (LEFT|RIGHT|FULL) OUTER) JOIN with pandas? How do I add NaNs for missing rows after a merge? How do I get rid of NaNs after merging?

convert a CSV file to JSON file

I am trying to convert CSV file to JSON file based on a column value. The csv file looks somewhat like this. ID Name Age CSE001 John

Stop flutter from chaing fontSize depending on phone font

I'm building an app there is one problem. The font is causing overflow when I set my phone font to a bigger size. I tried using this : class SizeConfig {

Rundeck inline bash spinner output

Have some bash test code that have a spinner. Code seems like this #!/bin/bash sleep 5 & pid=$! frames="/ | \\ -" while kill -0 $pid 2&>1 > /dev/n

i'm getting this error when running the below pyflink code

this is the code for calculating average of each ch[x] from a kafka source using apache flink(pyflink) i think i have imported all of the necessary libraries An

OpenIdDict 3.0 error from ASP.NET Core 3.1 web application

I am hosting my ASP.NET Core 3 web application in Azure, whenever I do a new publish to Azure, it works as expected. However, the next day, the site is down, th

VueJS - create readonly copy of a ref object (Composition API)

I am getting data from db by onMounted hook and showing object in a form. When user clicks to save, I just want to check if object data has changed or not. onMo

Using scipy fsolve and odeint for simultaneous ODEs

I'm trying to solve a set of transient flow equations of a body firing from a pressurised tube from scipy.integrate import odeint import numpy as np # paramet

Join 4 tables across 2 databases - Getting duplicates

Objective: Pull report usage statistics from MS SSRS ReportServer database. Then, link to another table in a separate database (same server) to pull in employee

Comparing lists within dataframe column to another list using numpy's where function

This is my first post at Stackoverflow, so thank you for the help. I am trying to replicate a code where I can match a list within a dataframe to another list,

find customers in zip code using mongodb aggrigation

I have 2 mongodb documents shop and customer shop documents are like below { id: 1, zipcodes:[ '12345', '11111', ] } { id:2, zipcodes:[ '45678', ]

How do I decode the hex from a specific part of a BSC transaction receipt, using web3 py?

I am writing a python script using web3 package. The process explained: I have a transaction, which I read the transaction receipt for txn_receipt = w3.eth.getT

overrideUserInterfaceStyle not working in AppDelegate

I'm building an iOS app with the newest version of Xcode. If I set overrideUserInterfaceStyle = .light to a View Controller, it will get set to light mode, als

best practice handling NSManagedObjects and CoreData in multiple VC's

i'd could use your advice on this one i restructured my whole app, to use coreData so i'd be able to save the Main Class of my app: "FooBar" i also transfered m

Read Parquet file form S3 in EMR cluster taling a long time

I am trying to read a parquet file (not compressed) into a pandas dataframe on a EMR cluster. I am using EMR 6.4 and parquet version 1.1.5. We are in the proces

Why my Interactive Art is not working like it should on mousemove

I made an Interactive Art but instead of scaling each child different pixels it is scaling each child same px. P.S the commented out code const WIDTH = 512

percentage calculation with negative integers LUA [ANWSERED]

problem: -4% = 0 0% = 5000 How do I make it so that i can calculate both the negative and positive values? What i've tried: local nrstate = "-" local x = therm

Pytorch model object has no attribute 'predict' BERT

I had train a BertClassifier model using pytorch. After creating my best.pt I would like to make in production my model and using it to predict and classifier s

RoundedRectangle background colour does not crop and TextEditor transparent background

I have a messaging interface. When user types in to the texteditor it will be append to messagesDBArray and will be displayed in textview. Once new messages are

Created Cards i want to click on the card to get list of all blogs created by user?

I'm using react and active record associations[users,blogs] for backend. I basically have a nested data structure. I rendered a list of cards on my page and I w

Implicit conversion loses integer precision after importing firebase package

I am getting 131 warnings of this type Implicit conversion loses integer precision... after I imported firebase packages to my Xcode project. The errors are poi

Better/Efficient way to filter out Spark Dataframe rows with multiple conditions

I have a dataframe look like this below id pub_date version unique_id c_id p_id type source lni001 20220301 1

Custom rate for adding user to test process in locust

I'm pretty new to locust and load testing, I need to write a load test that should be for a total of 30 users, these users should be added to the test step by s

How to handle the variable size json file in python to create DataFrame using pandas

I am trying to build a DataFrame using pandas but I am not able to handle the case when I have the variable size of JSON chunks I am getting. eg: 1st chunk: {'a

Firebase addDoc not writing data to Firestore

I'm trying to write some data to my Firestore database. I've been following Firebase docs but for some reason nothing is being written to my database. I'm not r

rayHit.point Instantiates at 0 0 0 Unity

I made a Gun Script (using YT videos) and a Bullethole GameObject should Instantiate at the Position the RayCast hits an Object. But it is always at 0 0 0. I tr

Where can I find the documentation for sigma.js?

I am trying to test the limits of sigma.js (v2) to determine whether it is a suitable option for our project. From what I have seen in various sample applicatio