How I organize browser tabs

I didn’t realize I had a system for this until I did.

My system: I only ever open one browser window (OK, two on my work computer where I use MS Edge profiles for different Microsoft accounts).

When I open a new tab, I scan the tabs already open and move it left or right so that the tabs remain ordered by decreasing priority. “Priority” means something like, how annoyed would I be if I closed this by accident?

  • High priority: Things that I keep open all day (email, GitHub issues).
  • Medium priority: Documentation or reference material for the current task.
  • Low priority: Random ephemera, landing pages from clicking a confirmation email, article I already read but just need to copy a quote from, etc.

Whenever I start to have more than 15 or 20 tabs, I get an instinctual, cramped feeling and start axing tabs from right to left until I arrive at one that I still want open. Usually, this leaves two or three tabs.

Sometimes I accidentally close things that I still needed, but I tell myself that the time wasted reopening them is offset by the time saved searching through dozens of tabs to find the right one.

Is this system any good?

Music videos

A side effect of my refusal to subscribe to Spotify (I just buy albums on Bandcamp or used CDs) is that when someone sends me a song to listen to, I usually look it up on YouTube and end up watching the music video. Because of this, there are some songs or artists that I like more than I might have without the video because the video adds an additional layer of interpretation.

I think I had mentally blocked myself from verbalizing this thought before because of my background as a musician. I would like to think of myself as someone who values the music itself and whose opinion of a song isn’t swayed by the addition of a video track. After all, a music video is kind of like an advertisement for the song or artist, a reference rather than the thing itself.

But then, I should have realized my susceptibility to music videos sooner, because a big part of jazz school was learning how to watch jazz performances: Musicians on stage employ a wide vocabulary of visual and bodily cues to steer the ship while improvising.

And I went to a school whose music buildings were right next to the film school—I think they actually had a small scoring stage somewhere. Lots of my classmates did collaborations with film or animation students, but I went the other way, preferring to incorporate “analog” art like poetry and fiction into my music by setting texts to melodies. A missed opportunity.

Reasons it’s hard to abandon a smartphone

Reasons (excuses?) that I cannot downgrade to a dumbphone:

  • 2FA apps. You can set up a generic TOTP program on your computer, but that’s not very convenient, and some organizations explicitly require you to use Microsoft or Google Authenticator. (I don’t know how they enforce this given that the algorithm for generating TOTP codes from the secret is an open standard.)
  • My apartment building used to require an app to unlock the package room. The app is proprietary and probably not secure. The only alternative to the app is to bother the staff to open the package room for you.
  • During the pandemic, Korea adopted a contact tracing system that involved scanning a QR code in an app on your phone at every business you entered. Many businesses would let you just write your phone number on a clipboard as an alternative, but some (Starbucks) required the app. Was the app secure? Has the database ever been breached? I sure hope not.
  • Concert tickets from dice.fm. They have an exclusive deal with many venues that makes them the only place you can buy tickets, and their system requires you to store your tickets in their app, for anti-fraud reasons or whatever. (At smaller venues, if you don’t have the app, they can manually verify your name on the guest list.)

I don’t like that a smartphone has become a de facto requirement participation in society. Smartphones have only existed for a few years. The main purpose of the “prove you own a (smart)phone” tests that most commercial and government services put you through these days seems to be to combat spam: Acquiring and maintaining a non-VOIP phone number that can receive SMS messages is too expensive for most spammers to do at scale. But again, I resent that the burden of proof is on me to prove I’m not a spammer instead of on the service to prove I am.

Circular regression when you already know the period

This Stack Exchange answer reminded me of a useful data science trick. In short, if you try to model yy as a sinusoidal function of xx, you obtain a regression formula that is nonlinear in the parameters. However, if you know the period, you can use a trig identity to linearize the formula and compute an exact least-squares fit.

Read more →

pipx install topgrade

Many Rust projects, such as Topgrade, also publish themselves on PyPI. This means you can install them using pip or pipx as follows:

pipx install topgrade
pipx install zizmor

This pulls a binary (wheel) directly from PyPI, which obviates the need to compile from source—handy on low-powered machines where cargo install can take a while to run or exhaust the memory (ask me how I know).

If you maintain a Rust project, it looks pretty easy to enable this installation method using Maturin.

Speaking of Topgrade: Topgrade is a helpful command-line tool that automatically updates everything it can on your system (think sudo apt update && sudo apt upgrade && flatpak update && ...). I recently got a PR accepted that enables Topgrade to run conda clean, which can free up gigabytes of space on a well-used conda installation. I also have an open PR (perhaps merged or rejected by the time you read this) that lets you configure additional conda environments to upgrade besides base.