nonsensicalization

u/nonsensicalization



r/Numpy•

An array where every element is a set. Emptying one by setting it to "set()" works as expected but using clear() on one clears ALL sets in the array. Why? Are they created as references to a single element? How do I get around this? I know I can a use a loop or list comprehension to get basically the same array with the expected behavior but is there a way with the numpy command?

import numpy as np
a = np.full((2, 2), set([1, 2]))
print(a)
a[0, 0] = set()
print(a)
a[0, 1].clear()
print(a)

output:

[[{1, 2} {1, 2}]
 [{1, 2} {1, 2}]]
[[set() {1, 2}]
 [{1, 2} {1, 2}]]
[[set() set()]
 [set() set()]]
22

r/maticnetwork•

Unless you are sending MATIC MetaMask shows a big fat zero for every transaction, there is no way to actually tell what you are confirming. The details are hidden in the tx data, which are not human readable. All smartcontract interactions on Polygon are essentially opaque until they are done.

That's a big security risk. A malicious site could pretend to initiate a benign tx and then send your entire wallet balance of a token. No way to know until it's gone. Hardware wallet doesn't help either, it shows the same data (ie nothing useful).

Are you all okay with this? Is there a better web3 wallet for Polygon besides MetaMask?

11

r/maticnetwork•

When doing a transaction on Polygon all MetaMask shows is basically the transaction fee. All the important data like how much of which asset I'm sending is unreadable because it's hidden in the hex encoded contract data. This leaves the doors wide open for malicious sites to announce an innocuous transaction and then steal all my dough.

Is there a better way? Are other Polygon-compatible web3 wallets doing a better job?

22

r/polygonnetwork•

When doing a transaction on Polygon all MetaMask shows is basically the transaction fee. All the important data like how much of which asset I'm sending is unreadable because it's hidden in the hex encoded contract data. This leaves the doors wide open for malicious sites to announce an innocuous transaction and then steal all my dough.

Is there a better way? Are other Polygon-compatible web3 wallets doing a better job?

02

r/cardano•

Staking Kills Privacy

Safety & Security

This is probably not news for most here but I just realized that there is practically no privacy when participating in staking.

When a wallet is staked every address from that wallet is associated with the wallet's staking key. Through that key it's trivial to see all addresses belonging to the wallet. In other words every transaction allows both parties to see the other side's entire wallet balance and third party transactions, no matter the amount of addresses being involved.

This also makes the use of change addresses for privacy reasons completely futile. In that light Yoroi's disclaimer that change addresses "maintain your privacy by obscuring which addresses belong to you on the blo

5639

r/startrek•

For context I grew up with TNG, DS9 is my favorite Trek show, liked Voyager too, watched those three multiple times. Original Star Trek and ENT weren't quite my thing.

That being said, I'm now in the middle of episode 12 of Discovery and it's awful. I've never dreaded watching another episode of Trek that much, I don't even feel like finishing this episode.

There are currently three characters in constant agony, their use of the parallel universe is the epitome of anti-fun, I really don't like any of the characters nor stories, the whole thing doesn't feel like Star Trek at all to me. This is far worse than the weak first seasons of other Trek shows, it's agonizing. I looked at the IMDb ra

27123

r/linux_gaming•

I use nvidia-xrun to enable my optimus dGPU on demand, the only thing that was missing was actually working vsync.

After RTFM I finally found the solution: the nvidia-xrun script can be easily modified to enable vsync.

Just add modeset=1 to the line

 execute "sudo modprobe nvidia_drm"  

so it says

 execute "sudo modprobe nvidia_drm modeset=1"

I suggest making a user copy of the script for this.

That's it, working on-demand power with vsync.

If you are not using nvidia-xrun: that parameter can also be set as a kernel boot option: nvidia-drm.modeset=1

There is a [guide on the arch wiki](https://wiki.a

34

r/rpg_gamers•

I love JRPGs for their characters and story but they often have a equipment progression that's as boring as possible. Start with wooden sword, next town wooden sword +1, find chest with wooden sword +2 etc. It's predictable and there is never a question about which piece is better. Plus there is often only the absolute minimum of equipment slots, like weapon, armor, trinket or something like that. It's often so dull they could as well have omitted equipment altogether.

I'm looking for JRPGs with a good story and a loot system more akin to Diablo, where loot is kinda unique and you sometimes have to make hard choices about what to wear. Bonus points for character stat customization, a man c

73



r/faeria•

For the second time I had a game where I was about to win on my next turn. My opponent had nothing left to do, no faeria, nothing. Then a brief freeze, a short disconnect and then suddenly I get the defeat. I'm either supremely unlucky when it comes to triggering bugs or there are working hacks for this game.

Before you flame me for not understanding the mechanics: I'm level 160+ and I assume there are no zero cost sudden death cards, not even in pandora.

34