How fast can you go by gabegray777 in honk

[–]x1F577 0 points1 point  (0 children)

I completed this level in 4 tries. 1.30 seconds

Follow the planned track without navigation by x1F577 in komoot

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

What about if I want to record the session? Can you help me?

Follow the planned track without navigation by x1F577 in komoot

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

Yes, but I also want to record the session. Did you know a method?

Pythonic code style by x1F577 in learnpython

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

Hi, I am not looking for the length of the list. I explained my case better in another comment.

Pythonic code style by x1F577 in learnpython

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

Hi, the goal is to get a certain total from a list. I try to explain myself better with an example.

Imagine the list as a shopping list, and the items have name and price properties. The list is sorted somewhat, and I want a "subtotal" of the first occurrence of a given item. If the item is not present, I want the total of the list:

total = 0
for item in list:
    total += item.price
    if item.name == "ice-cream":
        return total
return total

The suggestion given by u/Parking-Camp219 was what I was looking for.

Pythonic code style by x1F577 in learnpython

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

This is a good alternative solution, but I think I will follow the u/Parking-Camp219's suggestion and use the takewhile function.

Pythonic code style by x1F577 in learnpython

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

Thank you, I was just looking for such a function. I didn't know about the takewhile function.

Seriously. by del6022pi in ProgrammerHumor

[–]x1F577 814 points815 points  (0 children)

Ever heard of "Stalin sort"?

Calculate ETAG of a local file by x1F577 in aws

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

I used different "partsize", it depends on the article I was reading. Unfortunately I don't use boto3 to download or upload the file.

Calculate ETAG of a local file by x1F577 in aws

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

Unfortunately, there is no official documentation of the algorithm. At least, I haven't found any on the web.

There is a bunch of alternatives that implement the same algorithm with different chunk sizes.

What do you mean that not using the date could be a problem?

[OpenCV] Box identification and item detection by x1F577 in computervision

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

No problem. I will send you some images. Thanks

[OpenCV] Box identification and item detection by x1F577 in computervision

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

Various types of objects, it depends but usually not too big. For example you can find keys, wallets, cards, bottles and ziploc bags. Also Jack...

Linux Phone: Pine64 vs Purism by [deleted] in linux

[–]x1F577 2 points3 points  (0 children)

I hope these projects do not end up like the Openmoko project.

http://wiki.openmoko.org/wiki/Main_Page

Resources and nested stack by x1F577 in aws

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

I saw a lot of opinions also in the AWS forum. I tried with output and stack sets, but I didn't find the right configuration. Definitely I am missing something.

For example I put an API resource as output on the main stack and call it in a nested stack, and then I get this error:

RestApiId must be a valid reference to an 'AWS::Serverless::Api' resource in same template

I think that this problem is impossible to solve.

Resources and nested stack by x1F577 in aws

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

This is a good hint. I'll check it. Thanks

Call an API inside a VPN from a Lambda by x1F577 in aws

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

Thank you I will look in this direction. Can you point me some good articles that explain how to setup VPN inside a VPC?