« first day (2590 days earlier)      last day (1410 days later) » 

12:00 AM
RELOAD! There are 6710 unanswered questions (89.9313% answered)
 
12:54 AM
Please repeat the intro tour, especially on topic. Stack Overflow is not a design or review resource. This is an issue for the CodeReview site. — Prune 8 secs ago
 
1:12 AM
0
Q: Rock/Paper/Scissors Game

SidwhoAfter spending a few months learning python I decided to build a basic Rock Paper Scissors game. Basic construct of the game: -allows you to pick best of 3,5,7 -allows you to put in the name -computer choices are completely random I know there are probably a million different ways to write thi...

 
You may have better luck asking this type of question here: codereview.stackexchange.comJustin Self 42 secs ago
 
1:59 AM
0
Q: Creating a calendar that calculates day of week and week of Month

NoodsI need to print a calendar from the input date given by a user. I AM NOT ALLOWED TO USE ANY PREDEFINED DATE CLASS. Here is an example of the desired output: 24/05/2020 is a Sunday and locates in the fourth week of May 2020 The calendar of May 2020 is: MON TUE WED THU FRI SAT SUN ...

 
 
1 hour later…
3:11 AM
0
Q: Post Submission, Pic Upload and Posts Fetch security

user13477176I am a newbie and wanted some input. I've been following a tutorial I bought on udemy and was told it teaches bad code practices and the stuff is old. So I used some code from my old project and I need to know how secure it is. Thanks. Posts Upload: <?php error_reporting(-1); require 'config/...

0
Q: Java calendar from user input

NoodsI need to print a calendar from the input date given by the user. HOWEVER, I AM NOT ALLOWED TO USE ANY PREDEFINED DATE CLASS. Here is an example of the desired output: 24/05/2020 is a Sunday and locates in the fourth week of May 2020 The calendar of May 2020 is: MON TUE WED THU FRI SAT SUN ...

0
Q: Flatten nested lists and reduce the complexity in java

NishakarI'm developing a complex app with spring boot and mongodb. I have a Video class like following.(All getters setters are omitted) class Video{ ObjectId _id; private List<OReelOCategoryLGroup> listOfReelIdCategoryIdAndGroups; //some other fields } public class OReelOCategoryLGroup...

 
Also, for future reference, questions like these more or less asking for a code review are a little off-topic for stackoverflow, perhaps better suited for codereview.stackexchange.comDrew Reese 38 secs ago
 
3:34 AM
0
Q: Better way to write mybatis mapper insert annotation with reflection

AlexAll. I have the below MyBatis Mapper with an insertion method: String INSERT =SQLUtil.getFields(Consumer.class); String INSERT_WITH_BRACE = SQLUtil.GetFieldsWithBrace(Consumer.class); @Insert("INSERT INTO Consumer("+ INSERT +") " + " VALUES " + INSERT_WITH_BRACE) public int insert(Cons...

 
 
2 hours later…
5:34 AM
0
Q: Scroll on iframe gets disabled (perfect-scrollbar)

AkshayI am using vue-perfect-scrollbar in an application. Problem: scrollcomponent from vue-perfect-scrollbar gets disabled when I try to use iframe with it. The scroll works perfectly over scroll area , but not over the iframe. I have found a below workaround which uses the pointer-events .disab...

 
@l0b0 the question is not about how to extract email, there is custom conversion between input and output and OP already has a working example.. not sure why you marked it as duplicate.. the question may fit better on code review sites, but this is no way a duplicate — Sundeep 33 secs ago
 
5:58 AM
0
Q: Dynamic array made in c

user222866I would often wonder how one would deal with dynamically sized arrays since in c the only thing even close is using malloc and realloc with pointers. As a result, I decided that I should create a dynamic array in c so that I would know how they work. here is the code xvec.h #ifndef XVEC_C_XVEC...

 
6:22 AM
0
Q: Kosaraju Algorithm in Java

Aashish Pawar Problem statement In simple words it say, count total Strongly connected components in the graph. All edges are unidirectional. consider the following code that uses kosaraju 2DFS approach. import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; public class Air...

 
7:10 AM
0
Q: Better way - Parsing Large Log Files

rogerwhiteNOTE: This question is about making my script better/faster. This is not about extracting emails. So, please do not mark it as a duplicate I have huge number of text files, each several hundred MB in size. Unfortunately, they are not all fully standardized in any one format. Plus there is a lot ...

 
I’m voting to close this question because this question belongs to codereview.stackexchange.comSteve Benett 36 secs ago
 
7:33 AM
0
Q: Finding number of brackets sequences of length n containing a specific string s

RE60KI am trying to solve a problem where I need to find bracket sequences \$p\$ and \$q\$ such that for a given bracket sequence s. I have that \$p + s + q\$ is a valid bracket sequence. Also \$|p+s+q| = 2n\$. We can use dynamic programming here, i.e. let dp[i][j] = the number of bracket sequences (...

0
Q: Leetcode 1423. Maximum Points You Can Obtain from Cards

Jitesh MalipeddiI came across this question on Leetcode. The question description is as follows There are several cards arranged in a row, and each card has an associated number of points. The points are given in the integer array cardPoints. In one step, you can take one card from the beginning or from the en...

 
7:48 AM
Monking
 
8:21 AM
0
Q: Directed graph and Dijkstra algorithm using heap, with an example

user141240I have implemented directed graph and Dijkstra algorithm using heap in Python. I first implemented an abstract base class WeightedGraph, of which DirectedGraph is a subclass. The DirectedGraph uses an adjacency map as its internal representation. I then implemented the method single_source_short...

 
There is this concept of "minimal reproducible example" in SO, it is not a code review system; the next time please limit the code to only the relevant parts of it. — Todor Minakov 55 secs ago
 
9:14 AM
Welcome to SO. However this is offtopic. Best to look at similar existing questions. Also see CodeReview.SEsmci 47 secs ago
 
9:32 AM
I think you should ask this question over at Code Review. But read their help page first to see if this question really fits! — Ocaso Protal 29 secs ago
 
9:56 AM
0
Q: Excel VBA optimizing for large data base

Theresa RogersI am new to coding and need help with a code that won't complete. I suspect it is due to the size of the data set. I tested the code using a reduced data set and it processes fine. However, my actual data set is over 210,000 rows and is expected to grow. Is there a way to speed this up? Thank you...

 
10:59 AM
0
Q: Tree recursion - How to resolve duplicates?

overexchangeFor the below problem implemented in GoLang: package recursion import ( "fmt" "strconv" ) // m is the number, n is upto-length of subsequences // m = 20125, n =3 should print 201, 202, 205, 212, 215, 225, 012, 015, 125 // m = 20125, n =2 should print 20, 21, 22, 25, 01, 02, 05, 12, 15...

 
12:00 PM
Monking
 
If you want advice for code that is working as intended, you should ask on Code Review. — mkrieger1 46 secs ago
 
12:15 PM
Monking
 
Well, all it does it write to the console so there is not much to critique, and code review is off topic on SO but you can ask hereCrowcoder 46 secs ago
 
12:49 PM
@DanielMårtensson Consider Code review. — chux - Reinstate Monica 43 secs ago
possible answer invalidation by Peilonrayz on question by Jitesh Malipeddi: codereview.stackexchange.com/posts/243467/revisions
 
@Duga Convert problem statement from code block to block quote.
 
 
1 hour later…
1:55 PM
0
Q: Update cache with minimal blocking

UserNameAs part of the task, it is allowed to use slightly outdated data. It is required that only one thread per key is involved in the critical section, while the remaining threads use data from the cache despite the expired TTL. The following code is an attempt to write a function calling the delegate...

 
Monking
 
@CaptainObvious Interesting.
 
2:10 PM
possible answer invalidation by Mast on question by Orland: codereview.stackexchange.com/posts/242597/revisions
 
@Duga Bollocks.
 
@Duga I was a bit confused there, looks good
 
@Peilonrayz We don't have that problem in Dutch luckily. It always feels a bit wonky to say dabbelyou.
@Peilonrayz I've mod flagged the answer as obsolete. Not 100% sure if that's protocol, but I were a mod, I'd prefer it like that.
 
@Mast I've never heard it say dabbleyou, but I can imagine some Brits saying it that way. I pronounce it "doubleyou" / "doubleU"
@Mast I've flagged as NAA (it should be an edit) and downvoted to start a VTD. I'm not sure what 'proper' is but either of these will get the job done.
 
2:25 PM
@Peilonrayz And now both are in motion, so I'm sure it will go quickly.
 
2:35 PM
@Mast @Peilonrayz Added my 2 cents worth.
 
@pacmaninbw To be clear, I only downvoted to have the ability to VTD.
I had hoped my comment explained that, but maybe it was unclear.
 
I understand, I also down voted and flagged.
 
 
I've deleted my comment, as 3 people saying pretty much the same thing with a -2 just seems hostile.
 
It's been deleted by you and @Vogel612.
 
2:44 PM
-2 is plenty down.
@pacmaninbw Good.
 
You could ask this question on CodeReview — Thomas Sablik 33 secs ago
Also see how to ask and how to create a minimal reproducible example. You may also be interested in Code Reviewbug_spray 35 secs ago
 
3:20 PM
possible answer invalidation by user13477176 on question by user13477176: codereview.stackexchange.com/posts/243457/revisions
 
3:34 PM
@Duga Clearly, thanks.
 
3:54 PM
0
Q: Looking to refactor these two similar methods into single method if possible

Enigma StateHi All i am trying to generate the word document with two different tables included in it, for this purpose i have two similar methods where i am passing word document reference and data object and table to the similar methods.. Now i am looking to make single method in generic way so that in ...

0
Q: Console dice game

shaggyI wrote a simple dice game with the purpose to practice arrays and classes. I would like some critique on my code structure and quality - as well as thoughts on my thoughts to improve it. Here's the code: import java.util.Random; import java.io.BufferedReader; import java.io.InputStreamReader;...

 
4:42 PM
0
Q: Selects all elements with a specific data attribute and equalizes their heights

NickThis script looks for a data attribute applied to elements within a specified wrapper. It then sets all elements with the attribute to the same height (height of tallest div). I needed to add a wait time as I found that sometimes the script would get the heights of the divs before the page had...

 
For me it seems like a slow day in thee queues.
 
5:06 PM
0
Q: How to combine 3 operations in 1

oo92I am assembling a dataset using Python. After I run a series of shell commands to download, untar and remove the tar file, I'm using these commands to assemble the dataset: # Moves all test images to the food-101/images/test directory and renames them with open('food-101/meta/test.txt') as test...

 
5:29 PM
0
Q: How to solve prime power mathematical problem python

Owenn GimliI have a mathematical problem about prime power. A number \$x\$ can be considered a prime power if \$x = p^k\$ where \$p\$ is a prime and \$k\$ is a non-negative integer. For example, \$81\$ is a prime power because \$81 = 3^4\$. Now, form a sequence of numbers in the following way. Start by taki...

 
5:44 PM
@pacmaninbw 8 in the CV queue, rest is empty.
That's relatively quiet indeed.
 
6:09 PM
It's because your code is already working and you want to make it better instead of fix it. Code Review (I've linked it above) is meant for this sort of question, where you want to improve code or check if it's nice enough. Hope that helped — user 36 secs ago
A thing which may be interesting to you: there is a stackexchange site dedicated to commenting-polishing code which already works: codereview.stackexchange.comtevemadar 23 secs ago
 
0
Q: Javascript draggable and resizeable element

TeiemI wrote script which allows an element to be dragged and resized. I am mainly looking for suggestions regarding my Javascript. In the future, it should also be possible to control the element externally, therefore the init() function is only temporary. Thank you in advance :) Github Live Page...

1
Q: Looking for ways to make this macro more efficient

PumpkinI have this simple macro getting data from Teradata to Excel. This process normally only takes me about 10 mins to do manually, but the macro can run for hours sometimes. So the macro seems counterproductive. But I still want to give it a shot. Could someone suggest ways to improve this? I don't ...

 
6:33 PM
If the code works it might be better for codereview.stackexchange.com. Also if mysql isn't related I'd remove that tag. — user3783243 23 secs ago
 
7:05 PM
0
Q: Noughts and Crosses Terminal Game with AI

RelativelyUniqueI searched to make sure this has not been implemented before. Could I have some feedback on my Python code in the github repo. In particular, I would be particularly interested to make my code clearer to read and understand. Thanks for your time, https://github.com/jcoombes/tictactoe def...

 
7:28 PM
1
Q: PHP IF statement refactor

LowtiercoderI am currently working on a coding challenge for tic tac toe i am calculating the results and inserting them into the database, I have a long IF statement which checks if the array values match for valid win between O and X. The IF statement is looking long and messy and i feel like it could be ...

 
7:59 PM
@Mast I just checked after I saw this, I only had a "Suggested Edit", which I took care of.
 
Me: "Why haven't you followed good advice you previously got" OP: "Cause it's bad advice". Right...
2
 
@Peilonrayz You can lead a horse to water but you can't make them drink.
 
Yeah, it's pretty disheartening. Even when it wasn't my advice.
 
 
2 hours later…
9:57 PM
Your question seems legitimate to me, but just for your information, with a full program functioning as you posted, you can also consider posting to codereview.stackexchange.comPac0 6 secs ago
 
10:15 PM
0
Q: Accessible React combobox

James FenwickTo learn React I've ported a Vue combobox component into React. Because of the project it could be used in uses React 16.2 it doesn't use features like React.createRef() or hooks. import React, { Component } from 'react' import PropTypes from 'prop-types' class ComboBox extends Component { co...

 
11:02 PM
0
Q: Create football stats from a .csv file

Konstantin KostanzhogloI have collected a .csv file with some statistics about football games in the following format. Here is a sample .csv file. Date,Home,Away,HomeShots,AwayShots,HomeBT,AwayBT,HomeCrosses,AwayCrosses,HomeCorners,AwayCorners,HomeGoals,AwayGoals,HomeXG,AwayXG My code does the following: Calcula...

 
11:14 PM
@pacmaninbw I just watched a Mythbusters episode where they talked about that.
 
0
Q: Aho-Corasick algorithm to scan through a list of strings

Denis ShvetsovThis is a follow-up to my previous question about finding min and max values of an iterable. Aho-Corasick algorithm was suggested to solve the problem. Below is my solution with the use of ahocorapy library. Short re-cap of the problem: You are given 2 arrays (genes and health), one of whi...

 

« first day (2590 days earlier)      last day (1410 days later) »