Live data from Hacker News

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

twitter.com

21–30 of 191 posts

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

#21

> 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…

> Who the hell copy pastes code into their program without first examining and understanding what each step is actually doing

The people who write the software that runs the airplane you’re on.

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

#22

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 -…

Why not add a fifth point about contribute with a better answer if you know better? It feels wrong looking down on people just trying to help.

Great point, this too. Also - if there’s a good answer already there but not accepted, it’s worth upvoting, so that hopefully it becomes more visible to others.

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

#23

> 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…

> "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 once, so you use that mutex. But you want to be sure that mutex is unique to your program and not shared with others that use the same method, so you create another program that uses the same method and test if they conflict. If they do, then your mutex is not unique to your program.

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

#24

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 -…

Why not add a fifth point about contribute with a better answer if you know better? It feels wrong looking down on people just trying to help.

The problem is stackoverflow seems designed to avoid "better answers".

Questions are often long abandoned, and the original questioner won't come back and choose a new correct answer. On a rarely looked at question, it would take years for a correct answer to raise up the ranks.

I've seen various answers which used cryptography dangerously, and asked if there was any way they could be fixed, and I just got the answer you gave. That shouldn't be acceptable when dangerously bad code is being showed to people.

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

#25

Earlier quoted context omitted.

Why not add a fifth point about contribute with a better answer if you know better? It feels wrong looking down on people just trying to help.

The problem is stackoverflow seems designed to avoid "better answers". Questions are often long abandoned, and the original questioner won't come back and choose a new correct answer. On a rarely looked at question, it would take years for a correct answer to raise up the ranks. I've seen various answers which used cryptography dangerously, and asked if there was any way they could be fixed, and I just got the answer…

It's worth noting that it is possible to edit other people's answers. So it is possible to correct answers with incorrect or dangerous information.

With sufficient "rep" (2000, where an upvote on one of your questions or answers is worth 10), edits don't even require approval from others (before that, they must be peer reviewed before the edit takes effect)

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

#26

> 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…

If you haven't seen stacksort yet: https://gkoberger.github.io/stacksort/

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

#27
post #23

> 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…

> "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 realistic cases, it's just really hard to test for. There could be even a real use case for collision - independent agents walking the process tree and relying on locks based on guids to not step on each other.

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

#29

Some tangential analysis of Synapse over here: https://twitter.com/davkean/status/1144498663122558977 .

Mouse./keyboard customisation software seems universally bad / lowest-bidder style. Logitech's mouse button configuration tool for example weights over 400MB. Literally for a tool which requires a few dropdowns.

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

#30
To any Microsoft/.NET devs reading this:

What do you think the chances are that you could make exact references to

  Assembly.GetExecutingAssembly().GetType().GUID
return a compile-time warning?

That could make this go away very quickly.

(For bonus points, add relevant telemetry to VS. :P)

Post reply on HN