An unexpected bit of forward thinking

I think I’ve mentioned here before that sometimes I’ll run into a computer problem and Googling for the answer leads me to a post I wrote (and forgot about) years earlier. I had a similar experience today in the physical world. | Continue reading


@leancrew.com | 2 hours ago

Tweaking settings (or not) on my new MacBook Pro

I got my new MacBook Pro last Friday, and so far only two things have annoyed me. The first I got used to much faster than I thought I would, and the second I’ve turned off in System Settings. | Continue reading


@leancrew.com | 8 days ago

Kilometers, miles, Fibonacci, and Lucas

Earlier this month, I got an email from Anthony SEROU about my post on the golden ratio and converting between miles and kilometers. They suggested using consecutive Fibonacci numbers as a quick way to do the conversion, e.g., 5 miles is 8 kilometers. And if the amount you’re con … | Continue reading


@leancrew.com | 9 days ago

Incrementing file version numbers with Python and Perl

Yesterday my old vaudeville partner,1 Dan Sturm, wrote a post describing a Keyboard Maestro macro he wrote that increments the version number in a file name. It’s the sort of thing I could have used years ago when I was writing reports and analysis scripts that often had to be up … | Continue reading


@leancrew.com | 11 days ago

Semi-automated plotting

The Matplotlib code in the last post was initially generated with a Typinator abbreviation that I tweaked to make the final script. After writing the post, I decided it would be nice to have a second, similar abbreviation. This post shows you both. | Continue reading


@leancrew.com | 14 days ago

Ticks tricks

As I often do after a post with a graph, I’m going to follow up by showing how I made it. In this case, the plotting was done with Matplotlib, the Python graphing library with which I’m most familiar. | Continue reading


@leancrew.com | 16 days ago

Rescaling a graph

The business pages of the Chicago Tribune usually have a little graphic showing a plot of some economic data. There’s no story to go along with the graph; it’s meant to stand on its own. In yesterday’s edition, it was a graph of unemployment over the past decade or so: | Continue reading


@leancrew.com | 17 days ago

Apple Health trends

There are some odd things about the way Apple tracks your progress in the Health app. These oddities aren’t new with the recent OS updates. They’ve been a part of the app for as long as I can remember; I’ve just finally gotten around to talking about them. | Continue reading


@leancrew.com | 19 days ago

Houses of cards and triangular numbers

November’s issue of Scientific American has a fun little puzzle about houses of cards. I solved it one way and SciAm solved it another, so I thought it worth a quick post. | Continue reading


@leancrew.com | 25 days ago

Sinusoidal sunlight

I started my morning walk earlier than usual today, and it was still fairly dark out. I thought about this post from last year and the Daylight line in the graph: | Continue reading


@leancrew.com | 28 days ago

Rebar and reinforced concrete

A recent episode of the 99% Invisible podcast, “Brilliantly Boring,” covers a topic near and dear to my heart: reinforced concrete—more specifically, the rebar that does the reinforcing. The show does an excellent job in a short period. I just want to fill in some details. | Continue reading


@leancrew.com | 1 month ago

Expanding

Regular readers1 know that I like to watch mathish YouTube videos from Numberphile, Stand-up Maths, and Mind Your Decisions. Unfortunately, this leads YouTube’s machine learning system to believe that I want to watch all math videos, no matter the level or quality. So it keeps pu … | Continue reading


@leancrew.com | 1 month ago

Touch and run

Here’s one last bit of followup on my Finder/Terminal tool posts. In the first post on the topic, I mentioned that I had created a bunch of zero-length JPEG files using the touch command. And in both the first and second posts, I talked about how long the sel command took when th … | Continue reading


@leancrew.com | 1 month ago

Improved Finder/Terminal tools

A couple of days ago, I got an email from Loren Halter, who had some improvements to my Finder/Terminal tools. I was going to add another update to that post, but realized I had more to say about Loren’s stuff than would fit comfortably in an update. So here we are with a new pos … | Continue reading


@leancrew.com | 2 months ago

Am I blue?

The popular “Is my blue your blue” game is questionable as a test of color perception, in that monitor settings and lighting conditions differ, but it presents its results in a way that I really like. | Continue reading


@leancrew.com | 2 months ago

Finder/Terminal tools

When I’m working at my Mac, some things are most effectively done using the Finder’s GUI and some are best done through the command line in the Terminal.1 I switch between the two with the help of a handful of simple automations. I know I’ve written about one of them before, but … | Continue reading


@leancrew.com | 2 months ago

Two things in ninety-nine minutes

One of the best things about not being an Apple blogger is that I don’t feel compelled to comment on everything Apple does. I was reminded of this when I read Stephen Hackett’s roundup of yesterday’s event. It was my favorite post of the day, and he came up with a great angle on … | Continue reading


@leancrew.com | 2 months ago

Kilometers and the golden ratio

Regular readers know I enjoy reading John D. Cook’s blog and often comment on it here. But I was a little creeped out by it a couple of days ago. It started off with something I’ve been thinking about a lot over the past several weeks, and it was as if he’d been reading my mind. | Continue reading


@leancrew.com | 2 months ago

The Electoral College again, this time with aggregation

After the last post, I had a conversation with ondaiwai on Mastodon about the to_markdown and agg functions in Pandas. After seeing his example code here and here, I rewrote my script, and I think it’s much better. | Continue reading


@leancrew.com | 2 months ago

Pandas and the Electoral College

A couple of weeks ago, I used the Pandas groupby function in some data analysis for work, so when I started writing my previous post on the Electoral College, groupby came immediately to mind when I realized I wanted to add this table to the post: | Continue reading


@leancrew.com | 2 months ago

What I didn't learn about the Electoral College

People my age1 like to talk about how our education was superior to that of these kids today. I can say with absolute certainty that one aspect of my education was terribly deficient: how the Electoral College works. | Continue reading


@leancrew.com | 2 months ago

Screenshots and faded memories

A couple of weeks ago, Chance Miller wrote about a new bit of security theater in the betas of macOS Sequoia: a permissions prompt that asks you to authorize an app to record your screen, e.g., if it takes screenshots. This doesn’t sound so bad until you learn that the permission … | Continue reading


@leancrew.com | 3 months ago

Octagons and the silver ratio

For reasons I don’t recall, I was looking at this post recently and realized that I’d missed something. Let’s rectify that. | Continue reading


@leancrew.com | 3 months ago

Tot shopping redux

A couple of days after the post about my Tot shopping list was published, I got this request on Mastodon from roguewolf: | Continue reading


@leancrew.com | 3 months ago

Watermelons and soil

I meant to write this post a couple of weeks ago, right after Presh Talwalkar published this video: | Continue reading


@leancrew.com | 3 months ago

A deliberately inefficient automation

I automate computer tasks for one of four reasons: | Continue reading


@leancrew.com | 3 months ago

Tot shopping

I’m finding Tot to be a really good app for shopping lists. It has checklists for items, bold formatting to separate the lists for different stores (I often go to more than one store on a shopping trip), and its seven-note limitation encourages the reuse of notes for ephemeral st … | Continue reading


@leancrew.com | 3 months ago

Obscuring my location more than necessary

In yesterday’s post, I obscured my location by covering up the latitude and longitude after the decimal point. | Continue reading


@leancrew.com | 3 months ago

Tot Notes

Against my better judgment, I decided to write a Shortcut today. Even worse, I wanted it to be able to run on my Apple Watch. After several iterations, all of which looked to me to be functionally identical, I finally hit upon one that worked. | Continue reading


@leancrew.com | 4 months ago

Followup on Wolfram county data

You may remember a post I wrote back in December about inexplicable holes in US county-level data in the Wolfram Knowledgebase. I say “you may remember” because I certainly didn’t until I got an email from Wolfram last week telling me that the holes had been filled. Yes and no, a … | Continue reading


@leancrew.com | 4 months ago

A good (or bad) example

The one rule of plotting that every newly minted data scientist can repeat without fail is that your graphs should always start at zero. A graph that doesn’t start at zero is misleading, dishonest, and possibly nefarious. This rule is, of course, bullshit. Not a rule at all. | Continue reading


@leancrew.com | 4 months ago

Numeronymize

Anil Dash quote-tweeted this post from Ian Brown on Mastodon this morning: | Continue reading


@leancrew.com | 4 months ago

Happy 2,460,496!

I was thinking about calendar conversions the other day and remembered that it had been years since I used my date-convert script. I wondered if it would still run. It didn’t, but it was easy to fix. | Continue reading


@leancrew.com | 4 months ago

Column buckling analysis

Last time, we looked at the solutions for six elementary column buckling problems. In this post, we’ll outline the method for getting those solutions and give a couple of detailed examples. | Continue reading


@leancrew.com | 4 months ago

Tangents and columns

Continuing with John D. Cook posts, I should write up a little thing that I meant to post about a month ago. It was in response to this post of Cook’s in which he considers solutions to the equation | Continue reading


@leancrew.com | 4 months ago

Plenty of polygons

John D. Cook wrote a fun geometry post yesterday, and I wanted to use Mathematica to generate my own versions of his images. | Continue reading


@leancrew.com | 4 months ago

Moving reminders

If I told you to go read Stephen Hackett’s post about a problem with Apple’s Reminders app, you might think I’ve suffered a blow to the head and am living in the past. But I’m not talking about his multipart complaint in 2019, his badge complaint in 2021, his continuing badge com … | Continue reading


@leancrew.com | 4 months ago

The unbearable sorrow of Apple Weather

Yesterday morning, I got obsessed with the 10-day forecast section of the Apple Weather iOS app—specifically, how it presents each day’s temperature range. I still don’t understand the logic behind it. | Continue reading


@leancrew.com | 5 months ago

Paddling workouts

I bought a kayak a couple of weeks ago. It’s one of those fold-up jobs by Oru, and I got it instead of a more traditional kayak because it’s very light and can easily fit inside my car instead of being strapped to the roof. | Continue reading


@leancrew.com | 6 months ago

A factoring trick

In Matt Parker’s latest video, he gives two proofs to show that if you | Continue reading


@leancrew.com | 6 months ago

Gravity and Edgar Rice Burroughs

Yesterday, I was thinking about what textbook I would move on to after I finish Adventures in Celestial Mechanics. Because I’ve been thinking about gravity, I pulled Oliver Kellogg’s Foundations of Potential Theory off my shelf and started leafing through it. I soon came upon a g … | Continue reading


@leancrew.com | 6 months ago

More than 100% pregnant

Kieran Healy tweeted out a gem earlier this evening: | Continue reading


@leancrew.com | 6 months ago

A nice, safe cup of tea

As I was making tea this morning, I was reminded that many people on the internet think I’m an idiot. I’d like to defend myself. | Continue reading


@leancrew.com | 6 months ago

Perplexity and beam bending

David Sparks tested out the Perplexity AI-driven search engine and was moderately impressed, even though he disagreed with one of its answers. I decided to give Perplexity my own test, a structural engineering problem similar to one I gave ChatGPT last year. | Continue reading


@leancrew.com | 6 months ago

Weekdays of future passed

Some time ago, I wrote a little shell script called next, which used the date command to output the date some number of weekdays after the current date. So if I ran it today (Thursday, May 2, 2024) with this invocation, | Continue reading


@leancrew.com | 6 months ago

Over center

I saw Steve Mould’s latest video this morning. It’s about mechanisms that store elastic energy and release it quickly. His examples come from insects and human-made devices. You should take 15 minutes and watch it. | Continue reading


@leancrew.com | 6 months ago

Building Newmark’s influence chart

After writing the last post, I decided to do the calculations necessary to make Newmark’s influence chart. | Continue reading


@leancrew.com | 6 months ago

Boussinesq and Newmark

In a post this morning, John D. Cook listed several types of partial differential equation that are unusual in that they can be solved analytically. The last one in his list caught my eye because it’s one that I know pretty well from the theory of elasticity: Boussinesq’s equatio … | Continue reading


@leancrew.com | 6 months ago