王亚飞的博客

逃离安逸区

跳至正文
  • 首页
  • 编程
    • bug解决
    • 学习笔记
    • 开发技巧
  • 随笔
    • 旅行
    • 日记
    • 读后感
  • 文章归档

在亚马逊配置服务器后,配置ssh 公钥登录。并禁止密码登录。

发表评论
2567 views

首先在创建完成后会有一个密钥文件,通过密钥文件登录,xxx代表你的服务器信息

ssh -i "xxx.pem" xxx@xxx.xx.compute.amazonaws.com

登录成功后,创建root的密码,输入

su

Read more

本条目发布于 2021-08-13 。属于学习笔记 分类, 被贴了 linux/unix 标签。 作者是 wyfblues@163.com 。

nodejs的web3进行打包发送交易,调用合约方法

发表评论
4749 views

使用服务器nodejs的web3进行打包发送交易,调用合约,参考连接: 使用服务器nodejs的web3进行打包发送交易,调用合约:
调用代码
var contract = new web3.eth.Contract(c

Read more

本条目发布于 2021-08-10 。属于开发技巧 分类, 被贴了 前端 , 区块链 标签。 作者是 wyfblues@163.com 。

在Metamask中,new web3 对象

发表评论
2953 views

metamask环境中,使用metamask注入的 ethereum 对象来实例化
if (window.ethereum) {
    window.web3 = new Web3(ethereum);
    // 

Read more

本条目发布于 2021-08-10 。属于开发技巧 分类, 被贴了 前端 , 区块链 标签。 作者是 wyfblues@163.com 。

在dcloud环境中分享图片

发表评论
2116 views

在dcloud环境中的生成图片并分享,解决这个需求也花了我一定的时间,记录一下
注意,分享功能需要引入 plusshare.js 文件
这段代码是将base64图片分享的,如果是需要将自己的网页生成base64代码,可以

Read more

本条目发布于 2021-04-15 。属于开发技巧 分类, 被贴了 前端 , 编程笔记 标签。 作者是 wyfblues@163.com 。

dcloud中的网页生成为图片

发表评论
2136 views

大概思路

在h5页面中将节点转换为cavans,得到base64,然后调用api保存到本地
避免截图不全的问题,html2canvas是根据body进行截图,若内容高度高于body时,就会出现这样的问题(大概意思就是有滚

Read more

本条目发布于 2021-03-25 。属于开发技巧 分类, 被贴了 前端 , 编程笔记 标签。 作者是 wyfblues@163.com 。

ndoejs中同步请求mysql数据库

发表评论
2331 views

在JavaScript 的mysql库,默认的请求方法是异步的,返回结果处理逻辑是写在回调函数里的,如果操作稍微复杂,很容易掉进回调地狱而使代码看起来冗杂以及不好调试。这里附上本人常用的封装后的同步函数

命令行
npm 

Read more

本条目发布于 2020-12-11 。属于开发技巧 分类, 被贴了 nodejs , 编程笔记 标签。 作者是 wyfblues@163.com 。

composer报错: Could not fetch XXX please create a GitHub OAuth token to go over the API rate limit

发表评论
2014 views

在composer 同步下载vendor的时候提示报错信息:
Could not fetch https://api.github.com/repos/jquery/jquery-dist, please create 

Read more

本条目发布于 2020-07-21 。属于bug解决 分类, 被贴了 php 标签。 作者是 wyfblues@163.com 。

在phpstorm中修改改缩进距离

发表评论
1932 views

在phpstorm中修改改缩进距离:

  1. ##### file => settings => editor => code style => javascript
  2. ##### 将tab size/i

Read more

本条目发布于 2020-07-15 。属于开发技巧 分类, 被贴了 mac 标签。 作者是 wyfblues@163.com 。

flutter doctor报错:libimobiledevice and ideviceinstaller are not installed....

发表评论
6362 views

在运行 flutter doctor 查应用环境时报错;

✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, 

Read more

本条目发布于 2020-04-15 。属于bug解决 分类, 被贴了 fLutter 标签。 作者是 wyfblues@163.com 。

brew update 失败

发表评论
4377 views

brew update的时候报错:

...
Error: Fetching /usr/local failed!
Fetching /usr/local/Library/Taps/homebrew/homebrew-co

Read more

本条目发布于 2020-03-11 。属于bug解决 分类, 被贴了 mac 标签。 作者是 wyfblues@163.com 。

文章导航

← 早期文章
较新文章 →

Views

  • flutter doctor报错:libimobiledevice and ideviceinstaller are not installed.... - 6361 views
  • 安装node切换包n报错:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to nodejs.org:443 - 5180 views
  • nodejs的web3进行打包发送交易,调用合约方法 - 4748 views
  • solidity 中的字符串拼接 - 4612 views
  • brew update 失败 - 4374 views
  • mac 配置host 使得任意域名指向本地服务 - 4106 views
  • 使用hardhat在 etherscan 上开源你的智能合约 - 4095 views
  • 在插件中打开插件钱包 - 3844 views
  • web3 转换并解析input data, 在js中将BN格式转换为字符串或者是数字 - 3790 views
  • react-native报错 Navigator is deprecated and has been removed from this package. - 3696 views

分类目录

  • bug解决
  • 学习笔记
  • 开发技巧
  • 旅行
  • 日记
  • 编程
  • 读后感
  • 随笔

近期评论

  • wyfblues@163.com 发表在《 flutter doctor报错:libimobiledevice and ideviceinstaller are not installed....》
  • wyfblues@163.com 发表在《 flutter doctor报错:libimobiledevice and ideviceinstaller are not installed....》

近期文章

  • [iOS 开发] 如何申请证书并打 Ad Hoc 测试包给特定设备测试
  • Certificates, Identifiers & Profiles 的区别?带你彻底搞懂 iOS 签名的“三座大山”
  • chrome插件的 sverce worker 进程的重复触发问题研究
  • React Native项目构建报错: react-native-config error Command PhaseScriptExecution failed with a nonzero exit code
  • 了解 EIP-6963 : 与以太坊节点交互的新的协议
  • 在插件中打开插件钱包
  • 使用Hardhat和OpenZeppelin创建可升级的智能合约
  • React中防抖(Debounce)的实现
  • mac 配置host 使得任意域名指向本地服务
  • EIP-1193标准介绍

标签云

mac react-native python php nodejs 编程笔记 solidity 区块链 vue linux/unix 前端 react fLutter 数据库

欢迎您star或者fork本站源代码

GitHub stars GitHub forks

功能

  • 管理站点
  • 登录
  • GitBook
Copyright© 2025  王亚飞的博客  |  SiteMap  |  RSS Feed  |  友情链接 |  Hosting On  Linode |  百度统计
Powered by Django  |  liangliangyy | lylinux | 本页面加载耗时:0.114s