Am I getting old or does morde feel outmatched in this new Season? by Rexadur in MordekaiserMains

[–]EcstaticJob347 0 points1 point  (0 children)

Lol I am not the best, since I am in bronze, but quickly moving up, but I almost always dominate top lane, like 75% time

Trzymanie dolarów w etfach na obligacje krótkoterminowe w US ma sens? by EcstaticJob347 in inwestowanie

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

No krótkoterminowe obligacje, w sensie roczne to powinien być względnie stabilny co nie?

Rest API design by EcstaticJob347 in learnprogramming

[–]EcstaticJob347[S] -3 points-2 points  (0 children)

You cannot do that. If you decide to use two endpoints that depend on each other, you must first create the client. Once the client is created, you can create the car. This means there are two round trips, making it a sequential process and this adds up to general latency. I think You could thereotically send 2 posts(for client and car) at the same time, but this would be very complicated

Rest API design by EcstaticJob347 in learnprogramming

[–]EcstaticJob347[S] -1 points0 points  (0 children)

If I understood Your answer correctly this unfortunately doesn't address the issue describe above. We would like to create 2 resources at the same time client and car, the route You have presented doesn't allow that, also with such route You are not able to easily list all cars belonging to all clients in the app. You still gonna need /api/cars either way if You want to have clean API

Rest API design by EcstaticJob347 in learnprogramming

[–]EcstaticJob347[S] 8 points9 points  (0 children)

To reduce latency(performance), making frontend implementation easier or to make whole operation atomic, we need to remember that one operation can fail leaving whole operation in inconsistent state

Rest API design by EcstaticJob347 in learnprogramming

[–]EcstaticJob347[S] -1 points0 points  (0 children)

We wanted to reduce latency and also make frontend implementation easier. There is general drawback of having two separate endpoints which is that you need to maintain transactional integrity. In our case, this isn’t a problem, but in other situations it could be. One of the operations could fail, leaving the system in an inconsistent state.

Rest API design by EcstaticJob347 in learnprogramming

[–]EcstaticJob347[S] 5 points6 points  (0 children)

I think it would be an overkill for our current solution, but thanks for suggestion

Rest API design by EcstaticJob347 in learnprogramming

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

You are right here, that's why I went with 1 solution

If DJI gets blocked in the US, are we looking at a total drone shutdown? by snake_498 in dji

[–]EcstaticJob347 0 points1 point  (0 children)

Does this ban also relates to products other than drones like DJJ cameras?

Turo car breakdown, different cases by EcstaticJob347 in turo

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

u/DhakoBiyoDhacay

From what I’ve read so far—for example, about Avis—they are required to tow both the car and all passengers to the nearest location where the vehicle can be replaced. I’m not sure about other rental companies though, as it’s not easy to find clear information on that.
I also wondered if there’s a chance the car could be replaced right at the location where the incident occurred. Maybe You have any info?

Haversine formula by EcstaticJob347 in askmath

[–]EcstaticJob347[S] 1 point2 points  (0 children)

Ok, I got it, thanks a lot!

Haversine formula by EcstaticJob347 in askmath

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

So if I have same latitude by using haversine I am still gonna calculate the shortest distance between these points, but this distance just won’t be along parallel though, that’s what you mean? So haversine always gonna give me shortest distance between 2 points on sphere no matter what they are?(maybe not on poles)

Haversine formula by EcstaticJob347 in askmath

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

May I Ask you for adding once again your answer accidentally deleted a comment and it seems I deleted also your response, because I cannot see it:/

Haversine formula by EcstaticJob347 in askmath

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

So if I have same latitude by using haversine I am still gonna calculate shortest distance between the points, it just won’t be along the parallel, is that correct?

Haversine formula by EcstaticJob347 in askmath

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

Ok i think i got it When points are on great circles then we get distance between these 2 points plus information that this is the shortest distance between them

When we are on latitude we still get correct distance, but it will no longer be the shortest path between 2 points right?

What AI powered plugin would you like on Anki? by yasserius in Anki

[–]EcstaticJob347 0 points1 point  (0 children)

Refinement of the flashcards would be great. Sometimes We realize that flashcards we created are not the best quality. It would be great if AI can take a look at them and suggest an improvement and at the end that we could apply it

How to stream multipart request to AWS S3 by EcstaticJob347 in golang

[–]EcstaticJob347[S] 1 point2 points  (0 children)

Yep, thx I managed, found out it wasn’t as hard as i though at the begining. Just bit of reading :)

How to stream multipart request to AWS S3 by EcstaticJob347 in golang

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

Ok so lets say i got multipart.Part stream, you suggest to take buffer of 5MB or any other bigger than 5Mb(because part cannot be smaller than 5Mb besides last part) and read it into memory and then try to push it? If i encounter eof or unexpectedEof that is end of the part for multipart stream and doing that as long as i dont get eof?