Here's where you'll find my photos of cocktails. Screenshots of software bugs. Carousels of travel pics. You can also find these cross-posted to my Instagram account.
Battle Station
A number of readers have asked about my Vision Pro setup since writing about how I've forsaken my desk for an Eames chair.
Well, here it is. I ran the MagSafe charging cable for my MacBook Air along the left armrest and routed the USB-C cable that charges my Vision Pro battery up the back (which itself is affixed via a 3D-printed enclosure and velcro command strips).
At nearly three months in, I'm loving this setup. Went ahead and cancelled a longstanding to-do to find a more comfortable office chair than my Steelcase Leap, because I can't really see myself needing one anytime soon.
Yes, it isn't
A recent trend in GPT-4 over the past few months is that it's started catching hallucinations (or, more charitably, over-eager user affirmation) mid-sentence. At this point, about 20% of the yes/no questions I ask it result in a sudden about-face. As jarring as it is to read, only once has it explicitly acknowledged its own contradiction—which, I'll admit, was impressive.
Because ChatGPT spews fluent bullshit, it has no relationship with the truth and so no apology or reflection typically follows. However, unlike most bullshitters, if you ask for an apology it'll gladly oblige. Silver lining.
Down for everyone because of me?
Just signed up for bandsintown to look for live concerts during my next Japan trip. I created my account using Sign in With Apple and the site immediately started behaving weirdly. Then I opened my devtools and it was spewing an unbelievable number of XHR errors. Within 90 seconds the entire site was down. It didn't come back for about 5 minutes.
I have are a very particular set of skills.
Spatial Personas are terrifyingly cool
Is the Apple Vision Pro "Persona" feature still firmly stuck in the uncanny valley and make me feel like I'm trapped in a Polar Express vortex? Yes.
Is the newly-released Spatial Persona mode way cooler than the default Persona-in-a-box the device shipped with? Yes.
Does all the engineering Apple has poured into the SharePlay API and frameworks finally have a meaningful purpose? Yes.
Yes. Yes. Yes. That earns Spatial Persona's a Certified Cool Stuff™ rating from me.
Super fun experience playing around with this new beta-of-a-beta feature with Aaron today. I'll definitely chat about it on my next podcast.
Takes, re-designed
Today, I updated the design of the short-form takes on this web site to look a little more distinctive and to better conform to the design of other "non-prose" posts. Like each podcast player, the take is rendered "beneath the page" as if the page has been cut out. Each component of the take is then rendered as a roundrect: my avatar, the text of the take, and the action links.
This design is roughly what I'd wanted to make for a while, but figuring out a responsive way to render a two-piece roundrect for takes that extend beyond the height of my avatar took a while to get right.
The approach to achieve this effect requires a lot of absolute positioning, with every component but the prose itself having a fixed height, and the two white-background roundrects that contain the prose being absolutely positioned and pinned relative to all four sides of the widget.
If you're curious how this was implemented, here's the markup and tailwind classes (most of which are stock, but this site uses a custom sizing scale):
<div class="mx-auto max-w-68">
<div class="relative p-1 md:mt-6 md:mr-2 bg-secondary beneath-the-page list-inside-all">
<!-- The top portion of the background of each take, pinned to the top and with width adjusted to make room for the avatar -->
<div class="z-10 bottom-12 absolute w-[calc(100%-124px)] mr-1 top-1 ml-13.5 shadow-lg bg-primary rounded-xl">
</div>
<!-- The bottom portion of the background of the take, pinned to the bottom and with fuller width -->
<div class="z-20 bottom-11.5 absolute w-[calc(100%-16px)] mr-1 top-14.5 shadow-lg bg-primary rounded-tl-xl rounded-bl-xl rounded-br-xl"
data-min-height="20">
</div>
<a href="/about">
<!-- my face, fixed width/height, floated to the left -->
<img class="float-left w-12 h-12 mt-px mb-0 mr-2.5 shadow-2xl rounded-xl" src="/img/face.jpg">
</a>
<div class="relative z-30 px-1 text-lg pt-sm min-h-11.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0">
<!-- The take's inner HTML, rendered from markdown -->
</div>
<div class="flex flex-row justify-between h-5 px-2 mx-auto mt-3 rounded-lg shadow-lg max-w-48 py-sm bg-primary min-w-30">
<!-- Action links & icons -->
</div>
<div class="h-3 pt-1 text-sm text-center mt-sm text-secondary/60">
<!-- the like count & time -->
</div>
</div>
</div>
This was almost enough on its own, but the two take backgrounds needed to overlap to cover the rounded corners on the
bottom of the top piece. As a result, sometimes there'd be an extra trailing white doo-dad without any text associated.
For this, I needed a bit of JavaScript. So I put a data-min-height="20"
on the background and wrote this script:
function enforceRenderingConstraintsFor (el) {
if (el.dataset.minHeight != null) {
el.classList.remove('hidden') // have to remove hidden first b/c otherwise el.clientHeight will be 0
el.classList.toggle('hidden', el.clientHeight < parseInt(el.dataset.minHeight, 10))
}
}
function enforceRenderingConstraints () {
const elements = document.querySelectorAll('[data-min-height]')
elements.forEach(enforceRenderingConstraintsFor)
}
window.addEventListener('DOMContentLoaded', enforceRenderingConstraints);
window.addEventListener('resize', enforceRenderingConstraints);
The design is pretty busy and a little cramped, but I dig it anyway.
The Terms of Service are coming from inside the house!
I just received this e-mail directly from my Synology NAS, to alert me to a change in its data collection policy. Who is the "our", here?
If a device in my house e-mails me from inside my house, kinda seems like the data it's collecting should also be in my house?
Better 404 design
There are exactly three things I want from a 404 page:
- Something approaching an apology
- An easy way to report the broken link
- Copy that might elicit a sensible chuckle
This page only took a few minutes to make. The "let us know" link pre-populates
the entire e-mail and is implemented in a Rails view thanks to a helper method
that makes constructing mail_to
links a little nicer:
def mail_to_url(email, **options)
"mailto:#{email}?" + options.map { |k, v|
"#{k}=#{ERB::Util.url_encode(v)}"
}.join("&")
end
<%= link_to "let us know", mail_to_url("support@betterwithbecky.com",
subject: "I got a 404!",
body: "I clicked a link that led me here, but got a 404 message:\n\n#{request.url}"
) %>
Wish people spent more time sweating details like this.
GPT 3.5 is a lot worse than GPT 4
It should shock no one to learn that Open AI's newer, better language model is an improvement over the old one, but if you aren't an active user of any of this newfangled AI stuff, it can be easy to lose track of just how much better things are getting and how quickly.
If you subscribe to GPT Plus, ChatGPT will also implement the ReAct pattern for requests it thinks can be formalized, which is one way to mitigate hallucinations.
Pictured here, asking "days between 12/10 and 2/11":
- GPT 3.5, which gets it completely wrong with a nonsensical reasoning
- GPT 4, which gets it right and even has a little terminal prompt link
- Opening up that link will actually show you a Python script GPT 4 used to compute the answer
Cool beans. 🫘
Vision Pro with the Good Strap
Following up on my post from this morning on how to use a 3rd party "halo" strap for Vision Pro, my incredible brother Jeremy printed and sanded these adapters for me. The experience wearing this strap is night-and-day better than either of Apple's built-in straps. The headset's weight is finally where it should be.
Trying VS Code's Terminal Loader instead of foreman or overmind
I did a video about debugging Rails in Visual Studio
Code a couple years ago that
showed off how to use the remote interface of the
debug gem with Rails 7's Procfile-based
bin/dev
workflow. Using
foreman or overmind and the remote debugger interface is fine but it's
honestly no replacement for the developer experience of running binding.irb
directly against a dedicated terminal running nothing other than rails server
.
So I decided to give this Terminal Loader extension a try to see if I could have my cake and eat it too: a one-shot way to run all of my development servers across multiple terminals. The verdict? It works!
- Install the extension
- Run the command
TLoader: Load Terminals
(via Command-Shift-P) once, which will:- Launch a couple dummy terminals with split-views, which you can feel free to kill manually
- Create a
workspaceConfiguration/LoadTerminal.json
, which you can (and should, IMO) add to.gitignore
- Edit the
LoadTerminal.json
file to specify which terminal groups you want to open, how many columns per group, and the commands to run for each one
This is my config for a straightforward Rails 7 app that runs the Rails server, the tailwind CLI, a Rails console, and Solid Queue. Because I don't typically need to interact with tailwind or my queue daemon, I relegated those to a shared terminal group. And while I didn't have need for it in this case, I appreciate that the extension allows you to set a different working directory for each terminal, which will be a huge boon to my projects that embed sub-libraries and example apps.
Here's my first crack at a LoadTerminal.json
for this project:
{
"version": "1.2.1",
"groups": [
{
"name": "Rails Server",
"description": "Rails Server",
"enabled": true,
"terminals": [
{
"name": "server",
"path": ".",
"cmd": [
"env RUBY_DEBUG_OPEN=true bin/rails server -p 3000"
],
"num": 0
}
]
},
{
"name": "Rails Console",
"description": "Rails Console",
"enabled": true,
"terminals": [
{
"name": "console",
"path": ".",
"cmd": [
"bin/rails console"
],
"num": 0
}
]
},
{
"name": "Other",
"description": "Tailwind / Queue",
"enabled": true,
"terminals": [
{
"name": "tailwind",
"path": ".",
"cmd": [
"bin/rails tailwindcss:watch"
],
"num": 0
},
{
"name": "queue",
"path": ".",
"cmd": [
"bin/rake solid_queue:start"
],
"num": 0
}
]
}
]
}
Seems to work fine! Nice change of pace not having to juggle virtual-terminals-within-an-electron-wrapper-within-a-terminal anymore.
What if I replaced myself with a chatbot?
Potential preview of coming attractions.
The entire reason I started blogging was to avoid repeating myself to people, so the prospect of uploading a corpus of hundreds of thousands of words I've written and hundreds of open source repositories I've created to build a Searls-flavored ChatGPT was immediately attractive.
Unfortunately, it still dishes takes I disagree with too often for me to turn it on publicly. Unclear whether this custom GPT feature represents a very thin candy shell with a lot of ego projection and wish-casting to make it seem more "real".
Filtering iCloud Shared Photo Library by Contributor
Since its release last year, how to filter the photos in our shared library to only show the photos I contributed has eluded me. Individual photo metadata shows who contributed a photo (and in the case of duplicates, multiple people might have contributed the same photo), but there was no way to view one's contributions in bulk.
After a few months of latent frustration, I figured out a way!
In the search bar, enter the e-mail address of the contributor's Apple ID and you should see a auto-suggestion like "👥 Shared by person@example.com".
If you're on macOS and you want to create an album of just these photos, you can create a smart album by selecting "Text" as your criteria, "is" as your condition, and the e-mail address (e.g. "person@example.com") as the text, and the album will include the same set of photos.
Nifty!