Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
JackC
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
JackC
6y ago
> Of course it's a lot easier and less risky to simply post a mocking tweet and walk away. This tweet seems to be from Jason Donenfeld, who worked for years to refactor linux kernel crypto APIs as part of upstreaming wireguard, appa
92.
▲
by
JackC
6y ago
"And to be fair, nonprofits don't try very hard to discourage such illusions. They can't afford to. People running nonprofits are almost always anxious about money. They can't afford to talk back to big donors." Non
93.
▲
by
JackC
6y ago
There's an official Python library for Playwright as well: https://github.com/microsoft/playwright-python
94.
▲
by
JackC
6y ago
`brew install openssl` or `brew upgrade openssl` will still break pyenv virtualenvs, though they can then be fixed with `pyenv rehash`. Maybe this makes sense? I didn't sort through why it was happening.
95.
▲
by
JackC
6y ago
Regarding Marsh v Alabama: "Recently the case has been highlighted as a potential precedent to treat online communication media like Facebook as a public space to prevent it from censoring speech. However, in Manhattan Community Access
96.
▲
by
JackC
6y ago
"Common sense" isn't really a helpful frame here, though it's an interesting story. The way I'd frame the story is: if you can do human-centered design at a professional level (a skill you can teach but that most pe
97.
▲
by
JackC
6y ago
Rust's dbg! is one of those ideas that felt obvious and beautiful once I saw it. Apparently it's inspired by Haskell.[0] I'd love to see it officially picked up in other languages. [0] https://rust-lang.github.io&#
98.
▲
by
JackC
6y ago
My impression as a non-expert from reading the last thread is: DeepMind didn't "solve" protein folding in the game theory sense that perfect play is now possible and there are no better solutions to be had. That's probab
99.
▲
by
JackC
6y ago
Right, for packages distributed as source (vs. having prebuild "binary wheels") the dependencies are specified in python code. Example from one comment on the bug: setup( install_requires=[random.choice(["urllib3"
100.
▲
by
JackC
6y ago
I'm really excited by what Playwright has been up to on the python side recently with the pytest-playwright package. Browser-testing a Django app can be as simple as: def test_homepage(live_server, page): page.goto(live_serve
101.
▲
by
JackC
6y ago
It sounds like that's how it used to work, and then it changed for some reason, maybe to do with the size of the list and a need for faster updates. Actually that unknown exposes the problem with the original article's demand that
102.
▲
by
JackC
6y ago
> Those who consider that Apple’s current online certificate checks are unnecessary, invasive or controlling should familiarise themselves with how they have come about, and their importance to macOS security. They should also explain ho
103.
▲
by
JackC
6y ago
Sounds like there's a distinction under the FCPA between actual bribery (illegal) and grease payments (legal), where an official requests a bribe to do their job. https://en.wikipedia.org/wiki/Foreign_Corrupt_Pract
104.
▲
by
JackC
6y ago
Interesting. The next paragraph explains more what they mean by that: "Jeffrey Almond, a visiting professor of microbiology at William Dunn School of Pathology, University of Oxford, told Sky News: 'All the current vaccines we hav
105.
▲
by
JackC
6y ago
> But if you are trying to heat your house to a livable temperature while it’s -20 outside, your efficiency is terrible. Amazingly (to me), there are now air source heat pumps that stay > 100% efficient down to -20C before regular ele
106.
▲
by
JackC
6y ago
> I think the title of "47 events" is greatly misleading If I understand correctly, it's not the title that's misleading but the term "simulation." They're only talking about simulating what would have
107.
▲
by
JackC
6y ago
I agree. When I teach intro computer programming to law students I often provide snacks, because I think it makes the class more effective.
108.
▲
by
JackC
6y ago
Has anyone used something like this to report performance regressions? I don't as much want to assert that performance stays below X seconds on particular tests, and more want a report on pull requests if any tests regressed more than
109.
▲
by
JackC
6y ago
django_assert_num_queries is helpful for this as well -- basically any time I'm writing a test for something where I've spent time thinking about query efficiency in the first place, I'll throw in an assert. (I actually use a
110.
▲
by
JackC
6y ago
Yeah, I definitely expect this to bite some people, if I'm understanding correctly. A plausible scenario (among many) would be: soft launch a site, show it to some early stakeholders, have Wayback archive everything via Always Online,
111.
▲
by
JackC
6y ago
I like the coding challenge we designed for hiring where I work. A few things about it that work: - It's designed to take about the same time as the round of interviews it replaces (half a day), and we clearly communicate how polished
112.
▲
by
JackC
6y ago
The way I think about this, there are some aphorisms that work as actual design principles, and some that are just used to defend a decision you have already made to someone who doesn't need to understand it. "There's no such
113.
▲
by
JackC
6y ago
"Having a Python C module gives significantly more power and performance, but comes with costs. it requires more code, it’s harder to find good documentation; and few features are easily accessible. While C modules appear to be an unde
114.
▲
by
JackC
6y ago
Cool! If the OP or anyone wants to try this across all US caselaw (as opposed to just Supreme Court) we recently released a data set of citation data at the Caselaw Access Project: https://case.law/download/citation_gra
115.
▲
by
JackC
6y ago
The challenge is to make no more than two buy-sell transactions: "we must find the maximum profit that can be made assuming at most two no overlapping BUY – SELL transactions."
116.
▲
by
JackC
6y ago
What's the security posture of actix-web these days? The impression I got from the temporary deletion of the repo and maintainer switch about six months ago[1] was that actix-web was sort of a research platform rather than a production
117.
▲
by
JackC
6y ago
This wikipedia section is a good place to start seeing how it works: https://en.wikipedia.org/wiki/Patent_claim#Basic_types_and_c... What I remember from law school is: let's say you're drafting a patent, and
118.
▲
by
JackC
6y ago
When ACLU brings a lawsuit on behalf of an individual, it’s common for the government to moot the lawsuit by changing the treatment of that one person, or offering a settlement to that one person, or even deporting that person, without chan
119.
▲
by
JackC
6y ago
For me the next step after print debugging was adding an `import pdb; pdb.set_trace()` shortcut to my editor (I use "pdb<tab>" as the shortcut, but whatever works.) Do that whenever you would add a print statement and re-run
120.
▲
by
JackC
6y ago
pip-tools should really be included here. That's the single-purpose tool that handles environment reproducibility, if you're going with the single-purpose-tool route of pyenv + pip + venv instead of the all-in-one route of poetry&
More ›