Newest Questions
24,163,978 questions
Advice
0
votes
0
replies
5
views
Cybersecurity and IT
I'm a 24-year-old guy currently working as a sales assistant in a footwear company. I'm in my second year of a Computer Science bachelor's degree at an online university (since I work full-time, ...
Best practices
0
votes
0
replies
5
views
How to avoid repeatedly passing a string slice to helper method without adding lifetime?
How can I avoid repetition of passing val every time? In c++ I would just create a field in a class but in rust it's not so simple because &str requires a lifetime.
impl MyStruct {
fn b(&...
0
votes
0
answers
7
views
How to implement CSP without 'unsafe-inline' in WordPress (Elementor) without breaking site?
I am working on securing a WordPress website that uses Elementor and several plugins.
I have implemented a Content Security Policy (CSP) via .htaccess like this:
Header always set Content-Security-...
-1
votes
0
answers
10
views
How to fix vertex pulling strength being randomly very strong in a curve?
There is a random point that seems to be "stronger" than other ones:
IMG 1 - Nurbs
Even if I use a bezier and try to make the curve look as smooth as possible, I can see a distinct issue ...
0
votes
0
answers
14
views
How can I allow pointer hover detection on an overlay div without blocking click events on underlying elements? (dHTML)
Overview
In html, css, and js I made a sidebar that can be hidden with a click. I have tried to make users able to hover their mouse over where the sidebar used to be, and showing a button that could ...
-1
votes
0
answers
6
views
redis-sentinel doesn't load the auth-user configs
The problem:
When I learning to use redis-sentinel to set up redis servers for high availability, the redis-sentinel can't connect to the redis server and shows the master is sdown
Then I changed the ...
0
votes
0
answers
3
views
BrowserStack automation clicks twice on the button
I have a test that fails on BrowserStack because a button seems to be tapped twice. Here are more details:
I’m using the Maestro framework(maestro.dev), and I have the following code:
- tapOn:
...
Advice
0
votes
2
replies
14
views
List URL's in a website in VS Code or Terminal
I use VS Code to run my website. However, I can't seem a way to get a list of URL's. Is there a command or way to extract/see a list?
-1
votes
0
answers
17
views
SMAC3 / pyrfr fails to build with GCC: "assignment of read-only member" in rapidjson
(I used AI to rephrase my question)
Environment
OS: Ubuntu 24.04 (Docker container)
Python: 3.11.15 (managed by uv)
GCC: /opt/conda/bin/x86_64-conda-linux-gnu-c++ (GCC 13+)
swig: 4.2.0 (installed ...
Best practices
0
votes
2
replies
21
views
Should I use async to ensure data is returned from db call
I have this function called BulkCopyIntoTable which filters a datatable and based off the max integer of the table im inserting into and inserts data that is greater than that integer. I use the ...
Advice
0
votes
1
replies
22
views
How could i impove it guys?
Please help me guys
from __main__ import app
from flask import render_template, redirect, url_for, flash, session, request
import sqlite3
from db_connector import database
from flask import request
...
-1
votes
0
answers
24
views
trying to make a pause menu and having trouble with the while statement and keyboard module [closed]
I'm Currently making another game in python as another experiement and I made a pause menu ui thingie. I've made a decent amount of progress but i had to restart because for some reason I love over ...
0
votes
0
answers
20
views
Sudden change to Reverse extension method causing build errors
I have the following code (stripped down to bare minimum)
using System;
using System.Linq;
namespace Test;
public class TestSomething
{
public byte[] DoAThing(byte[] input)
{
return ...
-1
votes
0
answers
18
views
GLFW 65542: EGL: Failed to initialize
I use NixOS with proprietary nvidia drivers
Error: WARNING: GLFW: Error: 65542 Description: EGL: Failed to initialize EGL: EGL is not or could not be initialized
WARNING: GLFW: Failed to initialize ...
-3
votes
0
answers
28
views
how to create a express api that can trigger a deep learning model [closed]
I am new to Python and backend integration. i have knowledge about express backend.
I have a trained Convolutional Neural Network (CNN) model saved as a .keras file, which predicts plant leaf diseases ...