Live data from Hacker News

Docker for Windows won't run if Razer Synapse driver management tool is running

twitter.com

41–50 of 191 posts

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#41
post #37

Earlier quoted context omitted.

> read API docs for anything I’m unfamiliar with One of the differences i've noticed between myself and some of the junior devs i've worked with. I would usually use the official docs as my first resource, and they would use stack overflow instead.

I don't like this blanket statement .. I would use whichever googles first and most relevant results are. Also what the issue is matters. I don't always go to MDN for javascript issues. But if I want to know why something is the way it is, I will.

> I would use whichever googles first and most relevant results are.

The people who made the mistake in the OP probably did exactly that.

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#42
Microsoft API docs are potentially to blame. If they were better, people would use them, over digging for guesses right? Personally I find the MSDN wiki docs insulting and hard to navigate, especially for older products. A nice fat PDF at least gives the illusion of editing... and fast search.

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#43
post #23

Earlier quoted context omitted.

> "Who the hell copy pastes code into their program without first examining..." Quite a lot of people do that. It's pretty much the reputation of Stackoverflow. And of course everybody knows it's bad, but it saves time and it works and there's deadlines so they move on and ship it to production. How to find this particular bug is not that hard, though: you're looking for a way to ensure that your program can run only…

> If they do, then your mutex is not unique to your program. Unfortunately, if they don't, you only know that there exists one program which does collide with your app's mutex. Nothing more, nothing less. > But you want to be sure that mutex is unique to your program This one's actually impossible to test. Or to be pedantic, we know it can't be done - another app can be using your app's guid for its mutex, but in rea…

It's not a true proof that it's unique, but if you have two programs use the same method to generate that GUID and end up with different GUIDs, while different instances of the same program get the same one, it's looking pretty likely that they're unique to the program. Going beyond that is only really interesting to mathematicians.

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#44

Ha, stackoverflow is a great tool, but... the more answers I see on an area I’m experienced in, the more I realize how wrong they can be. Sure, the answer usually gets the job done, but everything else about it might not be right. If I need to use stackoverflow, these days I make sure I do a few things: - read a number of answers, comments included. Just because an answer is accepted doesn’t mean it’s the best one -…

I agree:

Recently I found an interesting snippet of C code which was using an sprintf to write a string into a char array. Unfortunately, it contained an off-by-one error where the null terminator would be written outside the char.

I proposed to fix the answer, but for incomprehensible reasons the edit was rejected (!)

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#46

Ha, stackoverflow is a great tool, but... the more answers I see on an area I’m experienced in, the more I realize how wrong they can be. Sure, the answer usually gets the job done, but everything else about it might not be right. If I need to use stackoverflow, these days I make sure I do a few things: - read a number of answers, comments included. Just because an answer is accepted doesn’t mean it’s the best one -…

> read API docs for anything I’m unfamiliar with One of the differences i've noticed between myself and some of the junior devs i've worked with. I would usually use the official docs as my first resource, and they would use stack overflow instead.

But what if the docs suck, as is the case with a lot of .io domain libraries?

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#47
post #20

> homework assignment for all programmers reading this thread: Think about how you'd find this bug in your own programs. You copy/paste the code, it seems to work, and you don't realize it's broken because you don't run either of these programs which made the same mistake. Wait... WHAT?? Who the hell copy pastes code into their program without first examining and understanding what each step is actually doing, how an…

Say hello to `pasteoverflow`: Paste code from Stackoverflow directly into your editor. https://marketplace.visualstudio.com/items?itemName=matsz.pa...

Please stop :(

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#48
Docker for Windows has had a fundamental Dns[1] bug since April of last year, I've been forced to run v2.0.0.3 for months now to ensure yum repos resolve inside AmazonLinux containers. Truly a second class platform. [1]: https://github.com/docker/for-win/issues/3810

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#49
post #46

Earlier quoted context omitted.

> read API docs for anything I’m unfamiliar with One of the differences i've noticed between myself and some of the junior devs i've worked with. I would usually use the official docs as my first resource, and they would use stack overflow instead.

But what if the docs suck, as is the case with a lot of .io domain libraries?

Is the io prefix somehow related to software tech?

Re: Docker for Windows won't run if Razer Synapse driver management tool is running

#50
post #40

I think it would be a great addition for StackOverflow to have a sort of report button for dangerous code. Take for example libcurl (thus, implementation in PHP, Ruby, Go, etc). There are sooo many posts with cURL example code where CURLOPT_SSL_VERIFYPEER is disabled. These are often answers with thousands of upvotes, that have been there for years. Inexperienced developers copy/paste this code into production withou…

You can report the errors in comments, and develop a habit of looking in the comments for reports of dangerous code.
Post reply on HN