« first day (3685 days earlier)      last day (323 days later) » 

12:10 AM
REFRESH! There are 7298 unanswered questions (90.5244 answered)
 
12:22 AM
0
Q: C++ Eigen/Mex function to perform two pagewise convolutions on a 3D matrix with a simple kernel

drakon101I am trying to accelerate an algorithm where I am computing a 2D variance of many complex matrices stored as pages of a 3D array in Matlab. My implementation uses a Mex function with the C++ Matlab Data API. I perform Toeplitz convolution along both dimensions of the matrix with a simple kernel o...

 
 
6 hours later…
6:25 AM
0
Q: Simulation: Find a waiting queue order that minimizes the total waiting time - Java

coderoddeIntro Suppose we are given a queue of waiting times \$\langle t_1, \ldots, t_n\rangle\$. The first "person" \$(t_1)\$ leaves the queue immediately. The persons \$(t_i), i > 1\$ all have to wait \$(t_1)\$ units of time, which contributes \$(n - 1) t_1\$ to the total waiting time. For the \$t_2\$, ...

 
6:38 AM
If the code works and you're seeking improvements, probably better asked on Code Review. — Damien_The_Unbeliever 42 secs ago
 
6:51 AM
0
Q: Optimizing a string comparison algorithm

gorokizuGiven 2 strings (A,B), split each string into an array, and compare each term of A with each term of B. Define a 'value' for each word with the following formula: termvalue = 100 / a_array.Count when comparing each item of the two arrays agains each other: if there is a complete match score+= ter...

 
7:43 AM
0
Q: Replace values in key=value configuration files

Toby SpeightI have a handful of files containing simple configuration in which I need to modify values. There are some useful constraints that simplify my implementation: The file consists of single lines of the form key=value (no multi-line values). Key names are written using letters, digits and undersco...

 
 
3 hours later…
11:02 AM
possible answer invalidation by Alok Maity on question by Alok Maity: codereview.stackexchange.com/posts/285335/revisions
possible answer invalidation by Alok Maity on question by Alok Maity: codereview.stackexchange.com/posts/285335/revisions
possible answer invalidation by Alok Maity on question by Alok Maity: codereview.stackexchange.com/posts/285335/revisions
 
11:34 AM
If you want to do the code review, you should ask it on codereview.stackexchange.comshingo 8 secs ago
 
 
2 hours later…
2:03 PM
@Duga Rolled back and commented
 
@shingo On Code Review we do code reviews, we don't explain how to do them. I think this question is actually about Microsoft Team Foundation Server and how to do code reviews in that system. Code review never answers How to ... questions. — pacmaninbw 34 secs ago
 
3:04 PM
0
Q: How to make types of typescript libraries Typegoose and Zod conform to each other while keeping app decoupled from specific database with services?

aderchoxI am using Typegoose classes as the types of the parameters of the functions in the service layer, e.g.: export async function addNote(note: Note) { // ⬅ Note is a Typegoose class However then, in the controller (and elsewhere, possibly) where I'm calling these service functions, I want to avoid...

 
3:32 PM
0
Q: Redux reducer with state value type that depends on action

KatherineWhat would be the best way to appoach state structure for part of an app that shares some similar properties, but sometimes just one value, or combination of several values. In the following example, I have several actions that fetches different data for different routes, say, for root route /, i...

 
4:19 PM
Monking
 
4:37 PM
Monking
 
Does it work for you? Have you tested it? This might be more appropriate for codereview.stackexchange.comYevhen Kuzmovych 59 secs ago
 
5:02 PM
What do you mean by "in a better way"? If there are no problems with your code then you might want to ask this on Code Review. — Ghassen Louhaichi just now
 
5:41 PM
0
Q: Hoare's and Lomuto's quicksort

Jack WilsonI was trying to practice implementing the two versions of a quicksort algorithm (Hoare and Lomuto's partition), but so far I was only able to display the original list. I have been stuck for awhile trying to figure out how to display Hoare's and Lomuto's quicksort? import java.util.ArrayList; pu...

 
6:33 PM
-1
Q: How to detect a thrown item in modding and allow it to be interacted with - Minecraft Java

How do i....I am working on a huge project, a mod for minecraft and I am trying to figure out how to locate or detect a thrown item and potentially assign that result to a variable or use a class to do this, what I want to do is something like this (note this is not my actual code just an example to show wha...

 
6:59 PM
-1
Q: Printing the original list, Hoare's list, and Lomuto's list in Java

Mike MillerThis is my first attempt at Quick Sort using Java and I am also looking for some helpful criticisms on how I can make my code better. import java.util.ArrayList; public class Quicksort<E extends Comparable<E>> { // Quicksort using Hoare's partition public static <E extends Comparable<E

 
7:50 PM
0
Q: Python script that generates images using Thue-Morse sequence

Ξένη Γήινος In mathematics, the Thue–Morse sequence, or Prouhet–Thue–Morse sequence, is the binary sequence (an infinite sequence of 0s and 1s) obtained by starting with 0 and successively appending the Boolean complement of the sequence obtained thus far. Wikipedia Page I wanted to create images using the...

 
8:15 PM
"... I am also looking for some helpful criticisms on how I can make my code better ...." - We do not do code review here. For this, you may want to post the (working!) code to codereview. — Turing85 just now
most probably because the code is not working as expected. Code review only accepts working code. — Turing85 45 secs ago
 
8:42 PM
0
Q: First app, how to combine to inputs?

MallyI'm very very new to coding. I'm trying to make an app that helps pick fantasy football players. It takes inputs from the user about what their preferences are and outputs a file that gives them a score from 0-100. The first 2 dropdown menus (will eventually) let you pick the team you support and...

 
 
2 hours later…
10:52 PM
0
Q: Optimising state structure for handling dynamic payload, type of which depends on an action

KatherineWhat would be the best way to structure state to handle varying payloads that part of one logic but have different properties. In the following example, I have several actions that fetches different data for different routes, say, for root route /, it fetches only categories, for route /:category...

 

« first day (3685 days earlier)      last day (323 days later) »