Latest Questions

Unlock android bootloader without OEM unlock on

I have a Google Pixel 4XL that I want to have the bootloader unlocked on to install stuff on it. The OEM Unlocking option is greyed out in the system developer

Octave 7.1.0 opens with cryptic error/warning messages

I've just installed Octave 7.1.0 and I noticed a strange sequence of error/warning messages which I had never seen before nor am able to decipher: 2022-05-06T16

Keras model `logits` and `labels` must have same shape (None, 2) vs (None, 1)

I have a keras model trained for occupancy detection of parking spaces, which I load using keras.models.load_model(PATH_TO_MODEL). The input for the model is a

Unicode char has odd gap when rendered in view

I am using the following code to show a playing card. Not sure why there is a large gap at the top. This is on iOS 15.4 var body: some View { Text(String(Ch

tkinter, or function to pass filename into variable for use in other function

My code below is to be used in a GUI that has two buttons. One to ask the user to locate a txt file, the other to run a function using that file to clean the da

Mockito verify still fails on using all Matchers

I am recently writing a JUnit test and I acknowledged that Mockito either needs all Raw values or using all Matchers but I find the following case still fails w

MERN: show buttons based on conditional

I'm using React.JS and I'm trying to show a group of buttons based on the state of a variable, this is the code snippet: const cartContentButtons = ( <

if-emoji lookup table with Vue

I'm using the npm module if-emoji to detect whether a user can view emojis or not. There is a similar tool in Modernizr. If the user can't view emojis, I'm disp

Error extracting heads from MODFLOW-USG binary with flopy

I'm trying to extract the simulated heads from a MODFLOW-USG binary head-save file, so I'm using flopy as follows: modelname = 'Model' import flopy.utils.binar

Google crash curse optional question solution about For loop

I decided to pass google curse for python beginners and stuck on this question. It is optional to solve but I'm angry about it as I understand that it is simple

Clean trim cells from column A and delete entire row with blank cell in column A

I am trying to trim clean column A then filter the blank cells in column A and delete the entire row based on blank cell present in column A. Column A has a fe

update one or more fields inside of a document, without updating all the fields

I have a feature in my program where I have to enter the user's details such as the user's age, height, and weight. This data will be stored in Firestore. this

Is it possible to get the number of pixels of the detected object with Detectron2?

I'm totally new to deep learning. I have a Detectron2 model detecting solar panels located on rooftops. I'd love to calculate the surface of the detected panels

Compatibility issue with rasa

Cannot convert a symbolic Tensor (dialogue_encoder/strided_slice_4:0) to a numpy array. I am getting this error with using rasa==1.10.3 having tensorflow of 2.2

Checking images for similarity with OpenCV

Does OpenCV support the comparison of two images, returning some value (maybe a percentage) that indicates how similar these images are? E.g. 100% would be retu

how to get json object out of django paginator value

am trying to get a Json value out of Django Paginator object so that i can return it back to html file as a json response via JsonResponse method.Please help He

Command to get the Helm version running on the windows OS

I am trying to get the helm version installed on my machines. I am getting this error: helm is not recognized as internal or external command

Firebase working in cmd but not in git bash

I am building a react project on Visual Studio Code and want to use firebase but when I am giving the command firebase login, it says C:\Users\ajay\AppData\Roam

Go create a mock for gcp compute sdk

I use the following function, and I need to raise the coverage of it (if possible to 100%), the problem is that typically I use interface to handle such cases i

Bulk Move All Mails From An Outlook Folder To Another Folder

Can I move all the mails (that category is blank) from an Outlook folder to another Outlook folder at once like copy and paste not through loop, move bulk mails

Why am I getting segmentation error in a Caesar cipher program?

I'm trying to write a program that uses Caesar's algorithm to cipher a string input. I'm a beginner to C but I can understand basic codes. So to cipher the text

Multiple possible values when searching item by XPath | Scrapy

I would like to find title bar icon with rel = 'icon' or 'shortcut icon'. So I'm trying to do something like this: response.xpath("head/link[@rel='icon' or 'sho

Get Windows NT Login From Azure AD msal

I am working on API that is secured using Azure AD. Is there a way to get the Windows NT login from claims? Example. jDelaCruz

How to reread uncommitted messages until they are committed?

Let's say we are using Kafka with manual commits. We are processing the incoming message. But if there is a failure in processing for any reason, we want to rer

How do I generate Eleventy and display tags from a localized version of a collection file?

I'm new to Eleventy and working on a personal project - most of it is working fine, but I need help with generating and filtering tags based on posts stored in

Error: A value of type 'Widget' can't be assigned to a variable of type 'InheritedWidget'

I am having a problem with my project, there are no errors in my code but when I try to run main.dart it fails to build. The errors it throws are the following:

sqlite3 persistent connection vs single cli call and how to implement former

This question is in part due to my lack of knowledge of the proper terminology but I can explain this practically: It is possible to simply call sqlite3 mydatab

NRRD File of brain tumor is not being read into python with pynrrd module

I have nrrd files of the brain tumor. When reading the file into an array with a header and passing the code print(filename), I get an array of zeros. I checked

how do I wait for a response from FireBase Kotlin Android Studio

Screenshot-1 Screenshot-2 I am trying to check in the database whether there is a user with such a login or not. If it exists, then display an error.How can I g

Json problems in (AWS lambda, formatting and line by line)

The idea: I want to send some json tweets (from file) to AWS kinesis, S3, lambda, AWS comprehend then S3 again. The sample tweets: [ { "tweet_id": 56758