Home
Yates Zhang
Cancel

Linux Nohup的新用法setsid Nohup

refer to: https://unix.stackexchange.com/questions/446625/why-nohup-background-process-is-getting-killed 貌似在最新的版本(ubuntu 20 + )中,仅仅使用 nohup ... & 是不行的 解决办法: 前面加上 setsid 增加 setsid 之前: 加了 sets...

Blockchain Solidity 使用mapping Hash

refer to: https://ethereum.stackexchange.com/questions/65589/return-a-mapping-in-a-getall-function 声明 mapping(address => uint ) whiteList ;  用来声名, key是 address, value是 uint 使用 想要读取它的话,直接声明...

Blockchain Solidity 使用array Length Push Pop Loop

refer to: https://www.tutorialspoint.com/solidity/solidity_arrays.htm https://docs.soliditylang.org/en/v0.8.15/types.html#array-members 在Solidity中,array的长度(length) 都是固定的。跟其他静态语言的使用是一样的。 声明 上来就是个固定长...

Gin框架急速入门

 安装go go 1.17   ( 下载tar, 编译) 1870 tar zxvf go1.17.linux-amd64.tar.gz go 1871 mv go /usr/local/ 1872 sudo mv go /usr/local/ export PATH=$PATH:/usr/local/go/bin 查看环境:  $ go e...

Blockchain Web3 Contract.method.之后的调用顺序

官方文档:https://web3js.readthedocs.io/en/v1.7.3/web3-eth-contract.html#methods-mymethod-send Promievent:  https://github.com/naddison36/promievent 例如, 下面的代码: var Contract = require('web3-eth-cont...

Cloudflare Dns 使用nginx Cloudflare 创建无需配置的ssl Https

传统的https的配置步骤是: 1. (在阿里云上) 购买ssl 证书 2. 下载该证书文件到服务器(.key, .pem, .crt 等等) 3. 在nginx中进行配置。(443 端口, ssl_file 等信息) 现在,使用cloudflare(免费) + 配置域名dns + nginx 80端口配置即可。 1. 在cloudflare上创建对应的site. 2. 确保每个域名都是...

Blockchain Web3 Solidity Memory与storage的区别

memory:  放在EVM内存中 storage: 持久化在 block上 所以到时候查询一下放在那里合适。 contract的constructor中的参数都是memory

Blockchain Solidity Modifier的使用underscore

refer to: https://ethereum.stackexchange.com/questions/5861/are-underscores-in-modifiers-code-or-are-they-just-meant-to-look-cool modifier 就是一个function before hook, 1.  _ 下划线表示被hook的方法内容。 2....

Blockchain Solidity Evm虚拟机深入与如何工作的

refer to: https://medium.com/mycrypto/the-ethereum-virtual-machine-how-does-it-work-9abac2b7c9e EVM = Ethereum Virtual Machine, 以太坊虚拟机 现在是用的 solidity, 之前用的是 Serpent, Mutan solidity 无法直接被EVM运行, sol...

Blockchain Evm Web3 Evm系列的地址转换

refer to: https://forum.moralis.io/t/how-to-get-metamsk-address/2556 Web3.utils.toChecksumAddress("0xb0557906c617f0048a700758606f64b33d0c41a6") => '0xb0557906c617f0048A700758606f64b33D0C41A6'