« first day (3010 days earlier)      last day (89 days later) » 

12:03 AM
REFRESH! There are 7723 unanswered questions (89.3690 answered)
 
 
7 hours later…
7:11 AM
possible answer invalidation by Toby Speight on question by Gustavo Marinho: codereview.stackexchange.com/posts/265563/revisions
 
@Duga I just properly blockquoted the sample code in the problem statement.
 
possible answer invalidation by Toby Speight on question by Gustavo Marinho: codereview.stackexchange.com/posts/265563/revisions
 
@Duga I just properly blockquoted the sample code in the problem statement.
 
8:11 AM
0
Q: Type annotation for many types

emremrahfrom PIL.PngImagePlugin import PngImageFile from PIL.JpegImagePlugin import JpegImageFile def exif_dict(image: Union[PngImageFile, JpegImageFile])->dict: # code here The purpose of this function is to return exif info from images. In this situation maybe there is only two options of types,...

 
 
3 hours later…
11:38 AM
@TobySpeight Lol, I like your double reply
Nice edit
 
 
1 hour later…
12:52 PM
@Andrew Henle he may have profiled it. And there's nothing wrong with wanting to know how to do this kind of operation effeciently. It's already not bad, but at the very least there's some extra allocation going on which is more than trivial to eliminate. It could also simply be an std::array, if the op doesn't need dynamic allocation down the road. Although truthfully this would be a better question for the code review stack exchange. — George 58 secs ago
 
1:47 PM
It would be easier for subsequent readers to understand if you had not deleted the old question and simply added the new information. Also, a code review is off topic, there are dedicated sites for that, e.g. codereview.stackexchange.com. — Topaco 23 secs ago
 
2:06 PM
0
Q: A different approach to string pattern matching algorithm

DeepeshkumarAlthough there exists the most efficient "Knuth-Morris-Pratt" algorithm of string pattern matching. I tried to achieve the same result with a different approach. But I am not sure about it's efficiency. I am a novice in programming. Can anyone show me how to analyze this algorithm and find it's e...

 
2:32 PM
0
Q: Handling field separator option

PietruHave been constructing an array that can be used to populate options to find. ${incl[@]} made from function parameter arguments that takes filename suffixes. # get parameter arguments ("--incl") incl+=("$2") ; shift 2 ;; # file type suffix Example using --incl .texi --incl .org gives incl=( ....

 
3:23 PM
0
Q: How to add a countdown timer in a guessing/hangman game? I'm trying to play a guessing game/ hangman using python

quzprint("Start guessing...") #here we set the secret word = "secret" #creates an variable with an empty value guesses = '' #determine the number of turns turns = 10 #check if the turns are more than zero while turns > 0: # make a counter that starts with zero failed = 0 # for every ch...

 
possible answer invalidation by D_S_X on question by D_S_X: codereview.stackexchange.com/posts/265568/revisions
possible answer invalidation by D_S_X on question by D_S_X: codereview.stackexchange.com/posts/265568/revisions
 
3:51 PM
@Duga Clearly identified as a post answer edit. I'm going to leave it as is but post a warning.
 
4:30 PM
maybe the question is more suited to: codereview.stackexchange.comMohammad 5 secs ago
 
5:16 PM
possible answer invalidation by m-alorda on question by Deepeshkumar: codereview.stackexchange.com/posts/265575/revisions
Welcome to Stack Overflow. Please take the tour to learn how Stack Overflow works and read How to Ask on how to improve the quality of your question. Then check the help center to see what questions you can ask. Also add your code to the question itself, not on an external site. You might want to delete this question and ask it on codereview.stackexchange.com instead, but check the help pages there first. — Progman 57 secs ago
possible answer invalidation by m-alorda on question by Deepeshkumar: codereview.stackexchange.com/posts/265575/revisions
 
1
Q: Fantasy Football(Soccer) Simulation

Konstantin KostanzhogloWhat my program does My program does simulation for fantasy football. Its inputs are teams and teams results in a particular match and its outputs are how many points each team earned in each match according to given scoring rules. Here is an example of a team: team1 = [ calculate_points.Play...

 
6:01 PM
Refactoring/improvements are better served on Code Review. Not that you will be asked to post your code IN the question (same as here btw). — Louys Patrice Bessette 27 secs ago
 
6:44 PM
0
Q: Mimic Chrome control find using Javascript and Jquery

HJ_beginnerBackground I need to mimic Ctrl+F in Chrome for a list of names in an overflow div I don't want to search all text on the page I just want to search the first span with class mb_i in each list element A long list of names: <li><span class="mb_i">Joey name to search here</span></li> It seems to w...

 
@Duga Looks okay - added prettify hint and fixed initial indentation
 
 
2 hours later…
8:50 PM
0
Q: regarding the usage of super in the constructor of an abstractbase class

user785099I once across the following code segment, and I am not very clear about the line of super(AbstractPublicKey, self).__init__(*args, **kwargs) what might be the usage or design consideration for having this line of code in the constructor part of an abstract class class AbstractPublicKey(object): ...

 
9:21 PM
Monking
 
 
1 hour later…
10:36 PM
@Dan D, the code has flaws hence it cannot be part of code review. — Subham 57 secs ago
 
10:56 PM
0
Q: Scraping Kayak with Selenium: issues in clicking travel boxes

IlariaI am trying to scrape data from the following link for an academic project: https://www.kayak.it/explore/MIL-anywhere/20210801,20210801 I need to open each single travel box, then click the button 'xzUt-button-container' and then I'd like to scrape flights data and prices. I have issues in the fi...

 

« first day (3010 days earlier)      last day (89 days later) »