Newest Questions
 77,841 questions
 
 - Bountied 0
 - Unanswered
 - Frequent
 - Score
 - Trending
 - Week
 - Month
 - Unanswered (my tags)
 
 
 3
 
 votes
 
 
 
 2
 
 answers
 
 
 
 143
 
 views
 
 
 
 
 Tilemap implemented in pygame
 This code requires:
tile map exported as .csv file
tile set as .png
knowing tile size
knowing the rows and cols of the tile set .png
For example, this tileset has 2 rows and 6 cols
...
 
 
 
 
 
 0
 
 votes
 
 
 
 0
 
 answers
 
 
 
 19
 
 views
 
 
 
 Native Messaging performance test
 I put together this Native Messaging performance test to determine based on evidence which programming language, JavaScript engine or runtime, and WebAssembly compiled code is fastest to round trip 1 ...
 
 
 
 
 
 2
 
 votes
 
 
 
 2
 
 answers
 
 
 
 553
 
 views
 
 
 
 
 
 Three non-negative integer encoding techniques in Java
 Intro
In this post, I will present three (3) non-negative integer encoding techniques:
Elias gamma coding
Elias delta coding
Golomb-Rice coding
Code
...
 
 
 
 
 
 6
 
 votes
 
 
 
 3
 
 answers
 
 
 
 712
 
 views
 
 
 
 
 
 Replacement for "make" in Python
 I'm working on a replacement for make written in Python. Instead of a Makefile, you create a Wormfile.py. This file gets imported dynamically and a Context object ...
 
 
 
 
 
 -4
 
 votes
 
 
 
 0
 
 answers
 
 
 
 45
 
 views
 
 
 
 
 Windows backup a folder into another [closed]
 I would like to backup my C:\data folder into my D:\data folder, where D: is an external ...
 
 
 
 
 
 3
 
 votes
 
 
 
 2
 
 answers
 
 
 
 389
 
 views
 
 
 
 
 
 A simple method for compressing white space in text (Java) - Take II
 Intro
In this post, I will elaborate on A simple method for compressing white space in text (Java). Here, I have incorporated some advice offered by Chris. Also, this version preserves a single new ...
 
 
 
 
 
 2
 
 votes
 
 
 
 2
 
 answers
 
 
 
 221
 
 views
 
 
 
 
 
 Benchmarking in Java some super linearithmic sorting algorithms
 Intro
A sort is called super linearithmic if its running time is \$\omega(N \log N)\$. For example, \$f(N) = \omega(g(N))\$ means that \$f(N)\$ grows "faster" than \$g(N)\$. In this post, I ...
 
 
 
 
 
 -2
 
 votes
 
 
 
 0
 
 answers
 
 
 
 37
 
 views
 
 
 
 
 Is this comb-filtering behavior genuine or a result of aliasing? [closed]
 I'm solving a non-linear ODE with some input signal.
The signals consist mostly 0, with 1 at a given frequency up to a given ...
 
 
 
 
 
 6
 
 votes
 
 
 
 1
 
 answer
 
 
 
 333
 
 views
 
 
 
 
 
 S-expression parser in Rust
 I wrote a toy s-expression parser, and I'd like to know if I can make it more Rusty.
I'm not terribly worried about the functionality. It's only a Rust exercise for me.
...
 
 
 
 
 
 4
 
 votes
 
 
 
 1
 
 answer
 
 
 
 492
 
 views
 
 
 
 
 A simple method for compressing white space in text (Java)
 (The story continues in A simple method for compressing white space in text (Java) - Take II.)
Intro
Now I have that text space compressor. For example,
...
 
 
 
 
 
 0
 
 votes
 
 
 
 0
 
 answers
 
 
 
 23
 
 views
 
 
 
 Working on HIMS SaaS using MEAN stack
 I was facing an issue with changing models on the fly — since we don’t just need isolation based on string or ID, but also data-level differences for each HIMS instance. To handle this, I created a ...
 
 
 
 
 
 2
 
 votes
 
 
 
 4
 
 answers
 
 
 
 1k
 
 views
 
 
 
 
 
 Python project to scrape webpages and build text datasets for ML purposes
 Context
I'm returning to Python development after a break and actively learning AI/ML. As part of my learning journey, I'm building a dozen pet projects to strengthen my skills. This is my first ...
 
 
 
 
 
 5
 
 votes
 
 
 
 3
 
 answers
 
 
 
 928
 
 views
 
 
 
 
 
 Moving ball simulation within a donut
 How do I optimise my code more?
The goal is to have my code work with more than 200 moving balls, but that takes forever right now and doesn't look smooth at all. Furthermore, I can't get the sizing ...
 
 
 
 
 
 -5
 
 votes
 
 
 
 1
 
 answer
 
 
 
 76
 
 views
 
 
 
 
 Object oriented programming deque implementation (after second thought)
 The java.util.Deque implementation from Object oriented programming deque implementation that consists of three elements linked arrays, each array holding reference ...
 
 
 user avatar
 
 
 user294788
 
 
 
 
 
 
 2
 
 votes
 
 
 
 1
 
 answer
 
 
 
 126
 
 views
 
 
 
 
 
 ShannonFanoEncoder.java - computing prefix codes in Java
 Intro
This time, I have implemented the Shannon-Fano coding.
Code
io.github.coderodde.compression.ShannonFanoEncoder.java
...
 
 
 
 
 
 0
 
 votes
 
 
 
 0
 
 answers
 
 
 
 30
 
 views
 
 
 
 SpiderMonkey JavaScript engine Native Messaging host
 Native Messaging host using Mozilla SpiderMonkey JavaScript/WebAssembly engine.
Documentations
Chrome Developers
MDN Web Docs
Microsoft Edge Developer documentation
Messaging between the app and ...
 
 
 
 
 
 -2
 
 votes
 
 
 
 0
 
 answers
 
 
 
 34
 
 views
 
 
 
 P3D + Processing - Java Support [closed]
 Using P3D + Processing, to achieve random arrangement of boxes as attached below
00:31
https://vimeo.com/143076578?fl=pl&fe=vl
Colour/hatching not important, will be completed in post if requires ...
 
 
 
 
 
 0
 
 votes
 
 
 
 0
 
 answers
 
 
 
 61
 
 views
 
 
 
 
 Jump point search in Java for faster pathfinding in grid mazes
 (Refer to the entire repository in GitHub.)
How it looks like
Intro
This time, I present my take on Jump point search that I translated from Javascript (PathFinding.js/src/finders/JumpPointFinderBase....
 
 
 
 
 
 2
 
 votes
 
 
 
 1
 
 answer
 
 
 
 66
 
 views
 
 
 
 
 Managing a global backend/device state when making a deep learning framework
 I have been making a deep learning framework modelled after Pytorch in pure Python. I have made good progress but my framework is currently not seamless to use because the end user of the framework ...
 
 
 
 
 
 -2
 
 votes
 
 
 
 0
 
 answers
 
 
 
 77
 
 views
 
 
 
 
 Object oriented programming deque implementation [closed]
 Implementation of java.util.Deque interface according to object oriented programming principles - abstraction, encapsulation, inheritance , polymorphism - suitable ...
 
 
 user avatar
 
 
 user293682
 
 
 
 
 
 
 7
 
 votes
 
 
 
 4
 
 answers
 
 
 
 626
 
 views
 
 
 
 
 
 CSV handling class
 I'm a hobby coder at best. I know enough to make helpful programs to assist me with day to day life and work (mostly with PHP/JS, some C#). I'm wanting to learn more about good coding practices. I ...
 
 
 
 
 
 8
 
 votes
 
 
 
 1
 
 answer
 
 
 
 92
 
 views
 
 
 
 
 Mandelbrot set visualizer using GTK4, Cairo and POSIX threads in C
 I have recently implemented a Mandelbrot set visualizer, which I used to reacquaint myself with multithreading using pthreads.
I'm just wondering whether the way ...
 
 
 
 
 
 11
 
 votes
 
 
 
 5
 
 answers
 
 
 
 866
 
 views
 
 
 
 
 
 Python program that iterates over audio files with a progress bar interface
 I have a utility that updates, transcodes and renames audio files. Previously I used a function that simply yielded every file that was a good match (based on file extension).
As some tasks can take ...
 
 
 
 
 
 10
 
 votes
 
 
 
 4
 
 answers
 
 
 
 652
 
 views
 
 
 
 
 Split flap clock stepper code
 I've built a Split Flap Clock, and the code has grown quite a lot, and although it does work in its current state, I am wondering if it could be cleaned up.
The whole thing runs on an ESP32 and is ...
 
 
 
 
 
 2
 
 votes
 
 
 
 0
 
 answers
 
 
 
 141
 
 views
 
 
 
 
 Indexing into Nested Data Structures in VBA
 Project
I have created a VBA module called Idx which you may find here on GitHub. It is inspired by pluck() and ...
 
 
 
 
 
 0
 
 votes
 
 
 
 1
 
 answer
 
 
 
 163
 
 views
 
 
 
 
 
 Does an indentation style which uniquely identifies a column position to its role in the construct it belongs to make Bash code more readable?
 What I'm asking here is whether do you think the facts
there is no type enforcing;
there is no indentation enforcing
consoles do not syntax highlight
consoles do not emphasize multi-line input a-la ...
 
 
 
 
 
 6
 
 votes
 
 
 
 5
 
 answers
 
 
 
 1k
 
 views
 
 
 
 
 
 JavaScript program that calculates the sum and difference of a pair of numbers
 The goal of the following openprocessing.org JavaScript program is to calculate the sum and difference of a pair of numbers and print the 2 results if they are both positive. I want to do the ...
 
 
 
 
 
 2
 
 votes
 
 
 
 2
 
 answers
 
 
 
 96
 
 views
 
 
 
 
 
 Heat Diffusion Equation Solver
 I'm implementing a numerical solver for the 1D diffusion (heat) equation using an iterative method. The initial temperature distribution is a Gaussian profile, which should theoretically smooth out ...
 
 
 
 
 
 8
 
 votes
 
 
 
 1
 
 answer
 
 
 
 699
 
 views
 
 
 
 
 
 Reed-Solomon LFSR encoder
 I'm interested if the code below could be further enhanced for out-of-order execution.
Function inputs:
rcx = pointer to a 2 by 64 byte table to multiply 64 bytes ...
 
 
 
 
 
 4
 
 votes
 
 
 
 1
 
 answer
 
 
 
 258
 
 views
 
 
 
 
 Using Lightweight Objects in VBA
 Lightweight Objects implementation in VBA7 (32/64-bit)
As shown here, VB* class instance deallocation becomes exponentially slower the more instances of a particular class module there are.
Cristian ...
 
 
 
 
 
 4
 
 votes
 
 
 
 2
 
 answers
 
 
 
 613
 
 views
 
 
 
 
 
 A simple class that takes in a byte array, computes a width and height to represent and hide the initial byte array inside of a bitmap
 This simple class allows us to hide a byte[] inside the Scan0 of a Bitmap's ...
 
 
 
 
 
 4
 
 votes
 
 
 
 2
 
 answers
 
 
 
 495
 
 views
 
 
 
 
 
 Finding a sequence of xors to change a to b
 I'm resolving a problem from CodeForces: C. Beautiful XOR. This is what the code is supposed to do:
You have two numbers a and b.
You must transform a into b using XOR operations (...
 
 
 
 
 
 2
 
 votes
 
 
 
 2
 
 answers
 
 
 
 108
 
 views
 
 
 
 
 
 Calculation of liquid propellant nozzles
 I'm calculating the injectors, and I've added the complete calculation code and tested it using pytest. Can you suggest a better way to structure the code so that I ...
 
 
 
 
 
 6
 
 votes
 
 
 
 1
 
 answer
 
 
 
 335
 
 views
 
 
 
 
 
 Implementing a mutex-free thread safe scheme for protecting a object
 I've written a MQTT client for embedded system with RTOS (understand not POSIX, generally FreeRTOS). There's no pthread in the system. There's only 32 bits atomic instructions supported.
The client ...
 
 
 
 
 
 3
 
 votes
 
 
 
 1
 
 answer
 
 
 
 130
 
 views
 
 
 
 
 
 Simple Random Password Generator in C# Updated
 This is an update to my Simple Random Password Generator. It has been renamed to SecurePasswordGenerator and uses ...
 
 
 
 
 
 1
 
 vote
 
 
 
 0
 
 answers
 
 
 
 38
 
 views
 
 
 
 
 Pure and impure Implementations of CSV parser in Clojure
 There are two versions of the CSV parser. The latter seems to be more performant than the former, although the former's code is easier to read.
Variant 1, which parses a string:
...
 
 
 
 
 
 1
 
 vote
 
 
 
 0
 
 answers
 
 
 
 34
 
 views
 
 
 A calendar event element
 Below is code for a front end calendar event element I have just finished. Though I have been programming in JavaScript for a while, this is the first time I have created a custom class and element, ...
 
 
 
 
 
 5
 
 votes
 
 
 
 1
 
 answer
 
 
 
 175
 
 views
 
 
 
 
 
 Simple random password generator in c#
 A simple random password generator in C#. Looking for any improvements around speed or design. Any char[] can be passed to choose random chars from. The array I ...
 
 
 
 
 
 6
 
 votes
 
 
 
 2
 
 answers
 
 
 
 629
 
 views
 
 
 
 
 
 Python calculator application
 What do you think about my calculator application in Python? Are there any hidden bugs that I haven't noticed yet? Let me know about them.
Note: to be able to run this program you need first to ...
 
 
 
 
 
 5
 
 votes
 
 
 
 2
 
 answers
 
 
 
 360
 
 views
 
 
 
 
 
 BRESort - Bitwise Relationship Extraction - Intelligent Adaptive Sorting Engine for 32/64-bit & Floating-Point Data
 I want to begin by sincerely thanking the community for the invaluable feedback on my previous BRESort byte-sorting research. Your insights about enums, named constants, loop optimizations, and test ...
 
 
 
 
 
 4
 
 votes
 
 
 
 1
 
 answer
 
 
 
 88
 
 views
 
 
 
 
 Dijkstra's algorithm for non-uniform undirected hypergraphs: Take II - bidirectional Dijkstra's algorithm with excellent performance
 Intro
(See the full repository here.)
A non-uniform undirected hypergraph is a generalization of an undirected graph. It is defined as \$H = (X, E)\,ドル where \$X\$ is the set of vertices and \$E \...
 
 
 
 
 
 2
 
 votes
 
 
 
 1
 
 answer
 
 
 
 73
 
 views
 
 
 
 
 C# .NET 9 API for managing a personal investment portfolio
 I've written a C# API using .NET 9 with the goal of managing a personal investment portfolio – that means,
adding funds
adding or removing transactions (for ETFs, ETCs, and usual funds)
retrieving ...
 
 
 
 
 
 7
 
 votes
 
 
 
 4
 
 answers
 
 
 
 656
 
 views
 
 
 
 
 
 My BRESort adaptive sorting engine in C
 I've created BRESort - an adaptive sorting engine that dynamically selects
optimal algorithms based on data patterns. It achieves 3.6-4.2x speedup over stdlib qsort ...
 
 
 
 
 
 4
 
 votes
 
 
 
 1
 
 answer
 
 
 
 178
 
 views
 
 
 
 
 
 API having flow - normal flow along with background poller(it also involves events which is not shown here)
 We have an API in which we call external service with a tracking id.This first part of the API workflow makes an entry to the DB as SUBMITTED after the call to first external API say /E1 finishes and ...
 
 
 
 
 
 1
 
 vote
 
 
 
 0
 
 answers
 
 
 
 112
 
 views
 
 
 
 
 Counting the number of instances of a class module in VB*
 In VBForums I found the following post:
Is there a way of retrieving the number of instances of a VB* class from within the class itself?
One could store an instance counter in a Public variable in a ...
 
 
 
 
 
 5
 
 votes
 
 
 
 4
 
 answers
 
 
 
 754
 
 views
 
 
 
 
 Reservation app in C with linked list, BST, and CSV
 This is a reservations app with linked lists for insertion and BST for search.
It uses CSV files for storage, recursion for printing
and handles memory allocation for variable growth.
I'm looking for ...
 
 
 
 
 
 4
 
 votes
 
 
 
 1
 
 answer
 
 
 
 165
 
 views
 
 
 
 
 
 Maintaining a memory-barrier with an expression-bodied member
 I have a C# class with a number of properties that are read by and set by multiple threads. I use a simple lock when getting and setting them in order to have a full-fence memory barrier, so member ...
 
 
 
 
 
 10
 
 votes
 
 
 
 2
 
 answers
 
 
 
 398
 
 views
 
 
 
 
 Image Stitching using SIFT Keypoint Descriptor in C++
 This is a follow-up question for SIFT Keypoint Detection for Image in C++. With the detected SIFT keypoints of images, image stitching is possible to perform. In this post, the first step is to ...
 
 
 
 
 
 -5
 
 votes
 
 
 
 0
 
 answers
 
 
 
 142
 
 views
 
 
 
 
 
 Deque implementation around strategy design pattern (second thought)
 On a second thought, the Deque implementation around strategy design pattern changed with a new implementation of retainAll method according to the solution from ...
 
 
 user avatar
 
 
 user293551
 
 
 
 
 
 
 9
 
 votes
 
 
 
 4
 
 answers
 
 
 
 799
 
 views
 
 
 
 
 
 Find the smallest semiprime satisfying a bunch of conditions
 The purpose of this code is to find the smallest semiprime \$s = a b\$ satisfying a bunch of conditions stated in the Math.SE question What is the smallest "prime" semiprime?. The conditions ...