起きちゃった。お仕事したくないでござる!
> この項目では、名古屋市天白区の地名について説明しています。平針と通称される運転免許試験場については「愛知県運転免許試験場」を…をご覧ください。
通称されるんだ #今日のされるんだ
https://ja.wikipedia.org/wiki/%E5%B9%B3%E9%87%9D
弊ぼっちのときどきのっそりするのはやっぱりRedisかねえ…。hiredisを戻してTLSは使わないようにしたんだけどな。ぐぬぬ。
お仕事デスクトップで
$ rbenv install 3.2.0-rc1
:
make[1]: Leaving directory '/tmp/ruby-build.20221227001149.26958.MMJ89y/ruby-3.2.0-rc1'
Generating RDoc documentation
/tmp/ruby-build.20221227001149.26958.MMJ89y/ruby-3.2.0-rc1/lib/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
uh-oh! RDoc had a problem:
cannot load such file -- psych
run with --debug for full backtrace
uncommon.mk:596: recipe for target 'rdoc' failed
make: *** [rdoc] Error 1
なのはsudo apt install libyaml的な感じだっけ。
Ruby 3.2.0-rc1ではうまくいくbundle installが
$ rbenv local 3.2.0-rc1; bundle init; bundle add blurhash; bundle exec ruby -rblurhash -e 'puts Blurhash::VERSION'
Writing new Gemfile to /tmp/t/Gemfile
Fetching gem metadata from https://rubygems.org/...
Resolving dependencies...
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using bundler 2.4.0.dev
Fetching ffi 1.15.5
Installing ffi 1.15.5 with native extensions
Fetching blurhash 0.1.6
Installing blurhash 0.1.6 with native extensions
0.1.6
Ruby 3.2.0ではうまくいかない理由がわからないの
$ rbenv local 3.2.0; bundle init; bundle add blurhash; bundle exec ruby -rblurhash -e 'puts Blurhash::VERSION'
Writing new Gemfile to /tmp/t/Gemfile
Fetching gem metadata from https://rubygems.org/...
Resolving dependencies...
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using bundler 2.4.1
Fetching ffi 1.15.5
Installing ffi 1.15.5 with native extensions
Fetching blurhash 0.1.6
Installing blurhash 0.1.6 with native extensions
/tmp/t/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library '/tmp/t/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so': /tmp/t/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/../ext/blurhash/encode.so: cannot open shared object file: No such file or directory (LoadError)
from /tmp/t/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib/ffi/library.rb:99:in `map'
from /tmp/t/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib/ffi/library.rb:99:in `ffi_lib'
from /tmp/t/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/blurhash.rb:26:in `<module:Unstable>'
from /tmp/t/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/blurhash.rb:24:in `<module:Blurhash>'
from /tmp/t/vendor/bundle/ruby/3.2.0/gems/blurhash-0.1.6/lib/blurhash.rb:6:in `<top (required)>'
from -e:in `require'
特にストリーミングの要らないテスト用Mastodonを一時的に走らせるのは某ヘ社が便利だと思うんだけど言いづらいご時世 #言うなよ
https://github.com/zunda/mastodon/wiki/CreateInstanceOnHeroku
どばー
$ for v in 2.7.7 3.0.5 3.1.3 3.2.0-rc1 3.2.0; do mkdir $v; cd $v; rbenv local $v; bundle init; bundle add blurhash --git=https://github.com/zunda/blurhash.git --branch=use-so-under-lib; bundle exec ruby -rblurhash -e 'puts Blurhash::VERSION'; cd..; done
だいしっぱいw
cd..: command not found
Writing new Gemfile to /tmp/2.7.7/3.0.5/3.1.3/3.2.0-rc1/Gemfile
ruby-3.1.xまでは
$ bundle exec ruby -rblurhash
が
`require': cannot load such file -- blurhash (LoadError)
で落ちるんやね…
インストール先には変化はないからLOAD_PATH側かあってか誰やcdしないでbundle installしたの←
$ find . -name blurhash.rb 2>/dev/null
./3.1.3/vendor/bundle/ruby/3.1.0/bundler/gems/blurhash-7782e7068ae2/lib/blurhash.rb
./3.0.5/vendor/bundle/ruby/3.0.0/bundler/gems/blurhash-7782e7068ae2/lib/blurhash.rb
./2.7.7/vendor/bundle/ruby/2.7.0/bundler/gems/blurhash-7782e7068ae2/lib/blurhash.rb
./vendor/bundle/ruby/3.2.0/bundler/gems/blurhash-7782e7068ae2/lib/blurhash.rb
./3.2.0/vendor/bundle/ruby/3.2.0/bundler/gems/blurhash-7782e7068ae2/lib/blurhash.rb
./3.2.0-rc1/vendor/bundle/ruby/3.2.0+3/bundler/gems/blurhash-7782e7068ae2/lib/blurhash.rb
Rubyナンモワカラン
$ for v in 2.7.7 3.2.0; do cd $v; bundle exec ruby -e 'puts RUBY_VERSION;puts $LOAD_PATH.select{|p| p =~ /\A\/tmp/}';cd ..; done
2.7.7
/tmp/2.7.7/vendor/bundle/ruby/2.7.0/bundler/gems/blurhash-7782e7068ae2/lib
/tmp/2.7.7/vendor/bundle/ruby/2.7.0/bundler/gems/extensions/x86_64-linux/2.7.0/blurhash-7782e7068ae2
/tmp/2.7.7/vendor/bundle/ruby/2.7.0/gems/ffi-1.15.5/lib
/tmp/2.7.7/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.5
3.2.0
/tmp/3.2.0/vendor/bundle/ruby/3.2.0/bundler/gems/blurhash-7782e7068ae2/lib
/tmp/3.2.0/vendor/bundle/ruby/3.2.0/bundler/gems/extensions/x86_64-linux/3.2.0/blurhash-7782e7068ae2
/tmp/3.2.0/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib
/tmp/3.2.0/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5
-rオプションの前にbundlerがLOAD_PATHを足してくれるかという問題だったっぽいね。
$ for v in 2.7.7 3.0.5 3.1.3 3.2.0-rc1 3.2.0; do cd $v; bundle exec ruby -e 'require "blurhash"; puts Blurhash::VERSION'; cd ..; done
0.1.6
0.1.6
0.1.6
0.1.6
0.1.6
しかしデジタル署名が検証できるのは私有鍵を持っている人が署名した対象と内容が変化していないことだけなので、贋作の抑止にはなるけれど、著作権侵害の抑止にはなりづらいんだよね。
@taiyo 非常に困難だと思います。創作には模倣が欠かせないので、似ている作品が著作権を侵害していると自動的に決めることはできず、最終的には裁判所の判断を仰ぐ必要がありそうだと妄想してます。
@Yohei_Zuho ごじあい!どんなにがんばっても現実的には感染する確率をゼロにはできないししょうがないですよねー。
日常生活で感染する病気に感染する確率、ワクチンで1/10さらにマスクで1/5とか下げてくしかなくて、みんなでできることやってくしかないって、行方不明になった近所の触らせてくれるネコが
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.