Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
goodside
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
goodside
5y ago
That’s my point — you can never trust a KN95 because it’s trivial to manufacture something that looks and feels like a KN95 but isn’t real. A NIOSH N95 isn’t like that — the straps require an unusual amount of stretch and tension, and they’
122.
▲
by
goodside
5y ago
We do. Masks exactly like the ones you’re describing are widely sold in hardware stores. They’re properly known as elastomeric respirators. They’re clunky, hideous, and they greatly impair communication far more than a disposable N95 or KN
123.
▲
by
goodside
5y ago
I find the Moldex 2200 uncomfortable too, along with any of their masks that use the cheap elastic double-straps. The good Moldex masks are the ones that have an adjustable “Handi-Strap”, which is absolutely amazing. These straps are made o
124.
▲
by
goodside
5y ago
If your straps are welded, are you sure you’re using a NIOSH N95? N95 straps are, as far as I know, always stapled instead of welded. I don’t believe welds are strong enough to hold the force required by a NIOSH N95. The straps on higher-qu
125.
▲
by
goodside
5y ago
This is one (of many) reasons I always buy NIOSH N95’s. The most expensive part of a good N95 is, surprisingly, the straps — good straps that expand all the way around the head without snagging your hair are expensive, so you can be reasona
126.
▲
by
goodside
5y ago
Please appreciate you’ve just included a stderr paste enumerating all the letters of the alphabet in a question asking why anyone would use two letters when one would do.
127.
▲
by
goodside
5y ago
“Embarrassingly parallel execution” means that it parallelizes (only) problems that are embarrassingly parallel. The meaning is clear — if you want to be really pedantic about it, problems are “parallelizable” and only execution is “paralle
128.
▲
by
goodside
5y ago
This also applies to wardrobe in nearly every job — professional clothing can be arbitrarily expensive. Even retail workers usually have buy their own plain clothes in the one allowable color.
129.
▲
by
goodside
5y ago
The ranking criteria of this list make it very unrepresentative of compressors used in the real world. The benchmark they’re using for example is the sum of the compressed file plus the compressor binary: this penalizes memorization of the
130.
▲
by
goodside
5y ago
“I would challenge you to name any (non-simple) problem where traditional AI methods are still state of the art.” Lossless file compression. As far as I know none of the algorithms in widespread use are neural-based, despite the fact that c
131.
▲
by
goodside
5y ago
I don’t want to discourage the author, but this seems like a misguided use of decorators. Maybe there’s some scenario where it’s practical to do version checks only at function boundaries, but why limit yourself that? It’s already easy (and
132.
▲
by
goodside
5y ago
This blog post may not have imposter syndrome, but it is an imposter — an advertisement for the over-mentioned host domain, wrapped in an anodyne non-opinion perfect for sharing on your LinkedIn.
133.
▲
by
goodside
5y ago
Yes — the core problem is you can’t be guaranteed exclusive write access to a path without actually creating a file or directory. The warning in the docs ( https://docs.python.org/3/library/tempfile.html#tempfile.mk
134.
▲
by
goodside
5y ago
Python mktemp has been deprecated since 2003. I there’s a race condition that allows a malicious process to slip in a file or symlink with different permissions at the path mktemp returns.
135.
▲
by
goodside
5y ago
This post is overconfidently written, and its thesis is wrong. A few others have mentioned CUPED (Kohavi et al. 2013), a way of doing exactly what this blog post says you can’t. CUPED is a great starting point for anyone new to the subject
136.
▲
by
goodside
5y ago
This sounds like a nice idea in theory, and makes a lot of sense for polished, publicly visible libraries where convenience trumps simplicity, but the edge cases can lead to confusing failures and bloat otherwise simple code — as you noted,
137.
▲
by
goodside
5y ago
I’d speculate it’s meant to mimic Perl’s `qw()` operator, which is like `str.split()` in Python. The module was originally written for contexts where you’re processing SQL result sets with fixed schemas, and before Python these tasks were t
138.
▲
by
goodside
5y ago
After your example, `Point` is a class. You are not creating a record, you’re creating the class that defines the schema of fields in any record. A class can be defined without using the `class foo:` syntax, and in this case the class is re
139.
▲
by
goodside
5y ago
Stepping back, I think part of your surprise toward `lru_cache` stems from familiarity with out-of-core or distributed caches, where the immutability of cached values is simply imposed by the architecture. In a distributed cache, modifying
140.
▲
by
goodside
5y ago
This isn’t special behavior that lru_cache “implements”, it’s intrinsic to how mutable contained objects work. Imagine you `lru_cache` a zero-argument function that sleeps for a long time, then creates a new temp file with random name and r
141.
▲
by
goodside
5y ago
The semantics of assignments in Python are not the same as assignment in C. When you assign a local like `x = some_expression` in Python, you can read it as, “Evaluate `some_expression` now, and call that result `x` in this local namespace.
142.
▲
by
goodside
5y ago
This is how I would expect it to work. Caching mutable collections is a legitimate use case, distinct from caching the immutable values those collections contain. `lru_cache` does not wrap your cached values in container types on its own, s
143.
▲
by
goodside
5y ago
I think the motivation there historically was to encourage use of generators and generator expressions — it’s definitely intentional, because things like `apply` and `reduce` used to be builtins but now they’re imports. If you reach for ite
144.
▲
by
goodside
5y ago
Python, pretty much exactly.
145.
▲
by
goodside
5y ago
Until recently, I also thought this was a major problem. My old solution was to always pair .ipynb files with proper .py modules of the same name, so the .ipynb always starts with `%run foo.py` and just calls functions. However, I recently
146.
▲
by
goodside
5y ago
VSCode Insiders has huge improvements in this area. I switched to Insiders specifically for this and it’s great. You get linting, auto-formatting, vim-mode keyboard input, and even git diff for .ipynb. I don’t run Jupyter’s browser UI at
147.
▲
by
goodside
5y ago
IPython doesn’t help you view, edit, or execute .ipynb files.
148.
▲
by
goodside
6y ago
That's not the issue. Example.com is just distinctive for supporting both http and https, whereas modern sites redirect you to the https version. Chrome remembers which domains support https (which is nearly all of them) for when the d
149.
▲
by
goodside
6y ago
This is a great instance of https://xkcd.com/1172/ for me. "example.com" is the only domain name I intentionally load over HTTP in Chrome, so this change breaks my workflow. Many for-pay wifi networks (e.g. o
150.
▲
by
goodside
6y ago
Sexual orientation has a known association with handedness (same-sex-attracted people of either gender have higher odds of being left-handed/ambidextrous than do straight people) so it’s reasonable a priori for a correlation to exist i
More ›