Readit News logoReadit News
kaelwd commented on Using Git add -p for fun (and profit)   techne98.com/blog/using-g... · Posted by u/fixedprog
fainpul · 11 days ago
Dark mode looks fine to me: light gray on black.

Light mode is terrible: dark gray on black.

kaelwd · 11 days ago
You get light grey? The headings are #101828 and body text #364153 on #0a0a0a for me.
kaelwd commented on Valve: HDMI Forum Continues to Block HDMI 2.1 for Linux   heise.de/en/news/Valve-HD... · Posted by u/OsrsNeedsf2P
undersuit · 15 days ago
You can get TVs with a "PC slot" like the Sharp M431-2. Just need a Steam Slot.
kaelwd · 14 days ago
That's only 60Hz though. Are there any dumb TVs with 120+ Hz VRR and HDR?
kaelwd commented on CSS now has an if() conditional function   caniuse.com/?search=if... · Posted by u/aanthonymax
cubefox · 20 days ago

  padding: 1em;
  padding: if(style(--size: "2xl"): 1em; else: 0.25em);
> Note: Remember to include the else condition. In if()-supporting browsers, if no else value were included and --size was not equal to "2xl", the padding would be set to initial.

This is counterintuitive. You would expect the above falls back to "1em" (from "padding: 1em;") when "else" is not specified. Instead, omitting "else" apparently means "else: initial".

kaelwd · 19 days ago
That's the same as regular css variables unfortunately

    padding: 1em;
    padding: var(--padding);
With no fallback value that resolves to padding: unset if the variable is not defined. The only ways I know of to work around this are style queries:

    padding: 1em;
    @container style(--padding) {
      padding: var(--padding);
    }
Or cascade layers:

    @layer base {
      padding: 1em;
    }
    @layer override {
      padding: var(--padding, revert-layer);
    }

kaelwd commented on Shai-Hulud Returns: Over 300 NPM Packages Infected   helixguard.ai/blog/malici... · Posted by u/mrdosija
I_am_tiberius · a month ago
I guess you should never use the latest versions of libraries.
kaelwd · a month ago
Everyone needs to switch to pnpm and enable https://pnpm.io/settings#minimumreleaseage

Pnpm also blocks preinstall scripts by default.

kaelwd commented on Nearly all UK drivers say headlights are too bright   bbc.com/news/articles/c1j... · Posted by u/YeGoblynQueenne
macintux · a month ago
Meanwhile, brake lights and running lights are frequently too dim because of an aesthetic obsession with "blacking out" tail lights.
kaelwd · a month ago
Luckily that's illegal in my country, instead we have the opposite problem where new cars have LED taillights that are just as blindingly bright as their headlights.
kaelwd commented on Drawing Text Isn't Simple: Benchmarking Console vs. Graphical Rendering   cv.co.hu/csabi/drawing-te... · Posted by u/PaulHoule
9999_points · a month ago
This is "an entire doctoral research project in performant terminal emulation".

https://github.com/microsoft/terminal/issues/10362#issuecomm...

kaelwd · a month ago
The author of that issue has a whole video series about it: https://www.youtube.com/watch?v=hxM8QmyZXtg

A way faster terminal emulator demo: https://github.com/cmuratori/refterm

And a terminal rendering benchmark tool: https://github.com/cmuratori/termbench

kaelwd commented on Trump pardons convicted Binance founder   wsj.com/finance/currencie... · Posted by u/cowboyscott
Terr_ · 2 months ago
> Article V, Section 5

We should amend it [0] so that any state may subdivide within its own borders without the consent of the Senate, provided that no subdivision is smaller (less-populous) than the smallest current state.

In other words, small states don't have to give up their disproportionate representation in the Senate... but they cannot use that power to monopolize being small either. Any state above a certain size (>2x the smallest) may decide that its constituents are best-served by fission.

This adheres to Article V, Section 5, since no state is being deprived of "equal suffrage": Each state has 2 senators, just like always.

[0] https://en.wikipedia.org/wiki/Admission_to_the_Union

kaelwd · 2 months ago
California would have to split into 68 separate states to have the same representation as Wyoming.
kaelwd commented on Why do we need MAC addresses?   immibis.com/blog/why-mac-... · Posted by u/immibis
negative_zero · 3 months ago
Network people: Do we even need MAC addresses anymore? Can we not just have a UUID that the device generates?

They seem to get more abuse over time i.e. MACs are how a car is uniquely identified and authenticated with fast charging CCS networks for Autocharge.

kaelwd · 3 months ago
> Can we not just have a UUID that the device generates?

They kinda are already, your phone probably uses a random MAC address for each network it connects to.

kaelwd commented on Pnpm has a new setting to stave off supply chain attacks   pnpm.io/blog/releases/10.... · Posted by u/ivanb
postepowanieadm · 3 months ago
If everyone is going to wait 3 days before installing the latest version of a compromised package, it will take more than 3 days to detect an incident.
kaelwd · 3 months ago
The chalk+debug+error-ex maintainer probably would have noticed a few hours later when they got home and saw a bunch of "Successfully published" emails from npm that they didn't trigger.
kaelwd commented on DuckDB NPM packages 1.3.3 and 1.29.2 compromised with malware   github.com/duckdb/duckdb-... · Posted by u/tosh
ebfe1 · 4 months ago
Is it just me who think this could have been prevented if npm admins put in some sort of cool off period to only allow new versions or packages to be downloaded after being published by "x" amount of hours? This way the npm maintainer would get notifications on their email and react immediately? And if it is urgent fix, perhaps there can be a process to allow npm admin to approve and bypass publication cool off period.

Disclaimer: I don't know enough of npm/nodejs community so I might be completely off the mark here

kaelwd · 4 months ago
NPM could also flag releases that don't have a corresponding github tag (for packages that are hosted on github), most of these attacks are publishing directly to NPM without any git changes.

u/kaelwd

KarmaCake day38July 11, 2021View Original