« first day (2728 days earlier)      last day (44 days later) » 

12:00 AM
RELOAD! There are 7071 unanswered questions (89.7315% answered)
 
 
1 hour later…
1:01 AM
 
1:25 AM
What's your question? Are you asking how to solve the issue? If so, what is it? Please edit the question to include a minimal reproducible example. Or are you asking how to make the code "simple and more comprehensible"? If so, the question is too broad for SO, and you should ask on Code Review instead, but read their [how to ask](codereview.se/help/how-to-ask) page first. — wjandrea just now
 
 
3 hours later…
3:55 AM
Monking
 
4:18 AM
@SᴀᴍOnᴇᴌᴀ @pacmaninbw Yuck. Glad I don't have to deal with crazy times like that.
 
4:30 AM
0
Q: Face detection and smoothing

David AlfordI am working on rewriting a lot of code I have done of the past couple years to better myself with the things I have learned. I am not sure if this is the right place but I would love review of my first project rewrite: https://github.com/5starkarma/face-smoothing Please give me any feedback poss...

 
4:55 AM
0
Q: Approximation search localization algorithm implementation

KeithMadisonThis is a first draft Python port of an approximation search localization algorithm originally written in C++. The code produces the expected results but, in my opinion, could use a bit of cleaning up. Additionally, I haven't done any Python in a while, so it's quite possible I've overlooked a fe...

 
5:20 AM
0
Q: x86_64 nasm criticism on malloc and free implementation

DagarI have made my own malloc implementation using this resource as a guide https://danluu.com/malloc-tutorial/ I was hoping to receive some feed back on how I can improve upon it, and If I did any major mistakes. I know my implementation has a lot of fragmentation and I pretty much no idea on how to...

0
Q: Rewrite BehaviorSuject that takes either localStorage or Observable in Angular

rstI have this code employee = this.identityService.me; employeeToken: Observable<string> = this.employee.pipe(map((e) => e.token)); currentHead = new BehaviorSubject(localStorage.getItem('head')); What I need to do is to change the currentHead if the local storage is empty. So I do this in the ng...

 
 
1 hour later…
6:41 AM
I would recommend you do it your way - and if it doesn't work, show the code and ask why it doesn't work - if it does work, there's a stackexchange site for code review where you can ask how to improve your code — Jaromanda X 22 secs ago
@Prune How is this asking for a code review, it clearly provides pseudo-code and has a clear question. — user4815162342 27 secs ago
 
7:01 AM
0
Q: Cleaner way to construct a name using Immutable.js

saran3hThis is what I've come up with to construct a name using a javascript object and immutable.js: const getFullName = ({ user }) => { if (!user || !user.get('response')) { return ''; } return `${user.getIn(['response', 'firstName']) || ''} ${user.getIn(['response', 'lastName']) |...

 
@frozenjim - Not relevant for SQList since its only with client side code (in browsers) or small standalone apps that consequently don't use a centralised database. I've worked on many commercial and a mil project where SPs were correctly deemed to be part of the same version controlled code as everything else. Code reviews and release management solve the security issues. — Tony O'Hagan 35 secs ago
 
7:26 AM
0
Q: Converts Pandas and Numpy into Dictionary and Converts back to original format for data split

machine_apprenticeI'm trying to refactor some code so that this it does not have so much repetition to it. What I'm trying to do is create an input for a multiple channel/input neural network. The features that are being considered come from two different sources completely and the inputA here is a 2D array and ha...

 
If anyone here is using the Nano Adblocker: uninstall now. It's turned into malware.
2
The project was sold. info, issues
 
"I have made another thing, is it good?" questions should go to codereview. There are dozens of questions regarding lock-free synchronization too, please do research first. — Sinatr 56 secs ago
 
7:52 AM
If you don't have any issues with this code, sounds more like it should go in Code Review... — Tomerikoo 25 secs ago
I’m voting to close this question because it belongs in Code ReviewTomerikoo 45 secs ago
 
8:41 AM
0
Q: Custom event handling in C++ : is my code reliable?

MaskimI tried to reproduce events as we can find them in other langages. I had a few troubles during development, but now it looks like it's working. I want to use my events in a bigger project but I'm afraid there may be bad things in my code that could cause troubles later... The use case is : Instan...

 
9:06 AM
0
Q: Java Logging with a file per root package

simonalexander2005I have a set of classes across multiple packages, and I want any logging from within a single "com.name.root.xxx" package and all its child packages, to be logged to a different file. e.g: //Package Name Log To \\ //-------------------------------------------\\ com.name.roo...

0
Q: 8 bytes unsigned int (u64) to javascript 'number'

guestyI have a u64 (unsigned integer) stored in 8 bytes of memory. Clearly the range is 0-2^64 integers. I am converting it to a javascript number by turning each byte into hex and making a hex string: let s = '0x' s += buffer.slice(0,1).toString("hex") s += buffer.slice(1,2).toString("hex") ... n = pa...

 
9:31 AM
-1
Q: Why does this simple formula not compute in python?

mehmehmehI have always felt coding hates me. I am just trying to make a simple calculation, but somehow it just wouldn't compute. Here's what I've written: N=float(input("number of compounding periods?")) IY = float(input("interest rate?")) // 100 PMT = float(input("payment?")) PV = float(input("savings?"...

 
10:21 AM
0
Q: Bank Card Generator Code

Nicholas WhitleyThis program is used to create a random bank card number. Card number is created using account type and client location for the first eight digits and the remaining 8 digits are completely random. I'm new to this site, but I believe it's just for code review to get opinions on code. If i'm incorr...

 
11:01 AM
"My question is if there is something fundamentally wrong with my recursive code". I don't understand: does your code work? If it does questions about code review are off topic; if it doesn't then you need to show exactly what the problem is complete with observed output vs expected output — bolov 56 secs ago
 
11:54 AM
You could ask this on Code Review rather than Stack Overflow – here we specialize in not-working code. — usr2564301 27 secs ago
 
12:26 PM
0
Q: Astar algorithm exceeds time limit

Revolucion for MonicaI have code that reduces the array until all remaining elements are equal. It takes a first line which contains an integer n, the number of elements in the array, and a second line which contains space-separated integers. For instance with the sample input: 5 3 3 2 1 3 It should return 2. As it ...

0
Q: Infix to postfix Python 3.8 (Standard interview problem)

shubhamprasharWhat is an infix expression: A + B What is a postfix expression: A B + My code: class Stack(): # defining the attributes def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def size(self): return len(self.items) def push(self,...

 
12:51 PM
1
Q: Where could I optmize this slow 3sat algorithm

n00bsteri'm currently trying to solve this problem: https://open.kattis.com/problems/satisfiability And I have this code: import sys cases = int(sys.stdin.readline()) def GetReverse(literal): if literal[0] == '~': return literal[1:] else: return '~' + literal for i in range(cases...

 
This is probably more suitable for codereview.stackexchange.com. Please read their submission guidelines before posting, though. — chepner 11 secs ago
 
1:16 PM
0
Q: Can someone please help me to shrink this

p2ix8-mnxI was wondering if somebody can make this smaller for me. It's a game to guess the hidden shape. It's about 500 lines of python code. from tkinter import * from tkinter import messagebox import random import tkinter.font as tkFont import tkinter.filedialog as f_m import webbrowser as web import o...

 
2:00 PM
Monking
 
Greetings, Programs.
 
Monking
 
@Donald.McLean How is the space business?
 
1
Q: Binary to decimal (and back) converter in c++

NadpherI'm mainly looking for error checking / type safety advice. main.cpp #include <iostream> #include <string> #include <cmath> #include <numeric> void binaryToDecimal(); void decimalToBinary(); int main() { std::ios::sync_with_stdio(false); bool running = true; int ans; while (ru...

 
@SᴀᴍOnᴇᴌᴀ Spacious
The people in charge are cautiously optimistic that JWST will launch next October.
 
2:07 PM
as it should be.. we watched a show about stars the other night... learned there are stars millions of times larger than the sun
 
This isn't really an answer to the question. It would be fine if they had posted the code in Code Review. — Barmar 59 secs ago
 
2:32 PM
0
Q: A TransformAll Function For Various Type Arbitrary Nested Iterable Implementation in C++

JimmyHuThis is the follow-up question for A Summation Function For Various Type Arbitrary Nested Iterable Implementation in C++ and A Maximum Function For Various Type Arbitrary Nested Iterable Implementation in C++. In the summation and the maximum cases, the recursive technique is used for iterating a...

 
2:45 PM
Actually, that would be better suited for the Code Review site, but since you're already here... :) — Tim Pietzcker 54 secs ago
 
2:57 PM
1
Q: Ruby Symbol Table implementation using Binary Search

Steven AguilarI'm currently going over Robert Sedgewick's Algorithms book. I implemented a Symbol Table using two parallel array one for keys and one for values. The keys array is ordered and the Symbol Table uses binary search to find the position of the elements in the array. In the practice section, the imp...

1
Q: Hackerrank: Breaking the records

fr13dI'm learning Clojure and am a rank n00b at it, trying to learn from books and online tutorials (but I'm sometimes concerned that I am picking up bad habits or at least not all the good habits). For exercise I did the Breaking the Records problem on Hackerrank. TL;DR problem description: For a lis...

 
@pacmaninbw, et. al: this code is CNWAI
I have tried your code, but it does not output the expected result. Could you please check this? — Jan Stránský Aug 19 at 9:33
Would it be within the bounds of editing to add my html and remaining JavaScript to the bottom of my original post? Since this post is blowing up, I'd like everyone to get the full story. — CodeLoveGuy 15 mins ago
 
@SᴀᴍOnᴇᴌᴀ You tested it?
 
3:22 PM
@pacmaninbw yes
heck I guess I could put the code into a snippet to illustrate it
 
3:35 PM
Voted to close.
 
Closed.
@CaptainObvious One more VTC, UWYA at best.
Honestly it's simply a feature request.
 
@Mast I'd like to help but I already voted on it.
 
:)
Thanks @Sᴀᴍ
 
@Mast Good thing I never used Nano Adblocker.
 
man... I thought I could easily find a screenshot of NBA Jam with "The Nail in the coffin" on Google Image search but apparently not :/....
 
3:45 PM
@SᴀᴍOnᴇᴌᴀ Something like this?
 
I could make my own... but who has time for that :)
@Mast I saw that... but does that convey nailing a coffin?
 
@Mast Photoshop anyone?
@SᴀᴍOnᴇᴌᴀ Just blow some smoke away from a gun barrel.
 
@SᴀᴍOnᴇᴌᴀ I'm not sure, I don't think it can be properly conveyed without a nail and a coffin.
 
one of those players is Carlos Boozer - I saw an interview of him after a game where he said "compoised" twitter.com/jeskeets/status/12878683282
 
 
3:50 PM
Monking
 
Surprisingly, when you look for nails in coffins, you get a lot of pictures of nails. Without coffins. You know, the kind you put on fingers.
 
@Mast I just realized that too, while looking at this page
 
Wat
 
Hi there! A user is talking to you here, just wanted to let you know. — Emma 16 secs ago
 
@Duga he probably knows - he was on CR ~4 hours ago...
 
3:54 PM
@Duga What is this about?
 
@pacmaninbw follow-up question mentioning OP of accepted answer of previous post
 
There we go.
 
@SᴀᴍOnᴇᴌᴀ @Mast took care of it.
 
I saw that :)
 
4:00 PM
possible answer invalidation by CodeLoveGuy on question by CodeLoveGuy: codereview.stackexchange.com/posts/250962/revisions
 
@Duga Rolled back.
 
@pacmaninbw or anybody minus Mast: have an opinion on this?
arrg
too bad my clipboard can't sense what I am thinking should be in it
2
@Mast I told the OP he should be able to add the relevant HTML
You should be able to add the HTML without invalidating our answers - it would likely be akin to this scenario on metaSᴀᴍ Onᴇᴌᴀ 38 mins ago
 
Normally StackOverflow focuses on non-working code. If this does work and it's purely an architecture question, I'd recommend codereview or even softwareengineering. — msg 14 secs ago
 
@SᴀᴍOnᴇᴌᴀ ffs
What's wrong with a follow-up question @Sᴀᴍ
 
while our answers talk about HTML, the HTML wasn't there to begin with so we had to guess
it would be like somebody leaving a comment on the post saying "can you please add the HTML"
 
4:11 PM
And that's why the freakin 1st revision is supposed to be complete.
If we need more, it's not ready for review.
sigh
My pizza arrived. Do what you think needs to be done.
2
 
Yum, pizza for breakfast. ;)
 
@Duga does anybody else have an opinion? I should perhaps step back since I have a bias as an answerer
 
@SᴀᴍOnᴇᴌᴀ Are you talking about the comment by a super brain?
 
@pacmaninbw oh did you already go through that item in the CV queue?
 
4:24 PM
On the 19th I found it in the First Posts queue and VTCed.
 
4:44 PM
I decided to go ahead and vote to close this post from two weeks ago - after a second inspection I see it looks to be lacking quite a bit
@pacmaninbw have you been driving your convertible around lately?
 
Dan
5:08 PM
I
WAS
SUMMONED
 
@Dan I was responding to CodeLoveGuy's question about adding the HTML
P.S. there is no need to yell
 
Dan
there is every need to yell, this is Very Important Business
but yeah, thanks for handling that
 
@Dan I'm somewhat surprised your final code examples don't use data attributes for the <output> elements
though maybe id attributes are necessary for the relative data attributes
 
Dan
You could use data-id="foo" too if you wanted, there's not much difference
 
Dan
5:15 PM
the main thing is to make sure that it's the HTML which dictates where the elements are located, not it being hardcoded in the js, if that makes sense
 
"[where the elements are located]" ... within the DOM/page?
 
0
Q: Display an ImageView after clicking a ListView using 2 fragments

Kim ParkPlease help me to display an ImageView after clicking the selected item on the ListView. I tried implementing an array and I don't know the proper code and where to place the other codes. This is the first fragment and it displays the item in the list. Heres the code: public class ListMenuFragmen...

 
@SᴀᴍOnᴇᴌᴀ No rain yet, so yeah, almost every day.
Old picture from when I hair was dark, taken by a traffic light.
 
5:36 PM
@pacmaninbw heh perhaps unfortunate for you, fortunate for us
 
I was picturing a green BMW, like in one of the scenes from the movie Speed
I think it was a sedan though, not a coupe (Z3?)
 
Z4, metallic black.
 
That picture is from 2008.
 
5:38 PM
were the three vehicles turning in front of you all caught in the red light?
 
No.
Or not that I know of.
 
5:52 PM
-1
Q: Call center modelling

titimanaseI have a requirement to deign a call center. Details: -using OOP design a tech center apps -the user may choose options from a menu(language,problem type(hw/sw)) -the user can choose one of the solutions: system restart,plug in , plug off) or he can choose to speak to a technician(two options : d...

 
Dan
@SᴀᴍOnᴇᴌᴀ sorry, I mean where they are located in relation to each other
so in my review, I made it so that the code doesn't depend on one element being adjacent to another or the button being in a particular place in the DOM, etc
as long as you provided accurate IDs, the system would work even if you moved the HTML around
and if it didn't, the system would fail quietly (although you could change that if you wanted)
 
6:10 PM
@CaptainObvious CNWAI
 
@SᴀᴍOnᴇᴌᴀ Need 1 VTC
 
@CaptainObvious OP responded to my auto-comment about code not yet written:
I'm not sure what are the clasess that need to be implemented — titimanase 6 mins ago
"As if..."
 
@SᴀᴍOnᴇᴌᴀ Even more off-topic.
 
My first instinct was to respond with something like "Well I don't know either..." but obviously that likely wouldn't have passed the CoC 😏
 
Yeah, if you can't say something nice and helpful don't say anything.
There are a few times I've wanted to come down hard.
 
6:23 PM
This question may be more relevant on the Code Review site. — Chris Happy 27 secs ago
 
6:41 PM
Hi @TrevorKiwoi, welcome to StackOverflow, Maybe better post code review questions there: codereview.stackexchange.comBodo Thiesen 22 secs ago
 
0
Q: Is this the correct code for implementing Bahdanau Attention?

Dhruv 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...

 
@BodoThiesen such a post would not be on-topic on CR. — Sᴀᴍ Onᴇᴌᴀ 15 secs ago
 
@Duga I tried flagging it as falsely giving the impression such a post would be on-topic here- will see if it is an appropriate measure
 
7:08 PM
-2
Q: return type not working properly

Saurabh KumarI have the below function. I am getting the below exception. I am not sure why it is complaining about | undefined private get cartItems$(): Observable<CartItem[]> { const loadOperation = (item: CartItem) => (acc: CartItem[]) => [...acc, item]; const updateOperation = (item: CartItem) =>...

 
Dan
@CaptainObvious No
 
7:33 PM
0
Q: How can I output multiple strings and it not be so clunky?

Troy CoxI find a huge chunky of my code comes from copy and pasted 'cout' statements, and I was wondering if there was a way I could just print them all out in a loop? cout << Eagles.teamname << " - Overall = " << Eagles.Teamov << endl; cout << Tennessee.teamname << " - Over...

0
Q: JavaScript Symbol Table implementation using Binary Search

Steven AguilarI'm currently going over Robert Sedgewick's Algorithms book. I implemented a Symbol Table using two parallel arrays one for keys and one for values. The keys array is ordered and the Symbol Table uses binary search to find the position of the elements in the array. In the practice section, the im...

 
7:58 PM
1
Q: How can this async url response checker be cleaner/faster?

humidwith open('things.txt') as things: urls = [url.strip().lower() for url in things] async def is_site_404(s, url): async with s.head(f"https://example.com/{url}") as r1: if r1.status == 404: print('hello i am working') async def create_tasks(urls): tasks = [] ...

 
8:17 PM
@Dan cool; I didn't realize it was you without the Pantry on your alias
s/alias/handle
 
Dan
yeah I removed my surname from a lot of things due to some stalkers
 
probably wise...
🤦
Anyone can give me a clue please — titimanase 53 mins ago
 
Dan
pick a card
any card
lol
 
8:48 PM
2
Q: CSES standard solution for range query problem giving TLE

Aditya GuptaProblem statement is from CSES This is a standard question where we are given a list of numbers and a number of queries. For each query, you have to give the sum of numbers in the given range. My implementation in python: def solve(): n,q = [int(a) for a in input().split(' ')] arr = [int(...

 
9:13 PM
0
Q: Iterate through multiple elements with different IDs in jQuery

Leo MessiI'm very new to jQuery and I managed to make this code work but I'm pretty sure that it could be made in a more efficient way. For example, it should be a way to send the id as a parameter instead of writing the same code for each id. But beside of that, are there other things that could be made ...

 
9:49 PM
2
Q: Shall we lower the close-vote threshold to three?

Sᴀᴍ OnᴇᴌᴀThere is a comment on the MSO post We’re lowering the close/reopen vote threshold from 5 to 3 for good Other sites can have whatever threshold is most appropriate for them, @gnat – Shog9 Dec 3 '19 at 17:40. Should we lower the threshold of close votes from five to three? Apparently some of our ...

 
@Feeds @Vogel612 can you (or somebody else in your role) apply the tag to that?
 
10:53 PM
0
Q: Golang DB connection with AWS SSM Parameters and context

CoupcoupI'm working on setting up an app backend that's deployed automatically using infrastructure-as-code and a ci/cd pipeline. As a result of that I need the app server to gather DB credentials automatically. This is my first time working with the AWS Go SDK and I want to get the code as close to prod...

 
11:32 PM
@pacmaninbw its a good thing I'm not really a pirate
 
Arr matey!
 

« first day (2728 days earlier)      last day (44 days later) »