« first day (2969 days earlier)      last day (1035 days later) » 

12:02 AM
RELOAD! There are 7646 unanswered questions (89.4092% answered)
 
12:42 AM
0
Q: Return Lists from Recursive Function C#

Max VarnerI would like to return or save for later use in the ParallelSums function what I currently have printing out to the console in the findAllSubsetsRec function. If I pass the ParallelSums function an int array of [16, 22, 35, 8, 20, 1, 21, 11] I currently get the console output from the findAllSubs...

 
1:06 AM
0
Q: K Inverse Pairs Array - Brute Force

technaziFor an integer array nums, an inverse pair is a pair of integers [i, j] where 0 <= i < j < nums.length and nums[i] > nums[j]. Given two integers n and k, return the number of different arrays consist of numbers from 1 to n such that there are exactly k inverse pairs. Since the answer can be huge,...

 
1:47 AM
I don't believe there's an actual problem or question here, but you're basically asking for a code review? If so, this would be a better site for it codereview.stackexchange.comGrismar 18 secs ago
 
0
Q: ManagementEventWatcher, process monitoring

OmarI'm using ManagementEventWatcher to monitoring some process. It works well but I think the code's kinda repetitive. I was wondering what would be the correct way for more than once single process, if I had more than two process it'd become a mess. Thanks! private async void Form1_Load(object send...

 
 
2 hours later…
4:21 AM
0
Q: Java validation void exceptions vs Boolean check

DanI was reading this question Is it better practice to have void method throw an exception or to have the method return a boolean? that was asked a while ago and I'm faced with a similar dilemma. Since I'm using logs to print how the validation process is going and I have multiple fields to validat...

 
5:14 AM
Note that questions about improving working code should be asked on Code Review. — Sebastian Simon 49 secs ago
 
5:35 AM
0
Q: HTML Paragraph Identifier

user1235598399I have various texts that are inconsistent in how paragraphs are formatted. Some texts use the <P> </P> tags to specify a paragraph, while others use two break tags (<br><br>). Sometimes the user forgets to close a <p> tag too. I need to "normalise" these texts so that they all specify paragraphs...

 
6:05 AM
Thank you for your kind and quick help, everyone. Will also take note to post future working codes on Code Review. — Ii- 27 secs ago
 
 
2 hours later…
8:28 AM
0
Q: Why is my mutex code faster than rwLock

KannajIm trying to understand whats the best way to deal with storage/update on state across multiple threads in an actix-web server. to that effect , i wrote some simple code which A. Starts a server B. maintains a global hashmap which is written to every 1 second by a parallel thread C. Send concurre...

 
9:25 AM
Monking
Not enough people leaving comments grmbl.
 
9:42 AM
0
Q: SubImage function implementation in C

JimmyHuThis is a follow-up question for Two dimensional gaussian image generator in C, Two dimensional bicubic interpolation implementation in C and A SubPlane Method for Generic Two Dimensional Data Plane in C#. Besides gaussian image generating and bicubic interpolation, I am attempting to make a C ve...

 
 
1 hour later…
10:57 AM
Monking
 
 
2 hours later…
1:23 PM
If your code works and you just want someone to review it, please post it over at Code Review instead. — Magnus Eriksson 27 secs ago
I’m voting to close this question because it's a request for review and should be asked over at Code Review instead. — Magnus Eriksson 11 secs ago
 
0
Q: Is this a secure approach for receiving messages in TCP chat room, Python3?

irtexas19I'm working on a TCP chat room using socket module, and I looking for a reliable way for receiving data (text only), ensuring whole message delivery, like WhatsApp (the messages are always received). The scripts bellow are pieces of an existing chat room's server and client files that I found, wh...

 
2:02 PM
@SᴀᴍOnᴇᴌᴀ Duga URL changed, please now monitor duga.zomis.net instead
 
2:37 PM
@SᴀᴍOnᴇᴌᴀ I thought you fixed the bug with multiple consecutive e-mails being sent out when the status is the same? We're getting spammed :/
 
Carp I thought I did as well. I’ve been meaning to add unit tests- it’s more evident now that it needs to happen
4
 
possible answer invalidation by Peilonrayz on question by Diwakar SHARMA: codereview.stackexchange.com/posts/263213/revisions
 
@Duga No, but someone else can check
 
possible answer invalidation by Peilonrayz on question by Diwakar SHARMA: codereview.stackexchange.com/posts/263213/revisions
 
3:24 PM
Mon king
 
 
2 hours later…
5:09 PM
0
Q: Test harness that uses server process

Ari FordshamI have a test suite that queries a localhost-based server. The server process needs to be running in order for the server to work. The process may be running already for debugging work, but it might not be. If a server process is running, it's probably safe to assume it's the correct one. If we s...

0
Q: Better solution to pass arguments to function in a dictionary

ObAchtI've just started learning python, mostly by some YouTube videos and other online tutorials. Now I want to create a dictionary of callables (actions) asking for user input (a hotkey), but the user should also be able to pass more arguments to the actions. My problem is, that my current solution d...

 
 
1 hour later…
6:23 PM
0
Q: Get surrounding neighbours of a 2D array

Ultra Cookie// vertically for (int k = ((i == 0) ? 0 : -1); k < ((i == H-1) ? 1 : 2); k++) { // horizonatlly for (int l = ((j == 0) ? 0 : -1); l < ((j == W-1) ? 1 : 2); l++) { // ignore the middle if (!(k == 0 && l == 0)) //do something with the cells } } This code can get the 8 ...

 
 
2 hours later…
8:02 PM
possible answer invalidation by Max Varner on question by Max Varner: codereview.stackexchange.com/posts/263229/revisions
possible answer invalidation by Max Varner on question by Max Varner: codereview.stackexchange.com/posts/263229/revisions
 
8:52 PM
0
Q: Extract from Array only word

Uituceală M.O.DHello i have an array: $words = 'Varsta-peste 6 ani, Varsta-peste 5 ani, Pentru-Unisex, Varsta-peste 2-3 ani, Pentru-Unisex, Tip produs-Vehicule si jucarii cu baterii, Varsta-peste 1-6 ani, Pentru-Unisex, Tip produs-Vehicule si jucarii cu baterii, Tip produs-Jucarii de constructie'; $item = expl...

 
 
1 hour later…
10:06 PM
0
Q: std::list reimplementation

LinnyI've decided to rewrite the standard library list in a smaller version. This is similar to another question of mine, where my main concern is memory management. I allocate a new array each time the user wants to modify the list. I want to know if there are any memory leaks that I need to plug. I'...

 

« first day (2969 days earlier)      last day (1035 days later) »