HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mb7733

no profile record

comments

mb7733
·19 hari yang lalu·discuss
An intuitive motivation for the solution in the article (2n choose n). For an n*n grid you have to you will take 2n steps, n "over" and n "down". All that matters is the order of the steps. So if you think of there being 2n "slots", you have to pick n to be "over", and the rest are forced to be "down". So it's n choose 2n indeed.

You can also think of it another way, without using the formula combinations, and only the fact that there are n! permutations of n objects. We can think of this a permutation of 2n items, made up of two groups of n identical items each. Using (2n!) will overcount, due to the fact that each of the "over" steps are identical, and similarly for the "down" group. We have cut down our answer by dividing out all of the repeated sequences. There will be n! redundancies for all the ways we can permute the "over" group and, the same for the "down" group. So this results in (2n!) / (n! * n!), which is exactly equal to 2n choose n. See [1] which explains permutations with repetion this in general. [Note: We pretty much re-derived the formula for combinations!]

[1] https://brilliant.org/wiki/permutations-with-repetition/
mb7733
·2 bulan yang lalu·discuss
All news links are blocked on FB in Canada, including American sources
mb7733
·3 bulan yang lalu·discuss
It wasn't published in 2025. It was published in 2009 and the rights reverted to the author in 2025, who released it for free.
mb7733
·4 bulan yang lalu·discuss
The question is where are all the new apps or features that are _written_ using LLMs, since everyone is 100x more productive now.
mb7733
·4 bulan yang lalu·discuss
Preferences vary on both sides of the Atlantic. Another comment on this post complains that Americans pour beer wrong because they _do_ pour with a head.

> Also in the US (probably due to lack of training and the customer too embarrassed to complaining) tend not to fill it the brim (and so not even 16''). I've seen 2-3 inch heads and asked them to top it up. They look at me as if I've just insulted George Washington
mb7733
·4 bulan yang lalu·discuss
I was skeptical about the claim that 80% of soldiers refuse to fire their weapons, so I did a little reading and it seems like the original source has been pretty much debunked. This 2011 article sums it up: https://scholars.wlu.ca/cmh/vol20/iss4/4/ but it's been doubted for decades.
mb7733
·4 bulan yang lalu·discuss
Corruption is crime but not all crime is corruption. Stealing copper isn't corruption.
mb7733
·4 bulan yang lalu·discuss
Overall I agree with the approach, but just wondering, why do the first point if you are already doing the last two?

> * Use the issue id at the start of every commit message for that issue

> * Use a single branch per issue, whose name also starts with the issue id

>* Use a single PR to merge that branch and close the issue

To me the noise at the start of every message is unnecessary, and given a lot of interfaces only display 80 chars of the message by default, it's not negligible.
mb7733
·5 bulan yang lalu·discuss
> programmers who don't care about code quality and thus brutally reject code that is not of exceptional quality.

Is there a typo here? If they don't care about code why would they reject code based on quality?
mb7733
·5 bulan yang lalu·discuss
How do you know when the articles were written?
mb7733
·5 bulan yang lalu·discuss
You don't need to worry about traffic or parking when you take a leisurely stroll to the store.
mb7733
·6 bulan yang lalu·discuss
> What we tend to forget is that even with the catastrophic effects of climate change, the Earth is still vastly more inhabitable than other planets in the solar system.

Speak for yourself. I have never forgotten that Earth is more inhabitable than Mars or Jupiter
mb7733
·6 bulan yang lalu·discuss
Really fun. The undo/redo functionality is much appreciated.
mb7733
·6 bulan yang lalu·discuss
> Canada has a similar opioid epidemic but a different supply chain, largely skipping over Mexico. Because Canada saw similar falls in fentanyl strength, the researchers hypothesise that the supply shock was caused by something changing in China.
mb7733
·6 bulan yang lalu·discuss
FL Studio (fka Fruity Loops) uses this layout, or something very close to it.
mb7733
·7 bulan yang lalu·discuss
Yeah and (1) the codegen produces massive headers that slow compilation of anything that touches them (2) the generated classes are really awkward to use. Not a big fan of the experience of protobuffer generated code in a large C++ code base.

It's lead to a huge layer of adapters and native c++ classes equivalent to the protobuffers classes to try and mitigate these issues.
mb7733
·8 bulan yang lalu·discuss
> In a real-indexed vector, that notion doesn't apply. It's "infinity plus one" all the way down: whatever real value you pick to start with, x, there's no delta small enough to add to it such that there's no number between x and x+d.

Just to clarify, uncountability isn't necessary for this. It's true for the rational numbers too, which are countable.
mb7733
·8 bulan yang lalu·discuss
Standard deviation of what
mb7733
·9 bulan yang lalu·discuss
> If you run a Jimmy John’s, most of your customers will pay with credit cards. Everything runs through banks. You can’t launder that easily.

You don't need to launder it, it was acquired legally
mb7733
·10 bulan yang lalu·discuss
Interesting! On the guitar when alternate tunings are used, the pitches are written as they sound.

I wonder if maybe the difference is due to the fact that alternate fingerings are very common for guitar (because of having more strings spaced closer together). So notating pitches assuming a specific fingering doesn't make sense.

Plus I don't think the mapping from the staff to muscle memory for guitar is nearly as strong because we have frets.