Latest Questions

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

OpenCV HoughCircles parameters for detecting circles (microstructure spheres)

I am creating program that helps processing microstructure images. One of the function is detecting circles with the same radius. User draws one circle, my prog

Cognito throwing Username should be an email

I am attempting to build a lambda function connected to an API gateway POST method that will allow users to create and register cognito users within a given poo

Django rest framework jwt {"detail": "You do not have permission to perform this action."}

I am trying to make a request using django-rest-framework and django-rest-framework-jwt but The response that I get detail": "You do not have permission to perf

Taking Second Value with Case When in Hana Tables Join Condition

I have event, cases and roads tables. I want to join these 3 tables but i have a problem because there is two different road_id which matched same firstpoint, l

React Material UI Select conditional rendering shows value as out of range

The use case is creating an order that has multiple order lines. I have two lists of Products: Preferred and All. Every item in Preferred is in All. I have a bo

VSCode Haskell Extension Error: `ghcup --no-verbose upgrade` exited with exit code ENOENT

When opening a Haskell file with VSCodium (I don't think that makes a difference), I get the error `ghcup --no-verbose upgrade` exited with exit code ENOENT. He

emplace and try_emplace with copy constructor

I have an issue with emplace and try_emplace as they always use the copy constructors when moving an object in. #include <iostream> #include <unordered

React checkbox data from mongodb

I try check if checkbox is checked in mongodb or not So for isClosed my value in db is true And its working so far my checkbox is checked bcs its true in db. Bu

Question for auto-resizing Textarea using VueJS

I'm trying to let the text area automatically adjust its height when the text value changes: <textarea ref="textarea" v-model="message"> </textarea>

How to use a custom post type slug within another custom post type's slug

I have created two custom post types in my wordpress project: city and property using the below query. register_post_type('city', array(

The view function for 'run' did not return a valid response. The function either returned None or ended without a return statement

I did write an HTTP Cloud Function in the Google Cloud Platform. The purpose of this function is to update data in the Database (Firestore). I do not intend to

?Invalid char constant compile error ?cannot able to declare in java

I am trying declare char constant in java it throwing invalid constant error. public static final char code = 'RETURN';

Vue Stripe checkout error "TypeError: this.$refs.checkoutRef.redirectToCheckout is not a function"

I am testing the Vue Stripe Checkout from: https://docs.vuestripe.com/vue-stripe/stripe-checkout/one-time-payment And i am getting this error in console: [Vue w

Maven shade plugin does not exclude an artifact

I need to exclude the log4j artifact from the shade plug-in to avoid the log4j vulnerability, however, the exclude tag under artifactSet does not seem to work.

How to create arrays with combinations between certain indexes of a fixed length and fixed sum

For example: array = [4,3,2,0,0,0,0,0,0] The 0th index should only have combinations with 3rd index and 6th index. The 1st index should only have combinations

How to use MUI to stack components on top of eachother?

I want a div that looks like this on Desktop: ------------------------------------------------------------------ | (icon) | (content)

How to make a button event handler in discord.js V.13

I create a function to send an embed message with a button and now I would like to create an event handler to detect when the button is clicked and execute a fu

Converting non-conventional CSV into a compatible CSV

I got this kind of CSV which is not an CSV. Let me explain it. The output has column_name,value. e.g. created_at,2022-02-10T16:53:49+01:00 upd

Sorting and getting position or row nth number of sqlite database for Android studio

I have this table of students public void onCreate(SQLiteDatabase db) { String createTableStatement= "CREATE TABLE " + STUDENT_TABLES + " (" + ID_COL + "