Categories
Cryptocurrency Ethereum Mastering Development

What is the computing power of the Ethereum network in FLOPS?

The aproximate computing power of current Bitcoin network in terms of FLOPS (FP32) has been estimated at about ~80,000 exaFLOPS and being aware of the limits of the analogy because of the widespread use of ASICs in Bitcoin mining. I was wondering the computing power of the main Ethereum network, which is currently running on […]

Categories
Linux Mastering Development

Bash in Ubuntu WSL requires restart to initialize pyenv

I have a small but very strange issue with pyenv in Ubuntu 20.04 on WSL. When I start a shell then try to activate a virtual environment, I get the same issue as described here: https://stackoverflow.com/questions/45577194/failed-to-activate-virtualenv-with-pyenv?newreg=6d05e39c69f747f1aa0665f00ed129b7 However I have ~/.bashrc set up as described in the documentation, and if I restart the shell using exec […]

Categories
Mastering Development

Firebase Recycler View showing blank page, no errors

I’m creating app with Firebase implementation. Now I’m stuck with showing list of data using recyclerView. After using my code I have empty activity without any error in Logcat. I need someone’s help 🙁 This is my Activity: public class TestStatsActivity extends AppCompatActivity { private FirebaseAuth firebaseAuth; private FirebaseUser currentUser; private String currentUserId; FirebaseDatabase db […]

Categories
Mastering Development

Error in loop (On error Resume Next + if Err.Number > 0 then in VBA)

I using comment entry using VBA + Excel. Error occurring in this loop is pretty expected so i put On error Resume Next. if error occurs, the whole row will be colored in red. But i found problem with code.. if error occurs, not only the row with error but also the next row without […]

Categories
Mastering Development

infinite while loop in gale shapley algorithm (python)

I’m writing a gale shapely sorting algorithm, commonly referred to as the stable marriage problem. In short the idea behind the problem is creating stable matches between two equally sized groups of boys and girls, the goal is to make couples out of all the boys and girls based on the boy’s and girl’s preferences […]

Categories
Mastering Development

I have some challenges with Sklearn, gonna be happy if someone can enlighten me

from sklearn.preprocessing import binarize y_pred_class = binarize(y_pred_prob, 0.3)[0] This is the warning error; "C:\Users\THINK\.conda\envs\tens\lib\site-packages\sklearn\utils\validation.py:70: FutureWarning: Pass threshold=0.3 as keyword args. From version 0.25 passing these as positional arguments will result in an error FutureWarning)" Error ; "conda\envs\tens\lib\site-packages\sklearn\utils\validation.py in check_array(array, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, estimator) 621 "Reshape your data either […]

Categories
Mastering Development

Python Syntax Error, cannot find what i spelled wrong

i have this line of code in my python socket program, but it throws a syntax error, and for the love of god i cannot find what i spelled wrong. conn.send(f'{os.path.getsize(f'{os.path.curdir}\\{filename}’)}’.encode(FORMAT)) Here is the "peek problem" screenshot from visual studio code.

Categories
Mastering Development

Subset algebraic data type, or type-level set, in Haskell

Suppose you have a large number of types and a large number of functions that each return "subsets" of these types. Let’s use a small example to make the situation more explicit. Here’s a simple algebraic data type: data T = A | B | C and there are two functions f, g that return […]

Categories
Mastering Development

Why ./network.sh createChannel always give Channel creation failed and Create channel failed error?

I followed the Official Fabric Test Network tutorial "Using the Fabric Test Network ", but reported some errors when I ran ./network.sh createChannel. Log and errors like this + peer channel create -o localhost:7050 -c mychannel –ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx –outputBlock ./channel-artifacts/mychannel.block –tls –cafile /home/centos/go/src/github.com/hyperledger/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + res=1 Error: failed to create deliver client for orderer: […]

Categories
User Help

traffic bots increase site visits, how?

recently I found some companies that they use bots to increase traffics of websites. I have visits from many different IPs in my region after using one of these services. I know they use bot, and I can make one, but I don’t know how to do this by so many valid IPs. how can […]