Newest Questions

Filter by
Sorted by
Tagged with
7 votes
1 answer
224 views

Optimizing a Rust permutation chooser for the most subsequences

I had semi-recently asked a question (well a couple closely related questions) on math.stackexchange. The simplest question is phrased as follows: You are allowed to make 3 permutations of length n. ...
Dair's user avatar
  • 6,190
4 votes
4 answers
798 views

A program to solve quadratic equations ax² + bx + c = 0 with imaginary results

This is my second post and my second “tough” question I came across while reading PPP3. I graduated a while ago and honestly forgot the equation... The question didn’t explicitly say I needed to find ...
nikx0918's user avatar
  • 111
1 vote
0 answers
81 views

Is this how Flutter BloC is suppose to be used?

I'm new to Flutter and BloC and it just seems quite different than what I've been using until now. In terms of state, I'm coming from the JS world of Vuex, Pinia and Redux and I've also worked a with ...
thefallen's user avatar
4 votes
5 answers
708 views

Password storage with gatherer plugin in Python

First the PasswordStore, which is pretty straight-forward. It stores title-password association, but it is important that a title can have multiple passwords. The <...
viuser's user avatar
  • 625
7 votes
1 answer
345 views

General Two-dimensional Elliptical Gaussian Image Generator in C++

This is a follow-up question for Two dimensional gaussian image generator in C++ and Three dimensional gaussian image generator in C++. According to the statement in https://fabiandablander.com/...
JimmyHu's user avatar
  • 7,224
2 votes
0 answers
87 views

Simple image captcha test in Java and JS (revised version)

Following on from my previous question, I would like to know what could be improved here and whether it is now secure. I had to use Java 8 because the Blade lib was built with it, and I want to extend ...
Tobias Grothe's user avatar
11 votes
3 answers
1k views

Golden-section optimization with complication

I'm trying to implement the so-called golden-section optimization in C++. This is a simple algorithm to find an extremum of a univariate function \$f\$ within an interval \$[a,b]\$. The crux is to ...
darksun's user avatar
  • 211
2 votes
1 answer
82 views

Encapsulating status codes and messages à la absl::Status

I'm new to Lua and thought a decent way of familiarizing myself with the language would be to implement some basic utility functionality around status codes. In particular I've reimplemented a subset ...
zziccardi's user avatar
4 votes
1 answer
101 views

Implement a simple image captcha test yourself in Java and JS

First of all: I was looking for a simple image captcha solution for a website, but all I found were "Over-the-top" solutions for me. So I decided to write something to self. I mainly use two ...
Tobias Grothe's user avatar
6 votes
0 answers
144 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....
Quanta's user avatar
  • 161
1 vote
1 answer
71 views

Runtime agnostic WebSocket server

A runtime agnostic WebSocket server. Tested with node, deno, bun, ...
guest271314's user avatar
5 votes
2 answers
910 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). ...
nikx0918's user avatar
  • 111
8 votes
1 answer
577 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, ...
Yukun Jiang's user avatar
4 votes
2 answers
186 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 ...
Sindik's user avatar
  • 143
3 votes
1 answer
133 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 ...
K_T's user avatar
  • 163

15 30 50 per page
1
3 4
5
6 7
5184