2022-01-01から1ヶ月間の記事一覧
arr = [1, 2, 3, 2, 4, 1] arr.tally.filter_map { |k, v| k if v > 1 }.sort => [1, 2] arr.group_by{ |i| i }.reject{ |k,v| v.one? }.keys.sort => [1, 2] arr.filter_map{ |i| i if arr.count(i) > 1 }.uniq.sort => [1, 2]
gemのアップデートをしたら libffi.so.8: cannot open shared object file: No such file or directory でrailsが動かなくなった
libffi.so.8 が無いと怒られた /home/usernam/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': libffi.so.8: cannot open shared object file: No such file or …
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal