# All Questions

67,826 questions
Filter by
Sorted by
Tagged with
2 views

### Prototype of a scanner/tokenizer for Bitmap Distribution Format parser

Instead of the obvious decision, parsing using given std::io::Lines/std::io::Bytes or crates like nom, I decided to explore ...
7 views

### Project : My Anime Finder

This is a project that finds a specific anime (show) and checks to see if there is a new episode of it . this is also the first time that i used def like this and ...
4 views

### How to implement a single-value cache in RxJava 3?

Kotlin 1.3.+ RxJava 3.0.+ Kotest 4.1.+ ...
19 views

### An example of transferring the C ++ class hierarchy to Golang. Is it done correctly?

I am trying to transfer my c ++ experience to the Go area. I'm new to Go, so not sure if the implementation is correct. In any case, it looks very ugly compared to C ++ code. Is there a nicer solution?...
10 views

### Python Min path sum on tree (DFS)

Leetcode 113: Path Sum II. Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. ...
11 views

### Form subarrays from an array

I am solving a problem where I am given an array of integers and I have to convert this array into multiple arrays if same number occurs more than once ahead. So let's understand this with an example: ...
24 views

### assert function

In c there is the macro assert and while it works I don't picturality like it mainly because it has no good way for printing a string. As a result I attempted to ...
13 views

### Sorting algorithm visualizer in C++ and SDL2 Improved

Original post: Sorting algorithm visualizer in C++ and SDL2 I followed the advice you gave me and improved my code. I also added two more sorting algorithms. I'm mainly looking for code readability ...
17 views

BACKGROUND I have a function where i cache file from aws s3. I provide it the path on s3 and also the local path of where i want the cached file to live. Sometimes if the file does not exist on s3 it ...
23 views

### Linked List implementation of FileSystem directories

I am writing wrapper classes in Java which override methods of an existing implementation, in order to handle an edge case. The full implementation is a bit more complex than needs to be posted here, ...
32 views

### ad hoc logging in c++ projects

I am currently going through this Vulkan tutorial. An extra excercise was writing a function which checks if the hardware you are running on supports the extensions other libraries require (GLFW in ...
16 views

### How to properly decode a JSON dictionary into different Swift classes using Decodable and JSONDecoder?

Generally, the approach I've taken is to try calling container.decode from a decodable enum with its associated value returning ...
21 views

### How can I make my error handling more idiomatic in Rustlings exercise “from_into”?

I've got a working solution to the Rustlings from_into exercise (i.e. the code compiles and all the tests pass). The task required that I implemented the From trait ...
29 views

### Similarity between words

I'm writing a method that writes the code for a loading routine. Given an object from the database, I want to put its properties in the right control on a userform. I have the list of the properties ...
17 views

### Simple javascript toggle div function

I have written a code that triggers my div with another menu. I do not know which one is better and should be used. Can I get some feedback? First code in one function: ...
27 views

### Run Async Form in Background without deadlocking

FormA (see example below) is old and loads slowly due to lots of lazy-loading EF6 code etc. We've managed to speed it up with some async methods that allow the form to at least be displayed whilst ...
36 views

### Coin Flip Streaks - correct streak condition

This is a practice task from Automate the Boring Stuff with Python. I imagine many others have asked for their version of the solution to be checked, so I apologise beforehand for boring you yet ...
36 views

### Text-based tic-tac-toe game in Python

I'm working on a text-based tic-tac-toe game, mostly for fun and because I'm learning programming. I would appreciate any comments you could give me to improve it. Main structure: Uses a Board class ...
14 views

### Merging and sorting overlapped intervals

We are given an array of intervals we need to merge all overlapping intervals and sort the resulting non-overlapping intervals. When they "touch" in a single point, intervals are also ...
29 views

### MIDI editor application

Source I made a project for a class, a MIDI editor written with Java 8 and Swing, and continued working on it on my own. However, I ran into a problem I couldn't solve and gave up. I'd like feedback ...
18 views

### Reorder Data in Log Files Time/Space Complexity

I solved the "Reorder Data in Log Files" algorithm. What is the time complexity of my sort function? I have a while inside it, does it still O(nlogn)? Also, what would be the space ...
21 views

### Trying to implement Dijsktra in Java using priority queue and using hash map for decrease key [closed]

Full Disclosure - I am doing this exercise to solve this problem on Leetcode - https://leetcode.com/problems/network-delay-time/ I find that this code is not working for certain test cases. I have ...
212 views

### Calculate sum of multiple series within array

The exercise is as follows: Player A will write list $a$ consisting of $n$ numbers. Player B will take a look at the paper. After that the A player will ask player B $q$ questions. Each ...
17 views

### Extract text file from zip, parse content and post to azure queue storage

Problem I'm trying to create the most performant code to: Extract a text file from a zip parse its content serialize class post to Azure Queue Storage Scenario 4 times per year I receive 20 zip ...
35 views

### Matrix template with a vector buffer

I need some feedback, please. Goals to practice: templates, std, interfaces, return value, constructors and some idioms. People often suggest to use a library, but it's not the goal of this exercise, ...
18 views

### Minimal, very simple, implementation of an HTTP server for static content, using only core node.js modules

To practice the very basics of node back-end, I'm implementing the most basic server possible for static content, using only the core node modules: http fs path With the following server ...
9 views

### Custom JsonConverter for class

Note that this is about System.Text.Json, not NewtonSoft. The underlying issue that inspired this example is the problem of using different serialization on a particular property of a particular class ...
25 views

### n executions of a periodic goroutine

I'm new to Go and have a use-case for periodically executing an async work-function. I want the interval between work-function executions to be constant (not the time between one finishing and the ...
20 views

### How can I simplify these checkbox onClicks?

I know there is a way to simplify these checkbox onClick functions. I'm just not sure how to make it happen. Upon checking the checkAllProfiles checkbox, all of the profileCheckboxes are checked: <...
178 views

### Arithmetic Parser in Kotlin

I don't really have a problem. But, it's my first time using Kotlin for any project, so I want to know if there is any problem in my code or my code can be made cleaner. This is an arithmetic parser ...
21 views

I'm experimenting in Unity with a tile-based game with crisp 32x32 tile textures and pixel perfect camera. I did not like the results coming from Unity's default ...
16 views

### Sheet display in function of date and time on open and save

Here's a simple one for u guys, The code is called upon workbook_open and BeforeSave, it displays the right sheet in function of date and time (Day vs night shift vs date). The code run trough the ...
20 views

### View model using different datetime component

Any advice on how to make this code; cleaner, more effective, just overall better! Program setup object that is coming from the database EF. It then maps the object to a view model and converts ...
58 views

### My first C# project - Simple bird of prey identification console app. Does it need refactoring or complete rewriting?

this was my first thing i made on my own without any help. im sure theres a lot of improvement that could be made, i dont feel too confident about this. how can i make it shorter and more efficient? ...
53 views

### std::string::length vs strlen using Google Benchmark

I wrote my first benchmark using Google Benchmark to check what is faster between the use of std::string::length and strlen to ...
36 views

### Elastic search Java

Below is a json schema I have in elastic search ...
31 views

### Modern CMake/c++ and vcpkg project setup for large projects

I am starting up a project with some people, because there will be developed for and on multiple platforms we chose to use CMake to build our project. Because the project will get quite large we are ...
27 views

### Basic Color class for both Delphi and Lazarus

Intro If you want to know, then about 10+ years ago, I started a journey on the (best in my country) color picker for WinXP, later Win7. Since now it is hardly compatible with Win10 and HiDPI (work in ...
11 views

### Limit choices for Django admin filter_horizontal interface

The Django ModelAdmin offers a filter_horizontal (or filter_vertical) interface for many-to-many relations, which allows the ...
33 views

### Tkinter GUI & Socket I/O with threading.Event() instead of queues [closed]

I am using TKinter for a multichannel socket analyzer. The GUI has two frames. Has a canvas where I plot waveform Where I initialize the settings for the connection (range, offset, delay etc.). ...
18 views

55 views

### Python program for healthy schedule

Please review my program and give some tips . I am a beginner. IT is for those people who sit on computer all day and get unhealthy . This will remind them to do eye exercise , physical exercise and ...
19 views

### Applying OOP to refactor my Windows Forms APP [closed]

Could you please give me some direction about how I could refactor my code? As I add functionalities to my Budget App the class is getting bigger and I'm sure I could start looking at separating ...
17 views

### Is my Angular Material MessageBox component well build?

My angular knowledge is limited, so I don't know much yet about it's garbage collection etc to make sure my component can be used without any strange side effects or memory leaks. I've created a ...
39 views

I'm make Trading Bot that makes automate for trading on the Binance site, however, it's work fine but I have a file called "strategies.py" it has a function called "maCrossoverStrategy&...
47 views

### Calculating text similarity, filtering the results, and reshaping matrix into a list-of-tuples generates MemoryError

I have a constantly growing corpus of currently ~36,000 documents (growing daily) and I want calculate the similarity between each pair of documents. After calculating the similarity scores, I want ...
18 views

### Analog Clock for WebAssembly in AEC

I've ported the Analog Clock program written in AEC from Linux to WebAssembly. You can see the live version. ...
37 views

### Creating a values only copy of an excel workbook without opening it

I have created a working VBA script that allows the user to select a workbook and make a values only copy of it without opening it. This is useful for getting data from a workbook that is very slow to ...