Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gloria_mundi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
gloria_mundi
4mo ago
I don't understand the point of the inverse sticky technique. Scrolling too fast still breaks the experience (content refuses to scroll), and in a way that, at least to me, feels more disruptive than blanking for a fraction of a second
2.
▲
by
gloria_mundi
2y ago
I haven't read all of that, but the problem at hand seems significantly less complicated. We're mapping the numbers from 1 to 1000 to distinct numbers up to 8258, and the README claims that we should expect 2.1% of the resulting n
3.
▲
by
gloria_mundi
2y ago
I'm not sure I understand the prime density thing. Of the numbers up to 8258, about 12.5% are prime. Accounting for the fact that about a quarter of these primes ends in 101, i.e. cannot occur, I would expect about 10.7% = 12.5% * (3&#
4.
▲
by
gloria_mundi
2y ago
Remember that transformers are "inside-out", i.e. `StateT (ExceptT e m) a` is isomorphic to `m (Except e (State a))`. If we want to keep state if an exception occurs, you need a `m (State (Except e a))` which is `ExceptT e (StateT
5.
▲
by
gloria_mundi
2y ago
Isn't mixing of effects exactly what monad transformers are for? AFAICT you want an `ExceptT e ST` for some exception type `e`. https://hackage.haskell.org/package/mtl-2.3.1/docs/Control-M...
6.
▲
by
gloria_mundi
2y ago
Both, since a transpiler is a type of compiler.
7.
▲
by
gloria_mundi
2y ago
Not actually all-pairs max flow, you can fix the source and consider all possible sinks. In the AoC problem we also know that the min-cut is 3, so we can abort the flow algorithm as soon as we have found a 4-flow.
8.
▲
by
gloria_mundi
2y ago
grep doesn't eat the colours, apt detects that it is not outputting to a TTY and suppresses the colours. Try `printf 'a \e[36mb\e[0m c\n' | grep a`, the colour is preserved just fine. Some tools have an option to force colour
9.
▲
by
gloria_mundi
2y ago
Recently came across something similar for Germany, although less versatile: https://dfiuhsfdfiu.neocities.org/
10.
▲
by
gloria_mundi
2y ago
Some switch around the "s" and "sh" sounds, so it is pronounced roughly like "shtratsiatella". "st" at the beginning of a word is pronounced as "sht" in German.
11.
▲
by
gloria_mundi
3y ago
The International Fixed Calendar: https://en.wikipedia.org/wiki/International_Fixed_Calendar
12.
▲
by
gloria_mundi
3y ago
It is, of course, still freely available if you plug the title into your favourite search engine. From the US Defense Technical Information Center: https://apps.dtic.mil/sti/tr/pdf/AD0296046.pdf Also in the I
13.
▲
by
gloria_mundi
3y ago
Unicode is useful for languages other than English, and has nothing to do with anyone's libido.
14.
▲
by
gloria_mundi
3y ago
Note that there's also a /usr/bin, with complete GNU coreutils (or at least most of them), and vim.
15.
▲
by
gloria_mundi
3y ago
They also got the conversion wrong: 1.5 liters is 0.4 gallons, not 0.3.
16.
▲
by
gloria_mundi
3y ago
Another related Trek episode - the one I expected you to link: VOY's "Distant Origin" - https://wikipedia.org/wiki/Distant_Origin
17.
▲
by
gloria_mundi
3y ago
There are 13 root name server addresses, but most (all?) of these use anycast, i.e. there are actually several servers with the same address, and your traffic will usually be routed to the one closest to you. There are over 1500 root name s
18.
▲
by
gloria_mundi
3y ago
On the same site: > Benefits of Tor over I2P > ... > - C, not Java (ewww) It's a joke.
19.
▲
by
gloria_mundi
3y ago
> To be absolutely clear, the expressions `seq f (putStrLn "hello")` and `seq (f undefined) (putStrLn "hello")` should both not evaluate anything and cause the string hello to be printed rather than raising an excepti
20.
▲
by
gloria_mundi
3y ago
That's just how government works in general though. [0] "Why is someone privileged to arrest me but I can't keep them locked up in my house?" [0] https://en.wikipedia.org/wiki/Monopoly_on_violence
21.
▲
by
gloria_mundi
4y ago
> In fact, I think we could replace the corner with just normal slash, "/", write = to the right of the divisor and spell out the digits of the result to the right of it; the substraction chain will still go down the page.
22.
▲
by
gloria_mundi
4y ago
It's called $^M, and you have to explicitly fill it with garbage.
23.
▲
by
gloria_mundi
4y ago
I did exactly that about a year ago (except it was testing instead of unstable). You need to pass some extra flag to APT because Ubuntu and Debian use different version schemes, so you wouldn't get updates anymore -- might have been &#
24.
▲
by
gloria_mundi
4y ago
Probably this: https://github.com/dflemstr/rq