2,531,489 questions
-2
votes
0
answers
25
views
Remove trailing decimals without rounding up [duplicate]
For example, I have a number 123.429. How can I remove the trailing decimals without rounding up to two decimal places. Hence, I need the number to be up to one decimal point i.e. 123.4
-0.5 to -0.58 ...
-2
votes
0
answers
28
views
When the Like/Dislike button is pressed, the counter increases on the first click and decreases on the second [closed]
there is a working example of a comment rating. Everything works (when you press like, it's plus 1, when you press dislike, it's minus 1) All that needs to be done is to return everything to its ...
0
votes
0
answers
8
views
Using webpack-merge for both module loaders and plugins
We have multiple webpack configuration files, and I need to restructure them to share common configuration
Current file structure
webpack.prod.js
webpack.dev.js
New file structure
webpack.common.js
...
0
votes
0
answers
14
views
How to use Paylaod CMS Jobs Queue
I am new to Paylaod CMS & trying to use Jobs Queue, just trying to send email every minute and testing on local machine.
Here is my payload.config.ts:
export default buildConfig({
jobs: {
...
0
votes
1
answer
32
views
css gets transitioned at first mount
I have a svelte app that mounts some progress dots into a pretty plain html site.
simplified the ProgressDots.svelte has this:
hello
<div class="progress-dots">
<div class="...
-4
votes
0
answers
22
views
Threejs shadow not rendered properly [closed]
Why shadows are not rendered properly and there are gradient like issues
const light = new DirectionalLight(tint, 2.5);
light.position.set(-20, 90, 4);
const helper = new CameraHelper(light.shadow....
-1
votes
0
answers
13
views
foundation slider with active thumbnail in the visible area
I'm using the orbit modul from foundation that works fine. I have reused the area of the bullets for the thumbnails of the large slider images. This also works so far, the active thumbnail is also ...
-2
votes
1
answer
51
views
Why do we prefer arrow function over traditional function declaration in React? [closed]
async function saveProduct() {
const response = await fetch;
}
function saveData(e: React.MouseEvent) { }
const saveProductt = async () => { }
As I had seen the tutorials or any codebase in ...
2
votes
0
answers
38
views
How to create a layout that only has all even or all odd row size, and changes by only 2?
I have been iterating with both Claude 3.7 Sonnet, and ChatGPT 4o, for days and days, trying to get this to be exactly how I want it, but it keeps making mistakes in the algorithm, and on an on in ...
-3
votes
0
answers
32
views
why am i getting a WebRtc connection issue in windows? [closed]
import {
WebSocket
} from 'ws';
const init = (port) => {
console.log("web socket server is initialized");
const wss = new websocket({
port
});
...
0
votes
1
answer
22
views
ChartJS make container fill whole CSS grid item
I'm putting a chart (made using Chart.js) inside a CSS grid, and I want the chart to responsively fill the full width of its grid cell. However, even after turning on responsive and turning off ...
-4
votes
0
answers
44
views
My website keeps crashing when I try to upload an image [closed]
I am making a resume builder in Next.js and I am using React-Hook-Form with Zod and Shadcn.
"use client"
import { Button } from "@/components/ui/button";
import {
Form,
...
-3
votes
0
answers
20
views
Optimizing weather animations (snow/rain/stars) for mobile - alternatives to 100+ CSS animated elements? [closed]
I'm building a weather-themed portfolio with interactive animations that must maintain performance on mobile devices (≥ iPhone 8/Android 9). While I've made optimizations, I'm hitting performance ...
0
votes
0
answers
23
views
Unselecting and other weird behaviors like tapping outside deselect sometimes when the app is tested on a real phone, but works in pc mobile size
This is very weird, when you select the same hour that you selected it should deselect it but it doesn't work when tested on a real phone. When i test it in my pc using mobile size 290 width pixels ...
0
votes
0
answers
14
views
WebAuthn passkey prompt not appearing in Firefox 137 on Windows 11
I’m working on a login flow that uses WebAuthn passkey authentication on the frontend. The implementation works fine in Chrome and Edge, but the passkey prompt does not appear at all in Firefox ...