Newest Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
167 views

Intro This time, I was in the mood for concurrent programing (ProducerConsumerSimulation.java). To this end, I have ended up with the code below. My primary concerns are: Class design is trash, The ...
coderodde's user avatar
  • 32.2k
1 vote
1 answer
96 views

I'm creating a three layered Visual Studio template solution that I'll be using as a starting point for all ASP.NET projects. The layers are Presentation, Application and Infrastructure. ...
FAMO4S's user avatar
  • 33
3 votes
2 answers
581 views

I'm working on a Java assignment where I must implement the cosine function using only basic arithmetic operations (addition, subtraction, multiplication, division) and no built-in math functions, ...
TuffKultur's user avatar
1 vote
0 answers
40 views

Intro I have this GitHub repository containing some iterative deepening pathfinding algorithms. Code ...
coderodde's user avatar
  • 32.2k
3 votes
1 answer
103 views

The code is based on feedback that I received from my previous question regarding this project. I've developed the initial code for a deep learning project focused on identifying house plants within a ...
Steve Austin's user avatar
5 votes
2 answers
172 views

My take 2 on constexpr friendly StaticVector. If the value_type is trivial, it can be user in constexpr functions normally. If the value_type is not trivial, it uses placement new / destroy and ...
Nick's user avatar
  • 1,656
4 votes
2 answers
104 views

I'm working on a personal deep learning project on identifying house plants. I have developed the initial code in Kaggle Notebook. I'll later transform it into a Flask app. I have just finished the ...
Steve Austin's user avatar
0 votes
2 answers
132 views

I did an internship test project (source: https://github.com/SynI20N/VKInfo). Looking for some middle or senior devs to rate it and point out potential problems with my code. Follow up: How would you ...
SyRoN's user avatar
  • 9
2 votes
0 answers
47 views

I needed to set some global data (logging handler, base path, etc) across all libraries/targets (internally managed). A manual system of InitLib1 which calls all <...
Sam Coutteau's user avatar
2 votes
0 answers
51 views

Here is the working fiddle: https://blazorfiddle.com/s/d04xl2zi I started a new project where they are using .net 8 blazor server interactivity. (I'm a bit new to blazor) they were interested in a ...
Bryan Dellinger's user avatar
7 votes
2 answers
338 views

Introduction I recently finished the course Mathematical Thinking in Computer Science on Coursera. The sixth module is optional and involves learning about transpositions, permutations, and applying ...
Hungry Blue Dev's user avatar
10 votes
6 answers
1k views

I'm working on a Python script that reads a text file and extracts all the unique email addresses. The code works as intended, it produces the correct output, throws no errors, and I've tested it on ...
rao abdullah's user avatar
1 vote
0 answers
80 views

This is a follow-up question for Tests for the operators of image template class in C++, Image pixelwise operation function with multiple inputs in C++ and An Updated Multi-dimensional Image Data ...
JimmyHu's user avatar
  • 7,575
7 votes
7 answers
2k views

Is my logic good? Are variable names fitting? Are there any memory leaks? Am I doing anything dangerous (this is C after all)? Please feel free to criticize the code. I want to know if I'm writing C ...
buzzbuzz20xx's user avatar
6 votes
2 answers
123 views

I’ve written a small Python module to generate mock Slack workspace data, build a user–user interaction graph, and surface complementary collaborators based on skill sets. The key features are: Data ...
Bob's user avatar
  • 221
1 vote
0 answers
54 views

I am building a TS wrapper around the fetch that adds automatic retries for certain errors. The error handling using a custom ApiError class and maps various error ...
KristalkillPlay's user avatar
7 votes
2 answers
934 views

This is version 2 of prior post - per : CRSE:tour and Guide. Due to unintended generalization of prior question for brevity sake, here are requirements: Code should be portable and run on ...
Danilo's user avatar
  • 367
1 vote
1 answer
65 views

I am developing a predictive maintenance project using Machine Learning. I have completed the initial code in Jupyter Notebook. Later, I will convert it into a Flask app. The code is working fine for ...
Steve Austin's user avatar
2 votes
1 answer
74 views

I am building a personal machine learning project to predict the weather. I have already completed the code in Jupyter Notebook. Now, I am working on converting it into a Flask app. I have just ...
Steve Austin's user avatar
5 votes
2 answers
1k views

(See the GitHub repository for a Visual Studio (2022) solution/projects.) Description This malware does nothing more than install/uninstall ...
coderodde's user avatar
  • 32.2k
7 votes
1 answer
558 views

I've been playing with shared libraries and core functionalities with gcc/g++. Using only gcc builtins I've tried to make an integer to string converter. ...
Danilo's user avatar
  • 367
2 votes
0 answers
44 views

I'm currently updating a ping script I maintain at work, transitioning from WinForms to WPF. Because of this I've started learning about and incorporating runspaces to keep the GUI responsive during ...
K_P's user avatar
  • 21
1 vote
0 answers
56 views

(See the previous iteration here.) This time, I have incorporated the answer from YawarRaza7349. Now, my code looks like this: ...
coderodde's user avatar
  • 32.2k
5 votes
4 answers
711 views

I wrote some basic math functions: ...
LoatheCode's user avatar
5 votes
3 answers
470 views

In what case would anyone find these useful? ...
LoatheCode's user avatar
5 votes
1 answer
161 views

I am working on a basic, personal ML project on predicting weather. First, I have finished working on Jupyter Notebook. And now, I am transforming it into create a Flask app. I have just completed the ...
Steve Austin's user avatar
1 vote
1 answer
75 views

I'm working on a predictive maintenance ML project and have developed the initial code in Jupyter Notebook. I'll later integrate it into a Flask app. The code currently functions without any issue, ...
Steve Austin's user avatar
4 votes
0 answers
85 views

I have implemented the SHA1 algorithm in Zig, as a learning exercise, to teach myself both Zig and the actual algorithm behind SHA1. Now the second part I think I understood well enough. The ...
Rohit Tanwar's user avatar
3 votes
3 answers
228 views

(See the next iteration here.) (See the previous iteration here.) This time, I have incorporated a nice answer from Simon Forsberg. Now, my code looks like this: ...
coderodde's user avatar
  • 32.2k
5 votes
2 answers
110 views

I created a Python 3.11 utility that truncates an input string to a fixed word count—splitting on any whitespace, collapsing runs, and dropping trailing stop-words—so you get clean, concise snippets ...
Bob's user avatar
  • 221
1 vote
1 answer
65 views

(See the previous iteration here.) (See the next iteration here.) This time, I improved the iterator such that there is no chance of numeric overflow when computing the total number of iterations. To ...
coderodde's user avatar
  • 32.2k
2 votes
3 answers
135 views

I’ve implemented a small utility function in Python 3.11 that takes an input string, splits it into word-based chunks of a given size, and allows a specified overlap between consecutive chunks. This ...
Bob's user avatar
  • 221
5 votes
3 answers
1k views

I'm wary of using amount as double. This API also has to maintain backward compatibility. Would appreciate for any comments on this method. ...
yoda's user avatar
  • 277
1 vote
0 answers
48 views

I've recently shifted from SpringAI M5 to 1.0.0 which is a major change and just wondering if there is a better way to organise SpringAI configurations. I'm using Azure OpenAI based connection along ...
saran3h's user avatar
  • 255
4 votes
1 answer
91 views

(See the next iteration here.) Intro This time, I have an Iterator<List<Integer>> implementation that generates list index tuples in lexicographic order....
coderodde's user avatar
  • 32.2k
8 votes
5 answers
2k views

I engineered myself into a situation where I wanted to check whether a region of memory consists of identical bytes. I wanted to at least try to avoid the obvious solution of an O(n) loop, but also ...
Xavier Pedraza's user avatar
5 votes
1 answer
252 views

I’m practicing the Single-Responsibility principle with a small project. A Report is composed of ...
sam's user avatar
  • 441
5 votes
1 answer
432 views

I've designed this SVG timeline diagram, which shows each version of the Lua programming language and the dates when it was supported. While I'm pleased with the result, I was wondering if I could ...
PJBaker's user avatar
  • 53
2 votes
1 answer
144 views

I have written a code that deals with ABC/XYZ analysis. I want to use it in my application and would like to find out how the code can be improved, its readability and it will be better to implement ...
dynamic.aerospace.inc's user avatar
4 votes
2 answers
124 views

Task: Implement a method, which receives an array of strings as argument. The strings are dates in the format "MM**DD**YYYY". For example: "11**03**2024". Add 30 to each of the ...
michael.zech's user avatar
  • 5,044
7 votes
4 answers
2k views

Intro This time I was in the mood for the low level stuff. The entire repository is in GitHub. It includes the installer, the actual malware program, and the uninstaller that removes it completely ...
coderodde's user avatar
  • 32.2k
3 votes
0 answers
41 views

This code covers: Standard Fibonacci numbers. Fibonacci factorials. Standard Fibonomial numbers. q-analogs of integers. q-Fibonacci numbers. q-Fibonacci factorials. q-Fibonomial numbers (both (...
138 Aspen's user avatar
  • 469
6 votes
2 answers
459 views

Link to kata: linkRank: 6 kyuKata author: @rsalgado I have been recently learning Ruby-lang and have been attempting to solve the following kata from Codewars involving Goldbach's Conjecture: ...
CrSb0001's user avatar
  • 619
3 votes
1 answer
142 views

This parser is made for part of larger trivia game, and only allowed numbers are positive integers. So negative or decimal numbers should return -1 as sign of error. I'm pretty new to programming and ...
Nemanja's user avatar
  • 33
4 votes
2 answers
184 views

One of my latest projects has been implementing a custom .NET logger, as a lot of our products use their own logging solution and we're trying to standardize, but that means accounting for a lot of ...
Scott McAllister's user avatar
5 votes
2 answers
102 views

Is there a better way to calculate distance scores for local alignment than this? Or is the method that I'm currently using robust enough? The full code is here with the actual alignment ...
dawnandrew100's user avatar
3 votes
1 answer
97 views

Simply put, we're creating a system that creates documents. All documents have some basic properties. Then the inherited classes have additional fields that are specific to the type of document. The ...
MarkKGreenway's user avatar
12 votes
4 answers
1k views

I've been giving my grade tens an introduction to computational phylogenomics, based around computing dissimilarity between DNA strands, and a simplified model of mutation. They've been exploring how ...
AkselA's user avatar
  • 223
3 votes
1 answer
99 views

I am working on a personal machine-learning (ML) project on predicting maintenance of machines. First, I am working on Jupyter Notebook. Then I will create a Flask app. I have just completed the code ...
Steve Austin's user avatar
4 votes
2 answers
253 views

I have tried to implement the Array-shuffle method myself. Haven't had a look on some similar algorithm-examples by purpose and tried to figure out something myself. The actual Array-extension: ...
michael.zech's user avatar
  • 5,044

15 30 50 per page
1
5 6
7
8 9
1558