Published under Mango Paper, 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 Paper, 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 Paper, 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.

Published under Mango Umbrella, Jan 7, 2025

The most frustrating experience in watchOS development is to get your Apple Watch show up in Xcode run destinations.

Once LLMs take over writing code, you can spend all your time just unpairing and pairing your watch.

Mango Baby in 2024

Published under Mango Changelog, Jan 1, 2025

Mango Baby has seen 1 million activities logged in 2024.

1 million activities logged in 2024.

Mango Baby has seen 1 million activities logged in 2024.

I'm grateful for each parent and caregiver to trust Mango Baby with your little one(s).

I have a lot of features planned in 2025, and I hope you and your growing families have a wonderful year ahead too.

Page 1 of 51 Next page »