« first day (2396 days earlier)      last day (1620 days later) » 

12:00 AM
RELOAD! There are 6295 unanswered questions (90.0361% answered)
 
12:37 AM
If your code is working, you will probably get a better response over at codereview.stackexchange.com. StackOverflow is specifically for solving coding problems. You can find more details as to what is on topic for SO, hereDavid Buck 27 secs ago
 
1:00 AM
0
Q: New budgeting Program

user213787The code below is a program I'm writing to help myself budget. I am still new to programming and was wondering what you all thought about the code, or what I could improve at and whats good. This is supposed to work by gathering data and information from the income and bills to help show you your...

 
1:36 AM
@EthanBierlein CSS is like that...
 
1:46 AM
It's just so strange and inconsistent sometimes... Off the top of my head, for example: text-align -- why is it called that, despite aligning everything in a container???
Admittedly most of my frustration with it this afternoon was not directly related to CSS itself, more just the fact that I couldn't figure out how to disable Google Chrome's CSS caching and, as a consequence, had to clear my cache every couple of times I made a change to my assignment.
 
2:04 AM
With v1 API deprecated, codereview.stackexchange.com/questions/41647/… might be the way to go — Janaka Bandara 30 secs ago
 
 
1 hour later…
3:04 AM
0
Q: a log tailing socket server

gnarlyninjaSo I'm somewhat new to python and very new to both asyncio and sockets. So I thought I'd put this up here to see what you think of it. Any constructive feed back is appreciated. :) Each client application would send a filepath and search term to the server. The server then takes that file path r...

 
4:00 AM
If your code isn't working, provide a minimal reproducible example. If your code is working, then you are in the wrong place. Codereview.stackexchange.com is where to ask for reviews. Also note that "improve my code" is too broad of a question. Which aspect specifically? — GhostCat says Reinstate Monica 1 min ago
 
 
3 hours later…
6:51 AM
Monking
 
7:47 AM
Monking
@EthanBierlein I vaguely recall having fixed that in Firefox last time I tried something with CSS, but I'm not sure how. But there's a standard solution for it, somewhere.
 
Additionally, if your question is related to learning, gaining experience and therefore you like to write your own implementation of tail, you may take advantage from Codereview on Stackexchange Simple C implementation for Unix tail command. — U880D 26 secs ago
 
JAD
8:13 AM
@Mast I'd expect Google Chrome's CSS caching to be disabled when you use Firefox ;)
so that should work
 
8:38 AM
0
Q: Update Inventory system file with sales values in Java

Dale ReynoldsI have struggled with getting my code in Java to do the following: Inventory Update program. The first set of records is the master file which reflects an item inventory at the start of the business day. Each master file record contains a part number and a corresponding item stock quanti...

 
9:02 AM
@Jamie Or on Code Review, but ultimately no one can do anything with only this kind of information. — Alexander Cécile 40 secs ago
 
9:20 AM
0
Q: How to think smarter when you need diff args in functions

ParisNakitaKejserI have this code, and the point is i want to dynamic change the mongo connecter to change between ssl, not ssl and with and whitout username in the same connecter function. i think there can be a smarter way to do this to save lines but i don't know how so i will ask about for code review for th...

 
9:45 AM
@JAD I expect Firefox has a bit of caching somewhere too though, somewhere, somehow.
Everyone's caching nowadays, right?
 
JAD
probably :P
 
9:58 AM
Common cause of a lot of problems, yet necessary.
 
10:22 AM
0
Q: Brainfuck interpreter written in C

GhostExtreme C noob here, I'm used to using high-level languages (Java, Python, JS, etc) and this is my first C project. I wrote a simple Brainfuck interpreter as my Python implementation was super slow. Here's the code: #include <stdlib.h> #include <stdio.h> #include <stdbool.h> unsigned char mem[...

 
11:04 AM
0
Q: Syntax Checker C++ Data Structure - Stack

ChristiePPPSyntax Checker is a very common question of c++ programming using the data structure stack. However, this is the advanced level base on this question I found in a reference book. Here is the question: Base on the question checking the string parentheses balance, the output is to print “Success” ...

 
11:27 AM
Stackoverflow isn't a code review site. Can you post the error you're receiving rather than just asking for a review because something doesn't work? — Adriani6 22 secs ago
 
12:20 PM
possible answer invalidation by Nathan on question by Nathan: codereview.stackexchange.com/posts/232811/revisions
 
12:50 PM
@Mast Honestly 90% of caching is superfluous.
 
 
1 hour later…
2:06 PM
@Mast I'm sure there exists one for Chrome, too; I just couldn't be bothered to try and figure it out with the assignment deadline approaching.
@CaptainObvious That's has to be one of the tighter Brainfuck implementations I've seen in a while; not bad...
 
possible answer invalidation by Ethan Bierlein on question by Ghost: codereview.stackexchange.com/posts/232935/revisions
 
@Duga Huh.
 
@CaptainObvious Possible duplicate of a question on hold.
 
2:31 PM
0
Q: Minimum path sum in a triangle (Project Euler 18 and 67) with Python

SrivathsProject Euler 18 Project Euler 67 As problem 67 is harder, I'll go with that one: By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 ...

 
@CaptainObvious Some code is not implemented.
@Duga @EthanBierlein Not a problem.
 
@EthanBierlein Open the dev tools, go to the Network panel, and check the Disable Cache box.
Not 100% sure, but I think you have to keep it open for it to apply.
I do know if you close and reopen Chrome, it won't apply until you re-open the dev panel.
 
3:14 PM
1
Q: Minesweeper Implementation c# winforms

gordkynI made a minesweeper game in c# as a method of studying, and right now its fully operational. I tried to use inheritance, recursion, and other fundamentals as clean as possible. Also I tried to use commenting as much as possible as I see many people do not do this, and it makes the code all the ...

 
3:25 PM
possible answer invalidation by Nathan on question by Nathan: codereview.stackexchange.com/posts/232811/revisions
I'd recommend putting your code up for peer review on Code Review if you're interested in feedback on any/all aspects of your working code - note that Rubberduck inspections would pick up a number of potential issues with what you've got here, including implicit ActiveWorkbook references, untyped function usages, and others. — Mathieu Guindon 48 secs ago
 
4:15 PM
possible answer invalidation by Jake Denham-Dyson on question by Jake Denham-Dyson: codereview.stackexchange.com/posts/232917/revisions
if you're after general advice I'd suggest checking out codereview.stackexchange.com, if you're after help with networking/sockets then I'd suggest removing all the other unrelated (Tk) code. see stackoverflow.com/help/mcve for more info — Sam Mason 51 secs ago
 
-1
Q: confirm user and password from a list of class objects in Python

José OrlandoI need to be able to validate the user and the password inputted, but when I run the code below, I'm able to verify only the first element of the list and the second element and so on aren't being verified. Note: The user and password are stored in the list as class objects [like this: admin(use...

 
@Duga The portion of the code that was edited was not reviewed yet.
 
@Hosch250 Huh, TIL. I usually leave my laptop on with Chrome open 99% of the time anyways, so the fact that I'd have to re-enable it after closing Chrome isn't a huge deal.
 
FWIW, Chrome is pretty good compared to IE. IE automatically caches every single AJAX call unless explicitly told not to.
Chrome and FF don't cache much, especially not when running a site directly from your file system.
 
possible answer invalidation by Jake Denham-Dyson on question by Jake Denham-Dyson: codereview.stackexchange.com/posts/232917/revisions
 
4:26 PM
I've dealt with a lot of prod bugs because of that behavior in IE.
Glad I don't have to support it anymore.
 
Caching AJAX calls seems rather obnoxious. I haven't had any issues when directly working with local files on my machine, as far as I can remember. That said, however, most of my work is done on my school's student server (knuth.luther.edu) which I access with SFTP; thus the caching tends to happen more often than I appreciate.
 
Yep. I always develop locally and then deploy once when I'm happy with it.
That way, it's basically just deployment bugs (which there can be a surprising number of).
Wrong configurations, etc.
 
I wish I could do something like that; unfortunately, given the limited access I have to the server filesystem (students are generally given permissions to access only one file with their username under /home/LC), I've had to use workarounds with a lot of my href and src attributes, literally linking via URL, rather than via a file path.
On top of that, the SFTP extension for VScode I use automatically uploads the contents of my entire project whenever I save (which isn't necessarily a bad feature, per sē).
 
Ah.
Either way, the Chrome trick should help :)
 
It already has. :)
Just did some last-minute CSS finagling for my assignment, and no cache-clearing was required.
 
4:36 PM
Just be glad there's no caching on the server side.
They can do that, too. Like, give a response that tells the browser to re-use the local file instead of re-serving it.
 
Now that would be a massive pain. And an issue that would require a conversation with the Luther sysadmin, as opposed to simply checking a box.
 
Typically, though, they have cache invalidation systems.
 
@kel.o If you're looking for an full example of the game of life. I've created a full working version here some time ago. — 3limin4t0r 57 secs ago
 
Like, they can check the file hash and make sure it matches.
 
Makes sense; I'd assume that Luther would probably have such a system in place, too.
The folks who do all the tech-related stuff here seem to be extremely good at what they do (as opposed to some of the horror stories I've heard from other universities).
 
4:40 PM
My U wasn't bad, considering. I only had to report a system crash once.
In the middle of a test.
I wouldn't say they were super on the up-and-up about the latest tech, but what they had, worked.
 
Ouch, that's quite the unfortunate timing.
 
I was almost done with the test. They let me retake it, but the funny thing is I did slightly better on the one where it crashed.
Either way, I landed an A in the class, so... :)
 
Huh, curious. Good that it didn't have much of an impact on your overall grade, though.
 
4:58 PM
0
Q: Open MPI: simple manager/workers pattern in C

m.raynalI'm currently modifying a research project (massive test and benchmark of diverse conjectures to try and eventually solve the SSW conjecture) so that it can run on a big HPC architecture, which does not handle most of the 'classic' multi-process/multi-thread methods (like fork-based in C, python ...

 
MOnking
 
Sara Chipps and Juan Garza on November 25, 2019

TLDR; We’re going to be sharing our product development process with you, from feedback loops to timelines. We’ll be doing so through our new series – The Loop. You can give us your thoughts on what you’d like to see us do by filling out this survey: Through the Loop. We’ll also be releasing Moderator Training and some new feedback mechanisms to help us form decisions as we grow. 

Since the early days of Stack Overflow, our community has seen a lot of growth and change. As we reflect on 2019 and start thinking about 2020, our company also continues to rapidly grow. We have new l …

 
@Feeds I wonder how long it will take before someone starts a rant on meta about what's wrong with it.
 
@Mast People will always find a way to complain
 
Exactly.
 
5:22 PM
@Feeds I wonder how many of those saying SO is an unwelcoming community have asked a blatantly off-topic question, received a handful of downvotes, whined about it in the comments, got their off-topic question put on hold, got comments trying to explain how to make their post on-topic, responded "thanks for the unhelpful comments", and then called their experience "unwelcoming"
 
@MathieuGuindon Too many.
We get those on CR as well every once in a while.
The moment they have a downvote, it's like they stop thinking and only complain about what they think is wrong with the site.
Bloody unthankful drive-by leechers.
 
SO inc. needs to ignore the feedback that dubs the community "unwelcoming" when the feedback is coming from someone that doesn't want to understand how to use the site and only cares for their X-Y problem or "I need XYZ please do it for me like SO is reddit"
 
They don't yet realize percentages are useless here if they don't filter, do they?
 
5:38 PM
basically when they hear "SO isn't welcoming" they should be asking "cool, let's fix that! got a link?"
 
I wonder how those moderator plans of them are going to work out though.
It reads a bit like those sensitivity trainings you hear horrorstories about.
 
But hey, let's give them the benefit of the doubt. We'll see.
 
I think it's fine. it's to help onboarding new mods, basically.
it is a wee bit overwhelming at first
 
Yea? How so?
 
5:41 PM
well there's [redacted] and [redacted], and then [redacted] and so many [redacted] ;-)
4
I suppose if you're moderating a newer/smaller site without a team of veteran mods, and you don't want to meet anyone in TL, and the SO Teams mod site scares you, then hand-held mod training helps
TBH moderating is just common sense - the hardest part is the tooling, not the interactions
 
@MathieuGuindon Suppose so, that would be a challenge.
Another regard in which CR isn't doing so bad.
 
6:00 PM
-1
Q: Microservices architecture for React based frontend applications. I would like it to be reviewed and feedback on it

Kulwant Singh Architecture Goals • To develop a scalable application, a system which can grow in size beyond the boundaries initially defined. • Develop applications that are focused on replaceability, more open to change rather than maintaining existing systems. • To develop microservices that are small an...

 
6:19 PM
o/
So, say I have a partially-completed emulator that I'd like to reduce code duplication in. Is that on-topic, or would it fall under "lacks complete context"?
 
6:30 PM
does it work?
 
You may find you get some useful feedback on codereview.stackexchange.comNigel Ren 56 secs ago
 
As far as I know, the part that is implemented works.
From inspection under gdb and some std::cout statements that I've inserted into various places.
 
then you should be good :) just avoid having //todo and //... comments in the post; IMO code that's WIP is reviewable, so long as there's enough working "do-stuff" meat to cover
 
Hrmm... I do have a // TODO: decide whether to use struct or class comment in there, but that's it.
 
should be fine. just make sure you walk the reviewers through your code and make clear that you're presenting code that, to the best of your knowledge, works as intended
 
6:36 PM
@Mast you mean like the sensitivity training at E&Y where one of the senior execs decided it was a good idea to say that "women's brains work like waffles and men's brains work like pancakes" or something along these lines?
 
holy smokes
 
@MathieuGuindon I wonder about the other thingey that was announced via mod channels. ... is that public knowledge yet?
specifically the communication thingey, I mean
 
@Vogel612 Yup.
 
ahhh .... so this is the thing that I was thinking about... I should read the blogpost before asking things about it
 
lmao
 
6:40 PM
yea, it had a different name back when it was still internal
 
@JL2210 That's fine.
@JL2210 How partial are we talking about? Is it doing anything remotely useful yet?
 
@Vogel612 whatever happened to #ModsCantRead
 
yesterday, by Vogel612
or alternatively my finding the damned bug I've been looking for for ~5-7hrs and which was fixed with a 10 character change?
I met my quota of failing to read for this month with that alone
 
@Mast if there's enough logic for there to be duplicated logic, there's probably enough work going on to review it :)
@Vogel612 lol
 
@MathieuGuindon In general, yes.
 
6:42 PM
but would a 1-character change be more or less annoying than a 10-character change?
 
A 1-character change is definitely easier to hide.
 
Well, let's see. The program that starts the emulator is implemented and all the registers and things are implemented. 2/16ths of the instructions are implemented and 4/16ths of the opcode macros (for documentation, just integer constants) are implemented. Most of the functions that I'll use to implement the rest of the instructions are implemented, but they duplicate a lot of code.
 
sounds very reviewable to me
 
@MathieuGuindon with a 1-character change you at least have the excuse that brains don't usually read on the level of characters
 
6:44 PM
I would generally say that enough of the code is implemented for it to be reviewed.
 
@JL2210 So, enough to run a small test program?
 
No. That would require a large portion of the emulator and the BIOS to be implemented. Plus all the instruction prefixes, but those shouldn't be too hard...
 
Unfortunate. Sounds like it may be on-topic but may also be critically received. So be ready for incoming questions.
I highly recommend reading this FAQ entry before posting, to maximize your chances @JL2
 
bleh... the "in the loop" survey thing is focused totally on stack overflow and doesn't even acknowledge the network exists..
the proportion of SO being helpful to me has been steadily decreasing as I got better and better at dealing with the "common cases".
 
6:56 PM
perfectly fine IMO
 
Is asking about "best practices" that I'm missing OK?
 
of course
what would be off-topic is asking "what are best practices to consider when writing a compiler?", and showing nothing but illustrative code that doesn't really do anything
 
1
Q: Partial Zilog Z80 emulator written in C++

JL2210I've written a partial z80 emulator in C++. It has a decent part of the instructions that can be reused implemented but I've had some issues with duplicated code. I'd also like to note that this is my first C++ project; before that I've primarily dealt with C and Assembly. emulate.cpp: #include <

-1
Q: Composable async methods

ThomasReggiGiven a class where the methods return this you can chain them. const e = new Example() e.add(1).add(1).add(1).add(1).add(1) However this breaks does not work if one of the methods is async and returns a promise. I created an alternative method on compose the class Meow2 below that adds this ...

 
I think this kind of question is more appropriate in codereview.stackexchange.comeyllanesc 12 secs ago
I'm voting to close this question as off-topic because it is asking about optimizing working code. ask on Code ReviewDaniel A. White 55 secs ago
If you seek constructive criticism and improving code that currently works, this would be a better fit on Code Review. — Amy 1 min ago
I think this kind of question is more appropriate in codereview.stackexchange.comeyllanesc 58 secs ago
 
@Vogel612 Yes. Considering SO is the worst place on the network, that won't do the survey much good.
 
7:11 PM
This really is a better fit for Code Review, not Stack Overflow. — Gabriel Luci 9 secs ago
 
@JL2210 Looks good.
 
@Vogel612 Same. I almost exclusively use SO for learning new tooling.
And it's actually losing its value in that.
Newer systems all end up with their own groups to deal with this stuff and SO never gets the questions.
 
@GabrielLuci I would agree, good luck. The last time I said something about this (review's belong on Code Review), I felt a little of myself being blown away by users... — Çöđěxěŕ 7 secs ago
 
0
Q: PHP should i break down a huge function that is currently used for building an array into multiple smaller functions?

MelodyI have a function that is used for building an array based on data coming from the database. I'm getting from the database 75 events at a time using a join between 8 tables. After i'm getting that data i'm using a function to build my events array. But the problem (i guess) is that, right now, th...

 
7:35 PM
@MathieuGuindon I find SO very unwelcoming. I've gotten some attitude back at me in some answers. I won't ask a question there unless I absolutely have to.
4
 
hm. could it be a people problem more than a platform problem? I see little to no unwelcoming content in the VBA tag
then again, no later than last Friday I was thanked for being condescending instead of helpful when telling someone their question was off-topic and that no, their VBA code would not be secure no matter how hard they tried to secure it....
other than that, it's a small community of always-the-same-faces answering a swarm of dupes
 
Yes, I search hard to find if my question has been asked before.
@MathieuGuindon Based on all those redacted's are you in the US congress or CIA?
 
@Mast I don't like that language. Think about it from their perspective.
@pacmaninbw I agree. I think both once and twice before asking a question on SO.
@410_Gone Did LCC ever stop being problem?
 
@SimonForsberg One can dream.
@Vogel612 I remember that...what a great company 😒😒
@pacmaninbw He's Canadian
@MathieuGuindon Platform problems enable people problems. Or is it the other way around?
 
7:56 PM
@410_Gone I know that, a Canadian can still be in the CIA.
 
I don't think Mat is CIA material.
 
@410_Gone Somehow I think you are missing the humor in my comment.
 
I was responding entirely in jest...
 
LOL
 
@MathieuGuindon can't be in the CIA because there aren't any Tim Horton's nearby 😂🤣
 
8:07 PM
walks past Tim Horton's, grabs coffee at McDonald's
 
Ben Popper on November 25, 2019

It’s Thanksgiving in the United States this week, so we’re releasing the podcast a day early. This week we skipped the banter sessions so we could spend more time on the interview with Juan Pablo Buriticá and Brian Brennan from Splice.

Brian shares a delightful tale of the time one of his co-workers accidentally deleted the company’s database, and how they recovered it through binary transaction logs. No better way to learn than a trial by fire.

Juan explains why typing is taking over frontend development. First off, we discovered unit testing, and typecasting can make that a lot less painful. …

 
8:23 PM
If the code is working, requests for suggestions for improvement are better suited for codereview.stackexchange.com. — chepner 55 secs ago
 
@SimonForsberg What exactly do you want me to do here? codereview.stackexchange.com/questions/232617/…
 
@pacmaninbw Don't expect a user to automatically "know" that a question is off-topic before it is actually closed. Especially not when it comes to LCC. Also, please add a comment about what exactly makes the question off-topic.
If I was the OP there, I wouldn't know what context you are looking for. What can the OP do to make the question re-opened?
 
@MathieuGuindon Oh that's right, you hate Timmy's. :D
@MathieuGuindon ^^^ I was at Speedway
 
9:07 PM
0
Q: Divide by two a number in base -2

XoveshI was given this coding challenge when a applying for a summer internship but didn't get selected for the next round and I was curious if it could be improved. The problem says: Given a number in base "-2" divide it by 2. For example: Given [1, 0, 0, 1, 1, 1] (-23) the output is [1, 0, 1, 0, ...

 
9:17 PM
@Feeds @MathieuGuindon apparently that blogpost features a drum machine in EXCEL
 
that drum machine was on Twitter a few weeks ago
 
This might be more appropriate for CodeReview, since the code is already working. — Luke Joshua Park 55 secs ago
 
I meant to review the code that week, then forgot
apparently the loop is recursive, so if you run it long enough, it just blows up
makes me wonder just how bad the code is and how much RD can help it :)
 
You could poke at it a bit and abuse your mod powers to get it onto the table of someone at SO that can signal-boost it
#justsaying :)
 
0
Q: HashMap in Python

LinnyThis is a HashMap implementation written in Python. All the methods are based on the java implementation of a HashMap. Any and all critique is welcome. from typing import Union, List class HashMap: def __init__(self): self.capacity = 16 self.map = {} def clear(self) ->...

 
9:32 PM
@Vogel612 huh wait a sec, the guy that made the drum machine in VBA works at SO?
 
I don't think so, no
 
okay then... coming up: object-oriented drum machine in VBA for Excel
will probably work in any host
 
@SimonForsberg @MathieuGuindon There had been no comments that there were any votes to close, and there were already 4 votes to close when I got there. I did the best I could to hint what was necessary.
 
9:50 PM
@pacmaninbw what I'm wondering is how it got to 4 votes in the first place
2
 
that ^^
 
@MathieuGuindon @SimonForsberg That's a good question.
 
10:42 PM
If you have working code, this might be a better fit for codereview. — itsme86 40 secs ago
 
0
Q: GraphQL Schema for a Social Network

sakana-boyI am learning about GraphQL so I decided to make a schema for some sort of social network. Please let me know if there are any best practices I should follow based on my schema below. scalar DateTime type Query { # user currentUser: User # use request "Authorization" header to ...

 
11:09 PM
 
11:32 PM
0
Q: Next Bigger Number with the same digits Solution

EmmaPlease review my code. I would love to know what improvements I can make in terms of efficiency as well as readability. Thank you! using System; using System.Linq; public class Bojo { public static long NextBiggerNumber(long n) { //check if bigger number is even a possi...

 
11:42 PM
@CaptainObvious created , but something tells me a meta post is in order
i.e. it's definitely debatable whether a GraphQL schema is in itself reviewable. It's self-contained... but it doesn't do much.
I'll put up a post on meta after dinner.. just got home
 
0
Q: Improving a code design of simple game mod for better teamwork

MarisI've made this module in Lua as a mod for Project Zomboid game. In future I will develop my mods in a small team (of 2-4 programmers). At this moment I have no experience in teamwork, because most of the time I was programming alone. My question is: 1) What are my main mistakes (in terms of code...

 

« first day (2396 days earlier)      last day (1620 days later) »