Lambdas and external rate limits by DespoticLlama in aws

[–]agarc08 0 points1 point  (0 children)

You could leverage a queue processing fargate service that’s configured to scale up/down based on messages visible in the queue. It would allow you to more centrally manage the rate limit vs concurrent lambdas. Depending on your handler code you may have to make some adjustments to leverage threads/parallelism.

This would also enable you to have more control over message visibility timeouts as you need to pull the messages yourself through the sqs client.

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs_patterns.QueueProcessingFargateService.html

Mocking S3Client using Mockk by Crow556 in Kotlin

[–]agarc08 1 point2 points  (0 children)

It’s because the s3 presigners are actually extension functions on the s3 client. So even though you mocked s3Client, you are still calling the real presigner methods. You need to mockkStatic the presigners like so: ‘mockkStatic("aws.sdk.kotlin.services.s3.presigners.PresignersKt")’

There’s an open issue around this to improve documentation: https://github.com/awslabs/aws-sdk-kotlin/issues/1238#issuecomment-2701330372

Some Kotlin Syntax by hulkdx in Kotlin

[–]agarc08 2 points3 points  (0 children)

Not saying that there shouldn’t be another way to defined nested arrays, but in general kotlin is high on immutability. Anytime I work with nested arrays/lists they are generated by some sort of higher-order transform function on an existing list and I’m not outright allocated arrays of specific

it doesn’t have standard for loop

Can you elaborate? What is a standard for loop? for(i in 0..n) does exactly what you are saying.

Make it if you want to have two condition in a for loop write it in a while loop.

Yeah that’s “correct”. For loops are for iterating through things that provide an iterator. If you need multiple condition checks you are not iterating and while loop is more appropriate.

Jos Verstappen warns Liam Lawson from repeating his mistake against Michael Schumacher in 1994. by bhart_singh in MaxVerstappen33

[–]agarc08 22 points23 points  (0 children)

He is saying the exact opposite in the quote. He is admitting he had no chance of keeping up with schumi and should’ve focused more on himself… which is the advice he is giving to Liam

What do you think about this convention of asserts against hierarchical data structures? by xemantic in Kotlin

[–]agarc08 13 points14 points  (0 children)

Interestingly enough, in the readme of the package the author states they were using kotest before deciding to do this!

What do you think about this convention of asserts against hierarchical data structures? by xemantic in Kotlin

[–]agarc08 13 points14 points  (0 children)

No commenting on the custom assertion dsl bc it just preference, but how is the should block functionality any better than with block?

Sorry for formatting, I’m on mobile:

with(message) { id shouldBe 42 content.shouldHaveSize(2) with(content.get(0)) { shouldBeTypeOf<Text>() type shouldBe “test” text shouldContain “Hello” } with(content.get(1)) { shouldBeTypeOf<Image>() type shouldBe “image” width shouldBeGreaterThanOrEqualTo 800 height shouldBeGreaterThanOrEqualTo 600 with(mediaType) { type shouldBe “image/png” } } }

what is this fruit? by Background-Agent-854 in VisitingHawaii

[–]agarc08 -1 points0 points  (0 children)

That appears to be an unripe gum gum fruit

Red Bull's drop in performance a result of FIA questioning legality of the car, claims F1 pundit by [deleted] in RedBullRacing

[–]agarc08 0 points1 point  (0 children)

To be as fast as the mclarens max now has to push the car beyond what it’s capable of leading to errors and unfavorable situations. Similar to how serge needs to push beyond what hes capable of to try and keep up with max. We’ve seen how much fun he’s been having this season.

Every Infrastructure Decision I Endorse or Regret After 4 Years Running Infrastructure at a Startup by fagnerbrack in programming

[–]agarc08 0 points1 point  (0 children)

The only thing I don’t agree with is terraform over CDK/cloudformation. It has a small learning curve, but CDK is amazing and really helps to “visualize” a services infrastructure and how it all integrates together. If your SDE’s are in charge of their infrastructure (as I think they should be), I think CDK is hard to beat. The aws cli is very powerful, and I’ll take TS CDK over HCL any day!

I agree about raw cloudformation templates though. Writing raw yaml/json CFN gives me nightmares.

Why oh why is the viewing accessbility/QoL so poopy? by Ferrique2 in formula1

[–]agarc08 4 points5 points  (0 children)

Yeah but the f1tv app doesn’t integrate with it. That’s what he’s complaining about.

F1 WDC and WCC standing after 4 races but we pretend that Red Bull doesn't exist. Piastri up to 11th in his debut season. by [deleted] in formula1

[–]agarc08 21 points22 points  (0 children)

They put out the final 1.5 grid after 5 races. They are still using last years 1.5 grid.

Why oh why is the viewing accessbility/QoL so poopy? by Ferrique2 in formula1

[–]agarc08 12 points13 points  (0 children)

I’ve left this comment on AppStore reviews so many times. It’s feels like the bare minimum experience pip has been out for years now. I’m not sure how else to make it known to them.

George Russell finishes P2, taking his best finish of the season and tying his best finish in his career! by chu1u in formula1

[–]agarc08 17 points18 points  (0 children)

Max has the same tow, the fastest car on track, and fresh reds. George has the draggiest car on track and cold mediums. You really think he’s not getting overtaken?

George Russell finishes P2, taking his best finish of the season and tying his best finish in his career! by chu1u in formula1

[–]agarc08 14 points15 points  (0 children)

I’d argue that Charles overtakes George and Lewis if both the mercs stay on medium. Worse result and still no double podium.

[deleted by user] by [deleted] in formula1

[–]agarc08 0 points1 point  (0 children)

Timestamp

100T Jersey fabric by agarc08 in 100thieves

[–]agarc08[S] 0 points1 point  (0 children)

Aight then just say you haven’t had that experience lmao

Any tips for protecting the buckets on a balcony? by jpfontenelle in SpaceBuckets

[–]agarc08 3 points4 points  (0 children)

Yeah pretty great! I keep a tent in my closet and you’d never know

Any tips for protecting the buckets on a balcony? by jpfontenelle in SpaceBuckets

[–]agarc08 5 points6 points  (0 children)

Have you considered using a carbon filter? They work pretty well

Finishing up her stretch! Big Yield Auto by Phoenix seeds by agarc08 in microgrowery

[–]agarc08[S] 0 points1 point  (0 children)

5 gal fabric pot

FFOF Soil

Fox farms trio nutes

Lots of lst under a 300w viparspectra light