« first day (2729 days earlier)      last day (37 days later) » 

12:00 AM
RELOAD! There are 7071 unanswered questions (89.7349% answered)
1 hour later…
1:08 AM
Or a StackWalker with some sort of reflection happening on the MethodTypes of the frame to see if they're a constructor for their class. Sounds more like a design problem that should be prevented in a code review though... — Player One just now
2 hours later…
3:15 AM
possible answer invalidation by JimmyHu on question by JimmyHu: codereview.stackexchange.com/posts/251021/revisions
3:54 AM
4:31 AM
@Feeds @SᴀᴍOnᴇᴌᴀ Congratulations, you got an answer from rolfl. That's going to expedite things.
1 hour later…
5:52 AM
:55918802 yes I hadn’t seen much from him lately so I hadn’t considered seeing an answer from him
3 hours later…
8:24 AM
Q: Generating a list of unique random longs

rafael gonzalezWhat would be a more efficient way to generate a list of unique random longs? public IEnumerable<long> GenerateRandomNumbers(int count = 1) { var f = new Faker(); List<long> temporaryList = new List<long>(); for (int i = 0; i < 10000; i++) { ...

8:40 AM
@Astaroth, i'm replying here as i don't have enough privilege on codereview... You are right RatingFactors come from the Request, also i have created an EventSubscriber that is converting json payload into array just before it reaches controller - this is probably what you call the Transformer class, ParamConverter is going to help here, thanks for that. Is it actually possible to use a ParamConverter in a custom service class? all the examples provided in symfony documentation shows usage in a controller class... — anonymous007 47 secs ago
9:14 AM
Q: How to check if a string is null and use its value avoiding NullPointerException in Java 8 (or newer)

PittoI need to map few object's properties to another object. In order to avoid NullPointerExceptions I'd need something similar: private static String nullOrString(Object o){ return o==null?null:o.toString(); } What is the most modern / robust way of doing this in Java?

Q: Button conditionals in React

pochiniI wrote some conditionals for a button component and everything works, but I feel like this is not the right way of writing conditionals. Would appreciate it if anyone could review my code. import buttonStyles from './Button.module.scss'; import { Link } from "gatsby"; interface Props { conte...

1 hour later…
10:36 AM
Describe "better"? Possibly better on codereview.stackexchange.comLiam 33 secs ago
2 hours later…
12:09 PM
Q: Is this the correct code for implementing Bahdanau Attention?

NITIN AGARWALContext I was following a tutorial from here. My mission is to convert English sentence to German Sentence using Bahdanau Attention. Code This was my code: input_english_sent = Input(shape=(english_max_len,)) input_german_sent = Input(shape=(german_max_len,)) encoder_inputs = Embedding(english_v...

12:35 PM
Q: How can I re-write the conditionals for this button

pochiniI've been trying out React for a couple of days and I tried to build a button component with some conditionals. Everything works but I feel like I am not doing it the right way. Could anyone review my code and give me some advice and tell me what I am doing wrong or what i could do better. I thin...

Q: Simple Boolean "Latch" with state

Harald ScheirichSometimes you need to do things we a condition changes, here is a simple class to keep track of the state of the last call and execute callbacks when the state changes. #include <functional> #include <cassert> /// latch is a class that contains of a test function and a couple of callbacks, whe...

1:25 PM
Q: A recursive_transform Function For Various Type Nested Iterable With std::variant Implementation in C++

JimmyHuThis is a follow-up question for A TransformAll Function For Various Type Arbitrary Nested Iterable Implementation in C++. The following code is the improved version based on G. Sliepen's answer. In order to match the conventions of the STL, the function named recursive_transform here uses the is...

@SᴀᴍOnᴇᴌᴀ It's not featured, but it did reach HMP.
1 hour later…
2:47 PM
Medi Madelen Gwosdz on October 23, 2020
Welcome to ISSUE #44 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. This week, get in the fast lane and start pooling your database connections, make a CPU out of electronic components drawn by hand on paper, and learn to toggle multiple property…
3:12 PM
Guest Post on October 23, 2020
You’ve gone through the motions and play-acted a disaster recovery scenario, but despite spending a lot on the production, it’s not real. What you have is a fairy tale: “Once upon a time, in theory, if everything works perfectly, we have a plan to survive the disasters we thought of in advance.” In practice, it’s more likely to be a nightmare.
3:32 PM
@Feeds A variant of that goes like this: "We know this should be safe, but a colleague encountered an odd situation years ago where it wasn't, so we do it different."
Planning for the edge case that won't repeat.
@Feeds what if I don't want to learn more - what will he do? will he be speaking somewhere else? or not at all??
3:58 PM
4:20 PM
Q: Get mode of elements in a vector with rust - For loop borrowing and referencing

MarvinKweyuBefore anyone marks this as duplicate, my question is only towards the median, and my approach is different from what the answer suggested. On getting the mode from a vector of values, I have the below: fn get_mode(list_of_numbers: &[i32]) -> i32 { // most common occurrence of item from vecto...

Q: Python: adj list to a graph

DangerBillyBlaskI hope this isn't a stupid question but I am trying to create a graph based off of this adjacency list, which is read in from a file that is supposed to represent the topology of a network and is in the style of "4 2 669" and so on, the first two being connected nodes and the last being the cost....

4:35 PM
@Fee-fi-fo-fum 2nd Monitor
^Welcome to the 2nd Monitor
How can we help you today.
Medicare is so complicated
That is all
@DerKommissar I will find out all about it next July, when I have to switch to Medicare.
I'm helping my dad with it now
Find a local financial planner who knows an insurance person...that's all I'll say
The rules are STUPID confusing
But one phone call to my FP's and then their recommended guy and now my dad's situation is crystal clear
4:52 PM
@DerKommissar Not political joke, but old joke that is fairly true: An elephant is a mouse designed to government standards.
Well a lot of it is trying to cover every possible scenario, I called the guy and he asked 3 questions that narrowed it down to specifically my dad's situation, which is nice.
5:05 PM
And apparently a Medicare Advantage Plan (free for him) covers the part D requirements, which means if he ever goes from the Medicare Advantage Plan to Part D coverage he doesn't pay the penalty.
5:36 PM
Q: How can I make this calculator code shorter?

ArianI want to make my calculator code shorter. It is my code: using System; namespace ConsoleCalculator { class Program { static void Main(string[] args) { Console.Title = "ConsoleCalculator"; int num1, num2 = 0; num1 = Convert.ToInt32(Cons...

@CaptainObvious It seems this code is not working as expected.
5:58 PM
If everything works and you don't have a problem, but just want a code review, I suggest asking on Code Review instead. — zvone 33 secs ago
The code doesn't work and is giving me unexpected outputs as I stated. I showed an example of me trying to implement the answer of another question without it working, to show what I have tried, I then stated the expected output and then asked the question. If this is post still isn't right here I will move it to code review instead — normal_human 13 secs ago
@CaptainObvious @pacmaninbw I left a comment requesting the title be updated and more details added... please consider this next time you review posts like that
6:14 PM
@SᴀᴍOnᴇᴌᴀ Can't change my up vote unfortunately.
@pacmaninbw I added tags to edit it... you might be able to now
Anyone have thoughts on this series of comments?
@pacmaninbw I'm adding a modified auto-comment with a link to an often-linked meta post
A: Why are alternative solutions not welcome?

HeslacherThe site's name is Code Review for a reason. We review the code in question by pointing out mistakes, bugs, edge cases with an explanation. Just dumping some alternative implementation without any explanation why the code is better is not reviewing the posted code. We expect the answerer to ex...

@SᴀᴍOnᴇᴌᴀ Thanks! The up vote on the other question is gone.
@pacmaninbw FWIW I wavered with VTC'ing the post because the OP didn't really provide working code in the rewrite... which opens the door to answers of the form of "giving teh codez"
6:24 PM
6:44 PM
This sort of question is too broad, and subject to opinionated answers. When something is "lengthy and complex" is up to you to decide. If you're looking for feedback on working code, there is codereview.stackexchange.com but do read their posting guidelines before posting. — miken32 just now
What is your question? "Please review my code for me" is not a valid problem statement on Stack Overflow. You may be able to get help on Code Review. Before requestion migration of your question, please read through their help center FIRST to ensure your question is on-topic there. Do not cross-post, flag your post and request migration instead. — MattDMo 30 secs ago
Q: C++ Error no match for 'operator<'

Troy CoxI have been writing a sorting program to automatically rank values, this is what I have #include <string> using namespace std; #include <time.h> #include <bits/stdc++.h> #include <windows.h> #include <conio.h> #include <stdio.h> int main() { class Team{ public: int wins, losses; }; ...

Q: Counting the number of k-mers like monomers, dimers to hexamers from the fasta file

Roshan ShresthaAnyone here who uses Python for solving bioinformatics problems. This is the code I have written for counting the number of k-mers like monomers, dimers to hexamers from the fasta file. You just have to give the ncbi accession number for the fasta sequence and then it counts the number of k-mers....

7:16 PM
Q: Discord Js Bot Mention a user id

ARYAN XD PROi am making a bot and i want to add that if someone mentioned me in there message then bot should reply something i had tried many things but always failed like i tried if (message.content.includes("<@737177406376509520>")){ message.channel.send('nice') } But that is not working and thats my ...

7:40 PM
@pacmaninbw I'm getting a 2001-2005 BMW 330i next year
For a race build
Q: My code is passing only few test cases [Trie data structure]

AnVI have tested my code against all possible test cases. Ex: word present, not present in dictionary; given word is prefix of existing words, upper case, lower case. They passed. But not sure what I missed. 2 test cases are failing Question: Peter found a digital dictionary which is far better tha...

1 hour later…
8:57 PM
Q: Function for accessing and searching dictionaries using /slashed/paths (like xpath)

ScrapeHeapSo I have some data being returned to me in the form of a deeply nested Dict and I need to parse multiple values from it which may or may not be there. I saw this library (https://github.com/akesterson/dpath-python) and tried to come up with a simplified version that fits into one function. I thi...

@Peilonrayz blindman76 is back - supplied an answer yesterday on a JS post
1 hour later…
9:59 PM
Hi J. Igor, as the message says, this question probably requires too much of an opinion-based answer for stack overflow. That said, Googling for help with this may also be challenging. I'm not super familiar with the code review stack exchange site but it might be a better match. I would suggest giving an exact layout of your project though. Their help info also frowns on opinion-based questions. — xdhmoore 27 secs ago
@xdhmoore when suggesting users post on CR it would be great if there was also a suggestion like "Please read the relevant help center pages like 'What topics can I ask about here?' and 'How do I ask a good question?". In the current form the post above might likely be closed as off-topic because there is no code and/or the code isn't written yet. — Sᴀᴍ Onᴇᴌᴀ 46 secs ago
@Duga boom 💥
@SᴀᴍOnᴇᴌᴀ Ok, sorry my bad. I guess I should avoid referring people to sites I'm not very familiar with. — xdhmoore 58 secs ago
@SᴀᴍOnᴇᴌᴀ Ya think?
@DerKommissar If it is for racing, what's going to be left after you tear it down?
10:27 PM
is September over yet?
The state has had so many contact tracers disappear into that shop that they've had to start a contact tracer tracing program.
10:41 PM
@Malachi almost... still a few stragglers exist
P.S. welcome back!
I am on like my 14th or 15th Friday....
@RMunroe oh acorn-heads
too burned out to make the effort to do the math
@Malachi is that like being born on Feb. 29th, after "like a billion" minutes?
sorry for the double ping.... darn word lack
@SᴀᴍOnᴇᴌᴀ what am I watching?
did you just 2020 Rick Roll me?
you are learning
LOL I got 4:55 into that
I did a flag. but I gotta get away from my machine for a bit
11:01 PM
hehe I just thought of that video the other day - its a classic
sorry I had to top our pizza and put it in the oven
@Malachi ah man, you gotta get to ~9:25

« first day (2729 days earlier)      last day (37 days later) »