ZeroLimits

Today I Learned

Stuff I learned today

2026-11-20

On macOS, you can use SF Mono as your editor font in Zed with:

{
  "buffer_font_family": ".AppleSystemUIFontMonospaced"
}

This doesn't show up in the suggested list of fonts, and it gives a "Value is not accepted" warning if you put it in, but it works!

If you know some Swift, you can find more font names with a script like:

import AppKit

let font = NSFont.monospacedSystemFont(
    ofSize: 14,
    weight: .regular
)

print(font.fontName) // .AppleSystemUIFontMonospaced

2026-10-29

Airplane fuel is stored in the wings!

I didn't know this, and I found out when I was looking at an article about Elysian that mentioned it. I asked one of my friends studying aerospace engineering about it, and he gave me a pretty good explanation:

Yeah, less plumbing to the engines and it provides stress relief against lift

He also added:

Extra fuel that doesn't fit in the wings go in the bottom of the fuselage

For those like me who don't know what the fuselage is, it's the big long tube in the middle of the plane where everyone sits and the luggage goes.

Elysian is trying to build electric aircraft, and so I assumed that most planes must be some hybrid of electric and fuel, like how cars are. But it turns out that most of them still burn kerosene. I asked why:

Not really cause batteries are super heavy and take too long to recharge

People have tested flight with batteries but it's only enough to power unmanned vehicles

Neither of us knew how Elysian works with batteries, but his guess was:

They must have massive batteries in there

Even then, they're only able to manage a maximum range of 750km.

However, that's not the whole story, because:

Realistic trips only use 2/3 of the range capacity

I assume that's because they need some margin in case of emergencies. However, that reduces the range to 500km, which is about the distance from London to Dublin. Even at the maximum of 750km, that's still only London to Geneva.

Also, supposedly the plane being electric makes it quieter. I'm not sure how that works, because the Elysian plane is a propeller plane, and the sound of propeller planes mainly comes from:

Air interaction with the propeller blades and propeller hub itself

It's not like the propeller blades are suddenly gonna stop interacting with the air if the engine is electric.

I think the idea of an electric plane is quite interesting, and I'm looking forward to seeing how it plays out in practice. It'll probably take a while before these things are as widespread as our kerosene-based planes today, but reducing our dependency on fossil fuels for something as big as air travel would do a lot to help the current situation, especially given that:

a trip from London to New York burns 40 tonnes of fuel

I think with the short range, these planes might be really good for domestic flights and other short-distance flights like between countries in Europe. According to Elysian, their plane can:

replace nearly 50% of all scheduled flights, reducing aviation CO2 emissions by around 20%

That's big if true!

2026-10-15

The cp -R command works slightly differently on macOS and Linux. For instance, let's say I want to recursively copy a directory called directory/ into dist/. On macOS, if I do:

cp -R directory dist

That'll create a directory structure like this:

dist/
  directory/
    files...

But if I add a trailing slash to directory:

cp -R directory/ dist

then it'll copy the files inside directly into dist/:

dist/
  files...

However, both of these commands have the same output on Linux:

# both of these do the same thing
cp -R directory dist
cp -R directory/ dist
dist/
  directory/
    files...

In order to get files... to be directly under dist/, you need to add a dot to the end of directory/:

cp -R directory/. dist
dist/
  files...

To be fair, this is pretty clearly written in the cp manpage:

-R    If source_file designates a directory, cp copies the directory and the entire subtree connected at that point.
      If the source_file ends in a /, the contents of the directory are copied rather than the directory itself.
      This option also causes symbolic links to be copied, rather than indirected through, and for cp to create
      special files rather than copying them as normal files.  Created directories have the same mode as the
      corresponding source directory, unmodified by the process' umask.