Newest 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 ...
elehtine's user avatar
  • 133
3 votes
3 answers
146 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 ...
Ξένη Γήινος's user avatar
-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 ...
Rich. T.'s user avatar
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. ...
kiner_shah's user avatar
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,...
Razvan Zamfir's user avatar
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 "...
user1018684's user avatar
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 ...
elena conidi's user avatar
-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, ...
Marcus's user avatar
  • 95
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 ...
AaronTBM's user avatar
  • 109
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 ...
embeddedstack's user avatar
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 ...
tomka700's user avatar
  • 203
-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 ...
user1018684's user avatar
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 ...
inyoot's user avatar
  • 337
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 ...
Pavel Drow's user avatar
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/...
arcomber's user avatar
  • 2,509
2 votes
0 answers
69 views
+100

Is this RenderObject implementation following the correct rendering algorithm and intended uses?

I'm trying to see if this RenderObject is well implemented or if it's doing something bad with respect to Flutter rendering algorithm, especially: Is it ok to call ...
Ademir Villena Zevallos's user avatar
-3 votes
0 answers
76 views

Typesafe Java serialization and deserialization of records in one Java 21 source file [closed]

I have implemented in a single Java source file type safe serialization and deserialization of JDK 21 record types and sealed interfaces that only take those types. ...
simbo1905's user avatar
  • 318
2 votes
0 answers
43 views

Basic Rust server + client to handle future game logic

I made a really basic server and client in Rust using tokio for the server. I would like to receive feedback on the (very limited) code I have so far, just to make sure I'm on track to follow Rust's ...
Ajawdsa's user avatar
  • 21
4 votes
0 answers
78 views

Chess engine in FORTRAN 90

...
Dean Menezes's user avatar
3 votes
1 answer
61 views

Implement a matrix and access its elements

I have just started to learn how to program in Scheme using the LispPad app on my iPad. I want to know if the following is the best way to implement a matrix and access its elements. This code ...
Will.Octagon.Gibson's user avatar
4 votes
3 answers
140 views

Sieve of Eratosthenes with Wheel Factorization in C++ version 2

I have implemented Sieve of Eratosthenes with Wheel Factorization in C++ again, this time using a bigger wheel and much more complicated C++ syntax, to familiarize myself with C++ and see how fast I ...
Ξένη Γήινος's user avatar
3 votes
1 answer
40 views

Detect the repeating hour with Daylight Savings Time switches in TypeScript

...
QuestionablePresence's user avatar
3 votes
1 answer
57 views

A function that returns correct number of inserted, updated and skipped rows for INSERT or UPDATE query

When MySQL executes a Data Modification Query, it provides some additional info on the outcome, which is usually displayed in the console. This info is also being exposed through MySQL C API and this ...
Your Common Sense's user avatar
3 votes
1 answer
39 views

DioClient using Clean Architecture following SOLID Principle

I am trying to write an API Client in flutter that follows Clean Architecture, SOLID principle and best programming practices After completing this, I am going to use it in Repository or DataSource. ...
C Sharp Guy's user avatar
3 votes
1 answer
152 views

HTML Editor: Online HTML Editor with Real-Time Preview (version 6)

Overview HTML Editor is a web-based HTML editor designed for web developers, designers, and learners. It offers a lightweight, minimalist environment for writing and previewing HTML, CSS, and ...
Mori's user avatar
  • 197
0 votes
0 answers
57 views

Element-wise natural logarithm of large array

Let X be a numpy.array of np.float32 with shape (100,100,100,100). I'm computing the variable lX with the following formula <...
manifold's user avatar
  • 121
5 votes
3 answers
1k views

Slow SQL query with nested subquery

I have written the below query in order to identify how many events (occur over a week) in each hour. ...
Danny Goodall's user avatar
3 votes
2 answers
71 views

Simple WinAPI Event manager implementation

Trying to learn windows internals and made my first work with Events and Threads. What do you think about my code? Any advice? ...
vansergh's user avatar
  • 303
3 votes
2 answers
734 views

Retrieval-Augmented Generation from text files

Context: I'm a complete newbie trying to get good at structuring my code. I'm aware that I'm supposed to do my own research with docs, but I don't know what specific docs I should be reading for this ...
Shades's user avatar
  • 41
3 votes
1 answer
212 views

Solution to the N Queens Puzzle in the PicoBlaze assembly language

You can see it live here: ...
FlatAssembler's user avatar

15 30 50 per page
1
2 3 4 5
2587