This action will delete this post on this instance and on all federated instances, and it cannot be undone. Are you certain you want to delete this post?
This action will delete this post on this instance and on all federated instances, and it cannot be undone. Are you certain you want to delete this post?
This action will block this actor and hide all of their past and future posts. Are you certain you want to block this actor?
This action will block this object. Are you certain you want to block this object?
Are you sure you want to delete the OAuth client [Client Name]? This action cannot be undone and will revoke all access tokens for this client.
Are you sure you want to revoke the OAuth token [Token ID]? This action cannot be undone and will immediately revoke access for this token.

Imagine if splitting a string were something that you could automate for your customers? #awscloud
https://repost.aws/knowledge-center/route53-resolve-dkim-text-record-error


Amazon Keyspaces from #awscloud is pretty interesting. It's a #Cassandra-compatible (with limitations) implementation on top of DynamoDB as far as I can tell. The nice thing about it is that it's serverless so you don't have the huge overhead for running a full Cassandra cluster. We are using it and so far so good. It has a few annoying limitations, though. These are the ones that I've hit:
LOCAL_QUORUM . It does support other consistencies on read.ALTER TABLE statement. However, this custom option pisses of real Cassandra (and Scylla) which you are likely to be using for local dev. Which requires a migration workaround.If you can manage to work around that, it's pretty nice. And the price is attractive.

We relaunched crystal-lang.org with an updated design and a ton of improvements. 🎉🥳
Hope you like it!
Read the anouncement: https://crystal-lang.org/2024/03/27/website-relaunch/

HertzDevil is in need of a new job. You probably know who he is: Core Team member since mid 2022, and main developer behind the recent advances in Windows support. And that’s not only it, he has done lots of work in very distant parts of the compiler and ecosystem. You’ll have fun reading through the almost 700 PRs¹ that he got in.
As his team lead this past year, I’m sorry to let go such an amazing person. Funding reasons forced us to. I have a privileged spot to see him working, an experience I can share with anyone interested. Quite frankly, he’s the Messi of Software Engineering, but with a humble heart!
#fedihired #crystallang #jobsearch
¹ https://github.com/crystal-lang/crystal/pulls?q=is%3Apr+is%3Amerged+author%3AHertzDevil

Go `sqlmock` from Data Dog can be useful for making sure you know exactly which queries are being sent to the DB. But it has a limited set of type matchers and when matchers don't match, it's so hard to figure out what was actually sent. It supports custom matchers.
I figured out a little pattern I like there I pass `t` from the test (`testing.T`) into the custom matcher's struct and then use `t.Log()` to pass back what the heck was wrong with the value passed. So many WTFs saved when tests fail. #Golang
type MicrosTimestamp struct {
t *testing.T
}
func (r MicrosTimestamp) Match(v driver.Value) bool {
i, ok := v.(int64)
if !ok {
r.t.Log(fmt.Sprintf("TESTS: MicrosTimestamp got %v which is not an int64", v))
return false
}
...
I'm experimenting with using a couple of #Golang database libs together that I haven't used before: https://github.com/blockloop/scan and https://github.com/Masterminds/squirrel . So far I am quite positively impressed with the simplicity and niceness of the combo. I wrote some custom code generation to generate models from the DB schema. So far I am happy.

Over the weekend I started hacking around with #TruffleRuby and it's as cool as it seems like it would be. I have done plenty of JRuby in the past and I like it quite a bit. But the debugging and profiling tools on #GraalVM are second to none. And some of the interop is definitely easier... plus the ability to use C extensions! This is the little project i'm building to test it. https://github.com/relistan/shorten-truffle . Will blog something when I've spent more time at it.

I've been writing a new Event archiving service for the new event-based environment at my new gig. This is a second chance to iterate on what we built at Community that I talked about in my blog post on the subject. This time, I'm writing in #Golang because I'm on my own on this stuff at the moment. I've taken a different approach with it by archiving events to a local copy of #DuckDB as they come off the wire. Then I use DuckDB's native Parquet and S3 support to write the events batches out to S3, where they can then be queried with Athena.
This approach seems to be good so far. I will learn more when I get it into production. I feel another blog post coming later this year...

Working on CI builds is always so painful. I prefer getting them running under Compose locally and making the remote build just do the same thing. This is better. But the turnaround times are still so long.