11:32:54 @tateisu@mastodon.juggler.jp
icon

よし、常人レベルまで下げた

Attach image
16:29:02 16:35:09 @tateisu@mastodon.juggler.jp
icon

gadget.phileweb.com/post-35276

news.kakaku.com/prdnews/cd=pc/

Pixel Tablet ぼちぼち出てくるのかしら。 Galaxy Tab S8+ のキャリア版も来るし

Web site image
Google「Pixel Tablet」がFCC登録。UWB搭載で「タップして転送」実現か
Web site image
価格.com - au、有機EL搭載の約12.4型Androidタブレット「Galaxy Tab S8+ SMX800」を4/6発売
14:50:57 @tateisu@mastodon.juggler.jp
icon

@askyq @noellabo
どっちが使われてたかなあ…。部分インデクスでLTLに出る投稿だけをインデクスに含めています。このへんは問い合わせ計画見ながらインデクス作ったり削除したりして試行錯誤するとよいでしょう。

14:50:50 @tateisu@mastodon.juggler.jp
icon

@askyq @noellabo

\d statuses
(snip)
"index_statuses_local_20190824" btree (id DESC, account_id) WHERE (local OR uri IS NULL) AND deleted_at IS NULL AND visibility = 0 AND reblog_of_id IS NULL AND (NOT reply OR in_reply_to_account_id = account_id)

"statuses_public_local" btree (id) WHERE visibility = 0 AND reblog_of_id IS NULL AND (reply = false OR in_reply_to_account_id = account_id) AND (local = true OR uri IS NULL)

14:45:37 @tateisu@mastodon.juggler.jp
icon

@askyq @noellabo ならばそれはmedia_attachmentsの問題ではないですね。うちはLTL用のインデクス追加してます。小規模サーバには有効

14:25:40 14:25:53 @tateisu@mastodon.juggler.jp
icon

Gmailさんが送信元メールサーバに SPF or DKIM を要求するの、今年1-2月頃はなくてもいちおう送れてたけど、いつのまにかいつのまにか必須扱いになってた。

14:23:20 @tateisu@mastodon.juggler.jp
icon

鯖缶向け、mute/block多用ユーザを表示するクエリ

select account_id,c, username,domain from(select account_id,count(target_account_id) as c from mutes group by account_id order by c desc limit 30) as r left join accounts on r.account_id =accounts.id where r.c >= 100;

select account_id,c, username,domain from(select account_id,count(target_account_id) as c from blocks group by account_id order by c desc limit 30) as r left join accounts on r.account_id =accounts.id where r.c >= 100;

14:10:29 @tateisu@mastodon.juggler.jp
icon

「タイムラインがすげー遅い」というクレームが来たことあるけど、その時は確か「閲覧ユーザがミュート/ブロックしすぎ」が問題だったと思う。うちのDB鯖だと1500超えたあたりで著しく遅くなった

14:05:56 @tateisu@mastodon.juggler.jp
icon

pgHeroにスロークエリだすのにPostgres側に少し設定変更とかモジュール追加とか手間があったような気はする

13:58:48 @tateisu@mastodon.juggler.jp
icon

@askyq ここのクエリ一覧に出ないクエリは通常は最適化する必要がありませんし、最適化する場合にはバインドパラメータを適当に補ってからpsql で explain analyze することで問い合わせ計画が妥当かどうか調べることができます。

13:56:35 @tateisu@mastodon.juggler.jp
icon

@askyq mastodonにデフォルトでpgHero入ってて、Slow Queryの一覧が見れると思います。

12:38:25 @tateisu@mastodon.juggler.jp
icon

@askyq media_attachments テーブルにstatus_idで引けるインデクスがあるので、おそらくそのようなフラグは必要ありません。 github.com/mastodon/mastodon/b

Web site image
mastodon/schema.rb at main · mastodon/mastodon
12:20:48 @tateisu@mastodon.juggler.jp
icon

@osapon とりあえずピクチャーインピクチャーでたら長押しで設定に移動できます

12:20:16 @tateisu@mastodon.juggler.jp
icon

Twitterログインできなくなるかもしれないから他のログイン方法を設定しろ、ってFantiaからもメールきたな。影響範囲ひろすぎ

12:08:28 @tateisu@mastodon.juggler.jp
icon

SlackとSpotify はときどきCPUやらディスク領域やら食いつぶすバグがあるよね…

11:58:29 @tateisu@mastodon.juggler.jp
icon

特にAndroidの正規表現はJava実装ではなくICU実装でかなーりクセがある( \w や \d のマッチ範囲がすごく広い) ので、RubyやPerlの正規表現をそのまま書くと事故る元だったりする。

11:55:56 @tateisu@mastodon.juggler.jp
icon

マストドンのカスタム絵文字の正規表現は
github.com/mastodon/mastodon/b にあってコロンの外側に何が許容されるのかは明確なんだけど、正規表現って時点で処理系による実装の差異が色々ありますわね…。

Web site image
mastodon/custom_emoji.rb at main · mastodon/mastodon
10:09:42 @tateisu@mastodon.juggler.jp
icon

人間が描いた文章に「これAI生成だろ」とクソリプするAI

10:00:09 @tateisu@mastodon.juggler.jp
icon

Google Chromeはこの要件に応じてGoogleアカウントや無関係なWebサイトのアカウントを削除出来る機能をつけるのかしら?

09:41:54 @tateisu@mastodon.juggler.jp
2023-04-07 09:41:49 Subway Tooterの投稿 SubwayTooter@mastodon.juggler.jp
icon

Have you used 's "User Account Registration(Creation)" feature?

Due to new restrictions in the Google Play Store, Subway Tooter is considering reducing this feature.

  • Yes, I have used the user creation feature.2
  • No, the account was created by other method.43
09:31:30 @tateisu@mastodon.juggler.jp
icon

gigazine.net/news/20230406-goo
Playストアの新要件、分散SNS用のアプリだとすごく面倒くさいやつだ…。
「我々 のポリシーでは、ユーザーがアプリ内からアカウントを作成できるようにする場合、ユーザーが自分のアカウントの削除を要求できるようにする必要があります。」
「ユーザーがアカウント削除のためにわざわざアプリを再インストールしなくても、アカウントやデータの削除をリクエストできるということを意味します」「アプリ開発者はウェブベースの削除オプションも提供する必要があります」

アプリのユーザがどのサーバに登録しているか、アプリサーバに保持してないといけないっぽい。Mastodon公式アプリはコレどうするんだろうな…

STはもうユーザアカウント作成機能を削除しちゃうのが一番手っ取り早そうかなーと思ってる。

Web site image
Googleが2024年からAndroidアプリに「アカウントとデータを消しやすくする方法の追加」を義務づける新ポリシーを発表
05:57:08 @tateisu@mastodon.juggler.jp
2023-04-06 21:45:21 わかめそばの投稿 wakamesoba98@don.wakamesoba98.net
icon

このアカウントは、notestockで公開設定になっていません。

23:05:09 @tateisu@mastodon.juggler.jp
icon

「Facebookは中高年男性のSNS」「若者向けのTikTokになぜか40代男性が多い」など日本のSNSの統計データを可視化するとこうなる - GIGAZINE gigazine.net/news/20210407-jap トータルユーザーだと日本のマストドンは1M弱くらいだったが、年齢分布はわからんなー

Web site image
「Facebookは中高年男性のSNS」「若者向けのTikTokになぜか40代男性が多い」など日本のSNSの統計データを可視化するとこうなる
22:48:37 @tateisu@mastodon.juggler.jp
2021-04-07 22:02:30 🌱の投稿 nyanntaso27@pawoo.net
icon

このアカウントは、notestockで公開設定になっていません。

09:13:16 @tateisu@mastodon.juggler.jp
icon

鯖管はDBみれるので lemmy.juggler.jp/post/882 こんなクエリも取れるけど、リモートの部屋のことまで全部分かる訳じゃないからな…

Web site image
部屋別のメッセージ流速を調べるクエリ - Juggler.jp Lemmyサービス
05:48:38 @tateisu@mastodon.juggler.jp
icon

フロントカメラがある場所は遠目だと分からない。背面の楽天マークがなんとも。まだZTEって書いてある方がマシ。

Attach image
Attach image
05:38:27 @tateisu@mastodon.juggler.jp
icon

スマホのホーム画面を整えるなど

Attach image
19:52:42 @tateisu@mastodon.juggler.jp
icon

秋葉原ラジオ会館まるごと休館か…

19:52:27 @tateisu@mastodon.juggler.jp
2020-04-07 19:35:12 azone秋葉bot(非公式)の投稿 azone_akiba_bot@mastodon.juggler.jp
icon

このアカウントは、notestockで公開設定になっていません。

15:44:26 @tateisu@mastodon.juggler.jp
icon

マストドン3.1で追加されたフィルタカテゴリに対応

Attach image
Attach image
15:41:38 @tateisu@mastodon.juggler.jp
icon

(返信だけでなく)ブーストやお気に入りの数も不正確にする。

Attach image
Attach image
14:09:23 @tateisu@mastodon.juggler.jp
icon

再発防止的にはコレがベストだろう

14:08:07 @tateisu@mastodon.juggler.jp
icon

「カラム設定/非公開トゥートを表示しない」を追加。 「アプリ設定/色/イベント背景色/ブックマーク」を追加。ブックマークした投稿の時刻部分にアイコンを追加。

Attach image
Attach image
13:23:57 @tateisu@mastodon.juggler.jp
icon

@mayaeh 失礼しました。投稿を削除しました。

09:32:31 @tateisu@mastodon.juggler.jp
icon

Quest用のメガネフレーム

Attach image
08:54:08 @tateisu@mastodon.juggler.jp
icon

3.1.3のWebUIの添付メディアの挙動。POSTした後に定期的にGETで状態確認して、その間は「アップロード中」でステータスの投稿はできない感じか

Attach image
08:24:44 @tateisu@mastodon.juggler.jp
icon

@noellabo アップデートのためのメンテナンスでした。お騒がせしました。

08:15:43 @tateisu@mastodon.juggler.jp
icon

アメリカのエロ配信プラットホーム「FAKKU」利用者の2019年「州別トップジャンル」 twitter.com/irodoricomics/stat

07:36:46 @tateisu@mastodon.juggler.jp
icon

@kazumi_7 医療関係者はどうやって通勤するの

23:21:31 @tateisu@mastodon.juggler.jp
icon

@Cutls ていうかページングがない時点で色々ヤバいやつ

23:07:57 @tateisu@mastodon.juggler.jp
icon

クッキーを選んで削除できるブラウザばかりだと思うなよ。AndroidのChromeとかだとできないのでユーザーサイドでは解決できない問題なのだ

23:06:52 @tateisu@mastodon.juggler.jp
icon

misskeyはサインアウト時にふたつのドメインにあるiクッキーの片方しか削除しないバグを直すべき。テストアカウントでOAuth2認証する事ができなくて色々困ってる

22:49:46 @tateisu@mastodon.juggler.jp
icon
Web site image
(Misskey)カスタム絵文字リアクションの中途半端な対応。SVG絵文字のバリデーションが厳しすぎた問題の対応。 · tateisu/SubwayTooter@24b26de
Attach image
03:32:39 @tateisu@mastodon.juggler.jp
icon

@nitera1041 その方が色んなカラムで同じように使えるからね。ホームTLをメディアフィルタできるアプリは少ない

08:39:09 @tateisu@mastodon.juggler.jp
icon

今度はKotlin/JavaScriptでnode.js用のコードを書いてみたが外部のJSモジュールのコードをうまく利用できなくて頓挫している

03:17:53 @tateisu@mastodon.juggler.jp
WebSocketライブラリのTyrusを使ってC10kできるか試してみた
icon

手元のWindowsだとlocalhost上で8098接続まで行けてプロセスのRAM使用が7-8GBだった。プロセスの外部にもソケットを維持するためのRAM消費があるので、実際にはもっと使うんだろう。

今回の用途だとC20kくらい欲しい想定。接続数は実行環境をチューニングすれば増やせるが、RAM消費がツライな…。 1台で賄う訳ではないとしても合計でRAM32GBくらいは使うのでお財布に厳しいことが分かった。諦めるかなあ…