スタンディングデスクが物置になってたのを整理した
$ heroku pg:info DATAB
ASE
=== DATABASE_URL, PG_HOBBY_BASIC_URL
Plan: Hobby-basic
Status: Available
Connections: 8/20
PG Version: 9.6.1
Created: 2017-04-20 18:31 UTC
Data Size: 46.4 MB
Tables: 26
Rows: 52405/10000000 (In compliance)
A spike in traffic seems to have resulted in a spike in response time. I also see H27s.
https://mastodon.zunda.ninja/media/1l5mIgI92JUvSnCqq7E
The spike in traffic was mostly HEAD request to /users/zundan/updates/533 as well as GET to /users/zundan/updates/533.atom from different IP addresses. I suppose the conversation was picked up somewhere and, well, maybe clients rendered the conversation on the fly on their browser?
The first peak in memory use was when I posted a photograph. Mastodon ran some commands on the dyno to process the image which, I suppose, was then posted to S3.
The second spike in memory use was when ImageMagick was ran against an avatar who appeared in Federated timeline. Interesting.
@h12o@blessedgeeks.org 少なくともフォロー関係はそのまま別ドメインに持って行くとわけのわからないことになりそうですよねw
$ cal 2018 4
cal: 2018 is neither a month number (1..12) nor a name
もー
Redis::CommandError (OOM command not allowed when used memory > 'maxmemory'.) が最初に出たの2018-05-06 04:59:35 UTCらしくて、その直前の04:52:31 UTCに8286cd7cをデプロイしてるんだけどその前の2018-05-02 20:38:58のc7572db4との間に差分がありすぎて。
https://github.com/tootsuite/mastodon/compare/c7572db4...8286cd7c
method=GET path=/@zundan format=html controller=AccountsController action=showからviewをたどってくとREST::MediaAttachmentSerializerをRenderしてるのはviews/stream_entries/{_detailed_status.html.haml,_simple_status.html.haml}のmedia: status.media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }なところだね。
なぜこの行がRedisのメモリをもりもりにするのか、あるいは別の場所なのか
REST::MediaAttachmentSerializerの実装はapp/serializers/rest/media_attachment_serializer.rb。Serializerがキャッシュするのはattributesの内容なのかな?このどれかがおっきいのかな?
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
買い物から帰ってきたらコミットがいっぱいきてたので
775ee63b7 (upstream/master) i18n: Update French translations (#10747)
d25e358f9 i18n: Update Corsican translations (#10746)
6dc9baad2 Change icon and label depending on whether media is marked as sensitive (#10748)
780d99c20 Update simple_form.fr.yml (#10726)
9962174a1 Add strings for Slovak (#10734)
9d4e9015a Update fr.yml (#10727)
a3c7dd92f Add ES_PREFIX in .env.production.sample (#10087)
fe8a8f779 Add confirm modal for unboosting toots (#10287)
f2be71c29 Add emoji suggestions to CW and poll option fields (#10555)
62f5235b6 Prevent silenced local users from notifying remote users not following them (#10575)
26fc21c18 Add some caching for HTML versions of statuses pages (#10701)
0402c52f2 Improve poll link accessibility (#10720)
03801fcaa Remove custom emojis on "tootctl domains purge" (#10721)
ce8635605 Record deleted(by mod) status to prevent re-appear (#10732)
\Masterに/ \追随しますたー/
Merged tootsuite/mastodon at 775ee63b71752a05fefa8070d8fba704006c598d.
Migrating to AddByModeratorToTombstone (20190509164208)
== 20190509164208 AddByModeratorToTombstone: migrating ========================
-- add_column(:tombstones, :by_moderator, :boolean)
-> 0.0093s
== 20190509164208 AddByModeratorToTombstone: migrated (0.0098s) ===============
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
@rk_asylum 絵文字とか、マジで頭おかしいです。このへん読むといいですが、頭痛くなってくるというか、どうしてこんなことに……ってなる。
https://qiita.com/nonanona/items/b148c212ba7c24942e93
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
MastodonのPumaとSidekiqだけならどうにか512MB RAM+512MBスワップに詰め込めるよ。Node.js、Postgres、Redisは別腹でおながいします
$ sh log
log: log: is a directory
おかしいなgitのログを確認したかったんだけどな
洗濯しながら
4b2d9b8a5 (upstream/master) Reset secret of web app that could have been exposed by Doorkeeper (#13688)
8012fce72 fix rubocop errors (#13690)
4b766f984 Refactor monkey-patching of Goldfinger (#12561)
4a2ea2e51 Add `vi` to available locales (#13542)
8be4c2ba2 Add ability to remove identity proofs from account (#13682)
26b08a3c5 Add remote only to public timeline (#13504)
e9ecbca70 Fix error within error when limiting backtrace to 3 lines (#13120)
e09e225e5 Include capistrano tasks that reload the services after deploying. (#12642)
45202f79e Remove confusing “You are already signed in.” flash message (#13547)
a4240fd02 Improve RSS entries for statuses (#13592)
73f384228 Updated docker-compose snippet to a working one (#13196)
34756cc4e Fix "tootctl media remove-orphans" crashing on “Import” files (#13685)
38b69512f Fix old unique jobs digests not having been cleaned up (#13683)
\Master/ \ますたー/
Merged tootsuite/mastodon at 4b2d9b8a558190f8ccc51cfe67f5e151f2c3342b.
Migrating to ResetWebAppSecret (20200510110808)
== 20200510110808 ResetWebAppSecret: migrating ================================
== 20200510110808 ResetWebAppSecret: migrated (0.0498s) =======================
念のためgit diff upstream/masterしてみて、例外関連に差がないことを確認しました。もう1ヶ所変なraiseが残ってる気がする件は後ほど
これな
$ git grep 'raise .*, .*,'
app/lib/request.rb: raise e.class, "#{e.message} on #{@url}", e.backtrace[0]
最近集計基準がかわったようだけれどJHUや東京都からいただいている陽性者数には大きな変化は内容だ。東洋経済からいただいてる分は週末で更新がないのかな?
このアカウントは、notestockで公開設定になっていません。
@S_H_ アプリ名.herokuapp.comは全員SSLですねー。カスタムドメインは$7/月以上のdynoならDNSを設定してACMを有効にしてしばらく待つと有効になるはずです。
@S_H_ CNAME先をheroku domainsの出力の通りに設定してしばらく待てば有効になるはずです。ずっと待っても有効にならなかったら某ヘ社側でキューが詰まってたりいろいろかも…
\Master/ \ますたー/
Merged tootsuite/mastodon at 4bcef12bad8f554f3b0fc2fc34b7d4ca4cc567db.
このアカウントは、notestockで公開設定になっていません。
やっぱしSlackになってた…
HipChat - Wikipedia https://en.m.wikipedia.org/wiki/HipChat
チョコミントがすきな民にはルートビアをおすすめしてもよいのでは…?というきもちがあります(ねこはルートビアがとてもだいすきです)
お仕事すゆすゆ月曜日
d279666bd (upstream/main) Bump brakeman from 5.0.0 to 5.0.1 (#16146)
f8d2dbdef New Crowdin updates (#16183)
a8cce402e Bump rubocop from 1.13.0 to 1.14.0 (#16192)
7342d3b13 Bump glob from 7.1.6 to 7.1.7 (#16204)
6ac84c1e3 Bump @babel/preset-env from 7.14.0 to 7.14.1 (#16203)
74fa5542a Bump yargs from 17.0.0 to 17.0.1 (#16201)
3605df1e6 Bump eslint from 7.25.0 to 7.26.0 (#16200)
25ee7c7be Bump utf-8-validate from 5.0.4 to 5.0.5 (#16199)
04e4e864c Bump rqrcode from 1.2.0 to 2.0.0 (#16198)
cd80ab882 Bump stackprof from 0.2.16 to 0.2.17 (#16197)
43e8b4982 Bump rubocop-rails from 2.9.1 to 2.10.1 (#16193)
a4243eefd Bump aws-sdk-s3 from 1.94.0 to 1.94.1 (#16191)
10e95ed0c Bump dotenv from 8.2.0 to 9.0.1 (#16202)
afb788218 Fix blocking someone not clearing up list feeds (#16205)
10cd2d1e8 Bump puma from 5.2.2 to 5.3.0 (#16194)
08769fd69 Bump rails from 6.1.3.1 to 6.1.3.2 (#16196)
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
\Master?/ \ますたー/
Merged tootsuite/mastodon at d279666bd4353ba39c41e3607db7fd6862844947.
rc2きたわよー
7bd2b54a4 (upstream/main) Bump version to 3.4.0rc2 (#16206)
a097ec997 Run `i18n-tasks normalize` (#16208)
\Master?/ \ますたー/
Merged tootsuite/mastodon at 7bd2b54a468163ebc67802ae53dcf88aa4bf727f.
Font Awesomeびみょうにライセンスが複雑だった気のする (CC BYのやつとそうじゃないのがまざってた気のする)
@mitarashi_dango FreeのやつはCCだったと思います。これいいなーって使おうとするとFreeじゃないとこに行っちゃうワナが怖かった気がします。
古池や
ぎっとぎとには
なれないgit
$ git git
git: 'git' is not a git command. See 'git --help'.
The most similar command is
init
このアカウントは、notestockで公開設定になっていません。
タイムゾーンをまたぐ議論はメールか共有のオンライン文書がおぬぬめほ
https://note.com/zundan/n/nbbda0e44021b
@mamemomonga Apple PayとかGoogleなんとかかんとかはNFCなのかな?大きい店舗だとだいたい利用可能になってる感じで、今年くらいからクレカとかキャッシュカード(デビットカード)がタップ決済のに切り替わりつつあるので、がっぽりNFCのシェアが増えてるところな感じです
缶詰の
ホテルの部屋で、
日本らしい
食事といえば
(本日の大喜利会場はこちら!)
お仕事すゆよ
3ca348fa1 (upstream/main) Bump i18n-tasks from 1.0.9 to 1.0.10 (#18370)
593637145 Bump babel-jest from 28.0.3 to 28.1.0 (#18374)
19216f93b Bump jest-environment-jsdom from 28.0.2 to 28.1.0 (#18379)
e7d0bf731 Bump capybara from 3.36.0 to 3.37.1 (#18376)
d3c18058d Bump react-select from 5.3.1 to 5.3.2 (#18382)
b4d373a3d Add `limited` attribute to accounts in REST API and a warning in web UI (#18344)
898fe2fa8 Fix typo in source `setted`->`set` (#18385)
662ed53c1 Fix block/mute lists showing a follow button when unblocking a user (#18364)
f714e24ff Fix redis configuration not being changed by mastodon:setup (#18383)
app/javascript/mastodon/features/account/components/header.js
<<<<<<< HEAD
const { account, intl, domain, identity_proofs } = this.props;
=======
const { account, hidden, intl, domain } = this.props;
>>>>>>> master
あうあう
コンフリクトを解消してるあいだにマージ増えてるのまじ
95555f15b (upstream/main) Bump jest from 28.0.3 to 28.1.0 (#18377)
68260c025 Bump sidekiq-unique-jobs from 7.1.21 to 7.1.22 (#18375)
a2ef5e321 Bump array-includes from 3.1.4 to 3.1.5 (#18381)
\Master?/ \ますたー/
Merged mastodon/mastodon at 95555f15b55291b97477465f8d8a7eba526d6522.
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
本の虫: うっかりチューリング完全になっちゃったもの
https://cpplover.blogspot.com/2013/10/blog-post_20.html
#いろいろなチューリング完全
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
ごめんウソだった!! libcurlわね。
$ strace -o ./git.strace -f git push heroku master
とかすると
$ grep curl git.strace
16699 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4", O_RDONLY|O_CLOEXEC) = 3
@herschel RPM系でもビルド用に必要なファイルを別のパッケージに分けるのが一般的だと思います(少なくともKondaraをいじってたころは)。-devじゃなくて-develを付けることが多かった気がします。
@herschel あと、ビルド時に必要なパッケージを自動的に要求するとビルド環境のブートストラップができなかったとか現実的な問題もあたような気がしてきました…覚え間違いかもですが。
しない善よりする偽善。ほんの少し寄付しました。
Please join me in supporting @chefjoseandres and @WCKitchen efforts to feed those in need after disasters: https://donate.wck.org
このアカウントは、notestockで公開設定になっていません。
$ ed hello.txt
hello.txt: No such file or directory
i
Hello, World!
.
w
14
q
$ cat hello.txt
Hello, World!
覚えてるもんだw
Ubuntu 18.04.6 LTSにも何か来てる〜
$ sudo apt update && apt list --upgradable
:
cron/bionic-updates,bionic-security 3.0pl1-128.1ubuntu1.2 amd64 [upgradable from: 3.0pl1-128.1ubuntu1.1]
dnsmasq-base/bionic-updates,bionic-security 2.79-1ubuntu0.6 amd64 [upgradable from: 2.79-1ubuntu0.5]
open-iscsi/bionic-updates 2.0.874-5ubuntu2.11 amd64 [upgradable from: 2.0.874-5ubuntu2.10]
sbsigntool/bionic-updates 0.9.2-2ubuntu1~18.04.2 amd64 [upgradable from: 0.9.2-2ubuntu1~18.04.1]
$ sudo apt dist-upgrade -y
$ cat /var/run/reboot-required*
cat: '/var/run/reboot-required*': No such file or directory
うーっし。
Redisちゃん再度接続数上限に。なんでなんでw
リモートのGitLabとやり取りするのActivityPubみたいにJSON-LDとかhttp署名とか必要そうよね
このアカウントは、notestockで公開設定になっていません。
電源入れてから仕事できる感じになるまで15分くらいかかるお仕事MacBook Proなんなん。と思ったら何もしてないのにネットワーク切れたw (MiFiをパワーサイクルしました
このアカウントは、notestockで公開設定になっていません。
method=GET path=/media_proxy/440743/small format=html controller=MediaProxyController action=show status=500
む?
app/controllers/media_proxy_controller.rbで、同じidに対して15分以内にGETが来るとMastodon::RaceConditionErrorをraiseするようだ。たぶんapp/controllers/application_controller.rbでservice_unavailableから503。ちゃうな。500にならない。
$ heroku run bash
~ $ rails c
> x=MediaAttachment.remote.attached.find('440743')
> x.download_file!
:
/app/app/lib/request.rb:249:in `open': No address for example.com (SocketError)
まあしょうがないのやつだった。StopLightに入れた方がいいのかな…
このRedisでのロックもたぶん勘違いだ。ドキュメントを見なくちゃだけど、たぶん、異常終了したり無限ループになった場合のロックの最大持続時間を15分間にしておいて、ブロックを抜けたときにロックをはずすんだ。
@acid_rain 「𠮷」はUTF-16ではサロゲートペアになるのにどこかで配慮できていないのかな?と思ったのですが、MultiByteToWideChar関数じたいは少なくともVista以降なら問題なさそうですね:
https://learn.microsoft.com/en-us/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar
Pathname#childrenがyieldしてくるオブジェクトのファイル名のエンコーディングが.file?の期待しているものと合っていないとか、うーん…
バックグラウンドジョブご参考情報です。最初のリクエストのレスポンスとして、生成されたジョブのIDを教えてもらうよ。
https://devcenter.heroku.com/articles/background-jobs-queueing#scalable-approach
@acid_rain macOSですが、スクリプトのエンコーディングで結果が異なるようです。ファイルシステム難しい…
$ ls -1
main.rb
吉.txt
𠮷.txt
$ cat main.rb
require "pathname"
puts "ruby-#{RUBY_VERSION}, __ENCODING__:#{__ENCODING__}"
Pathname.new(".").children.each do |c|
puts "#{c}\t(#{c.to_s.encoding})\t#{c.file? ? "file" : "not file"}"
end
$ ruby main.rb
ruby-2.6.10, __ENCODING__:UTF-8
吉.txt (UTF-8) file
main.rb (UTF-8) file
𠮷.txt (UTF-8) file
$ ruby -Ks main.rb
ruby-2.6.10, __ENCODING__:Windows-31J
吉.txt (Windows-31J) file
main.rb (Windows-31J) file
𠮷.txt (Windows-31J) not file
Google I/Oやってるんだって、io.google.comに行ってもgoogle.ioに行っても見られなくて正解io.googleだったようです。難しい世の中だなあw
おしごとしよう寝
3869e8c210 (upstream/main) Change "Sign in" to "Login" (#24942)
0eed06073f Fix videos being improperly positioned on safari (#24943)
5eeb40bdbe Add stricter ESLint rules for Typescript files (#24926)
b878e3d8df Enable ESLint react/no-deprecated (#24471)
2d5e257938 Rewrite `logo.tsx` as FC (#24909)
6f8db56a01 Disable RTK safety middlewares (#24936)
349cae0b57 Add type annotation for DisplayName component (#24752)
ab7716cff4 Rename Image component to ServerHeroImage (#24894)
ういうい
CONFLICT (content): Merge conflict in app/javascript/mastodon/reducers/index.ts
import identity_proofs from './identity_proofs';
が居るよね。
\Master?/ \ますたー/
Merged mastodon/mastodon at 3869e8c21069a9bc927e93c904e00d68b004a5be.
ログインしてたらKeybaseが緑ヨシ (ログアウトしてても見えるようにしなくちゃよね
ログアウトしてると mastodon.zunda.ninja/api/v1/accounts/1/identity_proofs が422を返すんだよね
ログインしてなくてもKeybaseのclaimが見えるようになった!!
https://github.com/zunda/mastodon/commit/94d24998a54e8eefa93eeff7c054c68764bf41e1
Nokogiriさんがリンクを見つけられないと思ったけどじゃがすぷりくとうわー
https://gist.github.com/zunda/4fe657e16bc565e483a92adbd91ae8c7
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
ヘッダからリンクしてた。Keybase追加でけた
https://github.com/zunda/mastodon/commit/be4d8e00e98fa9d4c9197f3d204d62bf5efa1bcc
Rubyistの皆さんが松本で幸せそうにしているのを横目におっさんは今日も営業力社と勝目のない戦いをトホホ #ダークモード
The Go gopher was designed by Renee French. (http://reneefrench.blogspot.com/)
The design is licensed under the Creative Commons 3.0 Attributions license.
Read this article for more details: https://blog.golang.org/gopher
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
今日はもりもり
d09b02efb6 (upstream/main) Group Ruby OTEL packages in Renovate PRs (#30242)
482d1087c5 Update dependency opentelemetry-instrumentation-faraday to v0.24.3 (#30237)
af71f236a2 Update dependency opentelemetry-instrumentation-excon to v0.22.2 (#30236)
d933e6b6ae Update dependency opentelemetry-instrumentation-concurrent_ruby to v0.21.3 (#30235)
ded11eca4f Update dependency pundit to v2.3.2 (#30222)
68b9fe824d Add OpenTelemetry instrumentation (#30130)
0d397db5dd Consolidate system specs into single directory, use rspec tags for configuration (#30206)
164b09bfcc Update README.md setup steps (#30063)
e20f2e7300 Update i18n to version 1.14.5 (#30198)
f3f63107f2 Update dependency @reduxjs/toolkit to v2.2.4 (#30223)
fa43a6c835 Use more accurate `redirect_uri` in oauth spec (#30212)
(続く)
040aaf3a48 Use `default: ...` assignment for Devise config, fixes `Style/ClassVars` cop (#30214)
c9557bdd3b New Crowdin Translations (automated) (#30215)
3a5a1b2e58 Update dependency node to 20.13 (#30211)
1aa3976f28 Update dependency pino-http to v10.1.0 (#30199)
0a4a93038f Update Yarn to v4.2.2 (#30220)
c36a8786c1 Fix typo (#30224)
6ccee2600b Update dependency rubocop to v1.63.5 (#30225)
6819bcc4b6 Update dependency glob to v10.3.14 (#30230)
5a3062f723 Pass the CodeCov token from the secret to the action (#30219)
ライセンス添付してって言うんだったら自分でライセンス添付してほしいんだけどね
$ yarn set version 4.2.2
$ curl -o .yarn/releases/yarn.LICENSE.md https://raw.githubusercontent.com/yarnpkg/yarn/master/LICENSE
rename??
[use-ruby33-react-router-5 0fb0557351] Upgrade yarn from 4.2.1 to 4.2.2
2 files changed, 255 insertions(+), 255 deletions(-)
rename .yarn/releases/{yarn-4.2.1.cjs => yarn-4.2.2.cjs} (74%)
\Master?/ \ますたー/
Merged mastodon/mastodon at d09b02efb653e59488cac530db8ae2757ad0cd02.
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
むっふー!
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。