ハードウェア障害?はーどえりゃ!
HHKBのファームウェアの更新にはWindowsかmacOSが必要なのか…。そっかー…。
Happy Hacking Keyboard | ダウンロード | PFU https://happyhackingkb.com/jp/download/#fw
二度寝したね
2c6369918c (upstream/main) Fix `Style/RedundantArgument` cop (#28321)
9dfa940636 Update babel monorepo to v7.23.6 (#28319)
f3864db409 Fix notification sounds (#28316)
b5a1013ae3 Combine `CLI::...` spec example subjects (#28285)
4ad2e87c48 Update dependency debug to v1.9.0 (#28315)
79a81da69c New Crowdin Translations (automated) (#28291)
0e4233de9d Controller spec to request spec: `api/v2/suggestions` (#28297)
0c64092500 Controller spec to request spec: `api/v1/accounts/search` (#28299)
253393f3a8 Only attempt to remove indexes that exist in `CLI::Maintenance` script (#28286)
f5d6143aa1 Update dependency addressable to v2.8.6 (#28296)
16ede59d0a Controller spec to request spec: `api/v1/featured_tags/suggestions` (#28298)
809506bdd4 Controller spec to request spec: `api/v1/accounts/pins` (#28300)
94cc707ab3 Controller spec to request spec: `api/v1/accounts/notes` (#28301)
e544b6df42 Controller spec to request spec: `api/v1/accounts/lookup` (#28302)
(続く)
a968898dc7 Controller spec to request spec: `api/v1/accounts/lists` (#28303)
8f94502e7d Controller spec to request spec: `api/v1/accounts/identify_proofs` (#28304)
78347d2556 Controller spec to request spec: `api/v1/accounts/familiar_followers` (#28305)
11d2bd9716 Fix intermittent failure from unspecified order in `api/v1/accounts/relationships` spec (#28306)
b82fc8a2ca Update dependency ws to v8.15.0 (#28308)
a117155728 Update DefinitelyTyped types (non-major) (#28310)
7ddd937330 Update dependency prettier to v3.1.1 (#28311)
d0e7999a90 Update dependency typescript to v5.3.3 (#28312)
bd88883b6e Update eslint (non-major) (#28313)
afc8550b63 Change preview card deletes to be done using batch method (#28183)
\Master?/ \ますたー/
Merged mastodon/mastodon at 2c6369918c61a7f948f39926f987fcfa0b02fb82.
お
Ruby 3.3.0-rc1 Released
https://www.ruby-lang.org/en/news/2023/12/11/ruby-3-3-0-rc1-released/
$ git -C ~/.rbenv/plugins/ruby-build pull
$ rbenv install 3.3.0-rc1
ファンぶーん
$ rbenv local 3.3.0-rc1
$ bundle install
$ bundle exec rails assets:precompile
bin/rails aborted!
ArgumentError: comparison of String with nil failed (ArgumentError)
msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
^^^^^^^^^^
/home/zunda/c/src/github.com/zunda/mastodon/vendor/bundle/ruby/3.3.0+0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
:
ふーむ
$ cd ~/.rbenv/versions/3.3.0-rc1/
$ grep -r 'part of the default gems since Ruby'
lib/ruby/3.3.0+0/bundled_gems.rb: msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
SINCEはbundled_gems.rbで定義されているのでbootsnapが追い付けてないんだなきっと
$ cd ~/.rbenv/versions
$ diff -u 3.3.0-{preview3,rc1}/lib/ruby/3.3.0+0/bundled_gems.rb
してもそれほど大きな変化は見えないような気もする。
Gemfileからpreview3対応を取り除いたらエラーが変化した気もするな…
diff --git a/Gemfile b/Gemfile
index bbba833f43..1ade3a91fd 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,9 +2,7 @@
source 'https://rubygems.org'
-::RUBY_DESCRIPTION = Object.send(:remove_const, :RUBY_DESCRIPTION).sub(/dev/, 'preview3')
-Gem.remove_instance_variable(:@ruby_version) if Gem.instance_variable_defined?(:@ruby_version)
-ruby '3.3.0.preview3'
+ruby '3.3.0.rc1'
gem 'puma', '~> 6.3'
gem 'rails', '~> 7.1.1'
$ bundle install
は完走するようになった。
$ RAILS_ENV=test bundle exec rspec
はいくつか./vendor/bundle/ruby/3.3.0+0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'のcomparison of String with nil failedで落ちる。
./vendor/bundle/ruby/3.3.0+0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rbの最初で
module Kernel
module_function
alias_method(:require_without_bootsnap, :require)
とたぶん普通のrequireエイリアスしていて、それを
# Note that require registers to $LOADED_FEATURES while load does not.
ret = require_without_bootsnap(resolved)
Bootsnap::LoadPathCache.loaded_features_index.register(string_path, resolved)
return ret
で呼んでいて、あー、diff -u 3.3.0-{preview3,rc1}/lib/ruby/3.3.0+0/bundled_gems.rbするとself.replace_requireちゅうのが新しく定義されてるんだねえ。
このアカウントは、notestockで公開設定になっていません。
そういえばDr.STONE S3E21で「ボーカロイドは不気味の谷に居る」って言っててたけど僕はそうは感じないんだよなあ。生成AIの絵とか文章は不気味。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
僕の使っているコマンドラインツールの #ひかえめなアドベントカレンダー2023 12月11日分はsortとuniqです。テキストファイルとして保存された行ごとのデータなどを扱う時には、Rubyなどでプログラムを書くよりも小さいコマンドを組み合わせた方が簡単なこともあります。UNIX哲学だよ!
https://ja.wikipedia.org/wiki/UNIX%E5%93%B2%E5%AD%A6
例えば、bashのコマンド履歴から多く実行しているコマンドを知るには、cutコマンドで行頭のコマンド名を抽出し、辞書順に並べ、同じ行を数え、数字の逆順に並べ、最初だけを取り出します:
$ cut -f1 -d' ' .bash_history | sort | uniq -c | sort -nr | head
66 cat
35 git
31 cd
30 screen
27 ssh
24 vi
22 tail
20 ls
15 vim
14 man
てかviとvimと両方使ってるんだw
うぉっうぉー!
Tomorrow never knows / Mr.Children
https://open.spotify.com/track/2CbDcSVFCbMSfLMoZiAFYN
#スポチハイ
日本の政治資金の問題発言もちろんウンコなんだけど軍事費を増やさなきゃいけないタイミングで出てくるあたり中国政府のいんぼーを感じるよね #根拠なし
うるう秒はこのまま面倒なまま挿入され続けるといいなあ。1分とかためるのに100年とか待っちゃうとうるう秒を取り扱う技術が失われてそうな気がするんだよね。
同じことが果たして自分でもできるのか?とは思うけど興味ある。鯖缶としてActivityPubの実装くらい知っておけ感あるし。
NetlifyとSupabaseでほぼ静的なActivityPubサーバ | FUN YOU BLOG https://blog.alfebelow.com/entry/2023/03/04/netlify%E3%81%A8supabase%E3%81%A7%E3%81%BB%E3%81%BC%E9%9D%99%E7%9A%84%E3%81%AAactivitypub%E3%82%B5%E3%83%BC%E3%83%90
ちなみに僕のwebfingerはGitHub Pagesからもこのアカウントの分を出してるので、@zundan でこのアカウントがみつかるよ
$ curl -s https://zunda.ninja/.well-known/webfinger | jq
{
"subject": "acct:zundan@mastodon.zunda.ninja",
"aliases": [
"https://mastodon.zunda.ninja/@zundan",
"https://mastodon.zunda.ninja/users/zundan"
],
"links": [
{
"rel": "http://webfinger.net/rel/profile-page",
"type": "text/html",
"href": "https://mastodon.zunda.ninja/@zundan"
},
{
"rel": "self",
"type": "application/activity+json",
"href": "https://mastodon.zunda.ninja/users/zundan"
},
{
"rel": "http://ostatus.org/schema/1.0/subscribe",
"template": "https://mastodon.zunda.ninja/authorize_interaction?uri={uri}"
}
]
}
このアカウントは、notestockで公開設定になっていません。
地球の自転の角運動量は潮汐抵抗で減少傾向にあるんだけれど、うるう秒の主な原因は秒の定義が少しだけ短すぎたことらしいよね
https://ja.wikipedia.org/wiki/%E6%BD%AE%E6%B1%90%E5%8A%A0%E9%80%9F
https://ja.wikipedia.org/wiki/%E9%96%8F%E7%A7%92#%E9%96%8F%E7%A7%92%E6%8C%BF%E5%85%A5%E3%81%AE%E7%90%86%E7%94%B1%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AE%E9%96%93%E9%81%95%E3%81%A3%E3%81%9F%E7%90%86%E8%A7%A3
このアカウントは、notestockで公開設定になっていません。
蛇足なんだけど平年は365日で7で割ると1余るので同じ日付の曜日は1年で1ずつ進むんだけどうるう年の3月以降は2すすむのでleap(すっとぶ) yearなんだよね。うるう秒(leap second)はすっとぶわけじゃなくて挿入されるとどちらかと言うと戻る感じなんだけどね(UTCで23:59:59の次に23:59:60が挿入されるのが一般的な計算機では翌日の00:00:00に見えて1秒後にもういちど00:00:00になる)
で。日本語の「閏」ってなんじゃろかって調べたら
> うるう うるふ【閏】
> 〘名〙 暦と季節のくい違いを調節するために日数または月数をふつうの年より多くすること。
https://kotobank.jp/word/%E9%96%8F-35457
ってleapよりずっと挿入するの意味だった!
ついでにPOSIXのうるう秒の取り扱いは中途半端だからあんまし頼りにならないよ
$ LC_TIME=C TZ=right/Japan date; LC_TIME=C TZ=Japan date
Tue Dec 12 12:04:43 JST 2023
Tue Dec 12 12:05:10 JST 2023
> "Oh, sorry, common mistake! This is actually the onsen! The hot springs are next door."
https://adventofcode.com/2023/day/12
どういうことなのw
2009年はさすがにちょっと古すぎるのかな…
Ruby逆引きレシピ すぐに美味しいサンプル&テクニック
https://www.shoeisha.co.jp/book/detail/9784798119885