Newest Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
20 views

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), ...
Lukas Lang's user avatar
5 votes
3 answers
42 views

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 ...
Chip01's user avatar
  • 786
3 votes
1 answer
31 views

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; ...
JimmyHu's user avatar
  • 7,605
5 votes
5 answers
1k views

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 ...
Beans's user avatar
  • 61
5 votes
5 answers
946 views

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, ...
Unknown's user avatar
  • 53
0 votes
0 answers
26 views

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 ...
guest271314's user avatar
5 votes
4 answers
404 views

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 (...
Frances's user avatar
  • 153
5 votes
3 answers
542 views

I made a ping sweep for the first time, and I want to do better. What do you think that I might be missing? ...
ToBi's user avatar
  • 61
5 votes
1 answer
123 views

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. ...
Chip01's user avatar
  • 786
-4 votes
0 answers
25 views

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 ...
Andrew's user avatar
  • 1
1 vote
0 answers
145 views

Some browsers were not showing text on my webpage in bold so I put some text that was between <span> tags between ...
Baangla Deshi's user avatar
-5 votes
0 answers
38 views

Aim My aim is to analyze a (big) (sub)directory and just find out what file extensions all files have there (recursively). Additionally, these conditions apply: I am on Windows, but I could use WSL ...
rugk's user avatar
  • 91
7 votes
3 answers
857 views

Can you please comment on the script below? It backs up my local password database to a remote repository if a change is detected. It works as intended. I'd like some comments in terms of syntax, ...
Sandrew Cheru's user avatar
5 votes
1 answer
131 views

I wanted to create a protected member in a javascript (ES) class but, of course, there is no such concept. So I devised a way that would let me create a member or something that "no one could ...
Abet Giron's user avatar
9 votes
2 answers
604 views

I have created a text-based program that finds the nearest school using your coordinates. The CSV DataFrame is available through LimeWire. I'd like to know how I can improve it. ...
Litcoder's user avatar
7 votes
3 answers
460 views

I'm implementing a MinMaxStack<T> in C++20 that tracks minimum and maximum values. The class needs T to support ...
sam's user avatar
  • 523
5 votes
2 answers
235 views

I am trying to convert a dataset which has a Lambert Conformal Conic projection to the classic WGS 84 with Python. Unfortunately, the dataset does not have a defined EPSG code, but the general ...
Lefteris Mezilis's user avatar
5 votes
3 answers
730 views

I have written a short bash (or POSIX-compliant) script to clean up the Traefik access log file and limit it to a maximum of 50 MB. I would like to know what you think of it. Any suggestions are ...
Tobias Grothe's user avatar
5 votes
3 answers
598 views

From my previous post, I tried to take into account all of the nice answers made by Kate, Chris, J_H, Booboo and mudskipper Changes made In short, I attempted to apply all of the following: API key ...
Chip01's user avatar
  • 786
8 votes
5 answers
1k views

Why I made it I’m building a voice assistant and thought it would be great if it could deliver news updates. What it does It cleans up the user’s query, determines whether it refers to a news category ...
Chip01's user avatar
  • 786
1 vote
0 answers
56 views

Explainer Problem No standardized Web Extension API to send or transfer TypedArrays or ArrayBuffers or ...
guest271314's user avatar
4 votes
2 answers
272 views

I developed two custom UI components with Pygame: a Button widget and a Frame widget. After placing the Button inside the Frame, I encountered an issue with the Button’s collision detection. ...
Hossein TwoK's user avatar
4 votes
2 answers
404 views

From the previous post, I have incorporated the nice answers made by Chris and Chip01. Code ...
coderodde's user avatar
  • 32.3k
4 votes
2 answers
465 views

Intro (The previous version is here.) (The next version is here.) Now I have incorporated nice answers made by Chris and Chip01. What changed: Fixed the computation of median, ...
coderodde's user avatar
  • 32.3k
4 votes
1 answer
171 views

Why I made it I built a small news-style website in Secondary 3 to publish monthly recaps of everything happening in my friend group. My friend’s pen name was Salmon (Who is also the one who designed ...
Chip01's user avatar
  • 786
4 votes
3 answers
452 views

Intro (See the next iteration A tiny Java framework for gathering running time statistics - Take II.) I have this tiny Java framework that allows users to gather running time statistics of a piece of ...
coderodde's user avatar
  • 32.3k
5 votes
4 answers
487 views

I was looking at a Stack Overflow question and got somewhat carried away with improving the solution, well beyond the scope of that question. In summary, we have a string such as ...
Toby Speight's user avatar
  • 88.8k
1 vote
1 answer
110 views

Intro (See the version 1.0.0.) (See the GitHub repository.) This time I have got rid of some generic classes and adapted the entire code base to deal with byte ...
coderodde's user avatar
  • 32.3k
6 votes
3 answers
656 views

This question used to contain a mistake in the code, so I had to debug and reformat it. This is the correct version. Why I made it A friend and I wanted to make a lightweight browser, since our ...
Chip01's user avatar
  • 786
2 votes
1 answer
105 views

Are there any improvements I can make to my code for forward Euler's method on Matlab? ...
Liam Goldsmith's user avatar
1 vote
2 answers
128 views

Note that this is the original version which has not been formatted to comply to PEP-8 and contains an error in the code. Please visit the updated version instead to post answers, comments and/or cast ...
Chip01's user avatar
  • 786
7 votes
3 answers
821 views

Why I made it I wrote this script for one simple purpose: to Rickroll my friends. How it works This is the workflow: It fetches a .png frame from a PHP endpoint on a website I own. The frame number ...
Chip01's user avatar
  • 786
0 votes
0 answers
51 views

After submission if there are any error, on user inputfield typing wants to remove that error. My Approach. ...
Devang Gondaliya's user avatar
6 votes
1 answer
121 views

I made this executable because I used to play on a MUD, which was essentially a server to which you connect to through telnet to play in a multiplayer world. What annoyed me was how difficult it was ...
Chip01's user avatar
  • 786
4 votes
2 answers
692 views

I already asked this question, but the script I provided was not compliant to PEP-8, so I rewrote the script for better readability. I'm making a platformer game called Uni where this small character ...
Chip01's user avatar
  • 786
6 votes
3 answers
1k views

I'm making a platformer game called Uni where this small character has to go as high as possible, in which the player constantly has to choose between jumping (W) going left or right (A-D) climbing ...
Chip01's user avatar
  • 786
5 votes
1 answer
471 views

Intro (See the version A Java program for compressing/decompressing files via Huffman algorithms (version 1.1.1).) (The full repository is here. It contains also some unit tests that do not fit in ...
coderodde's user avatar
  • 32.3k
0 votes
0 answers
48 views

References WebSocketStream Explained WebSocketStream API design Source code https://github.com/guest271314/websocket-stream-impl Implementation ...
guest271314's user avatar
3 votes
1 answer
465 views

I am learning to write an arrows-only, Term only foundations in C, because I noticed Lean4 has types and terms, so I thought maybe it would be nice to have term as the basic building block. Please ...
Attila Vajda's user avatar
3 votes
5 answers
650 views

This code below aim to listing all folders in one directory and get size of each in byte. It uses only pathlib module for that. ...
wilfrid julien's user avatar
1 vote
1 answer
160 views

I created this module to help with the creation of HTML elements: ...
Justin Massey's user avatar
7 votes
3 answers
817 views

I’m implementing a templated LRU cache in C++17 and C++20. High-level design: Recency: ...
sam's user avatar
  • 523
0 votes
0 answers
66 views

I am creating a program to create digital twins of enterprises. I am using the Simpy framework for this purpose. I'm creating a universal system that can model almost any enterprise, but I have a ...
Андрей Александров's user avatar
1 vote
1 answer
66 views

I've been looking on how to use Builder pattern on rust with structs, but all examples I've seen only use primitive data. Given the structs: ...
user31872722's user avatar
2 votes
1 answer
160 views

Intro (This is the continuation of HuffmannEncoder.java - computing prefix codes for arbitrary (generic) alphabets.) (See the GitHub repository.) This time: I have fixed the misspelled ...
coderodde's user avatar
  • 32.3k
6 votes
2 answers
516 views

I never remember without looking how to write RB or AVL balancing. but I wanted to make sure I would be able to still write a reasonable dynamically balanced binary tree. If it is asked of me in ...
Ralender's user avatar
4 votes
2 answers
369 views

(See the continuation of this post at HuffmanEncoder.java - computing prefix codes for arbitrary (generic) alphabets - Take II.) I have this Java implementation of the Huffmann encoding. It looks like ...
coderodde's user avatar
  • 32.3k
3 votes
1 answer
752 views

Is there any way to improve my spaghetti as a new C programmer? I'm both trying to make my program functional and nice, as well as easy to debug, and I've done a lot for this, can the codebase be ...
Unknownias's user avatar
9 votes
2 answers
882 views

This is my first time doing any kind of serious coding in C. I watched a Youtube video on what an Arena Allocator should do and I tried my best to make an implementation for it. As of now, we have the ...
Aron Cauê's user avatar
2 votes
3 answers
1k views

I am working on this LeetCode problem where I have to count the minimum number of operations to make all elements in an array equal to zero 3542. Minimum Operations to Convert All Elements to Zero ...
Jared McCarthy's user avatar

15 30 50 per page
1
2 3 4 5
1558