Christopher Orr 🏴󠁧󠁢󠁳󠁣󠁴󠁿
banner
orr.dev
Christopher Orr 🏴󠁧󠁢󠁳󠁣󠁴󠁿
@orr.dev
Knows some things about computers, and baking shortbread.

📍 Berlin
https://twitter.com/orrc
https://orr.dev/
The juxtaposition of architectural styles in Dublin is quite something.
July 6, 2025 at 8:17 PM
This one from Berlin airport is my favourite… and it doesn't even point to a web URL!
July 6, 2025 at 8:15 PM
Oops. Another case of good intention, bad execution from @posthog.com… 🙁
February 11, 2025 at 4:08 PM
Meanwhile, here's the diff-of-the-day for our Amplitude integration…
January 13, 2025 at 2:11 PM
Anyway… the good news is that we can ignore the docs: the deletion API *does* in fact accept this newly acquired definitely-not-an-integer `id`.

Of course, it returns HTTP 202 rather than the documented HTTP 204 — but it works! 👍
January 6, 2025 at 5:32 PM
Supposedly I can only look up a single user if I know their integer `id` value. But it's possible to search by `distinct_id`, which will return the number I need! 🥳

However, the response has the `uuid` string that the docs mention (but don't explain), along with the EXACT SAME VALUE as the `id`… 😵‍💫
January 6, 2025 at 5:32 PM
I'm implementing account deletion.

Deleting a PostHog profile means you can't later use the same `distinct_id`. Sounds great — we assign our users a UUID and use that when sending data to PostHog.

So then what's this mysterious integer `id` that the deletion API needs?

posthog.com/docs/api/per...
January 6, 2025 at 5:32 PM
It's been a non-zero WTF-per-minute count with the @posthog.com API today…

Firstly: the API requires a key that's tied to my account, rather than the PostHog organisation. Will the API key break when I leave the company soon? Maybe!

posthog.com/docs/api#pri...
January 6, 2025 at 5:32 PM
I just ran into this non-intuitive case with @kotlinlang.org JSON serialisation…

A `data class` field with default property value won't appear in the JSON output — even if you explicitly provide it in your constructor call! 🤔

You need `encodeDefaults = true`: play.kotlinlang.org#eyJ2ZXJzaW9u...
December 5, 2024 at 10:23 AM
Good news: you can now read your colleagues' messages with the gravitas they deserve!

The Slack desktop client has added support for Comic Sans…
November 12, 2024 at 11:45 AM
The excellent Refined GitHub browser extension will at least minimise and dim such PRs by default:
github.com/refined-gith...
November 12, 2024 at 11:43 AM