« first day (2078 days earlier)      last day (1939 days later) » 

12:00 AM
RELOAD! There are 5832 unanswered questions (89.8296% answered)
 
 
1 hour later…
1:16 AM
Please check "Which site?" for general issues and "Code Review or not?"Prune 34 secs ago
 
2:04 AM
Note that whether this is topical on Stack Overflow is... rather suspect. Our scope is limited to narrow, specific questions; requests for general-purpose improvements to code that hasn't been modified into a Minimal, Complete, and Verifiable example to demonstrate a narrow and specific problem often get shunted off to our sister site Code Review instead, though I wonder if aspects of this may belong on Computer Science. — Charles Duffy 51 secs ago
Before simply reposting at Code Review, see A Guide To Code Review For Stack Overflow Users, which goes into detail about how the rules for which questions are appropriate for each site differ. — Charles Duffy 19 secs ago
 
@Vogel612 that’s how I feel as I try to debug a legacy login system which we released an update to production last week and occasionally users report getting logged in as the wrong user ¿ⓧ_ⓧﮌ
 
2:24 AM
Dear Charles, upon reflection, it appears this question could live at either the code review or computer science sites. Reading your link, and perusing questions on both sites, makes me think that the code review site is more appropriate. However, the nature of the question is more computer science based. I want to know if the algorithm is optimal, and if not, how to improve it. Shall I delete it from stack overflow? — Mike 44 secs ago
 
2:55 AM
0
Q: Rendering custom components with React Route parameters

durandamien1997I have some snippets of code that I'm happy with but am hoping for some advice for future reference. Basically what I have is a Main.js containing all of my Routes, a Class Component Friends.js which holds the array of data, and a ViewFriend.js Stateless Component that currently just displays the...

0
Q: Cleaner way to retrieve data using redux within react

BARNOWLI want to make the following code more robost, and less repetitive. In my opinion it looks hacky, and not well written code. At the moment the dashboard page is responsible for, fetching users, and fetching post content. I know there is a way to do this in redux, within an action function. Howev...

 
 
2 hours later…
Monking
 
6:02 AM
Monking
 
 
1 hour later…
7:22 AM
0
Q: Pycuda string matching

SoorajI am trying to compare two string using GPU by means of pycuda. This has to be then used for millions of files, where a target word has to be searched in all those files. I am new to cuda programming and have only a basic overview of C. The idea of the code is to check if the strings match and if...

 
7:35 AM
This question should be posted in Code Review | StackExchangeAndrewL 23 secs ago
 
0
Q: Find files from different folders and split them within folders through R/Shell

Rochi SaurabhI have different folders that all contain only one CSV file. I want to split all files from every folder on the basis of CN in there own place This is position of files :- home -> folder -> folder_44748 -> 44748.csv -> folder_44749 -> 44749.csv -> folder_44751 -> 44...

 
8:09 AM
0
Q: Can my custom permission Dialog be better written?

LambasoftI'm using the flutter_simple_permissions plugin to request permission to read contacts on my flutter application. I want the app to quit when a user denies the permission, and need to show them a custom Dialog. My code is as follow: Future<bool> getContactsPermission() async{ bool hasPermi...

 
8:25 AM
0
Q: Is there a way to make this code more DRY?

user93905I am using PHP, and I am getting the value back from the form. Since I am working with time, I have an array by (1 x 4) x 7, and I feel like I could do a better job at it. I just don't know exactly how should I approach the problem $schedule = array( round(abs(strtotime($_POST['mon'][1]) - s...

 
8:46 AM
This probably should be on codereview.stackexchange.comJamie Rees 17 secs ago
 
9:12 AM
0
Q: Google custom search error in Nodejs

antzshrekI made a demo for a google custom search, then tried making a post request with the detail below, after which I tested it on postman, but my inputted text objectName, keeps coming as undefined, then a warning message on my terminal route 'use strict'; const express = require('express'), ...

 
possible answer invalidation by JuniorPythonNewbie on question by JuniorPythonNewbie: codereview.stackexchange.com/posts/208077/revisions
 
9:43 AM
There is no performance overhead using try catch, however they should be used to catch exceptional situations and not as a flow control. doing so will make you fail lots of code reviews and also will incur performance penalties — TheGeneral 6 secs ago
 
0
Q: SQL Database structure to store calculations

MaximeI am in the process of designing a database structure to store some calculation information. Information about the problem: Each "calculation" is a collection of scripts allowing to calculate value, target, low limit and high limit. All of those are optional. A calculation script is a string, ...

 
10:14 AM
0
Q: Change state depending on holidays, weekends or hour of day - JavaScript

erkI'm writing a script that's changing the background color depending on hour of day, if it is a weekend or if it is a Swedish Holiday. I have a functional script and as I want to improve my programming skills I want to see if there's anything I can do differently or more efficiently. I wanted to...

 
10:30 AM
0
Q: jQuery Slideshow with animation callback

MorganI have developed a slideshow using jQuery that will pre-loade the next slide, hold the last one, and make the current slide active which adds a class with a delay. I predict there could be unnecessary duplication within the next and previous buttons. Are there improvements that can be made to t...

 
10:45 AM
0
Q: java code error

SalazarI cannot understand what this error is. I have looked all over google on how to debug this specific error " SYNTAX ERROR ON TOKEN "ELSE" DELETE THIS TOKEN" but I did not find any relevant answer. Please can anyone help me. I closed the program too but I couldn't get it on the screenshot. If I mad...

 
 
2 hours later…
 
1 hour later…
1:38 PM
0
Q: Where to locate JAX-RS, WAR or EJB package?

ps0604I have a JavaEE 8 application, consisting in a EAR, a WAR and an EJB package. The application has Angular in its front end that sends HTTP requests to the server. The server receives these requests with JAX-RS services. @Path("/abc") @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaTy...

 
2:04 PM
Why do you need to do it in a PL/SQL script? If it's to learn how to loop around a cursor (e.g. for school-work), then it's just about ok to stick with the answer you already accepted, but never do it when you are programming professionally. I would reject the row-by-row method if I ever came across it in a code review! — Boneist 8 secs ago
 
0
Q: Making bruteforce password cracker faster with python

Akın Oktay ATALAYI want to make an easy password cracker using python bruteforce. Here is my code. import itertools import string import time def crack_password(real): chars = string.digits + string.ascii_letters attempts = 0 start = time.time() for password_length in range(1, 9): for gu...

 
If the code works correctly then a more appropriate place to post this would be Code Review. — meowgoesthedog 50 secs ago
 
2:20 PM
Monking
 
0
Q: JNI: porting a semaphore data type to Windows

coderoddeI have this JNI code to review. The demo driver + irrelevant porting code is here. semaphore_impl.h: #ifndef WINDOWS_SEMAPHORE_IMPL_H #define WINDOWS_SEMAPHORE_IMPL_H #include <jni.h> #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_net_coderodde_util_concurrent_...

 
3:02 PM
@Duga Rolled back multiple revisions. Apparently that wasn't the first invalidation.
 
3:22 PM
Your code is working, you may want to visit codereview.stackexchange.com for improvements. Also, you need to provide DDL for the tables including indexes and the query plan for anyone to make meaningful contributions to this code. — scsimon 35 secs ago
 
3:59 PM
1
Q: C++ game server

Alex KuzubI'm writing a server for an MMO game using boost::asio. I would like to know, are there any design or other issues in my code? And what should I improve in it? Thanks in advance. BaseServer.h: #ifndef BASE_SERVER_H #define BASE_SERVER_H #include <asio.hpp> #include "MessageProcessor.h" class ...

 
4:09 PM
Out of curiosity, where did you get verify_login? I wrote that for someone else's code review like a week ago. — Carcigenicate 8 secs ago
 
0
Q: if statement working but not displaying output

rogerThe code is to print that the input number belongs to which data-types. The problem is that the last if statement works but, does not print the output. import java.util.*; import java.io.*; import java.lang.Math; class Solution{ public static void main(String []argh) { Sc...

 
4:46 PM
0
Q: Calculate BACKLOG_M_1

user190108I need to calculate the BLACKLOG_M value corresponding to the Snapdate of the first of the month. It becomes a constant value repeated for each line of the month As it is explained in the picture: SELECT T1.SNAP, T1.PERI, T1.ANNEE, T1.MOIS, T1.[BCKL], T2.[BCKL] AS BCK2,[NBR1] ,[NBR2...

 
If the code is working, try Code Review. — Michael 44 secs ago
Ahhh sorry did not know about Code Review on here.. Thanks for that. — noredlac 32 secs ago
 
5:17 PM
0
Q: Time-series search with early stopping

Seanny123I want to search for a pattern in a time-series while either ignoring the mean/shift/bias or the scale/standard deviation. Consequently, I've written two functions. The first function searches passes through the time-series, incrementally calculating the mean for each search-space sub-sequence ...

 
Gosh - it is a custom observable concurrent collection that works fine as far as I can tell in all other regards. Too much to post here; a slightly older version can be found here: codereview.stackexchange.com/questions/210575/…mike 43 secs ago
 
5:42 PM
@CaptainObvious wait - wat? the OP is not Morgan... its Bagseye... ???
 
@RMunroe Thor's Razor
@SᴀᴍOnᴇᴌᴀ lol, indeed. Not sure how that works, but something's iffy.
 
Oct 4 '18 at 18:16, by Mast
Everything can be broken.
 
0
Q: Random choice - betting script

Lucas OliveiraI'm trying to make a betting script with random choices using Math.random, but it only chooses the same bet and it is betting a single time before it crashes. Not sure what is wrong with the script. var minstake = 0.00000001; // valor base var autorounds = 99999; // n° de rolls var ...

 
lol
 
@SᴀᴍOnᴇᴌᴀ just like the code in the question in that latest post by Captain Obvious...
1 min ago, by Captain Obvious
0
Q: Random choice - betting script

Lucas OliveiraI'm trying to make a betting script with random choices using Math.random, but it only chooses the same bet and it is betting a single time before it crashes. Not sure what is wrong with the script. var minstake = 0.00000001; // valor base var autorounds = 99999; // n° de rolls var ...

 
6:04 PM
0
Q: Optimal algorithm to move rope from one position to another

Mike Suppose there is a rope attached to a discrete set of pegs. In the above image, the rope is attached at pegs (2, 4, 6). The pegs are always spaced apart by 1 unit in x, so we can ignore the x-coordinate. We need to move the rope from one position to another, without the rope breaking. We ...

 
6:15 PM
Perhaps we should change the title to something even more obvious, like Working Code Only Review
8
 
^^
Check out the big brain on Mast!
 
I don't think it is more frequent now than before. I've seen (and edited out) those "searched a lot" for long time. I always read "searched and found nothing" as "I went to disney.com and searched but found nothing about my swift question"... it makes reading such questions at least a bit more amusing :) — Alexei Levenkov 2 days ago
 
Monking
 
@Mast the fact that the comment involves disney.com, Donald Duck edited the question and the answer involves a wizard seems interesting...
6
 
6:30 PM
Lool nice
I reserved 15 minutes of my coworkers time today to fix some component, turned out I only needed to run the installer again and check a checkbox
 
6:45 PM
@SᴀᴍOnᴇᴌᴀ Suspicious even.
 
its a duck cover up...
 
...
 
7:07 PM
0
Q: Finding different char from 2 given strings JAVA (enhancements)

noredlacI believe I have the code right for this particular question already but I do have some follow up questions. I'm still fairly new to this and I got it to spit out what I was looking for.. if there are room for improvements I am open to criticisms, just looking to get better. My code is below, bu...

 
7:28 PM
@CaptainObvious you don't have to shout...
I feel like this answer by Blindman67 is pretty good!
@Mast nice image. I tried to morph that phrase for this case but couldn't think of anything clever... gotta do stuff
 
7:48 PM
I wonder why @Jamal's profile picture is a wrist?
 
1
Q: Removing commented dead code without removing the legitimate comments

Andrew NaguibThis question is the real question asked on StackOverflow. I'm here to review my answer and see how can I optimize it. Here is the answer text: This is a basic approach, but it proposes a proof of concept of what might be done. I do it using Bash along with the usage of the GCC -fsyntax-only ...

 
8:15 PM
@Hosch250 It's supposed to show a ladybug, which happens to blend in with my shirt.
3
 
Oh.
Are they rare in your area?
 
Somewhat
 
We used to have them a fair amount, but the orange Asian Beetles killed them all, and we have millions of those instead now.
 
8:33 PM
Anyone interested in running a community challenge?
 
Hm...?
 
@202_accepted was running them for a while, at the last stretch.
 
0
Q: Optimize Leetcode Mountain Array

Rez88Link to Problem: https://leetcode.com/problems/longest-mountain-in-array/ Hi All, I've been working on longest mountain in array on Leetcode. I've come up with a solution that passes the test but only beats 17% of javascript submissions. I just want to know if there's anything I can do with my ...

 
8:52 PM
This is a WinForm or WPF MDI GUI question not really a PowerShell code issue one. So, off topic for this Q&A. I suggest you move this to the CodeReview Q&A codereview.stackexchange.com and post your complete code for feedback. Yet, since you are here, you would need to do this as an MDI child Parent model, and fire of code using the onload event of the child to set initial option of the child. — postanote just now
possible answer invalidation by Sᴀᴍ Onᴇᴌᴀ on question by E.G: codereview.stackexchange.com/posts/210811/revisions
 
@Hosch250 I'll gladly run them again if there's interest
 
This is a WinForm or WPF MDI GUI question not really a PowerShell code issue one. So, off topic for this Q&A. I suggest you move this to the CodeReview Q&A codereview.stackexchange.com and post your complete code for feedback. Yet, since you are here, you would need to do this as an MDI child Parent model, and fire of code using the onload event of the child to set initial option of the child. Lastly, WinFomrs is not getting any real attention (maintenance only), so, it's time to move to WPF for current / future GUI stuff. — postanote 46 secs ago
 
9:23 PM
@Duga I didn't touch any code... just removed a sentence and added a character to the title to match the duplicate sentence that was removed from the body
 
in Coding Projects and Factorio Heaven, 15 mins ago, by skiwi
My code works and I don't know why
 
0
Q: Using long if else conditionals within nested loops in Ruby

Steven AguilarI'm currently working on parsing a users application into a pdf form. FormStack is the form service i'm currently for this project. I have the following code: def fill_out form_fields.each do |field| @user_submission_data.each do |field_data| if field_data["field"] == field ...

 
10:15 PM
0
Q: First python project - Hangman game

AMJI created a basic hangman game that uses text file to select secret word. import random secret_word = [''] user_list = [] number_of_tries = 5 guessed_letters = [] user_tries = 0 user_guess = '' def select_word(): global secret_word, user_list with open('secret_words.txt', 'r') a...

 
 
1 hour later…
11:45 PM
You might find you get better responses for something like this on the Code Review Stack Exchange. — Harry Cutts 28 secs ago
 
11:55 PM
possible answer invalidation by greybeard on question by Mark Peter Mc Adam: codereview.stackexchange.com/posts/209489/revisions
 

« first day (2078 days earlier)      last day (1939 days later) »