$ export GODEBUG=schedtrace=1000
*scheddetail*: setting schedtrace=X and scheddetail=1 causes the scheduler to emit
detailed multiline info every X milliseconds, describing state of the scheduler,
processors, threads and goroutines.
*schedtrace*: setting schedtrace=X causes the scheduler to emit a single line to standard
error every X milliseconds, summarizing the scheduler state.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/ethereum/go-ethereum/crypto/sha3" | |
) | |
func main() { | |
hash := sha3.NewKeccak256() |
- Ethereum is a world computer.
- Ethereum is a combination of A Singular World State+ A Virtual Machine.
- World State is a collection of all States.
- A State is a collection of Blocks.
- The World State is stored as a Patricia Merkle Trie as per Recursive Length Prefix(RLP) spec in a mini Database.
- Only a Virtual Machine can add a new State.
- The Virtual Machine needs fuel to execute instructions and the fuel is ‘Ether’ to prevent rogue actions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Caver = require('caver-js'); | |
const caver = new Caver('https://api.baobab.klaytn.net:8651'); | |
const acct = caver.klay.accounts.privateKeyToAccount('your_private_key') | |
caver.klay.accounts.wallet.add(acct) | |
/* | |
We will use the following contract to demonstrate the use of bytes32: | |
pragma solidity 0.4.24; |
Attempting mysql -u root
fails with Access denied for user 'root'@'localhost
immediately after doing brew install mariadb
and starting mariadb with brew services start mariadb
.
To fix it (with MariaDB still running):
sudo mysql
then enter your Mac user passwordALTER USER 'root'@'localhost' IDENTIFIED BY 'newrootpassword';
replacingnewrootpassword
with the password you wish to use for the MariaDB root user.- Ctrl-C to exit mysql.
You should then be able to connect to MariaDB with mysql -u root -p
, then entering the root password when prompted.