slf4j has more implements. but you have none in you class path, that is the reason.
add it
gradle example
build.gradle
```
dependencies { implementation 'org.slf4j:slf4j-log4j12:1.7.36' }
```
slf4j has more implements. but you have none in you class path, that is the reason.
add it
gradle example
build.gradle
```
dependencies { implementation 'org.slf4j:slf4j-log4j12:1.7.36' }
```
explain someSql;
possible_keys show useable keys
explain select a from b use index (c) where xxx ;
show index from tableA;
create index someIndex on someTable(someColumn);
drop index someIndex on someTable;
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: some table
partitions: NULL
type: ALL
possible_keys: PRIMARY
key: NULL
key_len: NULL
ref: NULL
rows: 2972
filtered: 1.11
Extra: Using where
INSERT IGNORE INTO users (userid,username) VALUES (2,'swan'),(4,'bear') ;
--- Query OK, 1 row affected, 1 warning (0.02 sec) Records: 2 Duplicates: 1 Warnings: 1
select *
from icons where id in(4, 5, 6) order by field(id, 5, 4, 6) => mysql> select * from icons where id in(4, 5, 6) order by field(id, 5, 4, 6);
これはwebpackerがコンパイル*されていないことが原因です。
なので下記のコマンドで解決しました。
rails webpacker:install
rails webpacker:compile
毎回やりかを忘れ。。
$ git clone https://github.com/private-organization/repository.git Cloning into 'repository'... Username for 'https://github.com': xxx Password for 'https://xxx@github.com': {ここでGitHubのパスワードでなくtokenを入力する}
libpq-fe.h が見当たらないらしい。
次のコマンドで postgresql をインストールすることで解決。
libpqはpostgresqlのことだね
brew install postgresqlpackage main
import (
"fmt"
"crypto/sha256"
)
func main() {
//saltで値変わるね
salt:="test"
hash := hmac.New(sha256.New, []byte("1"))
hash.Write([]byte(salt))
fmt.Printf("%x\n", hash.Sum(nil))
}
// 1.初期化設定 $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile // 2.初期化設定の反映(既存のRubyはこれで無視される) $ source ~/.bash_profile // 3.rbenvのインストール: $ brew install rbenv ruby-build // 4.インストール可能なRubyのバージョン一覧の表示 $ rbenv install -l // 5.指定したRubyのバージョンをインストール $ rbenv install 2.3.5 // 6.インストールしたRubyを使用可能な状態にする⇒shimsへの反映 $ rbenv rehash
全く同じ手順で nodenvをインストールできる