Home
Yates Zhang
Cancel

Rails Rails6特别神奇的问题cannot Load Such File Net Smtp Net Imap

refer to How to fix #ruby 3.1.0 "cannot load such file -- net/smtp, net-imap, net-pop" in #rails and co. : ```# just add to Gemfilegem 'net-smtp', require: falsegem 'net-imap', require: falsegem '...

Rails Activejob的使用

参考:https://guides.rubyonrails.org/v6.1/active_job_basics.html 1. 需要一个redis server 运行在本地  6379端口(默认端口) 2. 创建一个新的rails job class SayHiJob < ApplicationJob queue_as :default # 参数就是个普通的ha...

Omega快捷键

1. 在设置中,可以看到有快捷键 alt + shift + o (貌似无法更改) 2. 默认打开是这样的: 然后输入   /   (或者  ? ) ,就可以看到对应的数字 如果要切换多个代理的话,直接 输入 上图红框中的即可。 一键切换 如下图所示,可以设置一键切换(我过去4,5年的时间啊5555)

使用fly.io

refer to: https://fly.io/docs/speedrun/ fly.io 是一个类似于heroku, 是一个PAAS平台。 也就是说,目的是为了担任一部分的运维工作。 传统的方式:  PUSH 代码 +  虚拟机 fly.io , heroku 的方式:  在开发者的本地使用 命令行, 来上传代码和 启动服务器 注册和登录:  ...

使用asdf安装erlang, elixir, nodejs ,也可以安装ruby

参考:https://asdf-vm.com/guide/getting-started.html#_1-install-dependencies https://www.pluralsight.com/guides/installing-elixir-erlang-with-asdf git clone https://github.com/asdf-vm/asdf.git ~/.asdf...

Git Cherry Pick

用git 好多年了,不过cherry pick , rebase这些都基本没用过。 参考:https://www.ruanyifeng.com/blog/2020/04/git-cherry-pick.html 例如,想把branch1 分支上的某个commit 弄到mater分支上, 就可以: 1. $ git checkout master  2. (此时在master分支)...

Windows Docker Nuxt

参考: https://nuxtjs.org/docs/configuration-glossary/configuration-watchers/ https://webpack.js.org/configuration/watch/#watchoptions 如果你的项目是个nuxt (webpacker)项目的话, 会发现windows下的docker中的文件改变之后,对应的项目没有r...

Rails swagger的使用 rswag 与 openapi v3

refer to: https://medium.com/@clarkjohnson_85334/adding-swagger-docs-to-a-rails-6-api-using-rswag-a3e8bc577986 rswag 官网: https://github.com/rswag/rswag/ open api v3 官网: https://github.com...

Windows Disable Touch Screen

refer to https://www.windowscentral.com/how-disable-touch-display-windows-10 设备管理器 -》 人机接口设备 -》 触摸屏 , 右键, 禁用即可

Windows Wsl Ubuntu

2014年使用Titanium 做移动开发的时候,就有这样的感受:android做不好,ios也做不好,只能做一些粗浅的事情 2018 使用ReactNative的时候,也是一样。 2022年使用windows + wsl + ubuntu, 感觉仍然类似 想要在这个开发环境下用好,必须同时熟悉windows, ubuntu 你需要知道windows下的ip,  linux下的i...