Newest Questions
77,604 questions
0
votes
0
answers
14
views
Maze game from book Design Patterns with smart pointers and polymorphism
The Design Patterns book chapter 3 about Creational Patterns starts with a maze game. They use the maze as an example throughout the chapter and instead of rooms they have also things like enchanted ...
3
votes
3
answers
145
views
Infinite precision integer in C++20
This is my infinite precision integer implemented in C++20. It supports negative numbers. I have implemented addition, subtraction, multiplication and binary integer division, which returns quotient ...
-1
votes
0
answers
22
views
Python Simple ECS Implementation [closed]
I have developed a very simple Python ECS implementation as a module, and would love some feedback on the code.
GitHub repository is here
The module is designed to be as beginner-friendly and as ...
3
votes
0
answers
18
views
Timer coroutine
I was trying to learn more about C++ 20 coroutines. After trying to read the documentation and watching few videos, I tried to write a timer that uses coroutines.
...
1
vote
0
answers
49
views
Image preview and delete for Laravel blog application
I am working on a blogging application in Laravel 8.
I have put togheter a way to preview and remove the main article image.
In the ArticleController.php controller,...
0
votes
0
answers
66
views
Code to compare the performance of direct calls to outsourcing functions into libraries shows libraries slow
after resolving two more general issues in an attempt to build code using a library I'm left with three specific and one general question about the use of libraries and performance in simple "...
2
votes
1
answer
37
views
MATLAB Gait Analysis Script
Could someone kindly help me review and fix any errors or inefficiencies in this MATLAB script? I’m trying to make sure it’s clean, robust, and optimized.
Brief description of what the code does:
This ...
-3
votes
0
answers
44
views
Bitboard to FEN (Chess) [closed]
I'm writing a bitboard to FEN parser for a game of chess. So far I haven't implemented 'active colour', 'castling', 'en passant', 'halfmove' and 'fullmove'.
I have a function that, given a bitboard, ...
0
votes
0
answers
37
views
Mismatch Between Frequency Response and Eigenvalue-Based Natural Frequency in MATLAB for a 5-DOF System with Frequency-Dependent Stiffness
I am working with a mechanical system that has five degrees of freedom (a composite plate), and I am trying to compute its frequency response, time-domain response, and natural frequencies.
I have ...
2
votes
1
answer
49
views
Hourly display new CppQuiz.org questions on an ESP32-powered e-ink screen
I wanted to develop something to put on my desk. It is not more than hobby project but it pushes me to keep learning new things. I'm looking for decent code review for four files.
Here is github link ...
3
votes
1
answer
46
views
More shortest unrestricted paths to touch every square in an n by n grid
This is a part two.
The problem originates from here,
it is solved for \$n<11\$. A GitHub repository for this code, printing paths, and a collection of all proven best paths, it is open to ...
-4
votes
0
answers
109
views
Direct calls of simple functions, e.g. set a variable to NaN or INF, become slow once the program uses libraries, [solved], needed a "-O2" [closed]
Sorry, withdrawn, cross posting to gcc bug tracker helped ( was necessary? ) to clear my head and narrow down the problem between working and not working. I had copied the library compile command from ...
9
votes
3
answers
2k
views
Solver for Wordle puzzle
After a success with the Jumble puzzle solver, I am doing a Wordle puzzle solver. I know many other Wordle solvers have been posted, yet this is my original version, which emphasizes list ...
2
votes
0
answers
21
views
Plugin to enforce individual-use coupon validation in WooCommerce admin
I'm working on a custom WordPress plugin that ensures individual-use WooCommerce coupons are properly validated when applied via the admin order editor.
By default, WooCommerce only enforces this ...
5
votes
0
answers
42
views
Excel Bookkeeping Application, Create Ledgers from Chart of Accounts and Journal
I am writing an Excel bookkeeping application that would be suitable for a small business or contractor. The application is based on a book on double entry bookkeeping:
https://www.amazon.co.uk/gp/...