I spent way too many minutes figuring out this “active” scope is valid:
scope :active, -> { where("read_at IS NULL OR read_at > ?", 7.days.ago) }
I want ones that were read less than 7 days ago!?
The key insight is that a date that is greater than another date is “more recent than” instead of “more than”. At first I just added a comment for future me, but then I fixed it properly with a comment AND a well-named scope:
scope :unread, -> { where(read_at: nil) }
scope :read_within_past, ->(period) { where("read_at > ?", period.ago) } # '>' == 'more recent than'
scope :active, -> { unread.or(read_within_past(7.days)) }
“Unread or read within past 7 days” is something even future me with too-little sleep should be able to read and understand!
Anyone who’s had to write code to handle time and time zones (or just had to write JavaScript) can probably empathise with Claude’s plight here π
Iβm not sure I fully understand the privacy concerns of @manton (https://www.manton.org/2025/06/05/this-court-order-is-a.html) and many others. OpenAI has been ordered to preserve data, not publish it on the open web. I donβt see a plausible path from preservation to widespread publication π€
In theory you should be able to capture the mouse pointer in macOS screenshots using Command-Shift-5 β Options β Show mouse pointer (you’ll also need to add a delay to give you time to get your mouse pointer where you want it). In practice it doesn’t actually work (for me on macOS Sequoia 15.3.1).
To capture the mouse pointer without third-party software, I used Preview (which continues to surprise me): File β Take Screenshot β From Entire Screen
Note: if you have increased the mouse pointer size in accessibility, this won’t be reflected in the screenshot. To capture larger cursors you’ll need post-processing or a third-party app.
Bonus tip, for most screenshots that’s all you need… but it turns out you can’t use Preview to take screenshots of menus in Preview π€·ββοΈ To take the above screenshot, I had to launch a second instance of Preview using open -n -a Preview
and capture the screenshot from the second instance.