Latest Questions

failed to get data from my contract using the navbar (web3 react hooks async function)

I'm trying to build My first react Dapp! The problem I encounter is the data doesn't load only when I'm refreshing the page instead of navigating with the navba

HTML name/value button attribute not being sent via POST request to server

I am currently using HTMX and Django to process button clicks within a table that adds the selected item to a list. I am trying to use the name/value HTML attri

Android Studio stuck 'Connecting to emulator'

I recently updated Android studio, and as usual, it broke. Whenever I try to launch an emulator, Android Studio gets stuck in the 'Connecting to emulator' scree

How do i create a single SparkSession in one file and reuse it other file

I have two py files com/demo/DemoMain.py com/demo/Sample.py In both of the above files i am recreating the SparkSession object , In Pyspark,how do i create a S

Admob Android SDK 20.x : how to init InterstitialAd?

I update my app with Admob Android SDK 20.x. In the previous versions of the SDK, it was possible to do something like this (in order to avoid to repeat the cod

How to animate moving each text -30deg [duplicate]

I have a Problem that my text is moving x-direction instead of 30deg. I need to move the text 30deg along. I use transform: rotate (30deg) and

For nextJS installation npx create-next-app stuck on installation

The create-next-app isn't responding it is stuck midway through the installation with zero installation progress and its been like this for more than 10 mins c

React console.log not showing array values

Console it printing Array [] instead of values. I have checked the code but figure it out. Why doesn't console.log show me array values when i click button? imp

Will HttpClient api gateway calls work on kubernetes cluster?

Hello I have worked on API gateway for a identity service. I used HttpClient and currently call the identity service with localhost. My worry is when we deploy

how to scale down absolute positioned elements in the right way using CSS

i would like to ask how to scale down elements given absolute position so that they dont distort on reducing the screen size. Like i have attached an image belo

c# how to add Button to array and set text of all buttons

Hi my problem is i want to add buttons to array size: 65 and there is a problem here's my code: Button[] buttonsa = new Button[65]; for (int d = 0; d <= but

Error validating formula for calculated column

I'm trying to make up a calculated column that evaluates an existing column with a CASE statement. The following code works fine: CASE WHEN Technician_Produc

IndexedDB Database version change not triggering onupgradeneeded

I have a function that basically grabs a bunch of delivery jobs from the remote database and saves them to the indexeddb for offline backup. After each download

Convert Json file to a serializable string using python

I have a json file like below {"a": "a_value", "b": "b_value" } I would like to convert it to the below using python3 {\"a\": \"a_value\", \"b\": \"b_value\"}

Error when importing numpy in Pycharm and Spyder under MacOS Monterrey

I'm trying to set up Pycharm with python 3.9.10 under MacOS Monterrey, but when I try to import numpy I got the following error, the same happens with Spyder. I

Print object key/values in a csv format

I'm trying to print a object in comma seperated strings format. but I'm unable to understand how to concat keys for objects. Here is an example. let obj = {

Foreach for Categories

i have this data, I want to loop with categories for each question. Right now all I can do is loop by displaying sequentially for each question (as in the image

Express routes working with url params but not with specific sub routes

I'm building an API for my web app and I was able to successfully send requests to the routes in Post.js when they only had url params. But when I try to create

Exception has occurred: ValueError too many values to unpack (expected 3) when attempting to unpack an array

I'm trying to speed up keypoint detection by pre-generating the keypoints of the objects I want to detect before passing them into FLANN for detection. I'm gett

Strapi V4 how to modify data response for a component (dynamic zone)

Imagine a case where an editor adds a “Latest Products” component to a page using dynamic zone: they add a title, a summary, and then the latest pro

oracle insert o into timestamp column

I am having a csv file which contains 0 in timestamp column in source , when it is being inserted into oracle through informatica it is populated as NULL values

How to call the same angular component multiple times using querySelector

So I have a component called custom-modal.component. The HTML file looks like this: <dialog id="custom-modal"> <ng-content></ng-content> <

How do I set Authorization Header for my HttpClient across all pages?

After contacting API in a login page with a successful login, I receive a JWT. And I want to set the AuthorizationHeader ONCE to use across all pages when navig

Background Image is not showing from a figma design

below is a figma desing im trying to convert to a react component , the issue that i have is the blue background (which is an image) is not displaying , please

How to handle multiple api calls in flutter

I'm trying to call multiple api's but i can't really figure out how to format the results in json for both endpoints. Future<List<dynamic>> fetchM

WinUI HyperlinkButton is not displayed underlined

I am using the WinUI technology. I would like to display a HyperlinkButton in my XAML. The problem is that the HyperlinkButton is not displayed underlined. But

print the distribution in python using dashes

Here's my code right now. So I would like to visualize a normal distribution graph in python only using these dashes (no import) I am not sure how I should conv

How to get generic types of subclass in Python

I have a generic parent class and a child class that implements the parent with a specific type: T = TypeVar("T") class Parent(ABC, Generic[T]): def get_im

Calculating image of a Set in Clojure includes nil value?

(defn image-of "computes the image of the element x under R" [R x] (set (for [r R] (when (= (first r) x) (second r))))) Func

I can not subscribe on mergeMap observable in angular 13

I want to implement a connexion senario based on Roles in angular. When the user click on CONNEXION button after filling in the form ( username - password), two