Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jonsen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
391.
▲
by
jonsen
6y ago
> ... it didnt have the empty statement ';' ... > Sometimes you were not allowed to end you statements with ';' (since they were ended by the block, so this would require the emptystatement). Pascal has empty state
392.
▲
by
jonsen
6y ago
> If you have an iphone, ... and iOS 13+ :-/
393.
▲
Linear Algebra for Everyone, Gilbert Strang
(math.mit.edu)
1 points
by
jonsen
6y ago
|
0 comments
394.
▲
Linear Algebra for Everyone
(bookstore.ams.org)
1 points
by
jonsen
6y ago
|
0 comments
395.
▲
by
jonsen
6y ago
My IBS worsened and for several months I had recurring constipation and some abdominal pain keeping me awake in the night. I tried changing diet and several medicaments but no change. When starting Alflorex symptoms eased after a few days a
396.
▲
by
jonsen
6y ago
Alflorex worked for me: https://www.precisionbiotics.com/uk/alflorex
397.
▲
by
jonsen
6y ago
Thanks for “(at most)”. But for a moment I thought that a number can not be the sum of more than 49 :-) The theorem in the paper has an unfortunate wording, I think. Wikipedia on “additive basis” makes it clear: “In additive number theory,
398.
▲
by
jonsen
6y ago
So that’s why Johnny can’t subtract. There’s a corresponding problem with + and - . For a + b = c we should of course write the equivalent a = b - c . If 2 + 3 = 5 then 2 = 3 - 5 .
399.
▲
by
jonsen
6y ago
and I’d suggest delete “on two non-negative integers” which is irrelevant for bitwise operations.
400.
▲
by
jonsen
6y ago
Yes, but look at your example here. The value is decremented to -6 after the 6. iteration, right? That’s what Thorrez is saying at the start of this thread.
401.
▲
by
jonsen
6y ago
Agree regarding programming. But this could be common sense: Start 0 1. iteration -1 2. iteration -2 3. iteration -3 ... at the end of the |INT_MIN|’th iteration INT_MIN
402.
▲
by
jonsen
6y ago
Yes. My point here is that Thorrez at the start of this thread may have a point: Start 0 1. iteration -1 2. iteration -2 3. iteration -3 ... at the end of the |INT_MIN|’th iteration INT_MIN
403.
▲
by
jonsen
6y ago
But they can say both of: - From 1 to 10 there is 9 - From 1 to 10 there is 10 How far from 0 to INT_MIN - it depends.
404.
▲
by
jonsen
6y ago
7 times through the loop is 6 iterations. It’s the first time that is iterated, repeated.
405.
▲
by
jonsen
6y ago
> ...well-accepted definition of "iteration"... To say or perform again; repeat. synonym: repeat. To utter or do again; repeat: as, to iterate an advice or a demand. Repeated. So x+1 times is x iterations.
406.
▲
by
jonsen
6y ago
Book: Biochemical Pathways: An Atlas of Biochemistry and Molecular Biology : https://www.amazon.com/Biochemical-Pathways-Biochemistry-Mol...
407.
▲
by
jonsen
6y ago
> Unix was far too large and unwieldy for microcomputer hardware of the time “UniFLEX was very similar to Unix Version 7”: https://en.m.wikipedia.org/wiki/UniFLEX
408.
▲
by
jonsen
6y ago
Ten dollars on the Kindle store, or buy it used.
409.
▲
by
jonsen
6y ago
> There might be better ways to introduce pi other than the ration of the circumference of a circle to it's radius. Sure, the ratio of the circumference of a circle to it's diameter ;-)
410.
▲
by
jonsen
6y ago
Nice puzzle and an even nicer solution, yes. If anyone is interested I solved it this way: SPOILER BELOW HERE! Over time each coin will do a sequence of head - tail - x tails - head - tail - x tails ... where x is determined by chanc
411.
▲
by
jonsen
6y ago
> If it was random, you still get the same information No, if both you and Monty pick a door at random, there’s 1/3 chance of a car behind each door. If Monty’s door reveals a goat, it’s 50/50 for the remaining two doors. It’s
412.
▲
by
jonsen
6y ago
> nothing to do with the original point. Agree, but my point is that the Monty puzzle is a bad example to use educational if not careful.
413.
▲
by
jonsen
6y ago
It does not clearly say that it is Monty’s procedure to - allways open a door - allways open a door with a goat - and not open a door at random Often discussion of the solution reveals that this is not clear.
414.
▲
by
jonsen
6y ago
> It's quite straightforward ... No it is not, unless it is explicitly stated that Monty knows where the car is and that he deliberately opens a door with a goat. Just look at the discussions in the comment here.
415.
▲
by
jonsen
6y ago
> Monte Hall was one example. Monty Hall is not a good example, unless it is explicitly stated that Monty knows where the car is and that he deliberately opens a door with a goat. Just look at the discussions in the comment here.
416.
▲
by
jonsen
6y ago
Your comment made me remember the book Cognition in the Wild : https://mitpress.mit.edu/books/cognition-wild
417.
▲
by
jonsen
6y ago
37.5 work hours times 45 work weeks divided by 365 days times 24 hours.
418.
▲
by
jonsen
6y ago
It’s comparable, US number is one way. With one hour commute per work day it’s a little over 1/5 then. With four hour daily commute you are over 1/4 but not close to 1/3 of your time.
419.
▲
by
jonsen
6y ago
Many people do this. Yes but average is lower. First Google hit: Value for the US (Minutes): 26.6 : https://www.indexmundi.com/facts/united-states/quick-facts/a...
420.
▲
by
jonsen
6y ago
...an activity that takes up 1/3 of your time. Averaged over the year standard work hours in my country, 37.5h/week, is less than 1/5 of your time.
More ›