Newest Questions
77,715 questions
0
votes
0
answers
17
views
Split-step Fourier method for ultrashort pulse propagation predicts everything, but not the spectral phase
I'm implementing in Python the split-step Fourier method (SSFM) to solve the non-linear envelope propagation equation (NEE), and I'm including second and third order dispersion (GDD, TOD), self-phase ...
4
votes
0
answers
22
views
Markdown parser library in C
For a side project, I needed a markdown parser and I decided to roll my own.
It is a SAX-style parser, i.o.w. you can hook into parser events on consumer side and do whatever you want with the content....
0
votes
0
answers
34
views
A simple properties system [closed]
I tried to create a simple properties system to use in my projects. I aim to make that system simple to be good at performance and have fewer problems, if any.
...
0
votes
0
answers
27
views
Runtime agnostic WebSocket server
A runtime agnostic WebSocket server. Tested with node, deno, bun, ...
4
votes
2
answers
407
views
rock paper scissors game with randomized system choices. NOT using rnd()
Here is the question I was trying to answer:
[11] Write a program that plays the game “Rock, Paper, Scissors.” If you are
not familiar with the game do some research (e.g., on the Web using
Google). ...
8
votes
1
answer
186
views
Shared-Memory Queue Implementation in C
Recently I am working on implementing a shared-memory based IPC message queue in C programming language on Linux system. A few design choices I've made include
The queue will have only 1 producer, ...
4
votes
2
answers
125
views
Class for validating code in different Conda environments with PyTorch
I wrote the Validator class. In the project, the presented code is located at the path ".../validator/init.py". It is needed for testing code in different virtual Conda environments, in the ...
3
votes
1
answer
114
views
SystemVerilog: LED blinker control logic
I built this simple blinker in SystemVerilog and would very much like some help to make it better:
control.sv
...
0
votes
0
answers
58
views
Video to ASCII Generation (Low Contrast Output) [closed]
I am developing a application that lets u convert short videos to ascii my problem is that the ascii is looking washed, greyed and not much color grading and contrast i want a crisp and sharp output (...
0
votes
0
answers
60
views
F# - Recursively find the first available item in a range definition
I have the following EF Core table:
...
6
votes
3
answers
95
views
Function to reduce dead band when reading a pressure transducer that has calibration device under test information
When reading a pressure transducer, I'm currently using the following code to apply the "device under test data" from the calibration report.
How can I determine which range segment of ...
8
votes
5
answers
2k
views
Console-based Casino Game in C++
I made a casino game that runs in the console for my grade 10 final project, and I received a 93% as my grade. I'm looking for feedback in areas such as syntax, user experience and efficiency. I would ...
4
votes
1
answer
60
views
Style taking applying control's DataContext property as converter input
In my Avalonia app using the MVVM Community Toolkit, I want to have a number of buttons in multiple user controls in my application to have as their content a ...
9
votes
3
answers
1k
views
Repository with SQLite in Python
This repository class is supposed to be used for saving information extracted from RAR, SFV archives or files that contain the hash sum in their filenames.
The abstract parent class can be found here)....
9
votes
2
answers
783
views
My shared_ptr implementation
I would like to ask for a code review of my shared_ptr<T> implementation for design, code style. Any nitpicks will extremely useful for me. The features ...