TwitterのアカウントもGoogleとかAppleのアカウントに連携してつくれるようになってたんだ
This account is not set to public on notestock.
お仕事しようね
a9c220242b (upstream/main) Fix admin-set follow recommandations being case-sensitive (#23500)
67de888bad Fix server status URL being a required server setting (#23499)
\Master?/ \ますたー/
Merged mastodon/mastodon at a9c220242bcc5f3d5e4c8ea92483f6b626a30ffa.
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.
へいぼっちのトゲトゲです (UTC日ごとに新しく知ったリモートアカウントの数です)。やっぱり買収の時のスパイクがいちばん大きい。
弊ぼっちのデータベースにクエリぶんなげて整形したファイルをgnuplotでグラフにしてるよ
https://gist.github.com/zunda/469b1ec142bde7edaee2262d2294df58
Gnomeでは設定-Devices-Keyboard-Switch to next/previous input sourceがCtrl-Spaceになっていた。fcitx側でもGlobal config-Hotkye-Trigegr Input MethodでCtrl-Spaceを設定してしまうと両者でInput Methodが2つ進んでしまうようだ。なるほどな…
アイコンを右クリックしても設定ウインドウを得られなくなったのは戻せないなw fcitx-config-gtk3を起動すればいいからヨシ。
いっくよー
61c5dfb929 (tag: v4.1.0, upstream/main, upstream/l10n_main) Update changelog (#23515)
70c0d754a6 Bump version to 4.1.0 (#23471)
0c9eac80d8 Fix unbounded recursion in post discovery (#23506)
719bb799be Remove DesspSouce config (#23513)
bae17ebe5e Fix attached media uploads not being cleared when replying to a post (#23504)
71ae17e8f5 New Crowdin updates (#23413)
This account is not set to public on notestock.
\Master?/ \ますたー/
Merged mastodon/mastodon at 61c5dfb9295ea66c376c452a7ef7379e8c562416.
v4.1.0 🎉
This account is not set to public on notestock.
ハードディスク (ヘッドとプラッタの距離の調整)とか電気製品一般 (放熱)とか気圧が低くなりすぎると動かなくなるよね (ずっと0.6気圧でムリさせてごめんな…
$ curl -s https:// mastodon.social/nodeinfo/2.0 | jq .usage.users.activeMonth
138639
に対して
$ curl -s https:// mstdn.jp/nodeinfo/2.0 | jq .usage.users.activeMonth
58661
だしもう3倍がんばって!!って思ったんだけど
$ curl -s https:// pawoo.net/nodeinfo/2.0 | jq .usage.users.activeMonth
488
なのでなんかちゃうかった
MastodonはPsych < 4に依存してるrails-settings-cached-0.6に強く依存してるからPsych 4になったRuby 3.1に対応するのはすんごく大変よ
This account is not set to public on notestock.
ちなみに弊ぼっちはrails-settings-cached-0.6.6をPsych 4に対応させてしのいでいるのでRuby 3.2.1で走ってます。きけん。
https://github.com/zunda/rails-settings-cached/tree/v0.6.6-aliases-true
tenderloveさんがRuby 3.2対応のプルリク投げてて、レビューもそれなりに進んでるっぽいから、マージされるの期待してたんだよね。
rails-settings-cachedは投げ捨てる方向性っぽいよ。
@nullkal どこかで見たことのあるブランチ名なので一蓮托生になるのかも…
https://github.com/mastodon/mastodon/pull/22928/files#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55fR77
@nullkal どこかで見たことのあるブランチ名なので一蓮托生になるのかも…
https://github.com/mastodon/mastodon/pull/22928/files#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55fR77
いずれにしろtenderloveさんがPsychを安全にしてくれたので彼が書いたプルリクなら安全な気がします (コードを読め←
https://github.com/mastodon/mastodon/pull/22928/files#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55fR77
@nullkal https://github.com/mastodon/rails-settings-cached を見に行ったら This branch is up to date with zunda/rails-settings-cached:main. と書いてありました。やばいw
@nullkal や、こっち https://github.com/mastodon/rails-settings-cached/tree/v0.6.6-aliases-true だ
> This branch is up to date with zunda/rails-settings-cached:v0.6.6-aliases-true.
やばいww Psych 4で入ったセキュリティ確保のための制限を回避してるんですよね…
$ git diff v0.6.6 v0.6.6-aliases-true lib
:
+ if Psych::VERSION.split('.').first >= '4'
+ YAML_load_opts = { aliases: true }
+ else
+ YAML_load_opts = {}
+ end
+
:
class Settings < ActiveRecord::Base
+ unless YAML.respond_to?(:unsafe_load)
+ class << YAML
+ alias :unsafe_load :load
+ end
+ end
+
rails-settings-cached-0.6.6と一蓮托生になる方向のプルリクがあるようです。うあー
https://github.com/mastodon/mastodon/pull/22928
@nullkal や、こっち https://github.com/mastodon/rails-settings-cached/tree/v0.6.6-aliases-true だ
> This branch is up to date with zunda/rails-settings-cached:v0.6.6-aliases-true.
やばいww Psych 4で入ったセキュリティ確保のための制限を回避してるんですよね…
$ git diff v0.6.6 v0.6.6-aliases-true lib
:
+ if Psych::VERSION.split('.').first >= '4'
+ YAML_load_opts = { aliases: true }
+ else
+ YAML_load_opts = {}
+ end
+
:
class Settings < ActiveRecord::Base
+ unless YAML.respond_to?(:unsafe_load)
+ class << YAML
+ alias :unsafe_load :load
+ end
+ end
+
Gnomeのfocus follows mouseはなんだかもっさりしていてターミナルを閉じようとCtrl-Dを押すとChromeがブックマークを作ったりChromeのタブを閉じようとするとSlackが消滅したりして楽しい #楽しくない
This account is not set to public on notestock.
M1 MacBook Airちゃんの環境整備。Git使うかわからないけれど、Ubuntuからgit-promptを持ってきて、
scp 家サーバ:/usr/lib/git-core/git-sh-prompt .git-sh-prompt
~/.zshrcを下記のような感じにした
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls -F'
source ~/.git-sh-prompt
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUPSTREAM="auto"
NEWLINE=$'\n'
setopt PROMPT_SUBST
PS1='%F{green}%n@%m%f:%F{cyan}%~%f $(__git_ps1)${NEWLINE}$ '
ぎゃーARM
$ heroku login
/opt/homebrew/bin/heroku: line 45: /opt/homebrew/opt/heroku-node/bin/node: Bad CPU type in executable
method=GET path=/api/v1/timelines/home format=html controller=Api::V1::Timelines::HomeController action=show status=500 error='NoMethodError: undefined method `fetch_value' for nil:NilClass' duration=20.38 view=0.00 db=7.10
NoMethodError (undefined method `fetch_value' for nil:NilClass):
app/controllers/concerns/cache_concern.rb:38:in `cache_collection'
app/controllers/api/v1/timelines/home_controller.rb:24:in `cached_home_statuses'
app/controllers/api/v1/timelines/home_controller.rb:20:in `load_statuses'
app/controllers/api/v1/timelines/home_controller.rb:9:in `show'
app/controllers/concerns/localized.rb:11:in `set_locale'
lib/mastodon/rack_middleware.rb:9:in `call'
Rosettaかあ…
Deploy to Heroku From a MacBook M1: Heroku CLI or GitHubActions | by Beppe Catanese | Geek Culture | Medium https://medium.com/geekculture/deploy-to-heroku-from-a-macbook-m1-heroku-cli-or-githubactions-868bc3a50935
あ、そうか、リモートからのメディアをブロックする機能があるね。リモートからのメディアを受け取らない最弱Mastodonサーバを作るときに参考になりそう。
そういえば2020 M1 MacBook Airに載ってきたmacOS Ventura 13.0のRubyです
$ ruby --version
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22]
えぇっ…わたしのRuby、
NoMethodError (undefined method `fetch_value' for nil:NilClass)、通知タイムラインに古いトゥートが載ると起きるのかもしれないな
https://github.com/zunda/mastodon/commit/e865d53316717cfd73f43b438f78a090f66129d3 で仕懸けたログが何か記録していた。raw.inspectでStatusの配列が見えて、ordered_media_attachment_idsが0以上の要素の配列ではなくnilになっているStatusがあった。今回見えたのはid: 109843836637077109。
Papertrailでざっと検索したところ
NOt "ordered_media_attachment_ids: nil" "raw :["
で見つかる行は無かったのでordered_media_attachment_idsが空配列ではなくnilになっているのがエラーの原因と考えて良いだろう。
イーサリアムのブロックチェーンにはスマートコントラクトと呼ばれるプログラムのバイナリコードとVM的なものが記録できるようになっていて、NFTやらなにやらスマートコントラクトして書かれたコードが稼動してるよ。スマートコントラクトの実行を進めるにはチェーンに新しいブロックを追加しないといけないからお金(イーサリアム)がかかるよ。
Postgresを覗くとid: 109843836637077109のstatusはordered_media_attachment_idsがNULLになっているのに対してひとつ前の要素のstatus (id: 109843832305808050)ではordered_media_attachment_idsに{}が入っていた。
NULLのstatusけっこうあるな。原因はこれじゃないかな。
> SELECT COUNT(1) FROM statuses WHERE created_at > '2023-02-11 02:30' AND created_at < '2023-02-11 03:00' AND ordered_media_attachment_ids IS NULL;
count
-------
187
(1 row)
> SELECT COUNT(1) FROM statuses WHERE created_at > '2023-02-11 02:30' AND created_at < '2023-02-11 03:00' AND ordered_media_attachment_ids IS NOT NULL;
count
-------
9
(1 row)
This account is not set to public on notestock.