たれみみマンデー

2021-01-01から1年間の記事一覧

Base64とかUUIDとか

loumo.jp 勉強になったのでメモ。

【Rails】ローカルでメール確認

わかりやすかったです! メモ: techtechmedia.com

CONFLICT (content): Merge conflict in db/development.sqlite3 のエラー

git rm db/*.sqlite3 git commit -m "Removing SQLite files from git" rm .gitignore wget https://raw.githubusercontent.com/github/gitignore/master/Rails.gitignore mv Rails.gitignore .gitignore git add .gitignore git commit -m "Ignoring files …

bundle i でffiがインストールできないエラー

An error occurred while installing ffi (1.15.4), and Bundler cannot continue. Make sure that `gem install ffi -v '1.15.4' --source 'https://rubygems.org/'` succeeds before bundling. brew link --force libffi で出てくる export LDFLAGS="-L/us…

ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database

rails db:seed で ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database が出る問題は以下で解決。 stackoverflow.com はてぶろの編集画面にコードブロックない(パッとみ見当たらない)の使いづらいな。

無限ローディングをJavascriptでスクロールし続ける方法

#デベロッパーツールのコンソールで実行 ##Jsで無限スクロール const scroll = setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 1500); ###ストップ clearInterval(scroll); ##ついでに「詳しく読む」を開ける const open = s…

MySQL接続の備忘録

mysql -u rootCREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON *.* TO 'username'@'localhost'; flush privileges;