News for hackers. Stuff that matters.

MatmaRex

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.

Re:Fired by Google for creating the Google workspace CLI on Wednesday June 24, 2026 @12:21AM (#48655091)
Testing the keyboard.

tasting the rainbow

Re:The Quiet Renovation at Bitwarden on Monday May 18, 2026 @05:27PM (#48185914)
No, KeepassXC has an option to merge databases, it never caused me any trouble. I have a similar setup to parent commenter.
Re:Leaving Gmail for Mailbox.org on Friday August 22, 2025 @11:15PM (#44992791)
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.
Re:Fun with uv and PEP 723 on Tuesday June 24, 2025 @09:27PM (#44372862)
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

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.

Re:Notion Mail Is Out on Tuesday April 15, 2025 @11:54AM (#43694651)
Their own Gmail client. I have yet to see one that works with normal email.
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;').
Re:Just: Just a Command Runner on Saturday December 07, 2024 @02:39PM (#42352255)
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.
Re:DELETEs Are Difficult on Sunday December 01, 2024 @02:06PM (#42290016)
If you read the linked article, it explains that this is exactly what they do.
Re:Playground Wisdom: Threads Beat Async/Await on Saturday November 23, 2024 @11:32AM (#42221711)
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".
Re:Playground Wisdom: Threads Beat Async/Await on Saturday November 23, 2024 @12:27AM (#42219362)
You can await in a normal function in better languages, just not in JavaScript.
Re:Contain – CSS Cascading Style Sheets – MDN on Monday November 18, 2024 @12:50AM (#42170045)
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.
Re:Ask HN: Server-side HTML Templates based on DOM? on Saturday July 20, 2024 @01:14PM (#41017973)
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.

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.
Re:Embed Crystal code directly in Ruby on Wednesday April 10, 2024 @10:31PM (#39997840)
Everything old is new again… https://github.com/seattlerb/rubyinline (2002)
Re:LilyPond: Music Notation for Everyone on Friday February 23, 2024 @10:06PM (#39488783)
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...
Re:Useful Uses of Cat on Wednesday February 21, 2024 @11:39PM (#39463324)
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
Re:How I hacked chess.com with a rookie exploit on Saturday January 27, 2024 @12:07AM (#39152776)
You can read about some things they did, and didn't! https://samy.pl/myspace/tech.html
Re:How I hacked chess.com with a rookie exploit on Saturday January 27, 2024 @12:02AM (#39152749)
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.
﷽

𒐫

𒈙

꧅

Re:What it takes to pass a file path to a Windows API in C++ on Sunday September 24, 2023 @02:18PM (#37635703)
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).
Re:What it takes to pass a file path to a Windows API in C++ on Sunday September 24, 2023 @02:14PM (#37635669)
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.
Re:Exploring EXIF on Wednesday September 06, 2023 @10:20PM (#37413962)
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.
Re:Abbrev: A Hidden Ruby Gem on Friday August 18, 2023 @12:29PM (#37178065)
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).

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.
Re:Benzene Exposure Alters Endocrine Activity on Tuesday June 20, 2023 @02:54PM (#36408773)
That’s the word for “gasoline” in Italian and a number of other languages. https://en.m.wikipedia.org/wiki/Gasoline#/languages

Older »