Giszmo

Vina del Mar, Chile

https://play.google.com/store/apps/details?id=de.leowandersleb.fluxcards

As stackoverflow is my most valuable site both to read when I find it in the search results and to ask when I actually struggle for hours with some issue, I try to contribute, too.

If you find my answers valuable, feel free to buy me a freshly squeezed orange juice: 12udWQuKBSLTF6EsbP9Rs2b4zXRRAxGzMS

Jun
18
comment How can I find the first element's method result that is not null?
Thanks for your suggestion. For a one-off thing it's overkill but I'll keep it in mind if the pattern returns.
Jun
18
awarded Supporter
Jun
18
awarded Autobiographer
Jun
18
comment How can I find the first element's method result that is not null?
I ended up using @gromyk's solution for being slightly shorter and more explicit about not throwing if it != null wasn't fulfilled but as you were the first to come up with sequences and actually explained stuff, your answer it is. Thanks.
Jun
18
accepted How can I find the first element's method result that is not null?
Jun
18
comment How can I find the first element's method result that is not null?
Awesome! Definitely sequences are missing in my toolbox. I'll give the others until tomorrow to come up with something to beat this but I like it already for the tool I was missing.
Jun
18
asked How can I find the first element's method result that is not null?
Jun
11
comment How to mock new Date() in java using Mockito
Sad the answer doesn't answer the question. If my code code uses a library which uses a library which uses new Date() and my test stopped working because the test vector contained a certificate valid until yesterday, I don't see how to remove the use of new Date() from the library to quickly fix my test.
Jun
7
revised What is the order in which UTXOs are sorted in a block?
Blocks don't accept. Miners do. Also elaborated on RBF.
Jun
6
comment What is the order in which UTXOs are sorted in a block?
I would not mention the coinbase transaction, as its ordering is quite irrelevant to the question. tx3 can spend tx2's outputs but no tx can spend coinbase's outputs for another 100 blocks, so its position is kind of besides the point.
Jun
6
answered How can I accept Bitcoin as a payment without a 3rd party gateway
Jun
5
comment Will hashing bytes from /dev/urandom yield a secure private key?
I'm struggling a bit with your answer. If the RNG is compromised (and by looking at the output I can't know that), I think one would gain a lot if one were to use expensive key extension. If /dev/random puts out hash(someSecret, username, milliseconds), the manufacturer would know but the user had no chance of knowing but if I used an expensive key extension to get from seed to mnemonic, similar as mnemonic to masterseed is expensive, an attacker would have a hard time using his backdoor.
Jun
5
awarded Supporter
Jun
5
awarded Autobiographer
May
30
awarded Famous Question
Apr
22
comment Why does my GNOME settings mention "Moto C Plus"?
Gnah, thank you. The list does not contain the Phillips headphones I would instantly have associated in this way. Checking who in this house has a Moto C Plus now :D
Apr
22
awarded Scholar
Apr
22
accepted Why does my GNOME settings mention "Moto C Plus"?
Apr
22
awarded Student
Apr
22
asked Why does my GNOME settings mention "Moto C Plus"?
1 2 3 4 5