Newest Questions
77,894 questions
0 votes
0 answers
5 views
CSRF protection using client-side double submit
I’m working on an open-source Express + React framework, and while running GitHub CodeQL on the project, a CSRF-related issue was raised. That prompted me to review my CSRF protection strategy more ...
0 votes
0 answers
12 views
Ensuring Atomic Operations and Proper State Management in Flutter BLoC with Clean Architecture
I am not an expert in flutter / clean architecture as a whole and I am trying my best to learn through the community , lets go straight to detail : I am using clean architecture to structure my app , ...
1 vote
2 answers
37 views
Huffman compressor/decompressor in C17
Intro This time, I have a C17 rewrite of A Java program for compressing/decompressing files via Huffman algorithms (version 1.1.1). The following software compiles both on Windows 11 and Ubuntu, so it ...
6 votes
2 answers
278 views
LeetCode 2. Add Two Numbers
The task is taken from LeetCode. I would appreciate an assessment of whether my coding style follows good practices, and if there are any habits or patterns you would find concerning when working ...
-2 votes
0 answers
30 views
Ordered send queue with ASIO [closed]
I have the following code using the C++ ASIO library that's intended to ensure messages are not interleaved on the socket being written to (as discussed here): ...
4 votes
1 answer
119 views
Create tags for potentially dirty git repository state
Note: The below is similar to this question (i.e. same motivation & general idea), but tries to be more careful: My version should never touch the repository state (to preserve staged files etc), ...
9 votes
3 answers
547 views
Maze Solver in Python inspired by Micro-Mouse Competition Logic
Why I made it I watched this video by veritasium about Micro-Mouse maze-solving competitions, and found the logic to get to the center fascinating. Hence, despite not having a maze or a mouse, I spent ...
5 votes
2 answers
361 views
Image Perspective Transformation with CUDA in C++
This is a follow-up question for Image Stitching using SIFT Keypoint Descriptor in C++ and SIFT Keypoint Detection for Image in C++. In the previous post, the image stitching algorithm is implemented; ...
5 votes
5 answers
2k views
Chess Clock Code
The code below I've made is supposed to act as a chess clock when uploaded to a compatible Arduino. I've written everything, but I just want another set of eyes to look over the code in case I've ...
5 votes
5 answers
966 views
Function in Python that encrypts and decrypts, taking string to list and the other way around
I'm new on Python, so I'm looking at these YouTube videos of Python projects to practice, and I saw this one of a Password Manager with encryption, but the encryption part couldn't use password, ...
0 votes
0 answers
31 views
Sending and receiving TypedArray's in Chromium Web extension messages
This is an alternative approach and follow up dealing with this issue Extension messaging uses base::Value (JSON) serialization but could use WebSerializedScriptValue (structured cloning), closely ...
5 votes
4 answers
407 views
Absolute-path Python function taking as argument a path relative to the directory of a script (.py) or Jupyter notebook (.ipynb) file
I'm currently still in the early stages of learning Python and Jupyter notebooks, and I wanted to ask if the following code for returning absolute paths relative to the directory of a script (...
5 votes
3 answers
546 views
Ping sweep of IP subnets
I made a ping sweep for the first time, and I want to do better. What do you think that I might be missing? ...
5 votes
1 answer
129 views
Breakout Game as a Bookmarklet in JavaScript
Why I made it I wanted to experiment with javascript: bookmarklets and see how far a small injected script could go on any site by making a simple injectable game. ...
-4 votes
0 answers
26 views
Working with httplib in C++ and need libssl and libcrypto to support ssl [closed]
Trying to write code in C++ to connect with an API to pull data from a site. The issue I am having is that the site uses SSL and the relevant version of the command to work with SSL in httplib is not ...