∞ When [Dr. Bryant Lin] Got Cancer, He Didn’t Quit. He Taught a Class About It

Published under Mango Linked, Mar 11, 2025

Kate Selig writes:

Dr. Bryant Lin, who teaches medicine at Stanford University, was given a terminal diagnosis. He wanted his students to understand the humanity at the core of medicine.

Changelog v2025.2

Published under Mango Changelog, Mar 1, 2025

Umbrella updates

  • 2025-02-01 Blog posts are now synced to my Bluesky account.
  • 2025-02-01 Mango Snippets is now a regular Node, and the snippets are just blog posts.

New nodes

New posts

Published under Mango Shorts, Feb 18, 2025

Look, there is a crossroad ahead. And I'm equally excited and nervous about two of the three directions.

Published under Mango Shorts, Feb 17, 2025

I had a dream a few days ago. I was trying to align a model, swimming in a sea of neurons and performing surgeries on them.

Then, I ran into a circuit of neurons. They spoke to me, "Turn around, are you sure we are neurons of the model?"

As I was turning around, I suddenly realized that my neurons and the model's neurons had become interconnected and indistinguishable.

How to Use SwiftFormat with SweetPad

Published under Mango Snippets, Feb 10, 2025

SweetPad is a VS Code extension for Swift/iOS development, with swift-format formatting built in. However, I prefer using SwiftFormat by Nick Lockwood for its comprehensive formatting options.

To use SwiftFormat with SweetPad, update the formatter path and remove the default --in-place argument in VS Code settings:

Sweetpad's formatter settings in VS Code

Here's my settings.json:

{
    "[swift]": {
        "editor.formatOnSave": true,
        "files.autoSaveWorkspaceFilesOnly": true,
        "editor.defaultFormatter": "sweetpad.sweetpad"
    },
    "sweetpad.format.args": [
        "${file}"
    ],
    "sweetpad.format.path": "swiftformat"
}

Published under Mango Shorts, Feb 2, 2025

Now that titles on my website's posts are optional, and posts are synced to both Mastodon and Bluesky, I'll try to post everything to my website first.

Hello, universe 👋

A Small Interaction in Cursor

Published under Mango Snippets, Feb 2, 2025

A lot of us are familiar with GitHub Copilot's multi-line auto-completions. As LLM models improve, they're becoming better productivity multipliers. However, auto-completion is just one way IDEs can leverage LLMs.

I'd like to share a very small interaction I had in Cursor today.

I wrote my website's backend in Go myself. At the bottom of my blog posts, there's a page navigation section that looks like:

« Previous page ---- Page 2 ---- Next page »

I wanted to add the total number of pages:

« Previous page - Page 2 of 51 - Next page »

I originally wrote the following code with a bug (both totalPosts and numPostsPerPage are int in Go):

    data.TotalPosts = totalPosts
    data.NumPages = totalPosts / numPostsPerPage

Instead of directly fixing it, I added a leading comment: // This should be rounded up:. Cursor immediately suggested a fix.

Using comment to fix a small bug.

Cursor suggesting an edit after adding a leading comment.

This is not an auto-completion, but a suggested edit!

Changelog v2025.1

Published under Mango Changelog, Feb 1, 2025

Umbrella releases

New posts

Updated nodes

  • 2025-01-18 Replaced Nest Wifi AC2200 (2nd Generation) with eero Pro 6E in my Setup
  • 2025-01-01 Added Bose QuietComfort SC Noise Cancelling Headphones in my Setup

Operation AIM

Published under Mango Paper, Jan 28, 2025

Last week I needed quick access to Python's standard library documentation outside of work. Having built custom URL shortener mappings twice in corporate environments, I really missed the productivity boost from these shortcuts.

Fortunately and also unfortunately, I decided to build it for the third time. In the past, I avoided public availability because the productivity boost also requires a very short url for the shortener. Then I remembered desktop Chrome's custom site shortcuts feature. Once configured, the domain length becomes irrelevant.

You can now use https://mangoumbrella.com/go/<FULLY.QUALIFIED.SYMBOL> to jump directly to Python's standard library reference docs. Here are some examples:

To set it up in desktop Chrome, add a new search engine with your preferred keyword (like go) and URL https://mangoumbrella.com/go/%s. Then just type go dict.update in the address bar to get to the docs you need.

New Documentation Feature

Published under Mango Umbrella, Jan 14, 2025

Good documentation sites make it easy for users to highlight specific sections. That's exactly what I did to Mango Baby's Support page:

  1. Click the link icon to highlight the specific section.
  2. Click the copy icon to copy the link to this section.

Example link: mangobaby.app/support#multiple-profiles-with-siri

This feature is a result of me pair programming with Claude.

« Previous page Page 3 of 53 Next page »