2,526,925 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
0
answers
23
views
LZSS - handling the compression of data that contains token-like strings
I've been working on implementing some compression algorithms in C/C++ and JavaScript, I've started by building out LZSS. So far everything seems good. I check my dictionary buffer for matches, and if ...
0
votes
0
answers
25
views
How to play a private cloudinary video in react web app
I am trying to follow this example
https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/react-video-player
only difference is I want to do it for a private video
Here are the ...
Best practices
0
votes
5
replies
57
views
Option Array, locating and returning array with correct criteria
I have an object db that has one field containing SKU's that correspond to another object that contains different venues.
db.SKU = [1002,1005,1001,1008,1007];
I then have another object listing the ...
2
votes
0
answers
33
views
React Native Android: TypeError "Cannot read property 'getConfig' of null" after removing Reanimated (RN 0.75.2, Hermes)
I'm seeing this error in the Metro terminal immediately after my Android build finishes loading:
TypeError: Cannot read property 'getConfig' of null
js engine: hermes
There is no stack trace — this ...
Advice
0
votes
4
replies
41
views
Reason why Facebook Flow doesn't have type for objects with null prototype
I've been working with a project, which uses https://flow.org/ .
And I'm a bit perplexed that it doesn't have any syntax or type to specify a type for objects with the null prototype.
type SpecialObj =...
-1
votes
1
answer
59
views
scope of the state variable defined using useState in a doubly nested function in react
I was trying to learn React using this tutorial: https://react.dev/learn/tutorial-tic-tac-toe.
The code I am sharing below just builds 9 squares, and creates two state variables: turn and value. The ...
0
votes
0
answers
23
views
Components inheriting properties from a base class (directive)
I'm trying to dynamically update inputs of my Angular components using ViewContainerRef.createComponent.
Currently, my components inherit input signal properties from this directive:
@Directive()
...
-2
votes
0
answers
20
views
Express.js: "Cannot set headers after they are sent to the client" error with MongoStore sessions - page renders correctly Error [ERR_HTTP_HEADERS_ERR [duplicate]
I'm getting the error Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client in my Express.js application using MongoDB session store, but the page displays correctly in ...
0
votes
0
answers
30
views
My goal is to have an MP4 autoplay and loop when in viewport
I'm building a website and am new to coding. I'm using the newest version of Divi for WordPress and can't get an MP4 to autoplay when in viewport and loop.
This is the video HTML:
<figure class=&...
Advice
1
vote
3
replies
54
views
Cannot read properties of undefined (reading 'goto')
I am super new in javascript and playwright. I encountered below error when trying to run my code.
Cannot read properties of undefined (reading 'goto')
This is my code.
exports.LoginPage= class ...
1
vote
0
answers
34
views
Is it possible to create a custom cursor with page scrolling on mobile using JS? [closed]
I've tried to create a custom cursor for mobile devices, but when the page is scrollable, the custom cursor doesn't follow your finger properly or it drops frames.
Has anyone succeeded in creating a ...
Advice
1
vote
1
replies
27
views
Make native pinch-to-zoom trigger real layout reflow (without horizontal scroll) on mobile
I need the native pinch-to-zoom gesture in mobile browsers to behave like true browser zoom: when the user pinches, media queries should reevaluate and the layout should reflow. At the same time, the ...
0
votes
0
answers
22
views
Validate a PutRequest Item to be used in a DynamoDB BatchWriteItem
Background - We have a lot of historical logs, stored in dynamoDB, and I have been tasked with parsing, summarising and storing the log summary. Using NodeJS @aws-sdk/lib-dynamodb
I do this by batch ...
0
votes
0
answers
21
views
Error entering clerk's email verification code
I am building a mobile application and the framework I am using is React Native + Expo. When it comes to verifying the clerk's email, there is an error that the verification failed. I received the ...
0
votes
0
answers
33
views
How to close the WhatsApp In-App Browser? [closed]
In my project I'm struggling to close the in-app browser in WhatsApp via my project which is used by PHP, JavaScript
enter image description here
In this image the metro site opened via WhatsApp
in ...