2,532,250 questions
0
votes
0
answers
15
views
Add card-frame image to a list when clicking on a card image
I am trying to make a deck builder where the user can click on a card and it adds the matching Card-frame to a deck list on the side in another container. Is this approach I have below the right ...
0
votes
2
answers
27
views
Why is my variable not working when passed as an argument?
For the person who is missing it, I am trying to add the year of death by using the reduce method for an array of objects.
For example:
{
name: "Carly",
yearOfBirth: 2018,
},
{
name: 'Carly'...
0
votes
0
answers
14
views
Why is my Puppeteer screenshot blurry for the main Flourish chart but sharp for other webpage elements?
I'm using Puppeteer in a Node.js script to capture high-quality screenshots of a Flourish Studio bar chart race. However, while most of the webpage appears crisp and clear, the main bar chart race ...
0
votes
0
answers
11
views
error: duplicate class: com.facerror: duplicate class: com.facebook.react.PackageListebook.react.PackageList
I recently upgraded my device from a MacBook Pro 2019 (Intel i7) to a MacBook Air M2. Previously, when I was using the MacBook Pro 2019, my project was running perfectly without any issues. However, ...
0
votes
0
answers
17
views
React Router: Cannot Read Properties of Undefined (reading 'id') When Refreshing or Pasting URL
I'm using React Router v6 in my React app, and I have a Category page that works fine when navigating within the app. However, when I refresh the page or paste the URL into a new tab, I get the ...
-6
votes
0
answers
15
views
Driver License Parsing In Webform [closed]
I am using a USB scanner to scan drivers licenses into a webform. However when doing so, it hits keyboard commands with different "keystrokes" and usually opens up the downloads window with ...
0
votes
0
answers
12
views
Unable to import 'sharp' into Quasar Electron project. "Module not found: Can't resolve 'child_process'"
I am trying to import and use sharp in my Quasar Electron project.
I have tried uninstalling and reinstalling sharp many times.
When running app as dev using quasar dev -m electron, it opens and runs ...
0
votes
0
answers
20
views
cors error thrown when using fetch in a firebase function to get an http website using https protocol
I get a cors error when the url I use for fetch (on the server) has an https protocol that should be an http protocol.
Here's the code in the firebase function (run on the server):
export const ...
0
votes
0
answers
15
views
The script.src setter is distorted by Lightning Web Security (salesforce)
In below code when I tried to run/load script on Lightning web component (LWC) with Lightning Web Security (LWS) enable which throw the error on the screen "This page has an error. You might just ...
0
votes
2
answers
43
views
When Overflow occurs, update background color of DIV or FORM
I have a form that requires a specific section to have a maximum height of 3 inches - due to physical printing purposes. In this section, I have a textarea for users to provide a response (with no ...
0
votes
1
answer
22
views
I can't parse the icon properly; it comes as an artifact from an array of objects
Come array with object
I need to parse this code into an icon because it's currently displaying as an artifact. The project uses Blynk and Ant Design. The icon in the Tag component should be ...
0
votes
0
answers
19
views
Can I apply Content-Security-Policy to scripts only from our domains?
We're running test html pages in next.js and have the following next.config.js set:
reactStrictMode: true,
async headers() {
return [
{
source: '/(.*)',
headers: [
...
1
vote
1
answer
16
views
Angular provideAppInitializer is initialized after ngOnInit
I have in my ApplicationConfig provider
provideAppInitializer(() => {
inject(AppConfigService)
})
In component MainPageComponent I have ngOnInit(), which geting data from backend every refresh.
...
1
vote
1
answer
21
views
Can't successfully test a custom hook using useState and useEffect
While learning React, I'm trying to understand custom hooks.
I've created a simple one updating an internal "step" on creation, cleanup, and allows for external updates.
But I'm struggling ...
-1
votes
0
answers
18
views
browserType.launch: Executable doesn't exist at /app/ms-playwright/chromium_headless_shell-1161/chrome-linux/headless_shell [closed]
needed help getting error:
this is my github:https://github.com/opcxder/medium-scrapper
it works locally fine,
when I try on apify it does not work.
can anyone help me resolve this issue.
already try ...
0
votes
0
answers
22
views
Custom menu able to import data from a CSV file with semicolons separators [duplicate]
I would like to have a script for downloading into a sheet the values contained on a CSV file (stored on my laptop) and which using as separators semicolons.
Into Google Sheets, I would like to have a ...
0
votes
0
answers
7
views
django form submit is not sending all fields in the form when the fields are populated through javascript
When i fill out the form manually, it posts all 7 fields correctly. However, if the form is auto populated through js, the post request is only sending 2 out of the 7 fields (...
0
votes
0
answers
18
views
Fastest way to process audio segments and concatenate buffers in Node.js
I am trying to optimize the performance of a Node.js function that generates audio segments (for example something like OpenAIs TTS API) and then concatenates the resulting audio buffers. My goal is ...
1
vote
1
answer
25
views
Form disable the overflow
I try to implement an overflow in Form react-router, that's work in a classic <div></div> but when I use <Form></Form> my overflow doesn't work. I don't find any topic who talk ...
0
votes
0
answers
11
views
Using Path Aliasing on NPM package
I am in the processes of developing an NPM package with many different directories. Internally, I manage this by using subpath imports in the package.json.
“imports” : { “#*”: “./src”, “#factories”: “....
0
votes
1
answer
10
views
Safari throwing alert when checking if an app Scheme/URL is valid
I am using the following code to check if a mobile app exists on the users phone, if it does then open app, if not then redirect to app store. It works clean on Android, but on Safari simply just ...
0
votes
0
answers
13
views
How to properly handle errors in Nest.js service layer
We are building an API using Nest.js and MikroORM and we are having a debate on several things related to the service "layer" of Nest.js.
Let's suppose you have the following update method ...
1
vote
1
answer
31
views
Performance implications of using complex objects as default parameter
EDIT: looks like I was incorrect about Python's issue - it's with mutability, not performance
Thank you for helping me correct my understanding of the problem. I'm leaving this up in case someone has ...
0
votes
0
answers
13
views
Google provider no response after user login
I have a simple snippet involving Firebase Authentication with two options: email/pass and google.
My problem is that users can use the option email/pass smoothly.
Regarding Google provider, it can ...
0
votes
1
answer
31
views
Copy and paste in the draggable object [duplicate]
I have html script like this,
<div style={{width:"200px",height:"100px"}} draggable={true}>
<div style={{width:"100px",height:"50px"}}> copy test<...
-1
votes
0
answers
53
views
Change hover color of an input type="range" [closed]
I have a react component named DocumentView that has a range slider to show the zoom level of a document. I tried to change the color of the input range on hovering with Tailwind CSS, but it shows the ...
0
votes
0
answers
14
views
Encountering this issue "ERR_INVALID_FILE_URL_PATH: File URL path must be absolute" while running test suite
I am trying to set up Webpack locally and try to run the test,
yarn test
but it failed I don't know how to fix it. I am trying to set up Webpack locally and run its test suite, but I am encountering ...
-6
votes
0
answers
58
views
Saving a reservation button [closed]
*update 13.03.2025 15:35
<button class="reserve-button"
data-post-id="{post.id}"
data-user-id="{current_user.id}"
data-reserved="{...
0
votes
0
answers
15
views
Potential CSP issue with Safari only devices and Google Tag Manager
I am running into an issue with a eCommerce website that appears to work fine on desktop and Android browsers, however when loading the site on a Apple based device with Safari it is breaking some ...
-2
votes
1
answer
44
views
Can we use WeakMap to improve garbage collection?
Say I have a class that does a lot of fetch requests.
State of each request is stored in a property of that class, which now is an array of objects.
Objects in that array are not needed once the fetch ...
0
votes
0
answers
29
views
Make element visible within Elementor's accordion widget before item is opened
since the new accordion widget of Elementor uses content-visibility: hidden for its contents before a tab is opened, it's not possible to make certain elements within visible before that.
But that's ...
0
votes
0
answers
10
views
survey-react-ui onUploadFiles not triggering on choose file button file picked
I am using survey-react-ui version 1.12.27, all other events are triggering but onUploadFiles event is not triggering.
When i select file using "choose file" button event does not trigger. ...
-1
votes
2
answers
54
views
HTML: image name as url parameter does not work?
I have a HTML page which that using an image name as URL parameter. Why doesn't show the image, what do i wrong?
<!DOCTYPE html>
<html lang="nl">
<head>
<script src=...
0
votes
0
answers
21
views
Telegram requestWriteAccess popup window
Creating the Webapp game as telegram mini app. And stucked with one feature based on the requestWriteAccess.
What i want to achieve is that when i requestWriteAccess from user, it will show pop up as ...
-1
votes
0
answers
16
views
Official JSON Schema for npm audit --json Output? [closed]
I'm looking for an officially documented JSON schema that defines the structure of the output from the npm audit --json command. While I understand that the output includes keys like actions, ...
0
votes
1
answer
28
views
How to set layout's page title from a view?
Let's say I have this Handlebars layout:
<!DOCTYPE html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<div>
...
0
votes
1
answer
10
views
Change the settings of Sortablejs after its set
I am having trouble to change my sortablejs settings after its set.
The initialization of this function is done within an other script(this script may not change) and is done when the page is loaded.
...
0
votes
0
answers
60
views
State Not Updating in useEffect When Clearing Filters
I have a global filter clearing function in a React app that should reset the filter dropdowns, input fields, and UI markers when a "Clear Filters" button is clicked.
The problem is that my ...
0
votes
1
answer
21
views
Remove Spacing from the bars for Q1 and Q2 I am using chartjs version 2.7.2 and angular chart js version 1
In your Chart.js bar chart, experiencing unwanted spacing between the labels Q1 and Q2 when the corresponding data values are 0. Even though the bars with 0 values are not visually displayed, Chart....
1
vote
0
answers
10
views
Outlook Addin Mobile get Email as Base64
In a Mobile Outlook Addin, what is a good replacement for the unsupported (on Mobile) function Office.context.mailbox.item.getAsFileAsync?
*the function above gets the currenty open Email as base64
*...
0
votes
0
answers
31
views
Puppeteer Not Working in Node.js Project After Deployment to Azure (Works Locally)
I am using Puppeteer in my Node.js project, and it works perfectly fine on my local machine. However, after deploying the project to Azure, I am encountering issues where Puppeteer does not seem to ...
1
vote
0
answers
15
views
How to implement custom rendering of ECharts legend as a drop-down selection box?
Product Request Pic
Regarding the legend in this chart (Tracking Index / CSI 300) and rendering it as a Select component, I would like to ask how this is achieved through ECharts' configuration or API,...
0
votes
0
answers
10
views
dyGraphs is possible to fill the area with differents colors based on the y value?
Graph Image
With dyGraphs is possible to fill the area of a graphic with differents color based on y value ?
0-49.9 green
50.0 149.9 yellow
150 and up red.
I made this example https://tbr2.it/radon/...
0
votes
1
answer
25
views
in blazor app using javascript setScrollPos and getScrollPos to maintain scroll on list page
In my Blazor app, I'm using the following JavaScript to maintain scrolling on my list page after returning from details page. The user experience is not the greatest, it starts at top of the page then ...
0
votes
1
answer
125
views
While binding data in HTML table getting NAN values
I have implemented the below logic for displaying calculation with data. So while displaying the data in Maintenance Point column I am getting values as NaN. But there should be no values. What is ...
1
vote
0
answers
56
views
how to share Azure AD auth between two different sites
I have two websites:
1. Main Site: Developed using Next.js with NextAuth for authentication.
2. Child Site: Developed using React with MSAL-React for authentication.
Both applications share the ...
0
votes
0
answers
21
views
Discord.js 14 Slash Commands Duplicated
Not really sure why, but seems that my slash commands are registering twice. I've tried various methods, yes using ChatGPT, but so far all of the results have duplicates.
Any suggestions? (Besides ...
1
vote
1
answer
99
views
How do I make my Vertical Image Parallax Smoother?
I'm trying to make a parallax effect similar to the hover-over effects on the images on this site: https://www.framer.com/gallery/categories/portfolio
and here is the code I have so far:
document....
4
votes
1
answer
80
views
How to get a resource's relative path to HTML document?
Let's say I have a simple web project structured like this:
├─ 🗎 index.html
├─ � collection
│ ├─ 🗎 item1.html
│ ├─ 🗎 item2.html
│ └─ ...
├─ � css
│ ├─ 🗎 main_styles.css
│ └─ 🗎 ...
0
votes
0
answers
84
views
Replicate a water droplet cursor effect
I am trying to replicate the background magnification cursor effect you can see on this website using html, css, js. Does anyone have an idea of how I can do this? Any help would be welcome.
I have ...