HNHacker News
TopNewBestAskShowJobs

jfhr

117 karma · joined February 10, 2022

https://jfhr.de
submissionscomments
jfhr··on The problem with new URL(), and how URL.parse() fixes that
> You're supposed to address this by adding the base URL on the end, but then correctly obtaining that can be brittle.

Isn't that what document.baseURI is for? At least that's my understanding:

new URL("/whatever", document.baseURI)

jfhr··on Mastering DOM manipulation with vanilla JavaScript
Unless you need to support ancient browsers [1], I'd go the easy way and leave the URL parsing to the browser, e.g. `['http:', 'https:', 'mailto:', 'tel:'].includes(new URL(value, location.origin).protocol)`

[1] https://caniuse.com/url

jfhr··on Charles Schwab facing internal meltdown after C-level abruptly reverses on RTO
Context: <https://riabiz.com/a/2023/6/16/citing-concern-for-its-unique...>
jfhr··on Debian 12 “Bookworm”
> The new systemd-resolved package will not be installed automatically on upgrades as it has been split into a separate package. If using the systemd-resolved system service, please install the new package manually after the upgrade, and note that until it has been installed, DNS resolution may no longer work as the service will not be present on the system.

will installing over the internet work without DNS resolution?

jfhr··on No Screens Cafe
Luftschloss?

<https://en.wiktionary.org/wiki/Luftschloss>

jfhr··on Who Benefits When Salary Info Is Public?
https://archive.is/yDVZ4
jfhr··on Ask HN: Why isn't anyone creating or promoting an alternative to Twitter?
what about tumblr? that's where seemingly a lot of former twitter users are moving to
jfhr··on Dear grocery store owners: I don’t work for you
just wait until he hears about vending machines.
jfhr··on I Write Like checks which famous writer you write like
Interestingly I got Doctorow too for (technical) blog posts. For fiction stories it gave me: James Joyce, Arthur Clarke, and Kurt Vonnegut.
jfhr··on Optimizing images with the HTML &lt;picture&gt; tag
yeah I should've thought of that. fixed it now