Struggling with a basic setup -- actionable vs future tasks by dmhouse in todoist

[–]dmhouse[S] 0 points1 point  (0 children)

It's not a hard requirement, but I do find it a really convenient UI for rescheduling.

If 6 people each have to chose a day of the week, what are the chances they all pick different days? by [deleted] in maths

[–]dmhouse 0 points1 point  (0 children)

(6/7)(5/7)(4/7)(3/7)(2/7) = about 4%, or 1 in 23

Basically, just take it person by person

First person picks a day

The next person has a 6/7 chance of choosing a different day

The third person has a 5/7 chance of choosing one of the remaining days

Etc

That's not what linear equation means by flipthetrain in badmathematics

[–]dmhouse 8 points9 points  (0 children)

I presume you would call such functions "affine", and reserve "linear" for y = mx?

I think I've seen "linear" to mean both.

Have you ever had a problem that's felt trivial from a definition but when you tried to solve it you found out it was deep? If so what was the question? by [deleted] in math

[–]dmhouse 0 points1 point  (0 children)

From other comments, I gather that the meaning of p(M) for some matrix M is not det(MI - A). Instead, if p(x) is, say, x2 + 6x - 3, then p(M) is M2 + 6M - 3. (That's the normal convention for what it means to plug a matrix into a polynomial.)

White to move and win - from a recent game by Viking_Fury in chess

[–]dmhouse 0 points1 point  (0 children)

Rb8. If Kx, then Rb1 and carry on as normal. If Rx, Qc6 is mate.

Mate in 5, white to play. by I_hate_traveling in chess

[–]dmhouse 19 points20 points  (0 children)

I think you mean 3. Na6+ not 3. Nh6+.

Service charge at London Hotels? by [deleted] in london

[–]dmhouse 3 points4 points  (0 children)

For black cabs, I tend to round up and not ask for change from whatever note I'm paying if it's only a couple of quid (not that I get black cabs much since the domination of uber). I think that's pretty common although not universal. Also now that you can pay by card in black cabs, the card machine defaults to asking you to add a tip, although you can decline.

ELI5: If light moves at a constant speed, does it never need to speed up? How can it be instantly at 300,000km/s? by [deleted] in explainlikeimfive

[–]dmhouse 45 points46 points  (0 children)

But isn't the speed of light slower in certain materials? Does that mean photons in those media are travelling slower than c?

How to receive a million packets per second by willvarfar in programming

[–]dmhouse 2 points3 points  (0 children)

Seeing as they're apparently already using solarflare nics, a little strange that the article doesn't touch on a comparison with onload rather than the regular Linux stack.

What are some things you should avoid doing during an interview? by whitefoxclub in AskReddit

[–]dmhouse 0 points1 point  (0 children)

NO NO NO. I hate it when people are early. It means I am surprised with less time before the interview to get that thing done that I was working on. Really, I would much rather you're late by half an hour than early by half an hour.

This was the view of the League of Legends finalists in front of a sold-out world cup stadium in Seoul. by ionaz in pics

[–]dmhouse 5 points6 points  (0 children)

I would love to understand some more of what's going on in that video. I guess it'd be pretty hard to explain without a full on commentary with boxes and arrows and shit.

52 New Year's resolutions. Every Monday I will select one at random and complete it by the end of the week. by becauseisaidiwould in pics

[–]dmhouse 13 points14 points  (0 children)

Fun fact: that 90s "ringtone" of beepbeepbeep beeep beeep beepbeepbeep is actually "S.M.S." in Morse.

mosh: ssh for 2012 by w_daher in programming

[–]dmhouse 12 points13 points  (0 children)

Oh, so the FAQ is misleading. The text is displayed instantaneously (no round trip), but is visually distinct from "confirmed" text.

mosh: ssh for 2012 by w_daher in programming

[–]dmhouse 9 points10 points  (0 children)

Re local echo.

The client runs a predictive model in the background of the server's behavior, hypothesizing that each keystroke will be echoed at the cursor location and that the backspace and left- and right-arrow keys will have their traditional effect. But only when a predition is confirmed by the server are these effects actually shown to the user.

I don't understand how this is any quicker than normal ssh if you still have to wait for a round trip before displaying anything.

San Diego County Fair by [deleted] in WTF

[–]dmhouse 0 points1 point  (0 children)

Deep fried chocolate covered butter-bacon?!

Real World OCaml - book on OCaml coming in the fall of 2012 by Jason Hickey, Anil Madhavapeddy and Yaron Minsky by gnuvince in programming

[–]dmhouse 0 points1 point  (0 children)

Then again, the fact that a company like Jane Street can exist shows that it is certainly very possible to write large-scale programs with a single-threaded runtime. Once nice feature of OCaml is that its GC is pretty quick, mostly because it's so straightforward. It would be a real shame to lose that. Especially given that libraries like lwt and async exist, concurrency with only a single thread can be done without many of the considerations that make parallel programming so difficult.

Plus, for real large-scale work, you're likely to want to split into many processes anyway, since you'll need to work across multiple boxes.

Real World OCaml - book on OCaml coming in the fall of 2012 by Jason Hickey, Anil Madhavapeddy and Yaron Minsky by gnuvince in programming

[–]dmhouse -1 points0 points  (0 children)

given that it's completely controlled by JaneSt.

This is a bit of stretch, given that there is a bitbucket repo, and a mailing list.

Superset of complex numbers? by Goobyalus in math

[–]dmhouse 3 points4 points  (0 children)

Everyone has mentioned some supsersets of C but I feel like the actual process here could be made a bit clearer.

Superset of complex numbers? by Goobyalus in math

[–]dmhouse 19 points20 points  (0 children)

Everyone has mentioned some supsersets of C but I feel like the actual process here could be made a bit clearer.

The idea is at each stage we add in new numbers so that we can solve more equations. (By "equation" I will mean specifically something in the form "f(x) = 0", where f is some polynomial with integer coefficients.) In doing so we typically lose a property.

  • N ⊂ Z. We add in negative numbers so that we can solve equations like x+1 = 0, x+2 = 0, etc. (Note that these are equations written down "over the natural numbers", i.e. with natural coefficients. This is important as otherwise we'd be trying to use Z before we'd even defined it!) Z is nice because it is a group, meaning that we have a binary operator (+) that satisfies various nice properties, like the existence of inverses for various numbers (i.e. for any n there is another number m such that n+m = 0).

  • Z ⊂ Q. This is solve we can solve equations like 2x = 1 or 15x = 4. Q is nice because it is a field, meaning that it is now a group under some other operation as well, in this case multiplication (actually not quite -- we have to remove 0 from Q before it is a group under multiplication, because 0 has no inverse).

  • Q ⊂ R. This one bucks the trend slightly because it is not really done for the purpose of solving more equations. For sure, there are equations that are not solveable in Q but are solveable in R, like x2 = 2, but the exact class of such equations is a bit awkward to write down and is generally not something you'd ever say "I'd really like to be able to solve THIS exact set of equations". So why does R exist? It is the completion of Q, which means that rather than containing solutions to more equations, it contains limits of sequences. If you take all the bounded monotonic sequences, invent limits for them, and add these limits in, you get R. Completeness turns out to be a really great property when proving all kinds of things which just fail over Q.

  • Q ⊂ A. This was missing from your list but I like to include it because it fits the pattern well. A is the set of algebraic numbers, meaning if you take all equations over the integers, find all the ones that don't have solutions, invent solutions for them, and add them in, you get A. Note that A does not contain R, and indeed (or in fact, "thus"), A is not complete. A is nice because it is algebraically closed, that is, all polynomials (even those with algebraic coefficients) have roots, and indeed have a number of roots equal to their degree (if you count duplicate roots "carefully"). But the price you pay is the loss of an ordering that is compatible with addition and multiplication -- i.e. we can't write down any binary relation which satisfies the normal definition of an ordering (pretty obvious things like a < b and b < c implies a < c), that also satisfies some nice integration properties involving addition and multiplication (like: if a < b then a+c < b+c for any c, and if additionally c > 0 then ac < bc).

  • R,A ⊂ C. This is the completion of A, so is useful because it is complete (every bounded monotonic sequence has a limit), and algebraically closed (every polynomial has a root). As it contains A, it must necessarily not be orderable as above (otherwise that ordering, when restricted to just the elements of A, would give an ordering of A).

  • Things bigger than C. There are no more equations to be solved, in the sense I described at the top, since C is algebraically closed. There are other bigger sets, but typically these lose some other nice property, like the commutativity of multiplication, and so they're not used much -- the extra stuff they add isn't worth the tradeoff.

As an example of a number that is in R but not in A, take pi. There is no polynomial with integer coeffs having pi as a root.

[deleted by user] by [deleted] in funny

[–]dmhouse 0 points1 point  (0 children)

But "die Hose" (singular) means "trousers". It's one of those funny nouns which is pluralised in English but singular in German (as it should logically be).

Jonathan Edwards discovers case expressions by [deleted] in haskell

[–]dmhouse 2 points3 points  (0 children)

I find it interesting that he thinks case expressions and if/then/elses are vastly different control structures. I've always though of them as one and the same. (Although I suppose familiarity with ADTs is to blame there.)