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で公開設定になっていません。