Windows 安装linuxubuntu使用wsl的过程,终端预览terminalpreview+解决gitslow的问题
refer to: https://allthings.how/how-to-use-linux-terminal-in-windows-10/ 1. 准备条件 1.1 需要你的设备是win10 1.2 需要开启 wsl 1.3 需要设置默认的wsl version wsl --set-defa...
refer to: https://allthings.how/how-to-use-linux-terminal-in-windows-10/ 1. 准备条件 1.1 需要你的设备是win10 1.2 需要开启 wsl 1.3 需要设置默认的wsl version wsl --set-defa...
refer to: https://shishirsingh66g.medium.com/solidity-part-3-inheritance-virtual-override-and-super-d96344a9aa52 is: 用来表示继承关系 super: 在 child 中调用parent virt...
refer to: https://shishirsingh66g.medium.com/solidity-part-2-payable-fallback-and-receive-42c00cb75108#d763-5d1cfd4634ff payable: 这是一个modifier, 对于任何可以接受ETH的...
1. 需要在本地创建一个文件夹, 例如 /workspace/mysql_data 2. chmod 777 mysql_data (非常重要,具体参考: https://stackoverflow.com/questions/39175194/docker-compose-persist...
solidity: 无法在实现代码中打印log. 只能用event来实现非常原始的输出。 好消息是可以使用 foundry在单元测试中打印log. solidity: for 跟java一样 for(i = 0; i < array.length; i++ ) ... if 跟j...
refer to: https://www.prisma.io/docs/getting-started/setup-prisma/add-to-existing-project/relational-databases-typescript-postgres 1. 安装 node module: n...
refer to: https://ethereum.stackexchange.com/questions/30912/how-to-compare-strings-in-solidity 判断是否相同: 17 if( keccak256(abi.encodePacked(resul...
参考:https://stackoverflow.com/questions/59215476/cant-install-mongodb-properly-from-terminal-ubuntu-18-04-lts mongo在ubuntu上似乎有点问题: 默认安装的是 3.x 版本, 而目前 最新是5.0.x...
https://stackoverflow.com/questions/22907231/how-to-copy-files-from-host-to-docker-container sudo docker cp ~/<host_file> <container_id>:/<fil...
客户端: 参考: https://stackoverflow.com/questions/25947929/how-to-list-all-databases-in-the-mongo-shell mongo即可 show dbs use <db_name> show collections...
refer to: https://askubuntu.com/questions/1349511/no-driver-intel-iris-xe-under-ubuntu-21-04/1397412#1397412 最新代 i5 (11th) 的显卡无法被ubuntu识别的解决办法: 安装最新版的ubuntu ...
refer to: https://ubuntu.com/tutorials/create-a-usb-stick-on-windows#9-installation-complete
refer to: https://askubuntu.com/questions/1037908/installing-intel-graphics-in-18-04-lts
refer to: https://askubuntu.com/questions/1071299/how-to-install-wi-fi-driver-for-realtek-rtl8821ce-on-ubuntu-18-04 lshw -C network 就可以看到wifi的硬件。 然后根据上面的提示就...
特别神奇 这几天遇到个奇怪的错误: node14 安装的node_modules, 在node 16下面运行会报错 我之前用的nvm, 这个东东虽然可以自行切换版本(根据 .nvmrc ), 不过特别依赖与.nvmrc 所以切换成 asdf asdf虽然跟nvm 作用一样,但是好处在于可以管理所有东...
如题 参考:https://stackoverflow.com/questions/46032392/docker-compose-does-not-allow-to-use-local-images 所以不如直接用 docker-compose来做image, 貌似它有一套自己的管理image的机制
refer to: https://www.baeldung.com/linux/assign-port-docker-container $ docker commit 就行 映射本地端口 $ docker run -d -p 83:80 --name httpd-container httpd-im...
物理机上运行docker 一点问题没有。 但是vm上运行就卡的要死。8C 16G的VM也跑不起来。原因在于CPU跑到100%了。 但是在实体机上,CPU的负载就很平均
参考:https://stackoverflow.com/questions/30209776/docker-container-will-automatically-stop-after-docker-run-d?rq=1 Dockerfile中: ENTRYPOINT ["tail"]CMD ["-f","/...
refer to: https://docs.openzeppelin.com/contracts/5.x/ ERC20代币可以比作钞票,每张钞票无论面额大小,都是相同的,可以互换。 ERC721代币则像是艺术品,每件艺术品都是独一无二的,拥有不同的价值。 ERC777代币在ERC20的基础上增...