« first day (3337 days earlier)      last day (678 days later) » 

12:03 AM
REFRESH! There are 8098 unanswered questions (89.3107 answered)
 
 
2 hours later…
1:38 AM
Off-topic here. You can try on codereview.stackexchange.com, but be sure to read their rules before you post. Asking to review an entire repo is probably not going to be allowed there. — Robby Cornelissen 49 secs ago
I’m voting to close this question because it belongs on codereview.stackexchange.comRobby Cornelissen 29 secs ago
 
 
3 hours later…
4:33 AM
Monking
 
 
3 hours later…
7:22 AM
0
Q: MSSQL - Using batch to delete row from table that matches other table

RoniAssume I have 2 tables tableA and tableB: tableA(name, b_id) tableB(b_id, id) tableA and tableB are very big tables so batches needed. I'd like to delete from tableA each row that its b_id matches tableB.b_id giving that tableB.id = @id This is what I'm trying but I suspect it's not the most eff...

 
8:16 AM
It sounds like the answer is "no". This isn't code review, I wasn't intended to post/spend hours re-writting a MVP I simply wanted to check if I could run different functions based on which part of an OR was true — mak47 47 secs ago
 
8:40 AM
Monking
 
9:28 AM
0
Q: My Deep Neural network for L no.of layers is not working properly

SriramGithub link for the entire code I have coded Forward and Back Propagation algorithm for Deep neural network from scratch. I am using Gradient descent to reduce cost error, however, the cost does not seem to decrease when i am using 3 hidden layers. any recommendation to improve the my code? is th...

 
10:26 AM
This question is more likely to get answered at CodeReview, while Stack Overflow is more for code that doesn't do what its intended to. — Thingamabobs 50 secs ago
 
11:03 AM
Just a remark, but specially in larger projects implicit conversions can be very tricky. They can be chained together and lead to unpredictable conversions. So in all code reviews I do, remove implicit type conversion opertains and make all constructors with one parameter explicit. The little pain now of typing explicit conversions where you want them may safe you a lot of pain later. — Pepijn Kramer just now
 
11:16 AM
0
Q: Assembler made in assembly

elonma1234I made an assembler for the "hack" assembly language, here's an example of what it looks like: Currently it only works with predefined symbols, I want to know what to improve before I continue. So how it works is, is it reads the file line by line and first identifies if its a C or A instruction...

0
Q: Loading and execute shared library

NickThis is my attempt to laod shared library on linux (and may be mac - did not tested yet) I am interested if I am implementing everything correctly and if I can really use my function in a loop like that. I deliberately use iostream, because it is part of the C++ library and it wont work unless li...

 
11:34 AM
and he's code is a bit more cleaner than mine but we achieve the same or nearly identical results, would the way I wrote my code be considered incorrect since my code is messier? yes, because yours Is then likely to be less maintainable (possible errors are harder to spot (code review), debugging actual problems is more problematic, and adding new features in future might be more problematic) — t.niese 1 min ago
 
0
Q: Whats the best way to pass many cli arguments between multiple functions in python?

Liam McIntyreI write a lot of cli tools in python. Most of my tools have something like this to get arguments: import argparse parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('integers', metavar='N', type=int, nargs='+', help='an integer for the ...

 
12:07 PM
0
Q: Tic Tac Toe on the command line in Scala

L68967gyThis is my first Scala program, so I'd appreciate any feedback but especially feedback specific to Scala, for example situations where I could have utilised a feature better or where I've done something unidiomatic. import scala.collection.mutable.HashMap object Main extends App { // Type alia...

 
12:17 PM
@CaptainObvious VTC for MRC, someone else chose Not implemented.
 
So I'm doing this OS course and it's...rough. Not because the content is hard, but because the "instructor" doesn't explain anything about why we're doing things. Just that "we use this instruction with these parameters" and I'm like..."ok, but how did you come to that conclusion? That's what I need"
"We set this field to zero" OK, but what field is that so I can find out what it does?
 
12:38 PM
@DerKommissar What programming language? What textbook?
 
It's a Udemy course and it's ASM+C
Realistically I'm getting about what I could expect to get for $75 or whatever it was
 
Yeah, my courses cost between $500 and $750.
I know its an operating systems class, but what was the topic for the class.
 
I'm thinking about trying to go back to school and finish my BS in something, this is a good "test" to see if I have the time/energy
It's basically ground-up build a basic OS that runs in 64-bit mode
So, starts out with "here's how to build a simple bootloader", then a "here's how we go from Real -> Protected -> Long mode", then "here's how we bootstrap a kernel from ASM -> C", then scheduling, interrupt handling, etc.
 
Big subject.
 
Yeah, it's basically touching on everything in a simplistic manner
I'm at the point where I can provably verify a CPU supports long mode, supports the A20 line, and I can do the jump from Real -> Protected -> Long mode, and setup the GDT.
Now we're doing the IDT setup for the kernel
I don't plan to do anything with it, just seemed like a fun thing to try
 
12:53 PM
My OS classes at the university were 3 hours a week plus a 3 hour lab a week for 18 weeks.
 
Yeah, actual OS classes are huge
 
My first OS lab taught me C and Unix. We wrote a shell.
What does this class assume you know?
 
It assumes you know Assembly at a functional level
I need to find a new iOS book / course too, the one I have is from 2017 and everything has changed
 
@DerKommissar I'm assuming you mean the change from Objective-C to Swift.
 
No, this covers swift, but Apple apparently removed the MVC type design philosophy and replaced it with something else, Idk what, but none of the Xcode examples in the book are working now
Like they compile but none of the buttons / templates / etc are the same
 
1:09 PM
That is a problem. Generally I've stopped buying computer books because they get outdated quickly. Theory is different, that lasts much longer.
 
Yeah, it's rough
 
1:48 PM
0
Q: How Can i Better My Python Tkinter UI Pattern Password Code

JackThis post is less of a question and more of a hope for people to see my code which i know is far from great and give me some direction or simple tips on improving the quality of it. The program is a small simple class which inherits tkinters Canvas object and uses it to create a 'for purpose' T...

 
 
1 hour later…
3:04 PM
@pacmaninbw Happy to chat. But I guess it all comes down to opinion in the end...
 
@CrisLuengo I understand your concerns, I am a C/C++ programmer and don't bother with python, partially because of speed, and partially because I don't like positional languages.
Since Mast is a moderator on CR, I think their opinion is relevant.
@Mast are your ears itching?
 
:-)
 
Yes, of course. And they likely have the last word. But I can voice my opinion, hopefully convert some to my cause. :)
 
What seems to be the problem?
 
I follow the MATLAB tag here and on SO, and I get tired of seeing the same question. "Why is Python slower than MATLAB?". I see this at least once a week.
 
3:07 PM
Welcome to The 2nd @Cris
 
@Mast Thanks!
 
@CrisLuengo I can imagine. I'm not particularly fond of it myself.
 
@Mast We are discussing an unanswered python question.
 
Ah, that one.
 
@CrisLuengo Welcome!
 
3:09 PM
I should've known that edit was going to haunt me.
2
 
LOL
 
Is it time to close it?
 
Sorry for dragging this, wasn't my intention. I just voted to close and added a comment for the benefit of people googling to that question.
 
Almost 3 years open.
 
It was re-opened what, this morning?
You want to get rid of it already?
 
3:10 PM
I don't think it's going to get a useful answer, but maybe I'm wrong... :)
 
@CrisLuengo No problem. That blue pesky diamond next to my name makes me a prime target to get dragged into things.
Comes with the territory.
 
I saw it in the close queue and saw your comment.
 
It's perfectly possible it won't get a useful answer. I didn't reopen it. I explicitly didn't put it back in the review queue, I think Reinderien picked up on it.
 
@Mast I certainly wouldn't volunteer for the diamond. You have my admiration and gratitude.
 
Please note that my last comment on there is from '19 so should not be considered an official position.
 
3:12 PM
@CrisLuengo I got talked into running in the last election.
@Mast True.
 
At the time, I think it could be answered. I still think it can. Will it? I don't know. But we don't close questions just because they won't get answered while they're on-topic.
If the question is in a grey area, eventually, after a while of not receiving answers, we might put it out of its misery. But that happens less frequently than you might think and partially is already done by the automated system (keep a question at a score of 0 or -1, low views and see if it's still there a year later).
 
@CrisLuengo Is there a way to speed up the python to approach the MATLAB performance?
 
"Can you please tell me why Python is an order of magnitude slower for only even linear solve?" MATLAB's linear solve function is apparently 10x faster than Python's in this case. Why? It just is. This has nothing to do with the code, as far as I can tell.
 
It doesn't warrant a moderator hammer either way.
@CrisLuengo Yes, that's what I meant in '19 when I said it was phrased a little iffy.
However, this is Code Review.
It's a poorly kept secret that people can ask for whatever they want, but they'll have to do with what they get.
If someone wants to go into details about their question, that's great! It's commendable, even. But if there are other glaring issues with the code, those can be pointed out as well.
Especially since more often than not there's so much wrong with code that it's hard to focus on the actual question for all the other issues it has.
 
@pacmaninbw Since OP is only timing the call to np.linalg.solve, speeding up the code would mean using a different linear algebra solver. Sure, there might be an approach, one would have to figure out what type of problem it is, then figure out what the most efficient way to solve that is. MATLAB's `` does all of that for you.
 
3:17 PM
For example, performance questions often run into poor testability. Increasing that first and run benchmarks later is a valid approach.
 
@Mast Indeed! I have experienced that first hand. I used to have the same problem with student's reports, the grammatical errors would sometimes obscure the real problems.
 
In this question, the chebgl function is clearly doing too much. Perhaps if rewritten, the issue becomes glaringly clear and can be optimized so the performance difference with MATLAB isn't as big.
 
So among other things the code violates the SRP?
 
Big time.
If the community feels it can't be answered because it doesn't fit our scope, it can be closed. If others feel it can be, they can re-open it again. That's what happened.
I wouldn't be surprised if it gets answered before the end of the weekend.
If it doesn't, however, there's a good chance it won't be answered ever. In which case, at the current score, it will be gone in a year.
For the people keeping score and figuring "why isn't the question removed yet if it's old enough?", that's because the score wasn't net 0 before the edit.
 
@CrisLuengo Thanks for being open to discussion. I'm now torn.
 
3:23 PM
Please note that specific questions can always be brought to Meta, to get community feedback on it and have the discussion openly and saved for posterity.
 
@pacmaninbw Discussion is always good. I learned stuff.
I'm going to follow the question, see if it gets answered. :D
 
Glad to hear that.
 
@CrisLuengo I've deleted my original comment to you, the response you wrote could be deleted on the question.
 
3:29 PM
@pacmaninbw done
 
0
Q: Creating a form control after an API call

Van WilderI am working with angular and I have created a custom validator that checks if an input has a value from a drop-down, If the value inside the input is not one in the list then the validator should throw an error. This is my implementation but I am a bit hesitant about how I am initializing the fo...

 
 
1 hour later…
4:43 PM
We can't tell you if you're doing it correctly unless you provide a specification for the validation rules you want to implement. And even then, the normal way to verify that would be to test it with a thorough set of test cases. If you want someone to give some sort of appraisal of your code style or whatever, then try the Code Review site. Here at stackoverflow we will answer questions about concrete programming problems (e.g. I wanted the code to do X, I tried Y, but it did Z) — ADyson 40 secs ago
This is probably a better fit for a different Stack Exchange site, like codereview.stackexchange.com or dba.stackexchange.com. Stackoverflow is for code that is not functioning, has a reproducible issue and a clear, concise solution on how to fix it. — Tim Lewis 42 secs ago
 
 
2 hours later…
7:15 PM
I’m voting to close this question because it belongs to codereview.stackexchange.comMike Nakis 17 secs ago
 
8:09 PM
0
Q: first assembly programm. what are the mistakes to avoid?

Etienne ArmangauI started learning assembly some days ago and I wrote my first programm today. Nothing exceptional here : some user inputs, strings manipulations, integer to string convertion etc... The only purpose was to test some things. I would like to have your reviews and advices to improve my code. Also i...

 
8:34 PM
0
Q: Count each word of a string in php

Angel Abad <?php function Clearstring(string $string) { $string = strtolower($string); $string = preg_replace('/[,.!;?]/',"",$string); return $string; } function CountString($string){ $textsplit = preg_split("/\s/",$string); $wordsArray = []; $arr...

 
 
2 hours later…
10:05 PM
I’m voting to close this question because Code reviews should be posted on codereview.stackexchange.com after reading their help and faq pages. Stack Overflow is for code that doesn't work. — steven7mwesigwa 48 secs ago
 
10:55 PM
Well, as Jeffrey Yasskin states in this code review, even lambda: None needs to allocate memory, which means malloc(), which means locking the heap lock. This could in theory cause deadlock depending on the malloc and fork implementations that are being used. glibc's fork() dances around the issue locking/unlocking the malloc arena lock in fork() to avoid trouble... I would argue any sane implementation should. — Marco Bonelli 48 secs ago
 
11:06 PM
If you don't have a specific problem, you might want to try Code Review. — shmosel 53 secs ago
 
11:32 PM
0
Q: Best naming convention for a Java utility class and method which forwards a request to an error handler mapping

bobbyrne01I have a class ErrorForward which is basically a utility. It's used in Servlets, inside the catch block. It forwards request to /error mapping and sets the exception as a request attribute, to be used later in the request lifecycle i.e an error handler. ErrorForward and forward feel like terrible...

 

« first day (3337 days earlier)      last day (678 days later) »