Hacker Newsnew | past | comments | ask | show | jobs | submit | trowftd's commentslogin

Aren't you miscounting though? 111 contains the 11 sequence twice.


Which is probably the key intuition here - the expected number of matches is exactly the same, but because you can have more matches for the purely-repeated sequence in the same string the total number of strings containing those matches is smaller.


Sure, but the question is "how likely" not "how many times". Counting the expected number of times is a much easier problem because you can use the linearity of expectation.


But you're trying to find a bit-substring of length 2 that is least likely to have been transmitted.

If the bit strings of length 3 are chosen uniformly, 11 is less likely to appear than 10.


You are totally right. He is incorrect.


Asking users to actually read something and not just blindly dismiss it is a new low?


From the linked article:

If you're determined to avoid Windows 10 you've simply closed that pop-up by clicking the little X in the top right corner, by now it's probably second nature. This week Microsoft took advantage of this by changing the pop-up so that clicking the X to close it implies your consent to upgrade, tricking even more people into installing Windows 10 against their wishes.


I doubt it's the same pop-up. This one specifically states: 'Based on your update settings you're scheduled to upgrade on ...'. Just closing the pop-up wouldn't change this fact. Can't really empathise with people complaining about this.


It isn't the same popup, because Microsoft has continually changed it over the past year. They have done everything they can to ignore and circumvent user preferences during this whole process.

It started with OK and cancel, then changed to Upgrade Now and Upgrade Later, with the close button being the only way to decline. Now it is being pushed as an automatic upgrade with a deliberately small and unobtrusive cancel link instead of a prominent button. Also, if you are away from your PC, it will happen automatically.

Look at their own UI guidelines: https://msdn.microsoft.com/en-us/library/windows/desktop/dn7...

Dialog boxes always have a Close button.

Don't disable the Close button. Having a Close button helps users stay in control by allowing them to close windows they don't want.

The Close button on the title bar should have the same effect as the Cancel or Close button within the dialog box. Never give it the same effect as OK.

Also, read this: http://blog.ultimateoutsider.com/2015/11/the-gwx-control-pan...

It does seem that, on more than a few occasions, Microsoft has gone out of its way to bypass workarounds people have found that disable the GWX app, from resetting registry settings to re-releasing KBs that were explicitly declined and hidden by users.


Notepad++ is good enough until you need to do a regex search that includes new lines in it.


?? he can do, in Ctrl-F dialog box enable ". matches newline", I've done that more than once and never had any problem...?


True, but in extended search and replace mode you can handle newlines without goo much hassle, it's just not in the standard regex option


And it's windows-only.


I'm not sure what you mean, but the parent's SQL is valid and returns the same data as the gp's, only in a more efficient manner. No need to do three inner joins when you can get away with one.

In fact, you can take out the second part of the inner join condition and move it in the where clause, like this (execution plan will stay the same):

  SELECT posts.* FROM posts
  INNER JOIN post_tags pt ON pt.post_id = posts.id 
  WHERE posts.author IN ('Joe', 'Jane') AND pt.tag IN ('foo', 'bar', 'baz')
  ORDER BY post_date DESC;


The query is for posts tagged with all three tags, not just any one of them.


It's pretty straightforward to check if there are people in your TV box or not. Doesn't sound like a reasonable (or valid) position.

What about Santa or the Spaghetti Monster? Do we have to be (or claim to be) agnostics about everything we can't prove it doesn't exist? There's no need to prove these things because there's no good reason to believe otherwise. And no, just feeling you're right and visions don't count.

TLDR: Burden of proof is on religious people, not on atheists. Thus, agnosticism seems like an unnecessary compromise.


A point has no dimensions whatsoever. No length, width, or area. A point is not a zero length line segment, but not because of the reason you mention.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: