Matthew Lindfield Seager

Let apps link to the web?

In episode 605 of Core Intuition, @manton made a claim that past me would have completely agreed with but that I’m less convinced about today.

Because if you actually think about the stuff that the EU is finding Apple in non-compliance over, if you just look at it… Like, just let apps link to the web! This really should be uncontroversial.
— Manton Reece, starting around the 11 minute mark

I think there’s a bit more nuance to the discussion than Manton allows for here and I wonder if it’s a matter of perspective.

For instance, it used to be when I was setting up a new Mac and I saw the Analytics screen, I would think “Yes, I do want to share analytics with Manton and Daniel, Gus Mueller, Brent Simmons, Ken Case, David _Smith and all the other developers that make great Mac or iOS software”.

The Analytics screen shown during the first run experience when setting up a new user on macOS

Now when I see that screen I think “No, I don’t want to share analytics with Google, Facebook, Taboola, or the data brokers who trick or pay developers to bundle their SDK”.

When asked the question “Should iOS developers be allowed to link to their own website for account creation and payments?” I have a similarly bifurcated response…

On the one hand, yes, it would be great if iOS users didn’t have to jump through so many hoops to transact with trustworthy indie developers and reputable large companies.

On the other hand, there are so many bad actors out there who will exploit any opportunity to make a quick buck (or lazy ones who will bundle a sketchy SDK to avoid a bit of work). So no, I don’t want to give them additional tools to trick me into making unwanted payments or handing over my credit card details.

I know there are a bunch of kind, trustworthy, generous people on the open web (particularly among proponents of the open web!) but for every one of them it seems like there’s 10 scammers, spammers, hustlers and thieves.

I don’t know what the “right” answer is1. For all the nuance I’ve tried to include in this post, I’ve still vastly oversimplified things. And so I’ll finish with another oversimplification: Apple’s restrictions on linking out to the web benefit Apple, but I think they benefit most users just as much or more 🤷‍♂️

  1. Although I would love to know what things would be like in an alternate reality where Apple dropped their 30/15 cut to 10/5 a few years ago. [return]

Per-domain Browser for Legacy Web Apps

At work we use a legacy web app from the late 90s that doesn’t play nicely with Safari’s modern privacy practices (you may have heard of Salesforce?). Salesforce is the only website I frequently need another browser for and I always want Salesforce links to open in Brave, a fork of Chrome that I hope and assume doesn’t send all my browsing history to Google.

I previously purchased a fantastic little utility app called Bumpr that lets you choose which app to use for web and mail links (including letting you use web based email to handle mailto: links).

Screenshot of Bumpr showing a menu of 4 browsers to open a web link

In normal use it opens a graphical menu right near your mouse but 99% of the time I just want it to open Safari so the extra click was starting to bug me. Thankfully, there’s a super simple workaround thanks to Bumpr’s clever design (as in how it works, not just how it looks).

Step 1 is to remove other browsers from the Bumpr menu. If there’s only one browser listed, Bumpr will not show you a one-item menu… links will just open in that one browser without an extra click.

Screenshot showing Bumpr's preferences with only Safari turned on

Step 2 is to add your exceptions to the “Custom Browser Rules…”. Even though step 1 removed Brave from the interactive menu, it’s still available to be used for per-domain rules so you can tell your legacy web app to always open in a more permissive browser.

Screenshot showing Bumpr's preferences with Salesforce domains configured to use the Brave browser

P.S. If you’re doing this specifically for Salesforce, there are some other changes you’ll probably want to make in Brave/Chrome/Edge to support Salesforce’s old fashioned design; allowing third party cookies and allowing pop ups:

Screenshot showing 3rd party cookies enabled for all domains

Screenshot showing pops up enabled for all domains

Including Zeroes when Counting in SQL

TLDR: To count related records (and get a zero when there are none) use a LEFT JOIN. To count related records that match a certain criteria (and get a zero when there are none) use a CASE statement in the SELECT fields.

Longer Version

I had a table of school terms and a table of enrolments. Here’s a super simplified example using an INNER JOIN:

SELECT term.year,
FROM term INNER JOIN enrol on term.term_id = enrol.term_id
year id
2021 69423
2021 694170
2023 69423
2023 69584
2024 69456

To count the enrolments per year was a simple matter of adding a COUNT, changing it to a LEFT JOIN and adding the GROUP BY:

SELECT term.year, COUNT(
FROM term LEFT JOIN enrol on term.term_id = enrol.term_id
GROUP BY term.year
ORDER BY term.year DESC
2024 1
2023 2
2022 0
2021 2

Note the count of 0 in 2022, that’s what I want! But then when I tried to add a WHERE clause to only get the enrolments where there was a possible flaw in the data, I stopped getting a zero count for the missing years:

SELECT term.year, COUNT(
FROM term LEFT JOIN enrol on term.term_id = enrol.term_id
WHERE enrol.raw_mark <> enrol.final_mark
GROUP BY term.year
ORDER BY term.year DESC
2023 1

If I understand correctly, the WHERE clause is removing the rows (including the rows that only contain a term.year) before they get counted.

The solution (thanks to my DB guru friend TC) is to move the logic from the WHERE clause up into the SELECT. Also, now that there are blanks instead of nulls in the second column, we can go back to a regular INNER JOIN and still get the zero counts:

SELECT  term.year,
        COUNT(CASE WHEN enrol.raw_mark <> enrol.final_mark THEN 1 END)
FROM term INNER JOIN enrol on term.term_id = enrol.term_id
GROUP BY term.year
ORDER BY term.year DESC
2024 0
2023 1
2022 0
2021 0

I’m using Alfred and cliclick to perform rudimentary UI automation to overcome a broken Salesforce implementation (can’t bulk delete):

  1. Click where the mouse is
  2. Press the down arrow twice (with a slight delay)
  3. Press enter
  4. Press tab
  5. Press enter

Moving a

Following’s pricing changes, rather than retiring an old blog hosted with a basic account, I decided to upgrade my main account to premium and migrate the old blog to the premium account. I get to access the advanced features of and the team doesn’t lose any recurring revenue, win-win!

Here’s the process I went through: 1. Logged into for Mac with the old account: 1. Export an archive of the blog - File → Export → Blog Archive 2. Renamed the archive from to and expanded it to check the contents… the only thing I could see that was missing was the Pages 3. Manually copied the text from our 2 custom Pages in Micro.Blog for Mac to a text file (ignored /archive and /photos) 4. Signed out of (“removed”) the old account from for Mac 2. Signed in to my old account on the web: 1. Deleted the blog 2. Changed the username on the old account (I don’t think this was necessary… later I changed it back) 3. Reset my Fediverse/Mastodon name 4. Downloaded a copy of my invoices 5. Canceled my old subscription 3. Logged in to my main account on the web: 1. Upgraded to premium 2. Added a new blog (same domain as the old one) 3. Added the two pages (only one visible in nav) 4. Deleted unwanted pages 4. Relaunched for Mac 1. Confirmed the new (old 😉) blog was available on the main account 2. Imported the posts and images File → Import → Blog Archive

The whole process took less than an hour (including writing this post). The slowest part was the blog import which took about 13 minutes to import 52 posts and 104 images (on a 280/20Mbps wifi connection… would have been 1/1Gbps if I’d plugged into Ethernet 🤦‍♂️).

My only other regret is that I didn’t think to make note of the “Design” section of the old blog… the new version looks very different and I can’t remember what theme I chose or customisations I made.

Overall, the whole process went shockingly smoothly and my only (very mild) complaint is that the Blog Archive format (or some suitable alternative) doesn’t include the pages or design info. Not being able to export and import pages might have been a bigger complaint from me if I’d had more than 2 pages to copy (or if I’d forgotten to make a manual copy before deleting the blog).

Once again I’m impressed with just how well designed and executed is despite being bootstrapped and being developed and supported by a very small team!

Text Replacement Pro Tips

If you’re in the Apple ecosystem1, Text Replacements are a powerful tool on Mac and iOS/iPadOS. If you’re using both, you can even sync your text replacements between all your devices via iCloud.

Here’s some tips to help you make the most of them:

  1. Use a character that’s usually on the iOS soft keyboard as your shortcut prefix to make typing replacements easier. I use z or zz for most of mine but choose what works for you
  2. Enter your name (I have a long surname), company name, addresses or frequently used Google map links quickly:
    • zmlsMatthew Lindfield Seager
    • zacmeAcme Corporation LLC GmbH Pty Ltd
    • zaddw432 Cheerful Drive, Happyton NSW 2345 (My mnemonic is z address work)
    • zaddh123 Long Avenue, Pleasantville NSW 2222 (z address home)
    • zmapw (z map work)
    • zmaph (z map home)
  3. Enter email addresses with ease e.g. replace@@e with Even if you don’t have a long name like me this can still be a timesaver (I have 5 email addresses set up this way)
  4. Type currency, unusual punctuation, keyboard shortcuts or symbols without having to look them up (or remember option key combinations on Mac):
    • zeuro, zbaht฿, etc (or use a code like zGBP£)
    • zdiv÷, zsqrt, etc
    • zcommand, zshift, ztab, etc
    • zsquare, -> (typing that last one felt a bit meta)
  5. Type an emoji or emoji sequence quickly e.g. replace zspew with 🥴🤢🤮 or zlove with 🥰😍😘
  6. Type complex (or simple) emoticons easily e.g. zshrug with ¯\_(ツ)_/¯
  7. Override autocorrect changes that you don’t like:
    • tata to be able to informally thank people (Note: The shortcut and replacement can be the same… Adding the “misspelling” to your dictionary might also help in this scenario)
    • Replace ;) with ;) to stop autocorrect changing it to 😉
    • Or replace ;) with 😘 if you want it to use a different winking emoji
    • I sometimes mistype “my” as “mu” on my phone but someone has that surname in my address book so it autocorrects to “Mu” instead of “my”. I have two autocorrects to fix this; mumy and Mu to Mu.
  8. On that note, replacements are case sensitive so you can have different expansions for the “same” text if that makes sense to you
  9. Type in information without having to memorise it or look it up each time:
    • Bank account details for friends to pay you back
    • Meeting codes for regular Zoom/Google meetings
    • Zoom passwords to take on host privileges
    • Wifi passwords to share with guests
    • Infrequently used phone numbers
    • Business registration numbers

Bonus tips:

  1. Build up your replacements slowly. Next time you have to look up some often used but rarely changing information, create a text replacement and use it a few times to build up your muscle memory
  2. Print out a cheat-sheet for yourself or colleagues if you use lots of replacements at work
  3. Export/import text replacements on macOS as a .plist file
    • Back them up in case you have iCloud problems
    • Share snippets with family or colleagues
    • Programatically create or update snippets
    • Parse the file to generate or update a cheat-sheet you can print out
  4. Not all text entry areas support text replacement. Here’s a workflow that might make sense sometimes (other times it will be quicker to just type it out manually) and doesn’t require you to lift your hands off the keyboard:
    • bring up a text field that will work (Spotlight) with command-space
    • type your shortcut (followed by space to expand it)
    • press delete to remove the space you just added (optional)
    • select all with command-a
    • cut or copy with command-z or command-c
    • escape to close Spotlight
    • paste with command-v
  5. If you need more capabilities, investigate power user tools like Alfred, Keyboard Maestro or TextExpander.

  1. If you’re not (only) in the Apple ecosystem, TextExpander is cross platform and has a teams plan that lets you share snippets with your colleagues. [return]

Microsoft have really upped their game in their efforts to repulse long-time Mac users. Apparently it isn’t enough to make their apps behave like visitors from another planet, now they are calling attention to their alienness in every way they can

Screenshot showing the Teams icon with a 'New' label permanently burned into it and the clunky app name 'Microsoft Teams (work or school)'

Took me quite a while to figure out how to access the records in a collection object returned by the restforce Gem

It implements Ruby’s Enumerable module so you can map/collect, reject, slice, inject, etc to your heart’s content.

Seems obvious in hindsight 🤦‍♂️

Aussie Banks - A before and after story

Changing banks in Australia is a hassle, but here’s a before and after story that might help persuade you to make the effort to switch.


Without calling them out by name, let’s just say we were with a large, national Australian bank (perhaps we can call them nAb for short 😉). We had our mortgage with them along with a savings offset account and a credit card we paid off in full each month. They were our bank from late 2013 to late 2023.

Their mobile app was reasonable and they eventually came to the party and supported Apple Pay (despite pushing hard to avoid it for a while). We didn’t love their interest rate rises or fees (see below) but we didn’t think our overall experience could be much better anywhere else, banks are banks after all.

Interest Rates

When interest rates dropped, our big bank was slow to update its mortgage rates. When interest rates rose, they were quick to update their mortgage rates and they gave us no notice. The only way to find out about rate rises was to regularly log in and check through all the transactions for a routine looking transaction with a message like “Your interest rate is w% from xx/yy/zz”. Looking back, in a period where official interest rates rose by 3.5%, our mortgage rate went up by 4.69%. When I complained about the excessive rate rises with no clear notice, they told me that according to their general terms, they only need to disclose interest rate rises in a newspaper(!!!) and on our statements (which they only issue every 6 months). Not cool.


In theory we had low-fee (maybe even fee-free) accounts but in practice we got slugged regularly. Even after they abolished the $30 fee for overdrawn accounts, they found other ways to extract their pound of flesh and keep their record profits growing:

  • Purchase in USD? 3% International transaction fee (plus a poor exchange rate)
  • Use an ATM overseas? $5 flat fee PLUS 3% international transaction fee (and a poor exchange rate)
  • Scheduled transfer to credit card fails? $15 late payment fee (plus interest charges)

To add insult to injury, rather than send a message saying “your scheduled transfer is about to fail due to insufficient funds”, they would wait until the next day and send a message saying “your credit card payment is late”! They have the messaging infrastructure but it’s like they deliberately choose what messages to send to maximise customer fees and bank profits. 🤦‍♂️


Back in 2018 I signed up with a “neobank” called Up. They added a number of clever features over time like virtual cards, “round-ups”, savers, auto-splitting and more but when I signed up (during their closed beta) they didn’t offer joint accounts and they didn’t offer home loans. I basically only used them for their fee-free overseas transactions and for Apple Pay (until our main bank finally caved and added support in mid-2019).

Up steadily improved over the subsequent 5 years and when I took a look at them again in 2023 they had added a unique take on joint accounts (you can add a “Player 2” and have a mixture of individual and joint accounts) plus they offer a home loan with no fees and a very attractive interest rate. With those two blockers removed I checked with my wife (“Whatever makes sense to you dear”) and then took the plunge.

I sent my wife a link to join and a few minutes later I received an invite to be her “Player 2”, she had already signed up, verified her identity, opened a personal account and figured out how to invite me to open a joint account. I accepted and within seconds we had a new joint savings account and new virtual debit cards linked to that account. We then made a joint application to refinance our mortgage and the whole process was shockingly easy! It was all done online (mostly on my phone) and the only slight hiccough we encountered during the process was having to cancel our home insurance and get it re-issued in both our names.


I thought I was going to talk about rates and fees (which are both significantly better with Up) but it turns out the biggest difference I’ve noticed since we switched in October is around communication. That may sound a little nebulous but there’s been lots of little things like:

  • They placed a soft hold on one of our cards due to some suspicious transactions. They sent a push notification straight away and we were able to check the transactions and lift the hold straight away. We did it all in the app and without having to talk to support
  • When our home loan settled, we received a personal offer of help to understand how our home loan works and how to manage it in the app
  • Advance notice of interest rate changes!!! Once a few weeks before the change and then another message on the day of the change. Not only that but they list the old AND the new rates so you can see how much they’re changing them by
  • And, the thing that served as a catalyst to write this post, a push notification yesterday saying “You have a payment scheduled for tomorrow for $1,500 but there is only $700 in your account”

Thanks to the proactive communication, I don’t have to worry about sneaky rate rises, surprise fees or dodgy transactions. I can now rely on my bank to be honest, up-front and transparent. It’s a really refreshing change!

What are you waiting for?

I realise Up might not be suitable for everyone. Their offering suits us but our banking is quite straight forward. One thing that might be a deal breaker for some is that, as a neobank, they don’t have any branches. If you still deal with cash you’ll have to bank it at a post office. On the other hand, these days there’s more post offices than there are bank branches so maybe that’s not such a big deal?

They also don’t offer credit cards. For the time being we’ve kept our big bank credit card as a back-up in case we ever have problems with our Up debit cards but we haven’t used it in over a month and I suspect we’ll cancel it, probably the next time our old bank charges us an annual fee and we remember we still have it.

So, if neither of those are dealbreakers and you’re sick of your big bank, I encourage you to investigate Up (Aussies only sorry). If you decide to join, use my referral code and we will both get a $10 bonus. Or just sign up without it.

You don’t even have to go all-in straight away. I was a member for 5 years before we switched (almost) all our banking.

Enjoyed another Aussie crime novel by Chris Hammer: The Tilt 📚🎧

Well written as always and liked the way he introduced a new main character by crossing over with some supporting ones from the previous books.

Thoroughly enjoyed reading The Last Devil to Die by Richard Osman 📚

Finished Silver by Chris Hammer 🎙️📚

I’m enjoying listening to audio books while working on the house and grateful for our local library making the service available.

Finished reading: Scrublands by Chris Hammer 📚🎧

Changing the starting ID in a Rails app

While procrastinating working on a new Rails app, I didn’t want object IDs to start at 1 but neither did I want to deal with the various hassles of using a UUID instead of an integer for the ID. My compromise was to start the ID numbering with a multiple digit number.

This requires adding an execute statement (which is technically non-reversible) to your create_table migration:

class CreateUsers < ActiveRecord::Migration[7.1]
  def change
    create_table :users do |t|
      t.string :name, null: false
      t.string :email, null: false


    reversible do |direction|
      direction.up do
        # Set the starting ID on the users table so IDs don't start at 1
        execute <<-SQL
          INSERT INTO sqlite_sequence ('name', 'seq') VALUES('users', 2345);

      direction.down do
        # Do nothing (entry is automatically removed when table is dropped)

Note: The relevant sequence row gets dropped when the table gets dropped, so in this case there’s no need to define a down action. I’ve included an empty one anyway to make it clear this isn’t an oversight.

Now when I create my first user, their ID is 1 higher than the sequence I assigned…

You can choose whatever starting number you want. If you’re running this on a different table, replace the ‘users’ portion with your own table name:

INSERT INTO sqlite_sequence ('name', 'seq') VALUES('<table>', 1734);

The above example is specific to SQLite (I’m using Litestack to simplify deployment) but presumably you could do something very similar with other databases.

I haven’t tested this but for PostgreSQL it should be as simple as changing the execute command above to:

SELECT setval('users_id_seq', 2345);
--            '<table>_id_seq' for other table names

If you try this with PostgreSQL, make you sure test the migration works in both directions.

Couldn’t figure out why ruby debug was crashing on one machine but another “identical” machine was fine. I was about to redact my username from the crash reports when I started to wonder about its length.

Sure enough, a username longer than 20 characters triggers the bug 🐛

Can sleep easy now 😝

The Voice

Australia will vote tomorrow on a modest proposal to give Aboriginal and Torres Strait Islander peoples a voice to the parliament and the executive “on matters relating to Aboriginal and Torres Strait Islander peoples”. Unfortunately, it looks like the No campaign has sown enough fear, uncertainty and doubt to prevent us from taking this small step forward as a federation.

Australia has a long and dark history when it comes to our treatment of our First Peoples. It wasn’t until 1967 that they were included in the census and it was just 40 short years ago, in 1983, that our First Peoples finally received equal voting rights and responsibilities, after more than 80 long years of being denied a fair go and pushed to the margins. The No campaign say that this proposed change introduces race into the constitution, while conveniently ignoring the fact that racial prejudice has been baked into our constitution and our culture from the very beginning.

Our First People’s have spent years gathering consensus on a reasonable path forward towards reform that might go some way towards a more just and equitable future after centuries of injustice. They are asking for voice, treaty and truth and more than 80% of First Nations people support the change we are voting on (according to the only large-scale, representative survey that has been published).

Tomorrow we have a chance to vote yes and do what Proverbs 31:8 says:

Speak out on behalf of the voiceless, and for the rights of all who are vulnerable.

In 1903, a member of the first Australian National Parliament stated that “it is impossible for the average aboriginal to understand any political question, or to vote with intelligence”. If the No vote succeeds tomorrow, I fear it will be because, 120 years later, that sentiment carries the day amongst a majority of Australians.

I’m enjoying the conversation, talks, food and location of RubyConf Thailand. Rubyists may even recognise a certain someone who gave the keynote talk, 30 years of Ruby History 🤩

Love that the organisers leaned into the “competition” with Rails World 😉


It’s not much to look at but I’m very glad for this little national treasure park just 5km from where we are living.

Final day (day 30) of #mbsept

(Is it cheating to use a collage?)

Collage of 3 photos of the tracks, pond and picnic shelters in our local national park

There’s a bit of a contrast between the undeveloped parts of our suburb and the new estates popping up

Day 29 of #mbsept

A small rural-looking road lined by trees leading up to a new(ish) housing estate

Combining a workout with a commute

Day 28 of #mbsept

Cyclists riding along the bike path towards Redfern station

This little guy just wants an embrace.

Day 27 of #mbsept

A small plush toy Dumbo sitting on a pillow

I love it when people build useful, thoughtful and bookmarkable tools like this highly configurable countdown timer. I was looking for a timer that would continue into the negatives; this one does that and so much more.

Don’t be put off by the plain appearance of the configuration page.

Treated myself to my beverage of choice in honour of today’s prompt.

Day 26 of #mbsept

A half-finished bottle of Coca Cola in front of a lawn and a hedge

Today’s prompt is flare, suggested by me. I suggested it because it has multiple meanings and I thought I might be able to take a creative shot but this is the best I could manage today.

Day 25 of #mbsept

The sun shining through the leaves of a native Australian tree above a terrace house in Redfern

Belt drive for the alternator (I think 😉) in our 2009 Hyundai Tucson.

This is the first time I’ve had a phone with more than one lens so I had some fun experimenting with different angles and zooms.

Day 24 of #mbsept

Internal shot of car engine compartment with tubes, pulleys and two belts