News for hackers. Stuff that matters.

Mysterix

Re:The Nerd as the Norm on Friday May 18, 2018 @05:57AM (#17100115)
From the first link, this part is so relatable :

"They'll stop going to the company picnic if it becomes an occasion for everyone to list all the computer problems they never bothered to mention before."

Re:A Linguist Explains Why 'Laurel' Sounds Like 'Yanny' on Thursday May 17, 2018 @06:50AM (#17090222)
While I was using the slider on my computer, I kept a laurel/yanny video playing on my phone

=> I think I can confirm there is no bug in the demo.

Re:Chess boxing on Wednesday May 16, 2018 @06:03AM (#17081188)
There is a Chess&Run tournament every year at Enghien-les Bains (north of Paris, France).

Each player has 10 minutes for the whole game, like in a classic blitz game, but the clock is 10 meters away.

Next one is on May the 19th.

http://www.echiquierdulac.fr/?p=2744 (in french)

Demo : http://studio.stupeflix.com/v/0thPHAyqDOpc

Re:The Kruskal Count Card Trick on Friday May 04, 2018 @06:34AM (#16993501)
It says 80% in the text
Re:Dunning-Kruger and other bogus memes on Friday November 10, 2017 @11:04AM (#15670761)
"Perception of their overall ability" seems to have a different scale that the 2 others, so the important point is not the actual values but the correlation measure.
Re:Delete your Code on Thursday October 05, 2017 @03:54AM (#15407330)
This is a cognitive bias known as the "IKEA effect" [1] First time I read it applied to coding, the author is completely right. You are much faster the second time you write the piece of program, and it will be probably more effective.

[1] https://en.wikipedia.org/wiki/IKEA_effect

Re:Mailable Live Animals on Thursday August 31, 2017 @06:03AM (#15139266)
So you can't send a cat https://xkcd.com/325/
Re:Avery’s laws of Wi-Fi reliability on Wednesday July 12, 2017 @05:46AM (#14751251)
The strategy "Buy 2 routers, and if the first one fails, then use the 2nd one" is ok, and gives you the 1% result.

My (little) problem is the sentence "Replacing your router (or firmware) almost always fixes your problem.", because if the first router is broken, replacing it will only fix your problem in 10% of the cases, which is not "almost always".

Re:Avery’s laws of Wi-Fi reliability on Wednesday July 12, 2017 @05:28AM (#14751172)
>Replacing your router:

>

> Vendor A: 10% broken

> Vendor B: 10% broken

> P(both A and B broken):

> 10% x 10% = 1%

>

>Replacing your router (or firmware) almost always fixes your problem.

The conclusion is false :

if router A is broken, router B still have 10% chance to be broken, the two events being independant.

P(A broken | B broken) = 10%

To get the 1% effect, advice could be :

Always buy 2 routers instead of 1

>If you are going to test my knowledge, at least ask relevant questions for the role.

Even for a front-end developer, I think that algorithms matter, because developers have to understand what they do.

And the OP's solution in O(N2), as well as the other one with hash maps, seem quite bad (it can be done trivially in O(Nlog(N), and optimized to reach O(N))