Better HN
topnewbestaskshowjobs
Log inSign up

MatmaRex

273 karma · joined Sep 15, 2013 (13y ago) · 129 submissions

https://www.mediawiki.org/wiki/User:Matma_Rex
Submissions

comment 4mo ago · link · parent

In Europe "no 737 MAX" basically means "no Ryanair". Depending on how you feel about Ryanair, avoiding the 737 MAX can be very easy.

In other places, like the US, they may not be practical to avoid.

comment 5mo ago · link · parent

Testing the keyboard.

tasting the rainbow

comment 6mo ago · link · parent

No, KeepassXC has an option to merge databases, it never caused me any trouble. I have a similar setup to parent commenter.

comment 11mo ago · link · parent

Reminded me of: https://lcamtuf.coredump.cx/css_calc/

comment 1y ago · link · parent

I don't think that's true. Some years ago I did a free trial with them (did not pay anything). More recently I decided to actually sign up (for a paid account) and the email address I used for the free trial years ago was not available. I eventually got that username only after contacting support and giving them the date on which I started that free trial, to prove it was me.

comment 1y ago · link · parent

Broke: Dependency management used for shell scripts

Woke: Dependency management used for installing an interpreter for a better programming language to write your script in it

Bespoke: Dependency management used for installing your script

comment 1y ago · link · parent

This very article states:

> This long-standing quest, known as chrysopoeia, may have been motivated by the observation that dull grey, relatively abundant lead is of a similar density to gold, which has long been coveted for its beautiful colour and rarity.

comment 1y ago · link · parent

Their own Gmail client. I have yet to see one that works with normal email.

comment 1y ago · link · parent

You're right, but the author's approach still works by accident, because ClearType is disabled when drawing text to canvas. I am not sure why that's the case, but I would guess it's because the subpixel colors can only be computed correctly when the background color is known (and static), and with a canvas, the background can be drawn later or animated. ClearType is only enabled for normal text on the page, and many CSS properties incidentally disable it presumably for similar reasons (e.g. 'will-change: opacity;').

comment 1y ago · link · parent

You can keep your commands simple enough so that they can be executed by both `sh` and `cmd.exe`. If you need anything more complex than invoking other programs, `&&`, `|` and `>`, it's time to rewrite your build script in a real programming language anyway.

comment 1y ago · link · parent

If you read the linked article, it explains that this is exactly what they do.

comment 2y ago · link · parent

It seemed to me that the previous poster wanted a way to wait for the result of a promise (in a blocking manner), and I meant that this is available in other languages. You're right that it is not usually spelled "await".

comment 2y ago · link · parent

You can await in a normal function in better languages, just not in JavaScript.

comment 2y ago · link · parent

Probably. I've encountered a case where setting `contain` for unrelated reasons noticeably decreased the GPU memory use as reported by the browser: https://phabricator.wikimedia.org/T373066#10096943 (search for "As a bonus"). Wikipedia is pretty light, so in absolute terms it wasn't really meaningful, but I could see that on a more complex site.

comment 2y ago · link · parent

XSLT would be a classic answer, but it's a bit of a lost ancient technology these days. I've only used it in the browser for a lark, but I suppose you'd find mature (old) libraries for working with it easily enough.

PHPTAL is another system I've heard of (but never used) that seems to be built on this idea. It is also very mature (old). https://phptal.org/

In general working with DOM doesn't seem to be very cool these days. Everyone uses template systems that are glorified string concatenators, like Mustache, and doesn't care about security issues due to bad escaping.

16.

GitHub no longer shows commits to mirror repos you starred on your profile(github.com ↗)

1 points · by MatmaRex · 2y ago · discuss

comment 2y ago · link · parent

I mean… yes? I don't see what's so confusing. In an office building, if anything goes wrong, an alarm goes off and everyone leaves, and insurance pays for damages. In a residential building, you have people sleeping, sick, possessions they might not be willing to leave behind, babies, pets… It makes sense for the safety requirements to be different.

comment 2y ago · link · parent

Everything old is new again… https://github.com/seattlerb/rubyinline (2002)

comment 2y ago · link · parent

It's used to render sheets and audio in Wikipedia articles (I hope this answers several of your questions). Example: https://en.wikipedia.org/wiki/Humpty_Dumpty#Lyrics_and_melod...

comment 2y ago · link · parent

It is more pleasant to the eye if you remove the spaces:

    <infile some_cmd >outfile
Just like you wouldn't add spaces in the middle of '2>&1' when redirecting stderr to stdout:

    <infile some_cmd >outfile 2>&1

comment 2y ago · link · parent

You can read about some things they did, and didn't! https://samy.pl/myspace/tech.html

comment 2y ago · link · parent

It used to be that the only programs capable of somewhat correctly parsing HTML were web browsers, each one of them produced different results, most weren't open-source, and none were reusable as libraries. If you wanted to parse HTML in... looks up what MySpace was written in... ColdFusion, you were all out of luck. Since then people spent years developing specifications and writing the libraries, so now it's not a big deal.

comment 3y ago · link · parent

https://shadow.goose.icu/?https://nostalgia.wikipedia.org/wi...

comment 3y ago · link · parent

﷽

𒐫

𒈙

꧅

comment 3y ago · link · parent

In addition to the examples already given, JavaScript as well (although modern implementations do wacky stuff with the internal representations, the APIs are required to expose only UTF-16).

comment 3y ago · link · parent

The built-in "robocopy" tool (normally used for making backups / mirrors) is capable of deleting any messed up directories like that, by mirroring an empty directory over it.

comment 3y ago · link · parent

Apparently, each coordinate is an array of 3 rational values representing the degrees, minutes and seconds, where the numerator and denominator are 32-bit unsigned integers (plus a separate field to represent the sign). That's a lot of precision.

comment 3y ago · link · parent

npm and gem behave like this, although I don't know if they use this exact method to figure out the abbreviations.

git has something similar, although it's disabled by default (help.autocorrect option).

comment 3y ago · link · parent

Some of it has to do with changes to browsers’ acceptance of cookies. If you need to set cookies on multiple domains you control (common for SSO), you used to be able to do it by loading a pixel image or tiny script from each domain. Now, however, that’s considered a third-party cookie, and rejected by many browsers. The only reliable way now is to redirect the whole page, and then redirect back.
12345