Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
webstrand
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
webstrand
10mo ago
That thrashing is probably executable pages getting evicted, and then having to be reloaded from disk when the process resumes. Even with no swap and overcommit disabled, you'll still get thrashing before the OOM killer gets triggered.
62.
▲
by
webstrand
10mo ago
Somewhat shockingly, apparently DOM does not give access to the raw scrollwheel data.
63.
▲
by
webstrand
10mo ago
Oh, if I recall WSL is a Ubuntu VM running on top of Windows, so you'd need to configure USB forwarding for your security key. Or run ssh-agent on the windows side and forward it into the VM?
64.
▲
by
webstrand
10mo ago
I just use -sk variants with a FIDO authenticator. Being able to port the keys to another trusted machine (i.e. replacing a computer) if I need to is nice. And it's as secure as a secure enclave. I do prefer to use a unique key for eve
65.
▲
by
webstrand
10mo ago
The SAFETY comment is just a brief description of the important points the author considered when writing the block, and perhaps points you need to consider if you modify it. Do people just blindly assume that comments in an algorithm are c
66.
▲
by
webstrand
10mo ago
Yeah per-tab container socks5 is a killer feature I use every day.
67.
▲
by
webstrand
10mo ago
This only works so long as you're not interesting to anyone. You never know what past information associated with your identity will be weaponized against you. By the government, corporations, or individuals to justify harming you. Ev
68.
▲
by
webstrand
10mo ago
Anything that uses JSX syntax, for instance. Any kind of downleveling, though that's less important these days most users only need polyfills, new syntax features like `using` are not widely used. Minification, and bundling for web is
69.
▲
by
webstrand
10mo ago
Oh that's weird, in the hacker news search index, this link was posted 4 days ago.
70.
▲
by
webstrand
10mo ago
I like how z-index works, currently. And though I agree with the article, it should apply to all elements by default, I'm not sure how you'd do stacking differently in a way that'd work any better than the current situation?
71.
▲
by
webstrand
10mo ago
PyPI doesn't count? (or rust's cargo)
72.
▲
by
webstrand
10mo ago
I was just playing with bwrap for isolating npm project actions from the rest of my system. bwrap --unshare-pid --dev-bind / / --tmpfs /home --bind "$(pwd)" "$(pwd)" bash it seems to work fairly w
73.
▲
by
webstrand
10mo ago
From my testing, as far as I've been able to tell it no longer has any impact on accessibility. The element itself does not appear in the tree, this makes sense display:contents is non-interactive. But all of the children correctly app
74.
▲
by
webstrand
10mo ago
Yeah, though I find in practice I use `display: contents` far more than I do subgrid. Contents effectively deletes the node for layout purposes, but it still participates in the CSS cascade so you can use it in selectors, even `:hover` work
75.
▲
by
webstrand
11mo ago
Container queries don't solve the responsive to sibling sizes issue that grid/flex can solve. And frustratingly container queries force your container element to be a new stacking context, unlike flex/grid. I am sad that usin
76.
▲
by
webstrand
11mo ago
Subgrid is really cool, but I want to note that for the first trivial example, you could make the children participate in grid layout by doing ul { display: contents } it's more efficient, if you don't need subgrid featur
77.
▲
by
webstrand
11mo ago
And to me it's just message passing, no inheritance, and with or without unobservable internal state. So long as you're calling procedures that are determined by the "type" of the object, whether dynamic or statically di
78.
▲
by
webstrand
11mo ago
Blocking cookies client side will block all cookies regardless of value. Hence the usefullness of law to disambiguate.
79.
▲
by
webstrand
11mo ago
This one < https://pmc.ncbi.nlm.nih.gov/articles/PMC1567289/ > seems to show that it is at least _safer_. But inhaling large amounts any form of particulate is ultimately dangerous.
80.
▲
by
webstrand
11mo ago
Not all cookies are bad for the user, for instance the one that keeps you logged in or stores the session id. Those kind were never banned in the first place. Blocking cookies locally doesn't allow you to easily discriminate between tr
81.
▲
by
webstrand
11mo ago
In a way it is asking the user. Date formatting rules are traditionally tied to locale, so the user picks their locale and their expected date formatting rules are derived from that. On Linux you can mix and match via LC_*= environmental va
82.
▲
by
webstrand
11mo ago
That is the correct and only sane way to determine date format, timezone is not the same as formatting preference. But yeah it sucks. Assuming you're using the en-US locale, have you tried using the en-CA locale? It has ISO8601 formatt
83.
▲
by
webstrand
11mo ago
Yes they are, they get put in /refs/notes? git fetch origin refs/notes/*:refs/notes/* is the command you have to run to actually clone remote refs if you're making a working-copy clone?
84.
▲
by
webstrand
1y ago
I can't get over my fear of subtrees after accidentally nuking one of my repos by doing a rebase across the subtree commit. I've found that using worktrees, with a script in the main branch to set up the worktrees, works pretty we
85.
▲
by
webstrand
1y ago
You're right, I got that part wrong, git actually fetches all of the remote commits (but not all of the refs, many things are missing, for instance notes). But a clone of your clone is not going to work the same way, since remote branc
86.
▲
by
webstrand
1y ago
It's a little more complex than that. Yes git can work in a peer-to-peer fashion, but the porcelain is definitely set up for a hub-and-spoke model, given how cloning a remote repo only gives you a partial copy of the remote history. Th
87.
▲
by
webstrand
1y ago
git clone --mirror <remote> is another good one to know, it also makes a bare repository that is an exact clone (including all branches, tags, notes, etc) of a remote repo. Unlike a normal clone that is set up for local tra
88.
▲
by
webstrand
1y ago
Do you know how the le9 patch compares to mg_lru? The latter applies to all memory, not just files as far as I can tell. The former might still be useful in preventing eager OOM while still keeping executable file-backed pages in memory?
89.
▲
by
webstrand
1y ago
I've experimented with no-swap and find the same thing happens. I think the issue is that linux can also evict executable pages (since it can just reload them from disk). I've had good experience with linux's multi-generation
90.
▲
by
webstrand
1y ago
The lawmakers did not have any involvement. The executive branch unilaterally abused its power to declare that encryption was a munition, to work around the fact it had no other power to restrict it without convincing the legislature to act
More ›