Latest Questions

How to Change the background image size in custom css?

i was trying like that,that is not working .login{ margin-top: 70px; margin-bottom: 100px; background-image: url(../../Images/bg5.png); background-size:0 500px;

Multer super slow upload after recieving post request with images

Hello I'm on a (ReactJs Node Mysql Express) stack, my website has an events tab which the admin could upload to it events. Each event has a cover photo, inner p

How can I let a while loop pause for a specified time (datetime)?

I would like to let a while loop run, the stuff thats happening inside takes about 2 seconds to complete (it varies a small amount), so if I use time.sleep(60 o

List.Remove All not removing the negative numbers from textfile

Here's what I want this code to do. Read the textfile random.txt into a List For each line of the textfile read into the list I want to determine if it is posit

MapBoxGL, multiple layers performance issue

Premise: I have a set of data (stops on the map)loaded via geoJSON in a clustered source, each of these stop locations can have a different icon. I have over 14

How to sort by two fields in Java?

I have array of objects person (int age; String name;). How can I sort this array alphabetically by name and then by age? Which algorithm would you use for th

yt-dlp(youtube-dl) - how to write video qualities list into one file?

I want to write a list of all YouTube video qualities in one file, for example, videos have qualities: 1080p, 720p, 480p, 360p, etc., and I want these qualities

How to sort by two fields in Java?

I have array of objects person (int age; String name;). How can I sort this array alphabetically by name and then by age? Which algorithm would you use for th

Force a component property to be an h2

I'm trying to define a props interface for a component using Typescript which requires the value passed for that property to be an instance of <h2>-<h6

How can I select one group radio button from two groups and get the value of selected radio?

I want to select one group radio button from two groups and get the value of the selected radio in a variable and show it in another place. function uncheckRadi

event listener's event is being used more than once

I have this weird bug that whenever I want to add an item/card to the list and I cycle between clicking the text input and then clicking outside of it, the list

Load and use a Glade layout in GTK2/C

I was trying to load a Glade layout into a GTK2 C code. It consists of a window in which there is a VBox with 2 elements: a label and a button. I want to associ

Prevent variable and special character substitution in variable

I'm loading a regex from a file into a database using a stored procedure, like this: $stuff = Get-Content -Path '.\data.txt' -Raw Invoke-Sqlcmd -Query "Exec dbo

Error changing owner in Azure Postgres with superadmin

I hope anyone can tell me what I am doing wrong here. I have upgraded an Azure Postgres PaaS database from version 10 to 11. I've just followed the Microsoft gu

IBM Watson Assistant: How can you determine if telephony is being used in Watson Assistant Actions?

Using the new actions I want to be able to easily filter if the user is on the phone or the web, to give different responses. It doesn't have an option to set t

Python complex iterating through excel files to concatenate colnames that are not named equal

I have multiple xls files in a directory. each file dataframe headers are different but data type is same. 1.xls Location StreetAddress America Pvtld 80

Linux - Receive data via UDP; accept TCP connections, pass the data to the clients

I have a situation in which I'm being fed data via UDP on a pre-defined port (let's say 20001). My goal is to make that same data accessible to multiple clients

Responsive reorganizing of divs in DOM

My project uses Tailwind + Vue 2. I'm using Vue to iterate through a list and show multiple rows. Each row starts collapsed and has the option to be expanded. T

How to use PHP natsort to sort out mysql records

I have been trying to sort out my mysql records with mysql queries but seems like its just impossible to do it in the natural order. I have values such as a1, a

In Visual Studio 2022, publish to IIS returns a build error, but publish to Folder is ok (and it was all working fine before)

I've updated Visual Studio 2022 to 17.1.0 recently and I now have this weird error, but not on every project (on only one up to now). I've tested other project

Does a web-worker spawn it's own network thread?

In the app I'm working on, there's a page which makes an excessive amount of requests. A few hundred requests are sent to the server at a time. Some of them are

React page gives back 404 page after refresh

I have a decentralized app with a React frontend. If I go to the homepage (https://app.valerianprotocol.com/), everything works fine and I can refresh the page

Creating Cognitive Search index in Databricks: connection.HTTPSConnection Failed to establish a new connection: [Errno -2] Name or service not known

I am attempting to create a Cognitive Search Index in Databricks. I'm using the following as a guide: https://docs.microsoft.com/en-us/azure/search/search-get-s

Pandas: Values to columns and then group and merge by same Id [duplicate]

I have a dataframe like this df = DataFrame({'Id':[1,2,3,3,4,5,6,6,6], 'Type': ['T1','T1','T2','T3','T2','T1','T1','T2','T3'],

pf: nat force packet out specific interface

I have a VM which is attached to the feth2 interface (L2 interface), en0 is my wifi card with internet access I currently have the following pf rule in place: n

Flutter http post request to a PHP file

I am using Flutter for mobile app development. I need to make a POST request to a PHP file in order to save data in my MySQL server. However, I check the reques

Need decimals to round to the nearest integer

I'm using the price adjuster script, but after I run the script I need it to also round to the nearest integer based on if it is .25 and higher, round up and if

Repeat a cubemap texture on a cube face with OpenGL

Is it possible to make a cube map texture (GL_TEXTURE_CUBE_MAP_POSITIVE_X...) repeat on a given face with OpenGL? I have a simple unit cube with 24 vertexes cen

Write a program to spawn a new process, which recieves X an integer and returns X+1. It exits if a non integer message is passed to it in erlang?

I am new to erlang and I have done the code, But I need the right answer format for this question. Here's my code. If I enter any Integers then it'll have to ad

How to scroll down to last row with data?

I have an Excel file with many rows and it gets many entries daily. That's why I would like to scroll down the file to last row with data. To find the last row,