Univerally recognised mathematical symbols and their name/meaning
≡ is defined as/is equivalent to
= is equal to
≠ is not equal to
‖...‖ size (length) of
| package main | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| _ "github.com/bmizerany/pq" | |
| "os" | |
| "regexp" | |
| "strings" |
Univerally recognised mathematical symbols and their name/meaning
≡ is defined as/is equivalent to
= is equal to
≠ is not equal to
‖...‖ size (length) of
| var ethUtil = require('ethereumjs-util'); | |
| var data = 'Login'; | |
| var message = ethUtil.toBuffer(data); | |
| var msgHash = ethUtil.hashPersonalMessage(message); | |
| var privateKey = new Buffer('62debf78d596673bce224a85a90da5aecf6e781d9aadcaedd4f65586cfe670d2', "hex") | |
| var sig = ethUtil.ecsign(msgHash, privateKey); | |
| var signature = ethUtil.toBuffer(sig) |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/ethereum/go-ethereum/crypto" | |
| "github.com/go-ethereum/common/hexutil" | |
| ) | |
| func main() { |
System: Mac OS Sierra (10.12.6)
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
I hereby claim:
To claim this, I am signing this object:
| // Report on "stuck" ether in empty contracts | |
| // https://github.com/ethereum/EIPs/issues/156 | |
| // Usage: node find-stuck-ether.js [startBlock] [endBlock] > report.txt | |
| let Eth = require('ethjs'); | |
| let eth = new Eth(new Eth.HttpProvider('http://localhost:8545')); | |
| let ethutil = require('ethereumjs-util') | |
| async function main() { |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkeyfor a Primary Key constraint;keyfor a Unique constraint;exclfor an Exclusion constraint;idxfor any other kind of index;
| Using MongoDB in golang with mgo |