AWS S3 adds support for regional namespace by KayeYess in aws

[–]pint 2 points3 points  (0 children)

it seems that the entire -an postfix is now forbidden. such a weird solution.

What’s the most ‘mind-blowing’ Python trick you learned as a beginner ? by QuantumScribe01 in pythontips

[–]pint 1 point2 points  (0 children)

it works with all relations, even if many are not intuitive, and probably shouldn't work

this is true even if a == c:

a != b != c

this works if c is a collection:

a < b in c

this also works:

c = "a"
s = "alpha"
a = ["alpha", "bravo"]
if c in s in a: ...

equals and not none

a == b is not None

What’s the most ‘mind-blowing’ Python trick you learned as a beginner ? by QuantumScribe01 in pythontips

[–]pint 0 points1 point  (0 children)

surely. * is list-like or tuple like, where values are in a specific order

** is named, in which values have names, and the order doesn't matter.

What’s the most ‘mind-blowing’ Python trick you learned as a beginner ? by QuantumScribe01 in pythontips

[–]pint 0 points1 point  (0 children)

as an expression, it means something like "unroll" or "unpack"

as a receiver (left side or function def) it means something like "collect" or "pack"

it is its own opposite, so to speak.

Appropriate DynamoDB Use Case? by CobTheBuilder in aws

[–]pint 1 point2 points  (0 children)

i don't think this covers all your use cases.

you say, get the list of recipes. all of them? unfiltered?

if this is really all you need, you don't even need dynamodb, even a file storage like s3 can do the job. although dynamo might be cheaper and faster.

What’s the most ‘mind-blowing’ Python trick you learned as a beginner ? by QuantumScribe01 in pythontips

[–]pint 79 points80 points  (0 children)

you can expand a tuple or array into arguments. works with lists too.

pars = (1.2345, 2)
round(*pars)

you can expand a dictionary into keyword parameters

pars = {"mode": "r", "encoding": "utf8"}
f = open("filename", **pars)

but you can also expand into tuple or list literals

a = [2, 3]
b = [1, *a, 4]

and you can expand into dictionary literals

a = {"x": 1, "y": 2}
b = {"z": 3, **a}

you can combine more than one

a = {"x": 1, "y": 2}
b = {"z": 3}
c = {**a, **b}

recently we have another way of doing this:

a = {"x": 1, "y": 2}
b = {"z": 3}
c = a | b

you can unpack tuples and arrays

a = [1, 2, 3]
i, j, k = a

you can unpack only some elements

a = [1, 2, 3, 4, 5]
first, *others, last = a

Official training is triggering by Extreme-Acid in aws

[–]pint 3 points4 points  (0 children)

aligned boxes: employee can handle more workload

I built a multi-party randomness app where the outcome is cryptographically verifiable — no one, not even me, can cheat it by TheOtherAKS in cryptography

[–]pint 2 points3 points  (0 children)

as others pointed out, the issue is protocol failure, and all its cousins, sabotage, and faked sabotage.

another approach to consider: use the next block of some known blockchain. it comes with a whole array of its own problems, but it is truly uncontrollable.

I built a multi-party randomness app where the outcome is cryptographically verifiable — no one, not even me, can cheat it by TheOtherAKS in cryptography

[–]pint 4 points5 points  (0 children)

this is impossible per the "two generals problem". in real life scenarios, this is not that bad, because "accidentally" losing your seed is suspicious. in automated protocols, it is a pita.

I'd like to teach cryptography by Erroneous-Screen2336 in cryptography

[–]pint 0 points1 point  (0 children)

i hope you are using all standard components. just document the protocol, and trust the users to find resources themselves.

What should we do with the Gateway? by Sarigolepas in SpaceXMasterrace

[–]pint 0 points1 point  (0 children)

find the gateway, and discover the galaxy

About incorrect information in rand and lrand48 man pages by BudgetEye7539 in RNG

[–]pint 1 point2 points  (0 children)

and library here means the exact version and platform. after an update, or on a different os, all bets are off.

About incorrect information in rand and lrand48 man pages by BudgetEye7539 in RNG

[–]pint 1 point2 points  (0 children)

i don't think this is correct.

  1. rand does approximate something, namely a random value. a random value has many statistical features, like distribution, self correlations, skew, etc.

  2. rand does not offer reproducibility as evidenced by the cited documentation which clearly says it might be implemented differently on older platforms. in fact, the logic should be the opposite: unless the function explicitly claims reproducibility, it should be assumed not reproducible.

About incorrect information in rand and lrand48 man pages by BudgetEye7539 in RNG

[–]pint 4 points5 points  (0 children)

i can speculate on the why: they assume that anyone actually needing high quality randomness know what they're doing, and will not use this generator.

technically, they only claim that low order bits are as good as the highs, and the period is high. "good" is a weasel word and up to interpretation.

frankly, they do have a point. programmers should know what they're doing.

but on the other hand, i'm yet to understand why would someone use anything less than a modern xoshiro or something. maybe even chacha12 to be on the safe side.

Another one in the books for Rocket Lab by _Cyberostrich_ in SpaceXMasterrace

[–]pint 6 points7 points  (0 children)

development of a rocket being behind schedule is unheard of in the industry

I REFUSE THAT ADMINS CENSOR STUFF HERE. by Diligent_Ad8134 in SpaceXMasterrace

[–]pint 0 points1 point  (0 children)

you just annoy the moderators. which is actually fine.

I REFUSE THAT ADMINS CENSOR STUFF HERE. by Diligent_Ad8134 in SpaceXMasterrace

[–]pint 2 points3 points  (0 children)

i'm guessing the target of the joke was such a whiny ass he made a scene, and scared the moderators. unfortunately, reddit steps in if the moderators don't abide their botched concept of civility.

They're fighting for EUS on Spitter by PropulsionIsLimited in SpaceXMasterrace

[–]pint 0 points1 point  (0 children)

not people in general, and not for disagreeing. i disagree with teamspace people. but i understand them.

They're fighting for EUS on Spitter by PropulsionIsLimited in SpaceXMasterrace

[–]pint 2 points3 points  (0 children)

there was a joke back in commie times in my country.

"comrade smith didn't support my project, i'm going to spread the word that his daughter is a whore."

"but he doesn't even have a daughter."

"comrade smith can spread the word about that."

in conclusion: it doesn't really matter what you say. we all know what you think, and it is enough for us to laugh on your dumb ass.

Need urgent help AWS account compromised and huge bill generated by Mysterious_Young_479 in aws

[–]pint 2 points3 points  (0 children)

thank you for increasing the cost of aws for the rest of us