« first day (3793 days earlier)      last day (264 days later) » 

12:13 AM
REFRESH! There are 7069 unanswered questions (90.8544 answered)
1 hour later…
1:24 AM
i have edited the code above to include my current solution but i was told not to hardcode those values and to use useTheme() instead through my code review. thanks — turtle_in_mind 7 secs ago
2 hours later…
2:56 AM
Q: Modernized Javascript randomULID() Generator - Smaller and Optimized

suchislifeI've finally finished these 2 scripts and would like to get some feedback. Seeking feedback on a modernized ULID (Universally Unique Lexicographically Sortable Identifier) generator in TypeScript. Reduced size compared to examples on GitHub. Code includes functions for encoding BigInt as Base32,...

2 hours later…
5:14 AM
If you have working code which you want to optimise you should show it as a minimal reproducible example. If you consider it a code reviw you might want to consider codereview stackexchange instead. If instead of optimising you want help with first solution you shouöd rephrase the question accordingly. In that case please show code context, e.g. a minimal reproducible example of code calling a function with input data and using the output, the function itself could be empty or non-functional. — Yunnosch 58 secs ago
2 hours later…
7:30 AM
Q: Keras Tuner Subclass for Time Series Cross-Validation

Furkan ÖztürkCustom Keras Tuner with Time Series Cross-Validation I have written my own subclass of the default Keras tuner Tune class. Objective: I needed a way to incorporate time series cross-validation into the hyperparameter tuning process, which wasn't directly supported by the default Keras tuner. Fu...

8:34 AM
For working code that you think can be improved, you need to ask not here but on codereview.stackexchange.com. — Peter B 42 secs ago
8:49 AM
So what you want to do, is protect a method from being altered without the test being updated? Sounds like overengineering for many cases and teamculture, or the "4 eye principle" (code reviews) is usually something which addresses that. — Randy 38 secs ago
9:01 AM
You don't have 10k on Code Review so the link will be dead. However the user posted the question on Code Review and I closed hammered the post. You should read our help center before recommending Code Review again. — Peilonrayz 8 secs ago
Q: How can I efficiently count the number of triplets from an array with sums divisible by 'd'?

eviracThis post is hidden. You deleted this post 2 mins ago. I got this question on my test and i did the only logical thing I could think of which is run 3 nested loops and count each triplet. I obviously wouldn't pass test cases for large arrays... How can I make this code more efficient? public stat...

2 hours later…
10:49 AM
Q: A very basic calculator in C#

AdalwolfI'm trying to learn C#, I made this calculator with my current knowledge. It works as I intended, but I'd appreciate some input on my code. using System; namespace Calculator { class Program { static void Main(string[] args) { double input1; string...

4 hours later…
2:56 PM
Q: pure C++ Deep Learning Library with dynamic and lazy performed computational graph

Eric CardozoI've started creating a deep learning framework in my spare time this year,you can find it here: https://github.com/xEricCardozo/deep-learning-library The code isn't fully documented yet, but it's very readable and structured in a highly decoupled manner, so it can grow indefinitely. The core par...

3:40 PM
3:51 PM
possible answer invalidation by drunk mado on question by drunk mado: codereview.stackexchange.com/posts/287135/revisions
possible answer invalidation by drunk mado on question by drunk mado: codereview.stackexchange.com/posts/287135/revisions
If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 48 secs ago
possible answer invalidation by drunk mado on question by drunk mado: codereview.stackexchange.com/posts/287135/revisions
4:08 PM
@Duga Rolled back and commented.
@CaptainObvious Example code from the repository readme file, not actual code from the source files.
Down vote, not yet VTC will give OP a day to fix it.
Q: Recording/Playback thread device in Object Pascal

cpicancoI have developed an audio recording and playback base device in Free Pascal. This device is built on Free Pascal's TThread class and utilizes the low-level audio API provided by SDL2, distinct from the higher-level mixer API. Audio Components (recording and playback) should be within external cla...

5:06 PM
@pacmaninbw I closed it
@pacmaninbw Thank you
5:28 PM
Q: Converting a nested for-each to use LINQ and JOIN

LonelySemiColonI have some for-each loops I am trying to convert to use LINQ with probably a JOIN or maybe a ZIP It should be possible. Notice we are using the key from dictionary items in the second for-each loop to connect with items from first for-each loop. I started writing it myself but couldn't quite fig...

6:18 PM
This feels like it'd be better suited for codereview.stackexchange.com? — evolutionxbox 12 secs ago
7:15 PM
If the code works, would Code Review be a better forum for this question? — Old Dog Programmer 45 secs ago
@Duga We've seen worse, probably wouldn't fare too badly.
@Duga I think the OP is just asking if the algorithm is actually a sliding window, as opposed to some other non-sliding window algorithm.
Like a "did I do my homework right?" question
Seems they hit the mark close enough.
Q: Calculating the sum of all k-sized sub-arrays in an array using sliding window algorithm

AlekamI need to calculate the sum of all k-sized sub-arrays in an array using sliding window algorithm. Is that a valid sliding window algorithm? If not, why? var sumOfSubArrays = function(arr, k) { let currentSubArray = 0; for(let i=0; i<k; i++) { currentSubArray += arr[i]; } ...

Yeah. I don't know what the sliding window algorithm is. However from the name alone, I think the user implemented the algorithm.
7:34 PM
A sliding window is any algorithm where you use the last X values. It's very popular in signal processing.
Q: What is a sliding window?

OcKI tried to find the answer by my own but unfortunately I couldn't. Let's say I have the discret values of a signal which is 10s long. What is the FFT which is performed on a sliding window with time? What is the difference to the FFT, where I get the frequency spectrum of the signal?

Say you want to average the past 1024 values, the window is 1024. And only the most recent 1024.
So it slides over the data.
Usually the window is way smaller than the total dataset.
A window of 1024 is not worth much if you only have 2048 datapoints. But if you got 500k datapoints...
7:48 PM
Nice thanks! I think I've actually used the algorithm before but... just not come across the name
Blurring in games uses a sliding window
8:15 PM
I’m voting to close this question because codereview.stackexchange.com/?tags=java would be a better place to ask. — StackFlowed 49 secs ago
1 hour later…
9:35 PM
Since this code works, maybe codereview.stackexchange.com would be more helpful? Just read their How to Ask page first. — Random Davis 45 secs ago
1 hour later…
10:45 PM
Q: Creating a matrix or matrices for positioning squares on screen

cpicancoThe following implements a mix of hard-code (manual pick and choose) and abstracted solution for creating and placing some squares on screen using different matrix patterns for positioning. Each position is just an "easy" name for each matrix cell. Before giving names, first you need to choose th...

11:01 PM
@Dai I don't think this question is on-topic on Code Review either... The OP is asking for answers that share each person's take on what a page's code should look like. — Heretic Monkey 31 secs ago

« first day (3793 days earlier)      last day (264 days later) »