HNHacker News
TopNewBestAskShowJobs

MatmaRex

273 karma · joined September 15, 2013

https://www.mediawiki.org/wiki/User:Matma_Rex
submissionscomments
MatmaRex··on FAA lets Boeing sign off on 737 MAX, 787 airworthiness certificates again
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.

MatmaRex··on Fired by Google for creating the Google workspace CLI
Testing the keyboard.

tasting the rainbow

MatmaRex··on The quiet renovation at Bitwarden
No, KeepassXC has an option to merge databases, it never caused me any trouble. I have a similar setup to parent commenter.
MatmaRex··on Trick users and bypass warnings – Modern SVG Clickjacking attacks
Reminded me of: https://lcamtuf.coredump.cx/css_calc/
MatmaRex··on Leaving Gmail for Mailbox.org
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.
MatmaRex··on Fun with uv and PEP 723
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

MatmaRex··on ALICE detects the conversion of lead into gold at the LHC
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.

MatmaRex··on Notion Mail is out
Their own Gmail client. I have yet to see one that works with normal email.
MatmaRex··on Some flag emojis aren’t working on Chrome on Windows
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;').
MatmaRex··on Just: Just a Command Runner
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.
MatmaRex··on DELETEs Are Difficult
If you read the linked article, it explains that this is exactly what they do.
MatmaRex··on Playground Wisdom: Threads Beat Async/Await
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".
MatmaRex··on Playground Wisdom: Threads Beat Async/Await
You can await in a normal function in better languages, just not in JavaScript.
MatmaRex··on The ‘contain’ CSS property
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.
MatmaRex··on Ask HN: Server-side HTML Templates based on DOM?
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.

MatmaRex··on Can turning office towers into apartments save downtowns?
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.
MatmaRex··on Embed Crystal code directly in Ruby
Everything old is new again… https://github.com/seattlerb/rubyinline (2002)
MatmaRex··on LilyPond: Music notation for everyone
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...
MatmaRex··on Useful Uses of cat
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
MatmaRex··on Rook to XSS: How I hacked chess.com with a rookie exploit
You can read about some things they did, and didn't! https://samy.pl/myspace/tech.html
MatmaRex··on Rook to XSS: How I hacked chess.com with a rookie exploit
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.
MatmaRex··on Shadow: New browser engine made almost entirely in JavaScript
https://shadow.goose.icu/?https://nostalgia.wikipedia.org/wi...
MatmaRex··on What every software developer must know about Unicode in 2023
﷽

𒐫

𒈙

꧅

MatmaRex··on What it takes to pass a file path to a Windows API in C++
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).
MatmaRex··on What it takes to pass a file path to a Windows API in C++
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.
MatmaRex··on Exploring EXIF
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.
MatmaRex··on Abbrev: A hidden Ruby gem
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).

MatmaRex··on Windows NT on 600MHz machine opens apps instantly. What happened?
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.
MatmaRex··on Benzene Exposure Alters Endocrine Activity
That’s the word for “gasoline” in Italian and a number of other languages. https://en.m.wikipedia.org/wiki/Gasoline#/languages
MatmaRex··on 300ms Faster: Reducing Wikipedia's total blocking time
No, jQuery falls back to Sizzle when a selector is not supported by native querySelector, either due to using jQuery-specific extensions, or due to lacking browser support.
Page 1 of 5Next →