コンビーフ缶ぐるぐる
このアカウントは、notestockで公開設定になっていません。
お金は価値と交換されてべつの人のところに行ってさらに別の価値と交換されてぐるぐるするから僕にはわけがわからないw
よいしょ
- cld3がついにご勇退
- Ruby 2.5?
b6d7726ec (upstream/main) Remove language detection through cld3 (#17478)
85b86fe28 Add global `locale` param (#17464)
35850f819 Fix localization of cold-start follow recommendations (#17479)
52c1b8696 Fix Ruby 2.5 incompatibility (#17465)
\Master?/ \ますたー/
Merged mastodon/mastodon at b6d7726ecbc833abd00f6a9d36b24d9776cfe623.
これが
$ curl -sH 'Accept: application/json' https://mastodon.zunda.ninja/@zundan/107763738671556153 | jq .contentMap
{
"ja": "<p>よいしょ </p><p>- cld3がついにご勇退<br />- Ruby 2.5?</p><p>b6d7726ec (upstream/main) Remove language detection through cld3 (#17478)<br />85b86fe28 Add global `locale` param (#17464)<br />35850f819 Fix localization of cold-start follow recommendations (#17479)<br />52c1b8696 Fix Ruby 2.5 incompatibility (#17465)</p>"
}
こう
$ curl -sH 'Accept: application/json' https://mastodon.zunda.ninja/@zundan/107763775647114362 | jq .contentMap
null
ふむふむ
$ curl -sH 'Accept: application/json' https://mastodon.zunda.ninja/@zundan/107763848643382850 | jq .contentMap
{
"ja": "<p>投稿する言語を日本語にしてみましたよ</p>"
}
んむ
$ curl -sH 'Accept: application/json' https://mastodon.zunda.ninja/@zundan/107763856482995991 | jq .contentMap
{
"ja": "<p>This toot is in English only.</p>"
}
method=GET path=/api/v2/suggestions format=html controller=Api::V2::SuggestionsController action=index status=500 error='NoMethodError: undefined method `to_str' for :en:Symbol
おっと
@Gargron Here's the backtrace:
account_ids = account_ids_for_locale(I18n.locale.to_str.split(/[_-]/).first) - [account.id] - skip_account_ids
^^^^^^^
Did you mean? to_s
to_sym):
app/models/account_suggestions/global_source.rb:9:in `get'
app/models/account_suggestions.rb:12:in `block in get'
app/models/account_suggestions.rb:11:in `each'
app/models/account_suggestions.rb:11:in `each_with_object'
app/models/account_suggestions.rb:11:in `get'
app/controllers/api/v2/suggestions_controller.rb:17:in `set_suggestions'
@Gargron absolutely no problem! I was just grad to be able to catch something :)
Ubuntu 14.04.6 LTS+ESMです
$ sudo sh -c 'apt-get update && apt-get upgrade -y'
:
The following packages will be upgraded:
libpython2.7 libpython2.7-minimal libpython2.7-stdlib python2.7
python2.7-minimal
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
:
$ cat /var/run/reboot-required*
cat: /var/run/reboot-required*: No such file or directory
なんじゃろな
Mastodonでは知らない人のトゥートにも気軽にファボっちゃってて鳥でもそうなりつつあるんだけど気持ち悪がられるかなってたまにフォローしてもらってるかを確認しちゃったりする小心者です
すばやいおいげんさん
2adcad04f (upstream/main) Fix error in suggestions API due to typo (#17486)
\Master?/ \ますたー/
Merged mastodon/mastodon at 2adcad04ff96fc8e7cb9aeefef1b22ea38e65457.
ドイツに住んでた頃は電車でどこか行くと車窓に冷却塔が見えたりでそんなに忌避されてるふいんきはなかったんだよね。ドイツのエネルギー政策がひん曲がり始めたのはいつごろなんだろう。近くの駅の丘の上には巨大な発電風車も回ってた。
福島第一原発事故がきっかけだったらしい。なんか申しわけない…(´・ω・`)
エネルギー転換を着実に進めるドイツ https://japan.ahk.de/jp/infothek/japan-im-ueberblick/motto-doitsu/082018-kumagai
@yoka 夏に、ミュンヘンだったらイギリス庭園のビアガーデンに行くのがいいです!! 20年ほど前の情報だけど!カリーブルストとハムサラダとビール!冬はなぜかサバの炭火焼きがあるけど暗くて寒いですw
えぇぇぇえぇぇぇぇぇ…ぇぇぇ…
灰色の工場風景の中にジャンプ台 首鋼ビッグエア競技場(共同通信) - Yahoo!ニュース https://news.yahoo.co.jp/articles/497e3d67d5caf716e5e8973373a1c7c4130828e1
https://www.telasa.jp/videos/192180
日本では新年だったw (TVerで見えたんだけどこれのためにお金を払うほどではない気のする)
署名入りの文書をQRコードにして公開しようの回
$ echo こんにちは | gpg --clear-sign --armor | qrencode -o hello.png
このアカウントは、notestockで公開設定になっていません。
ご参考(楕円鍵をつくるところから)
OpenPGP公開鍵をTシャツにして着る
https://zenn.dev/zunda/articles/fb5c59bdb93f70
ワクチン接種証明書(SMART Health Card)もTシャツにできそうだけど本名と誕生日も見えちゃうからちゅういね
https://zenn.dev/zunda/articles/53ca4d514c1a4d
このアカウントは、notestockで公開設定になっていません。
OpenPGP公開鍵Tシャツ、インポート可能な公開鍵をQRコードで載せると同時に、人が読める形で鍵指紋を載せると良さそう。
QRコードは1枚で1817文字の漢字までエンコードできるようです。漢字?
https://www.keyence.co.jp/ss/products/autoid/codereader/basic2d_qr.jsp
バイナリで2953オクテットまでなのかな?
https://www.qrcode.com/about/version.html
HTMLからプレインテキストへの変換はw3mも便利わよ
$ curl -sH 'Accept: application/json' https://mastodon.zunda.ninja/@zundan/107765379289840286 | jq -r .content | w3m -T text/html -dump
バイナリで2953オクテットまでなのかな?
https://www.qrcode.com/about/version.html
30分強×6話です。一気に全部見ちゃうけどw
https://www.netflix.com/title/81340914
Twitterさんは適当に画像フォーマットを変えてしまうと知ってから自分のアイコンを変更する勇気のなくなったgifアニメアイコンのアカウントはこちらです
このアカウントは、notestockで公開設定になっていません。
お仕事ひとだんらくしたのでQiitadonのコードをローカルに動かして https://github.com/increments/mastodon/pull/123#issuecomment-1032254415 を確かめたいんだけど余白が少なすぎるぬ…
ひどいことをしたら通った
$ cd ~/.rbenv/versions/2.5.0/include/ruby-2.5.0/ruby
$ mv ruby.h ruby.h.orig
$ cp ~/.rbenv/versions/2.5.6/include/ruby-2.5.0/ruby/ruby.h .
次は
$ bundle install --path=vendor/bundle
:
Installing charlock_holmes 0.7.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
:
transliterator.cpp:39:22: error: ‘id_list’ was not declared in this scope; did
you mean ‘va_list’?
39 | StringEnumeration *id_list;
| ^~~~~~~
| va_list
:
Results logged to
/home/zunda/c/src/github.com/increments/mastodon/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/charlock_holmes-0.7.5/gem_make.out
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
> NFTを売買する末端の人々は、分散型信頼モデルや決済の仕組みを基本的に気にしませんが、お金がどこにあるかについては気にします。
世の中ねお金かお金なのよ
ブログ: web3の第一印象 https://okuranagaimo.blogspot.com/2022/01/web3_10.html
最近半径1メートルで流行のmilletさんが新しいアルバムをリリースしたらしいんだけどすでにアメリカのSpotifyで聞けるようになってるのすごい時代たねえ。ありがたいねえ。
https://open.spotify.com/artist/45ft4DyTCEJfQwTBHXpdhM
スマートコントラクトにはたぶんマインクラフトにCPUを建立する的な楽しみはあるんだろうけどねえ #酔っぱらいは皿を洗え
このアカウントは、notestockで公開設定になっていません。
transliterator.cpp:39:3: error: ‘StringEnumeration’ was not declared in this scope; did you mean ‘icu_67::StringEnumeration’?
C++のスコープの何かなのかな #なんもわからん
このアカウントは、notestockで公開設定になっていません。
Internet Archiverによると(!!)、2.3.3のリリースは2018-05-03。てかソースコードもアーカイブしてるのすごいなあ!!
https://archive.org/details/mastodon-2.3.3
古いlibicuを簡単には見つけられなかったのでGemfile*でcharlock_holmesを0.7.7にしちゃってみる。
Fetching charlock_holmes 0.7.7
Installing charlock_holmes 0.7.7 with native extensions
入るねえw
Bundle complete! 113 Gemfile dependencies, 263 gems now installed.
Bundled gems are installed into `./vendor/bundle`
🎉
有効期限切れのRoot CAを飲んでるのはexconの他にaws-sdk-coreがあった。
$ find vendor/bundle -type f -exec grep -l 'DST Root CA X3' {} +
vendor/bundle/ruby/2.5.0/gems/excon-0.59.0/data/cacert.pem
vendor/bundle/ruby/2.5.0/gems/aws-sdk-core-2.10.100/ca-bundle.crt
$ bundle update --source excon
:
Fetching excon 0.91.0 (was 0.59.0)
Installing excon 0.91.0 (was 0.59.0)
:
$ bundle update --source aws-sdk-core
:
Fetching aws-eventstream 1.2.0
Installing aws-eventstream 1.2.0
Fetching aws-sigv4 1.4.0 (was 1.0.2)
Installing aws-sigv4 1.4.0 (was 1.0.2)
Fetching jmespath 1.5.0 (was 1.3.1)
Installing jmespath 1.5.0 (was 1.3.1)
:
$ bundle clean
Removing excon (0.59.0)
Removing aws-sigv4 (1.0.2)
Removing jmespath (1.3.1)
Removing charlock_holmes (0.7.5)
$ find vendor/bundle -type f -exec grep -l 'DST Root CA X3' {} +
vendor/bundle/ruby/2.5.0/gems/aws-sdk-core-2.10.100/ca-bundle.crt
ありゃw
$ docker build .
Command 'docker' not found, but can be installed with:
snap install docker # version 20.10.8, or
apt install docker.io # version 20.10.7-0ubuntu5.1
See 'snap info docker' for additional versions.
ですよねーw
$ sudo apt install docker.io
:
The following NEW packages will be installed:
bridge-utils containerd docker.io pigz runc ubuntu-fan
:
常用ユーザーで
$ docker build .
Got permission denied while trying to connect to the Docker daemon socket...
$ ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 Feb 8 19:46 /var/run/docker.sock
sudo vigrじゃなくてえーと
$ sudo usermod -a -G docker zunda
ログインしなおして
$ id
uid=1001(zunda) gid=1001(zunda) groups=1001(zunda),139(docker)
$ docker build .
Sending build context to Docker daemon 98.65MB
Step 1/23 : FROM ruby:2.4.3-alpine3.6
うし
docker build .でRyzenちゃんの実力を見せてやれ!!って思ったんだけどあんまりマルチプロセスになってないのかな…
⭐zundaにピッタリな四文字⭐
_人人人人人人_
> 腐ってる <
 ̄Y^Y^Y^Y^Y^Y ̄
#shindanmaker #あなたにピッタリな四文字
https://shindanmaker.com/1108497
…うん。保存は冷凍でたのむ…。
Dockerイメージできたとしてどうやってテストしよう。rails cでどこかにリクエストを飛ばせばいいのかな?
弊ぼっちのコードでは
$ RAILS_ENV=development bundle exec rails c
> Request.new("get", "https://mastodon.zunda.ninja/api/v1/instance").perform{|r| r}
[httplog] GET https://mastodon.zunda.ninja/api/v1/instance completed with status code 200 in 0.574483 seconds
=> #<HTTP::Response/1.1 200 OK {"Connection"=>"close", "Server"=>"Mastodon", "X-Frame-Options"=>"DENY", "X-Content-Type-Options"=>"nosniff", "X-Xss-Protection"=>"0", "Permissions-Policy"=>"interest-cohort=()", "X-Ratelimit-Limit"=>"300", "X-Ratelimit-Remaining"=>"297", "X-Ratelimit-Reset"=>"2022-02-09T06:05:00.333081Z", "Date"=>"Wed, 09 Feb 2022 06:01:24 GMT", "Content-Type"=>"application/json; charset=utf-8", "Cache-Control"=>"max-age=180, public", "Vary"=>"Accept-Encoding, Origin", "Content-Encoding"=>"gzip", "Etag"=>"W/\"9f6fa768a9aed57506b67e92d54b3d26\"", "X-Request-Id"=>"d96c246d-003e-42fd-9418-e20b329c6787", "X-Runtime"=>"0.010926", "Strict-Transport-Security"=>"max-age=63072000; includeSubDomains", "Transfer-Encoding"=>"chunked", "Via"=>"1.1 vegur"}>
:
Step 23/23 : ENTRYPOINT ["/sbin/tini", "--"]
---> Running in 3abffec573ac
Removing intermediate container 3abffec573ac
---> 871e120cf6af
Successfully built 871e120cf6af
$ docker run -it 871e120cf6af /bin/sh
> Request.new("get", "https://mastodon.zunda.ninja/api/v1/instance").perform
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed on https://mastodon.zunda.ninja/api/v1/instance
🎉 問題の再現に成功しましたよ
$ git diff
diff --git a/Gemfile.lock b/Gemfile.lock
index 632467c3..517ab5d3 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -172,7 +172,7 @@ GEM
erubi (1.7.0)
et-orbi (1.0.8)
tzinfo
- excon (0.59.0)
+ excon (0.86.0)
fabrication (2.18.0)
faker (1.8.4)
i18n (~> 0.5)
これでどーじゃ
そうそう、Makefile書く人はハードボイルドなハードタブ派じゃないとmissing separatorて怒られるよね
autocmd FileType make set noet ts=8
だめじゃん…
$ docker run -it 7299d740dead /bin/sh
~ $ RAILS_ENV=test bundle exec rails c
Chewy console strategy is `urgent`
Loading test environment (Rails 5.1.4)
irb(main):001:0> Request.new("get", "https://mastodon.zunda.ninja/api/v1/instance").perform{|r| r}
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed on https://mastodon.zunda.ninja/api/v1/instance
$ openssl s_client -connect mastodon.zunda.ninja:443 -servername mast
odon.zunda.ninja
CONNECTED(00000003)
depth=1 O = Digital Signature Trust Co., CN = DST Root CA X3
verify error:num=10:certificate has expired
notAfter=Sep 30 14:01:15 2021 GMT
verify return:0
depth=1 O = Digital Signature Trust Co., CN = DST Root CA X3
verify error:num=10:certificate has expired
notAfter=Sep 30 14:01:15 2021 GMT
verify return:0
depth=3 O = Digital Signature Trust Co., CN = DST Root CA X3
verify error:num=10:certificate has expired
notAfter=Sep 30 14:01:15 2021 GMT
verify return:0
---
:
そっちかー
(10/12) Upgrading ca-certificates (20161130-r2 -> 20161130-r3)
これわねー
$ git diff Dockerfile
diff --git a/Dockerfile b/Dockerfile
index ad5344de..ed167c84 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,6 +20,7 @@ WORKDIR /mastodon
RUN apk -U upgrade \
&& apk add --no-cache ca-certificates wget \
+ && rm /etc/ssl/certs/ca-cert-DST_Root_CA_X3.pem \
&& update-ca-certificates \
&& apk add -t build-dependencies \
build-base \
これでどーだ
$ docker run -it 65f68d637b42 /bin/sh
~ $ grep ISRG /etc/ssl/cert.pem
=== /C=US/O=Internet Security Research Group/CN=ISRG Root X1
Subject: C=US, O=Internet Security Research Group, CN=ISRG Root X1
~ $ grep DST /etc/ssl/cert.pem
=== /C=US/O=Digital Signature Trust/OU=DST ACES/CN=DST ACES CA X6
Subject: C=US, O=Digital Signature Trust, OU=DST ACES, CN=DST ACES CA X6
=== /O=Digital Signature Trust Co./CN=DST Root CA X3
Subject: O=Digital Signature Trust Co., CN=DST Root CA X3
まだ居るなあ
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。