Philippe Creux

95 Followers
87 Following
137 Posts
Software developer.
Bloghttps://pcreux.com
Pronounshe/him

TIL: BigQuery only allows 4000 table partitions.
TIL: Zipline has been around for 4001 days!

"Too many partitions produced by query, allowed 4000, query produces at least 4001 partitions."

Complex authorization rules defined with boolean expressions are hard to debug and don't allow us to tell users _why_ they can't perform a task.

That's what pundit and activepolicy rely on, though. Maybe cancan did better?

I put together a little something to define rules and compose them so that we can introspect them. WDYT?

https://gist.github.com/pcreux/16c7689cb2c5a6d28def22609bc26089

TIL: 25 days in milliseconds overflows a 32-bit integer.
So setTimeout(25 * daysInMs) silently becomes setTimeout(0).
No wonder we got hammered by keepalive requests. 😬

TIL: `Array.inquiry`

```
» list = ["foo", "bar", "baz"].inquiry
=> ["foo", "bar", "baz"]
» list.foo?
=> true
» list.cat?
=> false
```

"Content missing" no more!
Here is a handler to embed the response when turboframe fails to load.
https://gist.github.com/pcreux/3cecd8d51c0d3ccc535f2b01d979a13e

New blog post!

Rails Dashboards that scale with SQL and `dry-struct`

Crunch data with SQL, return JSON, wrap it in type-safe DryStructs, and swap in Faker or plug into a data warehouse.

https://pcreux.com/2025/07/09/rails-dashboards-with-sql-and-dry-struct

Rails Dashboards with SQL and dry-struct - Philippe Creux

Rails Dashboards that scale: crunch data with SQL, return JSON, wrap it in type-safe DryStructs, and swap in Faker or plug into a data warehouse.

I sent an email to https://judoscale.com/ to scale our web dynos since #heroku autoscaling is down and @adamlogic did it within 10 minutes. I can't be grateful enough! (although Heroku API is down - so it didn't work)
Judoscale: Autoscaler for Heroku, Render, Railway, Fly.io, and AWS

Autoscaling that just works. For Ruby, Node, Python, and more. Platform-integrated with Heroku, Render, Railway, Fly.io, and Amazon ECS.

#heroku 's login, API, and autoscaling have been down for over 8 hours. We can only look at time-outs and error rate increase as traffic rises. 😭
#heroku is not having a good day: we can't login so we can't access the Dashboard, open support tickets while the Status page shows an error and log drains are down. 🤞 our apps don't go down.
Datadog's Security tab has a great UI: informative + marketing.