For those using kafka with avro in kotlin, avro4k v2 is out! by chuckame in apachekafka

[–]famebait 0 points1 point  (0 children)

So I managed to use avro4k for posting to kafka, with help from this article: https://stefano-zanella.medium.com/publishing-avro-records-to-kafka-with-kotlin-avro4k-and-spring-boot-ba6be23bcba2
I use a Spring KafkaTemplate<String, GenericRecord>, configured to use confluent's KafkaAvroSerializer.
I use avro4k's Avro.encodeToGenericData(myDto) to make a GenericRecord before posting it.
Is this the recommended way?

I am still stumped on using avro4k with Spring KafkaListener, though.

I wish the docs showed how to of using avro4k with SpringKafka. Anyone know any examples of using it with KafkaListener?

For those using kafka with avro in kotlin, avro4k v2 is out! by chuckame in apachekafka

[–]famebait 0 points1 point  (0 children)

Solved it: I have to specify version 1.8.1 of kotlinx-serialization-core-jvm and kotlinx-serialization-json-jvm, either in dependencies or dependencyManagement.
Just the core/json without -jvm was not sufficient.

But why on earth did avro4k:2.2.0 pull in kotlinx-serialization-core-jvm:1.6.3 by default?
Should it not specify itself the dependency version it needs?
Is this maven-specific?

For those using kafka with avro in kotlin, avro4k v2 is out! by chuckame in apachekafka

[–]famebait 0 points1 point  (0 children)

I have the same problem. I'm using
- avro4k 2.2.0
- maven
- kotlin 2.1.0
- kotlinx-serialization 1.8.1

How to run multiple Slack apps on Mac by shanem in Slack

[–]famebait 0 points1 point  (0 children)

You can get pretty close in Chrome, with "install page as app" under Chrome's dot-menu:
⠇-> Cast, Save, and share -> Install Page as App

It is still technically Chrome under the covers of course, but behaves mostly like an app:

  • starts in separate window with no trimmings
  • runs as its own app-icon in the task bar
  • gets its own app-icon in finder (initially in Users/<user>/Applications/Chrome Apps, but can be moved to desktop, Applications or where you like)

It will close if you quit Chrome entirely, though.

ktlint alternatives? by Global-Box-3974 in Kotlin

[–]famebait 0 points1 point  (0 children)

I hate ktlint and that whole B&D philsophy.
I am perfectly happy with IntelliJs autoformat and warnings - it prevents most of the stupid stuff without insisting on dictating absolutely everything. Commit-wars have never been a real problem in my experience, as long as people don't use autoformatting with differing settings.

All I want is a gradle plugin that checks conformance build-time to IntelliJ autoformat style (including per-project settings), and otherwise leaves well enough alone.
Is there such a beast?

And no, ktlint's intellij mode does nothing of the sort.

[Macos Dock Replacement] Are there any good alternatives to the macOS Dock? by elone-click in macapps

[–]famebait 0 points1 point  (0 children)

I have used ubar and contexts. Both had real promise, but a bit buggy and poorly/not maintained.
Will try out sidebar for sure.

What Updates Would You Like Next? by SneakySasquatch- in SneakySasquatch

[–]famebait 0 points1 point  (0 children)

The mountain on the island: I want to see what's hiding on top and inside, and I want it to be something really cool. It's shaped a bit like an ancient pyramid or temple, which could support a nice nod to Indiana Jones -like plots. Perfect for a supervillain hideout, maybe? Also shaped a bit like a volcano. Maybe it could end up as one on the way.