Latest Questions

Spring Boot Azure AD custom roles

I have this vanilla spring boot/azure/starter app, connecting to our internal azure service. https://docs.microsoft.com/de-de/azure/developer/java/spring-framew

ValueError: Layer weight shape (775, 768) not compatible with provided weight shape (775, 100, 768)

20220422: I've read some tutorials on other embeddings and now I guess my question is actually how to create an embedding matrix using Bert word embeddings? 202

why ejs displays file.forEach is not a function

I have the following error TypeError: C:\Users\USER PC\Documents\Prime_News_Hub\views\Top_Stories.ejs:27 25| 26| <% if(file){ %>

How And Where Do Meditation Apps Store Their Audio Files?

I'm building a Flutter app that plays audio files. I have hundreds of audio files that are too large to store in the app. So, I want to host the files, then str

Extract nested values from data frame using python

I've extracted the data from API response and created a dictionary function: def data_from_api(a): dictionary = dict( data = a['number'] ,created_b

deleting minikube cluster so I can create a larger cluster with more CPUs

I need to run sudo minikube start --memory=4096 --cpus=2 for my use case. However it is running with 1 cpu already. Somehow I started it w/o creating an entr

Tools in VisIt Visualization Software?

I am using VisIt to visualize 3D simulation data in the form of VTK files. I am fairly new to this software and was wondering if it has the following three tool

how to handle garbage value while making my own vector in c++?

Good evening guys I am trying to make my own vector class. But I have few problems. Firstable, I dont know why There is garbage value I've tried to check constr

neo4j DatabaseNotFoundError, with status "offline"

I had a neo4j database on my personal computer(window 10). When I try to migrate this database to the server(centos7). I use script like this to export the data

How can I calculate market share for a segment by selecting one or more products in one or more segments?

I'm attempting to calculate market share (percentage of total) for a segment after a user selects a specific product within a filter. Data looks like this: Dat

Replace null values by the mean of each group

I have a dataset similar to below with several columns which contain Nan values. I would like to group the dataset by location and fill the Nan in Iso code and

intersection oberserver used with a loop through all the elements ends in error

I want to show some cards on scroll and for that purpose I chose to use an intersection observer. But I ended up with: Uncaught TypeError: Failed to execute 'o

Time Complexity of Split AVL Tree Function

I have the following code for splitting the AVL tree and I'm not quite sure if it has Time Complexity of O(log(n)) or O((log n)2). Note: The Complexity of join

Error: Cannot set headers after they are sent to the client when using passport-oauth2 with pkce

Iam not sure where i called res twise in my code,iam trying to implement passport client for twitter oauth2 with pkce, any help finding out would be appreciated

Response.redirect execute the code inside the pageload twice

I have this link http://localhost:54818/offerslinks/offers.aspx?ID=1 when i clicked it. it loads the page and executes this code twice enter image description

How to import Facebook's Chisel fbchisellldb.py depend on the chip type(M1/Intel)?

I add the following shell code in the ~/.lldbinit. if [[ $(uname -p) == 'arm' ]]; then command script import /opt/homebrew/opt/chisel/libexec/fbchisellldb.p

errno vs errors returned by library functions

For errno, there are a bunch of library functions, like strerror(), etc. to convert or print the error code. But what about the error codes re

Exception: Java gateway process exited before sending its port number

I'm facing an issue when trying to use pyspark=3.1.2. I have java 1.8 installed and added in my user path. But according to the docs it does not need any other

Outputing single strings in python

I'm in need of some assistance in this code problem from a MOOC on python programming that I'm taking. This is just for self-learning, and not for any graded co

How is the best way to extract a section from word document with Apache poi?

I´m using Apache poi (XWPF) with Springboot in java 11. I need to extract the section number 2 (title and content) from a word document with the follow nu

`Executed 0 tests, with 0 failures (0 unexpected)` when running individual test cases in Xcode

When I run tests in Xcode, as long as I run all the tests collectively they execute normally. However, if I run only one individual test class or one individual

Python-Flask, Server generated from swagger file produces 'do some magic!' for all get methods

I have generated Python Flask-Server API from swagger editor: https://editor.swagger.io/ When I run the server locally, I noticed that all my get methods produc

Pyserial might lose bytes and sometimes won't receive data at all

I'm using PySerial library in order to read 255-byte packets from nRF52 board. But I'm facing some issues: as far as I know it needs 460800 baudrate, but Window

ReactJS - Convert to Array Mapping

How can I convert this link to a array mapping, I already tried making a array object with name, path, icons, and label properties. But when I do that the cart

pywinauto automate Power BI Desktop tabs

I have Power BI Desktop *.pbix with a number of graphs. Each graph is on a separate page. Each "page" is represented as a tab labelled 'Page 1' 'Page 2' and

Delete several TwoLineListItem from an MDList when creating a dinamic list without an ids in Kivy

Help here pls, I got to create several TwoLineListItem in an dynamic MDList,This start working when the list (list_general) have an item and this is gotten from

TouchableOpacity wont work as supposed in android

I got an app with flatlist ,I added to the app TouchableOpacity that covers the whole screen, works great when I click on item area but doesn't work when I clic

Can I pass a literal $ into a bash script from the command line?

I'm creating a bash script and I need to be able to accept a string as the first parameter. This string may contain the $ character. Script #/bin/bash pass="$1"

I want to make an calculator for average but i'm facing some issues

I want to make an calculator for average but i'm facing some issues. I want the numbers entered by the users come as a print statement but it is just throwing t

SSH disconnected after start docker on AWS

I installed docker on aws according to thes docs https://docs.docker.com/engine/install/centos/ https://docs.aws.amazon.com/AmazonECS/latest/developerguide/dock