Latest Questions

Android testing different currency prices

I have been trying to find an answer to this for a while now, but all the result are at least 5-6 years old, with no satisfactory answer. How to test local pric

NameError: name '_mysql' is not defined - Django tailwind

When I run python manage.py runserver, my django server runs and I can see my webpage, however some of the tailwind doesn't work. When I then stop that server a

download the data day by day from ERA5

How to create a script using python (api code) to download daily data using (for loop) from ERA5, to make a circulation day by day during the year? notice, I ha

Why can I bitwise OR two strings as if they were binary numbers?

I was trying to write a Perl program that would take in two strings representing binary numbers (i.e. consisting of only the characters "1" and "0") as input a

gganimate: change state_length in transition_manual

I have this dummy data as example: library(ggplot2) library(gganimate) dummy <- data.frame(year = 2000:2022, inside = rnorm(23),

How to setup frontail with Django and Docker

I am trying to setup Frontail to access the logs for a Django application deployed using Docker locally. Has anyone done this before? There is very little docum

Storybook + Vite Shows "No Preview" But still renders story

Following the instructions of storybooks vite plugin documentation, I am able to start storybook with a bit of extra configuration: // .storybook/main.js modul

Need help solving boins change problem with constriants

I have a coins change problems but with 1 constraint: for each sum k> 0 we have exactly 2 coins with values of 2^k. example: if we are given the sum 3 we wou

spring boot dynamic scheduling with cron expression defined by the user

I want to send messages on different dates so I'm going to use java scheduler and dynamic cron expression but the problem is that user can send multiple messag

unable to determine transport target for "pino-pretty"

I am trying to use pino library but I am getting error My code I created a logger.js file and imported pino from node_module and added transport of pino-pretty.

How to extract all text from pdf?

I'm using the PYPDF2 lib to extract texts from a PDF but I'm having a problem doing the loop. I'm using the following code and I can extract a string from the f

When I Run My Code I Get A Huge Error In Python

If I Run This Code: import re mapping = {'gde1': 'a', '4&TW': 'b', 'E#ZB': 'c', 'B0F&': 'd', 'uvRD': 'e', 'M7vr': 'f', 'X$*d': 'g', 'XQ%R': 'h', 'jma+':

How to align elements around the perimeter of a circle?

I'm trying to align elements around a circle like this: this is my code, I've added a drag function to rotate the wrapper box, I'm not very Math savy so I don

List RDS instances with greater than 7 snapshot retention period

Can someone please help me on listing RDS instances with more than 7 days of snapshot retention period. I am trying something as below, but not working: aws rds

Google Colab error: Import "tensorflow.keras.models" could not be resolved(reportMissingImports)

import tensorflow as tf tf.__version__ !sudo pip3 install keras from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Conv

ios 15.2 Objective-C Mutiple UITableViews on single screen crashing when scrolling

I have two UITableViews on my view with two buttons acting as tabs on top of the view. I hide and show one of the tableview based on user selection. When I come

Validate Google Identity CredentialResponse JWT using Node.js

I'm currently implementing Sign in With Google on a website of mine using the callback approach. So far it works; a user clicks a button, a network call is made

Why doesn't fmap either error id over an Either work? [duplicate]

why does the following code not cause an error? Instead, it exits immediately. someAction :: IO (Either String ()) someAction = return $ Left

I am using pandas to check user input in multiple columns, i want output as entire row which matches input

below is my code: for r in cols: full_row_of_matched = cols[cols.isin([input_ip]).any(axis=1)] exact_column = list(cols.columns[cols.eq(input_ip).any(0)

Extracting information from website with BeautifulSoup and Python

I'm attempting to extract information from this website. I can't get the text in the three fields marked in the image (in green, blue, and red rectangles) no ma

Trailing context match EOF flex-lexer

I want to match these two tokens: 1. NUM: A series of characters in [0-9_] with an optional . in between. 2. ID: A series of characters in [a-zA-Z0-9_] with at-

Instantiation of User Controls dissapearing on InitalizeComponent() when modifiyng Form

Hi everyone and thank you in advance. I have created a User Control named PanelOption that is a panel with a CheckBox and a TextBox, and these are inside a Flow

Creating Basic NFT Viewing App with ThirdWeb SDK

I'm looking to create a very basic app, where a user can connect their wallet, and display all NFTs they own from a specific collection. I am using the ThirdWeb

3 level Port forwarding (Kubernetes Pod -> Docker Container -> Local

I use a docker container to interact with my kubernetes cluster. I run kubectl from inside the container. All works fine except when I want to port forward. I c

Why does kivy show me a white background instead of the real rgba number?

In this program i set the background color of Label to 6, 61, 81, 1 like this : background_color: 6, 61, 81, 1 canvas.before: Color

Getting invalid pointer error for openmp parallel code

I am trying to compute the number of triangles for each edge in an OpenMP parallel code. Following is the code snippet where I am doing it. While running with m

How do I list all data in react native firestore? [closed]

I want to see the posts made by all users. so i want to get all data regardless of user id function storePostData(){ firebase.firest

Error in React-Router: 'Type expected. TS1110' after deleting my node_modules folder and package-lock.json

My project was working perfectly well but I went and accidentally deleted my node_modules folder and package-lock.json and then reinstalled everything using npm

Python cv2.VideoCapture() has wrong resolution and read cropped images

I'm trying to read images from an IDS GV-5240CP camera plugged to my laptop via ethernet using Python and OpenCV. This is what I am supposed to get : A 1280x102