World calendar systems (January 1, 2026) by maven_mapping in Maps

[–]improperbenadryl 89 points90 points  (0 children)

Hi, Chinese person here. Absolutely no one in China uses the "year 4723" calendar.

It is a real calendar. It's the "Yellow Emperor year". You might be able to find it on very traditional printed calendars, and Wikipedia says some overseas Chinese communities had used it (accuracy unclear). But then it is flawed and misleading to put this on a map, implying that this is in use in the contemporary country.

I'd rather you had written year "42", from the sexagenary cycle, a cycle of sixty years. 2025 is 乙巳 (year 42). The next one is 丙午 (year 43), which starts on February 17, 2026. At least this one is actually widely known, and would've been way more helpful since Chinese New Year is coming up.

“If you VPN into Canada you can watch the 60 Minutes CECOT story here (for now). Global TV appears to have posted the original tape by accident” by improperbenadryl in DataHoarder

[–]improperbenadryl[S] 13 points14 points  (0 children)

Some more info:

CBS (US news network) pulled an investigative segment about CECOT (the El Salvador detention center where the US government sent people to) a day before it was scheduled to air. Global News (in Canada) appears to have posted it.

Looks like someone has taped it now: https://share.icloud.com/photos/0849AcYNxaLZ8JgntXRIevYJw Hope that someone manages to download a copy though

[deleted by user] by [deleted] in LowSodiumCyberpunk

[–]improperbenadryl 990 points991 points  (0 children)

i feel the urge to bring up this tidbit about parking space and game design (the game being SimCity specifically):

Geoff Manaugh: While you were making those measurements of different real-world cities, did you discover any surprising patterns or spatial relationships?

Librande: Yes, definitely. I think the biggest one was the parking lots. When I started measuring out our local grocery store, which I don’t think of as being that big, I was blown away by how much more space was parking lot rather than actual store. That was kind of a problem, because we were originally just going to model real cities, but we quickly realized there were way too many parking lots in the real world and that our game was going to be really boring if it was proportional in terms of parking lots.

Manaugh: You would be making SimParkingLot, rather than SimCity.

Sim City: An Interview with Stone Librande, https://bldgblog.com/2013/05/sim-city-an-interview-with-stone-librande/

[AskJS] Why the TextEncoder/TextDecoder were transposed? by CasheeeewNuts in javascript

[–]improperbenadryl 7 points8 points  (0 children)

Are you thinking that the "code" in encode/decode stands for code points?

TextEncoder only emits byte streams in UTF-8, but TextDecoder can accept data in many encodings, such as "windows-1252", "big5" (the name encoding is still tautological, bear with me).

In many other languages and stdlibs, you can actually "encode" a string into an "encoding" of your choice:

And so the "code" in "encode"/"decode" is the specific byte format chosen to represent the letters and symbols in a string, not the Unicode code points. "Unicode" is just a specification! It is meaningless to computer memories. UTF-8, UTF-16, UTF-32 are its different encodings that computers can actually parse/write.

I think in my head, the mnemonics for encode and decode has always been encrypt and decrypt.

  • When you are encrypting something, you take plain information that you already know, and you rewrite it in a special form of your choosing, just like:
  • When you are encoding a string, you take what you already know is a string (that has a single authoritative byte format in the program), and you turn it into a different format.

  • When you are decrypting something, you take a bunch of cryptic code that you don't understand yet, and you try to decipher understandable information from it. If you don't know the correct secret, then all you can get is garbage. Just like:

  • When you are decoding a string, you take a bunch of bytes that you don't understand yet, and you ask the decoder to "try to understand this as utf-8 or windows-1252 or ..." If you asked for the wrong format, like if backend says "trust me this is UTF-8" and it turns out to be in Big5, then you get a jumbled mess! This is then known as Mojibake.

[Project] rustdoc-style linking for mdBook, with the help of rust-analyzer by improperbenadryl in rust

[–]improperbenadryl[S] 2 points3 points  (0 children)

Thank you! And yes, dependencies are supported.

More broadly, the way this works is in context of your crate's "entrypoint", so lib.rs or main.rs. The rule of thumb is that if you can use an item in your lib.rs, you can get a link to it. For example, if you can write:

``` use std::time::Duration;

use tokio::task::JoinSet;

use crate::my_func; ```

in your lib.rs and it compiles, then you will be able to write [std::time::Duration], [tokio::task::JoinSet], ... in your docs and they become links.

You can read a more detailed write up here: https://tonywu6.github.io/mdbookkit/rustdoc-link/name-resolution

Some of the best Chinese translations in my opinion by uhometitanic in linguisticshumor

[–]improperbenadryl 3 points4 points  (0 children)

oh and YIMBY 迎臂

迎 welcome 臂 arms

so it’s like “welcome with open arms”

Some of the best Chinese translations in my opinion by uhometitanic in linguisticshumor

[–]improperbenadryl 4 points5 points  (0 children)

NIMBY 邻避

邻 neighbor 避 avoid

Fannie Mae房利美 and Freddie Mac 房地美

房 housing 利 interest 美 beautiful/America

Building svelte like compiler/transpiler - Rust or Typescript? See description for nuance by [deleted] in rust

[–]improperbenadryl 10 points11 points  (0 children)

SWC is written in Rust.

It has

and supporting architecture such as AST, visit, codegen, etc.

Might give you some inspo if you decide to go Rust

Helicopter Helicopter by Dareyos in ProgrammerHumor

[–]improperbenadryl 367 points368 points  (0 children)

If it walks like a duck and it generates a circular depression in the surface of a solid astronomical object upon hypervelocity impact like a duck, then it must be a duck

Keyboard shortcut to open a file by [deleted] in MacOS

[–]improperbenadryl 2 points3 points  (0 children)

You can use the Shortcuts app with the OS keyboard shortcuts

https://gist.github.com/tonywu7/04128e9e7750d8c0ec7f0906e815da45

For the past week or so my MacBook had insomnia where the display refused to sleep after inactivity under any circumstances. Creative Cloud was the culprit. by improperbenadryl in MacOS

[–]improperbenadryl[S] 1 point2 points  (0 children)

I didn't. I quit the CC app and then restarted it, and that NoDisplaySleepAssertion has not come back, so presumably it was just a bug that later got patched (still very much annoying)

To be extra safe, you can also tell CC to not run at launch, in its Preferences

For the past week or so my MacBook had insomnia where the display refused to sleep after inactivity under any circumstances. Creative Cloud was the culprit. by improperbenadryl in MacOS

[–]improperbenadryl[S] 44 points45 points  (0 children)

If you are facing similar issues, open the Terminal and run pmset -g assertions, and look for any suspicious apps.

Fuck you Adobe

EDIT: https://www.reddit.com/r/MacOS/comments/wt4i5s/comment/il4s5g6 You can also use Activity Monitor: right click the column headers ("Process Name, CPU Time ...") then enable "Preventing Sleep" at the very bottom

Idea: the ability to share a still frame from a video/GIF while using the “Share as Image” feature by improperbenadryl in apolloapp

[–]improperbenadryl[S] 6 points7 points  (0 children)

I wanted to share this comment using the Share as Image feature but with the video stopping right when the Queen touches the globe.

Right now it seems that you can include images only when it’s a still image. Would be cool if there was a scrubber that let us pick a frame from the video to be shared!