« first day (2384 days earlier)      last day (524 days later) » 

12:00 AM
RELOAD! There are 6242 unanswered questions (90.0858% answered)
12:24 AM
I think this could be a good question for code review (after you've gotten it to compile of course). — Kerndog73 23 secs ago
There's probably an infinite number of ways that a string could be formatted as a date and I think it'd be premature/impossible to try to begin imagining them all. If the code works as it stands, it might be better asked on Code Review, although it's probably too insubstantial for that. See CR on topic before posting there. As for your request here, you could put the formats in a list and iterate over them with one try/except in the loop so you don't have to nest them. — ggorlen 15 secs ago
1:14 AM
Q: Simple run-length encoding decoder

CarcigenicateFor practice, I decided to write a run-length encoded string decoder. For example: basic_run_length_decode("1A2B3C") => 'ABBCCC' basic_run_length_decode("5A10Z10J") => 'AAAAAZZZZZZZZZZJJJJJJJJJJ' It ended up getting long, but that's because I wanted try incorporating the partition-by function...

1:25 AM
@Storsjoodjuret A better place to ask for improvements is [codereview]. — JaMiT 41 secs ago
3 hours later…
3:56 AM
Q: Moving Square GUI Java Code

Aaron Huynh Image is the list of questions that need to be answered, currently the square only moves across in the X direction, tried copying and pasting methods for Y but it wouldn't work. Also don't know how to do 3 or 4. Please help... import java.awt.*; import java.awt.event.*; import javax.swing.*; ...

4:13 AM
If this code works, and you're just looking to improve it, I suggest instead posting over at CodeReview. — BruceWayne 24 secs ago
1 hour later…
5:19 AM
Q: Plotting shapely polygon in matplotlib

Bruno VermeulenWhen working with geometric objects I like working with the shapely module (Shapely - PyPI). In here it is easy to create polygons and define union, intersection and differences. Like so: from shapely.geometry import Polygon x1 = [3, 3, 6, 6, 3] y1 = [4, 8, 8, 4, 4] x2 = [1, 8, 8, 1, 1] y2 = [1...

5:36 AM
@CaptainObvious broken
6:00 AM
Q: Interactive Tower of Hanoi

SrivathsI created this program some time ago. It shows you how to solve tower of hanoi for n disks, step by step . Here's the code: from os import system from colorama import Fore, Style clear = lambda: system('cls') class TowerOfHanoi: def __init__(self, n, r1, r2, r3): self.n = n ...

6:43 AM
If your code runs and produces the expected output then you can get feedback by posting it over at Code Review. Stack Overflow is not intended for general code evaluations. — jwvh 1 min ago
7:01 AM
Q: Hangman Game using python3

Anthony GedeonSummary I made a hangman game using python but I had trouble writing clean pythonic code Questions In the code snippet I provided (Full code in the link below) I used global for: loop and points variables, I know it is bad practice to use the global. What are some ways I can prevent myself fr...

Q: Scala - Perfect Number usage in higher order function - anything wrong?

nitinApologies , but am new to scala... learning it, now. I have been trying to complete a excercise where the ask was as follows :- // Write a function isPerfectNumber which takes integer input and returns String output. // It finds if a number is perfect, and returns true if perfect, else returns...

Q: Function that creates pointers to classes

Seabrook Sze Bok NgI'm trying to create a function that creates pointers to instances of a player class. This is because, at the start of my game, I want to be able to make as many player instances as I want. This is to make the game 2-player, 4-player or 3-player and theoretically, an infinite number of players...

7:49 AM
Code review stack exchange, maybe? — naive 49 secs ago
1 hour later…
9:04 AM
Q: String template using concrete implementation instead of external library

Siraj MQ1: What are the benefits of using any external library e.g Antlr3.StringTemplate? Q2: What are the potential issues with the below implementation? public class StringTemplate { private string text = string.Empty; public StringTemplate(string template) { this.text = template...

9:50 AM
possible answer invalidation by Bruno Vermeulen on question by Bruno Vermeulen: codereview.stackexchange.com/posts/232294/revisions
10:26 AM
Q: Caesar cipher implementation in C++

ExzlantttI implemented a Caesar cipher in c++ and would like for you to review it, it works as expected, at least with the inputs I tried. Feel free to suggest improvements, bad practices/ mistakes that I might me doing or general tips. Thank you in advance! // Caesar Cipher implementation #include <i...

possible answer invalidation by ABA on question by ABA: codereview.stackexchange.com/posts/232273/revisions
@Duga rolled back
@Duga rolled back
10:54 AM
This would be better suited to Code Review. — Darren Bartrup-Cook 6 secs ago
11:07 AM
Q: X in a Line Console Game - Python OOP

RobinPlease could you review my code below? The game is similar to "Connect 4", but I haven't implemented diagonal checking for wins. In particular I'm interested in my use of OOP. E.g. My choice of classes Did I need a Game class at all? I've tried to find out whether it's considered a good idea...

Fair point, I would also comment on that in a code review. — Lars Nyström 35 secs ago
@JuniusL. Only working code goes to CodeReview, we closed a copy of this question as off topic. codereview.stackexchange.com/q/232151/14625tomdemuyt 33 secs ago
Questions about improving working code should be posted on CodeReview. — Ansgar Wiechers 27 secs ago
Ok, I will move my question to CodeReview, thanks. — tmach 57 secs ago
11:47 AM
Q: Is there a way to avoid repetitive code in the following switch statement?

Roland DeschainI have the following method which is called every time the user clicks a checkbox within a datagrid. Each column within this datagrid has a checkbox in its header, which checks/unchecks all child checkboxes in the respective column. This header checkbox will be updated according to the child chec...

12:28 PM
Who upvoted this?
Can we please stop upvoting total crap?
12:43 PM
Greetings, Programs.
you have spent waaaaay to much time on codereview.stackexchange.com ^_^ +1 — Martin Frank 56 secs ago
1:05 PM
@Duga No such thing.
Q: Liveness monitor : python and RabbitMQ together through Pika

HooliI'm a beginner using Python, and I'm trying to implement a functionnality already developped by an other "junior" programmer about a monitor program. This program is working on a Windows machine (made by Inno Setup) and have to listen to RabbitMQ server and consume messages to start a background...

Q: Powershell: does a file name contain a value

tmachI need to check if a file name contains a value which I get from 2 excel Columns (ContractNumber & PONumber). My Script is too slow right now. It has been running for 1 hour and it completed only 2%. The files are in 600+ folders within the main directory(shared drive). There are 19K files(pdf/d...

1:23 PM
It sounds like this may be a better fit for codereview.stackexchange.comDavid 46 secs ago
Q: Unit testing the code that is written using repository pattern

TomI am implemented my business logic using repository pattern. I basically have Approve method in my controller . I am calling the service method ApproveUserChangeRequest which in turn invokes GetUserChangeRequest and ApproveUserChangeRequest in the UnitofWork class. I would like to know if this is...

2:10 PM
Q: Histogram building in python, specific on one variable

Sam O'FarrellBelow is the dataset im using to build the histogram. I want to build a histogram which specifies on the 'EL' variable and where we have the frequency on the y-axis. Is it possible to group the 'EL' values from '0-40' '41-80' as such. Im new to python so some guidance would be greatly appreciated...

2:45 PM
how I can simplify this and still increment the time between each run, Code Review if it's working. From the looks of it, this doesn't compile. — Çöđěxěŕ 50 secs ago
3:12 PM
Q: WPF Custom Control with a Single ObservableCollection DependencyProperty

watkipetI'm learning how to write WPF custom controls. My example, NameLister, exposes a single DependencyProperty, Names, of type ObservableCollection<string>, and displays all the names concatenated together into a single string in a TextBlock. To test my control, I have a TestApp which binds a collec...

3:32 PM
Q: Is this method Thread-Safe?

Frank SollI made this code to calculate pi using MonteCarlo method. I'm also learning how do Java threadpools and multithreading work. Can you tell me if this method is thread-safe and how can I improve it if there is a deadlock chance. private volatile boolean waiting = false; private int reqsamples =...

4:13 PM
Q: Advent Of Code 2018 Day 15 - Naive Rust program

naiveaiI solved the Advent of Code problems last year in Python, and I wanted to learn a new language this year, so I decided to write up Part 1 of on of the hardest problems from last year - problem 15 - in Rust. It is sort of long, and it could probably be simplified by the use of external crates, b...

possible answer invalidation by Anthony Gedeon on question by Anthony Gedeon: codereview.stackexchange.com/posts/232298/revisions
@Duga No, that's fine.
4:34 PM
Q: A JavaScript class, which finalises the HTML of each page of my NodeJS (Express) website

Tom HoskerBackground A request (req in the code) is made to my server, and a response (res) returned. By the time the response has filtered through to the code below, most of the heavy lifting - looking up entries in a database, etc - has already been done. This code just puts some final tweaks on all res...

5:10 PM
Q: Matrix class problem in Python

ImaginatePlease bear in mind this is an early version of the class - I am aware that I am getting instances all wrong, but that will change later. I have a problem with this code: class matrix: def __init__(self): print("Initialising matrix class...") print("You are the one Neo!") ...

Q: Python Object Oriented Hangman Game

CrovesI'm a hobbist trying to become a professional software developer. I do have a lot interest in Data Science in general and my goal is to master Python before diging deeper into specific data science topics. I created this game when I started studying object oriented programming. Thank you all in ...

I think this question would be better off at codereview.stackexchange.com. — Eric Wu 58 secs ago
5:56 PM
You could be looking for Why is Vec<&str> missing lifetime specifier here? Does that answer your question? If so, we can mark it, but if not, I don't think it's answerable. There's nothing wrong with the architecture you have described, though. If it works but you're not sure it's the best solution, consider asking on Code Review instead (read the rules there first; the expectations are different). — trentcl just now
6:06 PM
Sara Chipps on November 13, 2019

In my very first blog post, I wrote about what a personal experience taught me about the Stack Overflow community. I said we were going to step back and re-evaluate how we deliver feedback, how we can improve content quality, and how we can reduce friction between people. I said that our goal is to have the question asking process be painless and beneficial for new people and Stack Overflow veterans alike.    

During this re-evaluation period, we noticed something in our reputation reward system. We give anyone who receives an upvote on an answer ten additional reputation points, but only give five reputation points to people who receive an upvote on a question.  …

oh wow, retro-active points, noice!!
Ah, Sara Chipps, I was hoping she would be fired by now..
6:45 PM
@EricWu Code Review doesn't accept hypothetical/stub code though. Please familiarize yourself with the CR on-topic page before making such suggestions. — Sᴀᴍ Onᴇᴌᴀ 39 secs ago
@konijn Let's not get into that again.
Also, looks like main meta is getting inflamed over this as usual.
Q: Creating default object from empty value in PHP?

RagerConsider the following code. $car = (object)[ 'general' => [ 'interior' => [ 'seats' => 'destroyed' ] ] ]; $exteriorProperties = [ 'hood' => 'shiny', 'windows' => 'dirty' ]; foreach($exteriorProperties as $key => $prop){ $car->{'other'}->{'exterio...

If your code works, you should post it on the codereview site instead. Stackoverflow is for debugging existing problems. codereview.stackexchange.comSyntaxVoid 54 secs ago
7:17 PM
You didnt show us what are the queries. But depend on the queries parallel can help you reduce the time. codereview.stackexchange.com/questions/155253/…Juan Carlos Oropeza 58 secs ago
7:29 PM
Q: Snake game in Python with tkinter

HelloBTI created snake as my first program with GUI, I didn't learn OOP yet, so my program has no classes. I know that I should use comments, I am sorry. Short instruction: l - increase snake speed k - decrease snake speed space - pause/start/restart game it depends a - turn snake left d - turn snak...

Q: calll python script from C# in considering performance impact

aamir sajjadI am calling python script from C# code that crop image. Is there any better way to do it? This is the first time I am doing it, so I wanted to have other opinion/ways of doing it. Important Factors in my context: . the performance is very important . This function is expected to be call for...

@SimonForsberg That looks an awful lot like janos, doesn't it?
Indeed it does.
checks profile, sees GitHub links, facepalms
Haven't seen him much lately.
And it begins... — Mari-Lou A 1 hour ago
People are literally starting drama for the sake of starting drama.
7:43 PM
Could've been worse.
Like, realistically the worst that can happen is someone's rep could double (unlikely).
If you had 200 rep, that's 400. That is nothing privilege wise. If you wanted to imagine someone crossing the 25k barrier, the lowest they could (realistically) be is 12.5k rep. That's still enough to know things...
This is not the big deal it's being made out to be...
As usual, people aren't complaining about what's done but that it's done without their say so.
Like they'd need to have a say in about everything.
Oh well. They don't own Stack Overflow.
Dumpster fires.
If they are giving money to SO then they have a say, otherwise...get over it.
7:46 PM
@410_Gone Exactly. If they want a platform with their rules, find your own money to host it and community to build it. Software to run it.
It's the same-old-same-old crap.
SSDD -- same stuff, different day.
On top of that, if it does become an issue it'll be addressed then.
Not like changes can't be made retroactively...
If you think adding rep causes a riot, imagine what happens when you take it away.
Ban 'em.
Like, I'm at the point where I would have taken much more drastic measures to deal with this crap than SE has.
Oh wait
@Mast Also, nothing said SE would have to recalc rep again.
Simply change thresholds for permissions if needed.
@Mast Honestly I would have comment-banned half the people on MSE already.
7:54 PM
I'd have question banned probably a quarter.
That too...
Suspensions for a week.
So much crap got posted.
It's not a bloody political platform.
Or a forum.
I'm getting Yearling badges all of a sudden.
Yeah, the rep-recalc can affect that
7:56 PM
Might get rep-cap badges somewhere, not sure.
Don't really care too, honestly.
So far, on MSE I've gone from 1800 to 2300 rep, and Windows Phone has been 160 to 225.
I mean, reaching 10k on CR would be nice. But afar from that...
Had I been more concerned about rep, I'd post more and moderate less.
If your code works and you seek constructive criticism or improvements, ask on Code ReviewAmy 45 secs ago
My rep on Space.SE doubled. It's still next-to-nothing.
8:15 PM
possible answer invalidation by rogday on question by rogday: codereview.stackexchange.com/posts/232106/revisions
This is the site where I'm affected the most, since I'm not much of an asker.
@Mast My SuperUser rep went up 15 points...116 to 131.
Is the rep change happing right now?
8:25 PM
Q: New to programming. How can I write this Rock, Paper, Scissors code better?

Wicked1KanobiI am practicing w/ Python and wanted to code a simple Rock, Paper, Scissors game w/o any user input. I used a list to hold the values and randomly pulled them with a function. I used the the return value from the first function to print the response in the second function, along with the printed ...

Q: My first webscraper build in Python

PhilipThis code is scraping the data from imdb and displays it in json or csv format. I plan to extend it beyond the top rated movies. How can i improve the quality of my code. I am using Python 3.7.3. from bs4 import BeautifulSoup import requests import csv import json import codecs films = []...

Sorry, maybe I'm paranoid, but it seems like there is some immediate down- and close voting for first time posters going on. There is never a comment though, and in at least a few cases I'm pretty sure that the question are actually legit.
I was doing the close queue the other day and there was a question that looked totally legit to me, so I clicked "Leave open"
If it was just a single question, I would not be concerned. But there were like at least 4 of them this evening.
Yes, there are strange things afoot in the CV queue lately.
Off-topic questions getting upvotes, on-topic questions getting closed.
HWRecs was over 2 hours ago, Space 50 minutes ago, Mythology 19 minutes ago.
Based on awarded Yearling badges.
Just got Biology.
8:45 PM
I'm voting to close this question as off-topic because questions asking for improvements to working code should be asked on Code Review instead. — EJoshuaS - Reinstate Monica 1 min ago
9:04 PM
@Mast DBA went from 800 to 1300.
9:18 PM
Q: Mixing Async and Sync in same HTTP request ASP.NET Core C#

aamir sajjadIs it bad practice to mix async and sync call in same asp.net core api call For example in following code Method CropBlackBroderOfAnImageAsync is an Async Method On the other hand SaveImageForProcessing(file, sourceFolderPath); is Sync Method Reason: that I am calling SaveImageForProcessing ...

Q: Should the weight of question upvotes be increased network-wide?

Robert HarveyStack Exchange has expressed an interest in increasing the reputation earned from question upvotes from 5 to 10 on all sites. Do you think this is a good idea?

9:33 PM
I just passed the 9k, 10k and 11k mark.
It's not right, but you won't hear me complain.
@200_success I would honestly say: Maybe.
On Stack Overflow it is tricky to post a question. On Code Review, not so much.
For Code Review, maybe. For Stack Overflow, hell no.
@200_success Funny. I'm saying the complete opposite of what you are saying.
Q: turning the digits of a number into an array

unknownint main() { int x,numDigits,i,y,a,diff; scanf("%d",&x); a=x; int result = 1; int base=10; numDigits=0; do { ++numDigits; x = x / 10; } while ( x>0 ); for(result=1;numDigits>0;--numDigits){ result *= base; i=result; y=a%i; while(y>10){ y=y/10; } ...

@200_success @SimonForsberg Good content is good content, answer or question.
9:39 PM
Sometimes there are very well posted questions — to the point where I'd put a bounty reward on the question — but I can't.
There's some SO questions that have a gazillion upvotes but are technically not good questions. Such as "How do I exit vim?" it doesn't include anything of "What have you tried" etc. no research effort shown, and yet, a gazillion upvotes.
I feel like posting a good question on CR took a bit of time and care to learn how to do.
I think we've proven time-and-time-again that SE is not about "good" questions but instead is about "funny" or "ironic" questions.
I.e. the XHTML / Regex one.
It wasn't a good question when it was asked, it isn't a good question now.
Q: Why were sloths chosen to depict DMV workers?

JoeyIn the movie Zootopia, it was shown that they were using sloths for every position at the DMV (Department of Mammal Vehicles). In the story why did they use sloths considering they are very slow animals?

Yet, it and the answer have several thousand upvotes.
9:41 PM
@SimonForsberg low hanging fruit get used so frequently.
@AGirlHasNoName Indeed. If you follow all the steps in my guide to post a good question, then you definitely deserve a big fat super-upvote.
@410_Gone You mean like every single question on Worldbuilding?
All the popular ones, yep.
think how many people google the simpler tasks of programming and come across those super upvoted SO posts.
If they are that useful to that many people aren't they then good questions.
@SimonForsberg A bounty would be a big fat super-upvote.
@200_success Bounties reward the question asker with views and answers, not with direct reputation.
9:44 PM
Isn't that what the repository is for?
I've sometimes wanted to give reputation directly to the question asker.
@200_success SO / SE isn't about the asker though...
It's about the answerer.
Or, has been.
@AGirlHasNoName Repository?
@AGirlHasNoName Common questions doesn't necessarily mean good questions.
@200_success I agree.
@SimonForsberg Isn't SO a repository of knowledge?
It's a repository of arrogance.
9:51 PM
So much crap gets posted as a question...
And due to FGITW they often enough get answered too.
On CR we're doing much better in that regard, I think.
Still plenty of low-quality questions, but we handle them well enough.
Q: Getting a value with timeout using Kotlin coroutines

sibwafSo, here's a task. A background thread may or may not call all of it's listeners some time after sendRequest() was called (in other words sendRequest() schedules a possible event). The required function must: Subscribe to those events Call sendRequest() periodically until the function returns a...

SE staff seem to be using the Trump strategy — keep igniting controversies daily until everyone gets tired.
It's pointless to gripe about it now. Nobody who is in charge is listening anyway.
10:27 PM
@Mast NGL, I do think downvotes should take away more rep, +2/-10 shouldn't net a 0 rep difference...
@200_success Reminds me of the 'bring bad news on a good news day, or on a very bad news day' principle.
@Peilonrayz That doesn't look right, no.
Q: Performance Optimize List Comprehension

GrogerI am modeling a linear process at a number of equally spaced time steps. I have a large list (~70k elements) which corresponds to a location at each time step, timerange = np.linspace(0, time, iterations, False) * speed. For each element in this list, I want to compare its value (location) to two...

11:42 PM

« first day (2384 days earlier)      last day (524 days later) »