Latest Questions

Docker compose can't correct build react app

I have api (net-core) and react-app projects in root folder. I start dockerize my project from react application. If docker-compose and docker file in same reac

how to resize the font of "No Options"?

I'm using Autocomplete from material-ui and trying to make the font size of "No Options" to be aligned with other fonts. I have tried to use styled component to

Vlang - convert int, u32, u64, f32, f64, etc. to array of bytes in LittleEndian format

I have various variables of different numeric datatypes(int,u32,u64,f32,f64, etc) and want to convert them to an array of bytes. For example: a := 120 // int d

How to extract id from json response array

How to extract id from this response. I tried like this But return blank page. Below is the response what I'm getting. <?php $res = json_decode($sentMessage

How to add unique ID when inserting data in AWS Timestream?

I am inserting some data in Timestream but I cant figure out how to have a unqiue ID. $date = new DateTime(); $time = strval($date->getTimestamp() * 1000);

What is WordPress hook for after (not before) deleting an image?

I want to do something in WordPress after the media (image) is deleted. There is a hook (delete_attachment) for this purpose but it is before deleting while I w

facing problem to creating user with firebase authentication

When I try to register with email and password I am facing a problem. When I watched it with console it is showing this link: XHR-POSThttps://identitytoolkit.go

Build a timer function in Python, so a variable can be reused until x seconds has passed

this is more about logic. I am trying to build a timer function to create a bearer token with a TTL of 300 seconds. So re-use the variable with the token until

MongoDB and Express js connection problem (Bad auth code 8000)

My port is 5000 MongoServerError: bad auth : Authentication failed. at Connection.onMessage (E:\React\Projects\assignment11\express\node_modules\mongodb\lib\cma

Migrate HandlerInterceptor to Spring boot 2.6

I have this old code implemented for Spring 2.4 public class Interceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServlet

Amazon page links with request_HTML

I am scraping some product details. I wrote a program that worked fine on the first day, but on the next day when I ran it two or three times it started to give

css media query to target all mobiles and desktop

I am trying to get the media queries to work but can't seem to have a general working version. This is what I got, two queries for mobile devices (email footers

How can I grep recursively, but only in files with certain extensions?

I'm working on a script to grep certain directories: { grep -r -i CP_Image ~/path1/; grep -r -i CP_Image ~/path2/; grep -r -i CP_Image ~/path3/; grep -r -i CP_I

eclipse on Windows with gcc through msys2: CMake4eclipse plugin throw an error

I configured eclipse with gcc/msys2 according with the following steps: https://www.devdungeon.com/content/how-setup-gcc-msys2-eclipse-windows-c-development gcc

How can I make use of structlog in python rq

In my application I am using structlog as a log system. My application also uses PythonRQ. How can I make PythonRQ to use the log system I am already using in m

Setting up github actions SQL linting

I am trying to setup a simple github actions workflow for sql linting using sqlfluff package. here is sunrise movement workflow which is simple and clean. name:

How to create a List containing a sub dictionary keys , from nested dictionary?

Form nested dictionary, How to Create a List, containing Sub dictionary keys? dict_lbl = { "lbl1":{"name":"label1","item1":"Accounts", "item2":"kannag

Subscript labels in heatmap (in python seaborn)

I am trying to subscript my axis labels in a Python/sns heatmap; however, I don't know how to do it. Below is an example code from where I get the heatmap but l

Is it possible to call an API based on user roles with useSWR?

I'm wondering if it is possible to use useSWR from Vercel if a condition is true? I.e., if RoleOne is true, then call: let { data: roleOneData, error: roleOneEr

Restrict dragged items within the stack panel in uwp?

I am implemented stack panel children to reorder using drag and drop in uwp, but I don't want stack panel child to go out of stack panel while dragging, so how

Unable to cast object of type 'System.Int32' to type 'System.Decimal' in dot net

In My DB i have type cast the values varchar to decimal(18,2) and in my api i gave decimal datatype of output parameter then the error is getting. select max(ca

Also display the model of computer allocated to the employee and the manager, how to do thi

Display id, name, manager id and manager name of those employees who are allocated a computer and whose manager is also allocated a computer. Also display the m

How to calculate difference in month in dbplyr (R and sql)

I tried to calculate the difference between dates in months for a huge database, using dbplyr package which sends my codes to the sql query. I tried different w

how to add drop down list in material-UI Search component in navbar, for search results

I was using material ui search bar into navbar from app-bar-with-search-field official documnets from MUI in my react app. but this article it does not mention

supabase.auth.onAuthStateChange Not Working when React app is in iframe

I am using Supabase user authentication in a React app hosted at https://example.com that is running inside an iframe injected by a Chrome extension chrome-side

Selenium keep php file from loading

I have a problem that gave me nightmares for couple of days. I am trying to run some python script from a PHP file. I am using wamp64 for hosting. Python script

Selenium Python: How to assign an action to an element that will appear after another element is selected

I'm trying to learn selenium in python. Everything was fine until I had issues like this. I.E I have 2 element selections: Balance Type Selection Element: <s

pip install failing with no error on private pypi and normal pypi

with and without a pip.ini file my pip install is failing. when running an individual pip install with -vvv I get this as the trace output, the output is the sa

How to print hard copy from python application

I have an application developed with kivy python. I have a screen that allows the user to print data generated on that screen and I have a print button. How do

Flutter - Are SVGs bad for performance?

I have a lot of logos that I want to use in my Flutter app at various resolutions, so am considering using the flutter_svg package to facilitate this. I don't k