icon

起きるよー

2017-05-21 07:42:00 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-21 07:43:20 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-21 07:43:22 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-21 07:43:24 zundaの投稿 zundan@mastodon.zunda.ninja
icon

起きたよ~

icon

Tokyo is 180 ms away this morning.

icon

@t_trace i have a daily cron job to confirm the tunnel is alive. It is usually around 165 ms but sometimes slower like this morning.

2017-05-21 12:30:12 zundaの投稿 zundan@mastodon.zunda.ninja
icon

docker試してみたいのでまずは古いデスクトップ掘り出してきてubuntu-server入れて(なんかまちがってる

icon

sudo dd if=ubuntu-17.04-server-amd64.iso of=/dev/sdb

of合ってますように(-人-)

icon

しかしこの古いマシン、メモリが4 GBしかないのが気になる…

icon

ubuntu-server 17.04さん、guided partiioningしたら80GBぜーんぶrootにするんだね

icon

あー。ネットワークないと進まないかも

icon

Retrieving package...でCancelしたら進みました

icon

OpenSSH serverだけじゃなくてvirtual machine hostも選んで… (これってdockerのことかなあ)

icon

起動してきました♪ NICのMACアドレスをメモして配置しよう。

icon

よーっし。Wake on Lanで起動してきた♪

https://gist.github.com/zunda/187139

Web site image
A ruby script which sends out a magic packet to wake up your PC
icon

※使い終わって電源切るの忘れると電気代が来るので注意

icon

あとシリアル端末つなげられるとかっこいいんだけどハードウェアがないのでいいや

icon

sudo visudoでnanoが!

icon

$ heroku pg:info DATABASE
=== 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: 63.4 MB
Tables: 29
Rows: 72970/10000000 (In compliance)

icon

s/late/rate/ Japaneglish sucks.

2017-05-22 09:54:47 zundaの投稿 zundan@mastodon.zunda.ninja
icon

So I sense 1.4rc3 will be out soon

icon

New release '16.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

お?

2017-05-22 10:03:39 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Continue running under SSH?

Well, nope.

icon

$ git fetch upstream
$ git rev-parse upstream/master
e1b42e9aa01b0c6adab05afb9c5ee0cf9fbb41a9
$ git rev-parse v1.4rc3
b51398d0ddf4c4b366e104c67366f6a80b69d61b
$ git checkout master
$ git rebase upstream/master
$ git push
$ git checkout zunda-ninja-master-on-heroku
$ git merge v1.4rc3
$ git push

icon

Oops... there is something unexpected on release command.

icon

k someone will be on it.

icon

poweroffの代わりにrebootする

icon

vim.noxよりvim.tinyの方が好きな気がする

icon

Dockerのイメージはどっかー?

icon

I mean 1.4rc3

icon

アプリのビルドってプロダクションのホストでやるのが普通なん… (はよdockerはじめて確かめい)

icon

@ykzts なるほどお。いろいろ物知らずですんませんです…

icon

@ykzts うひょー (APはアプリケーション・えーと、

icon

$ sudo apt install docker.io

これでいいのかな? (17.04)

icon

@ykzts あざます!

icon

https://store.docker.com/editions/community/docker-ce-server-ubuntu

To install Docker CE, you need the 64-bit version of one of these Ubuntu versions:

Yakkety 16.10
Xenial 16.04
Trusty 14.04

17.04はw

icon

@ykzts おー! xubuntu 16.04でちゃんと鳴ってます!

2017-05-22 15:00:21 zundaの投稿 zundan@mastodon.zunda.ninja
icon

今日のスタバは寒くない

icon

Dockerどっから持ってくるのがいいかなー←

icon

@tadd >きゃー<

icon

@t_trace t2インスタンスはCPUを使いすぎるとしばらく遅くなっちゃうので要注意ですね https://aws.amazon.com/jp/ec2/instance-types/t2/

Web site image
Amazon EC2 T2 インスタンス | AWS
icon

@tadd アプリログにエラーは出てない感じです…なんじゃろ。

icon

mp4の解析になにか足りないと。

Command :: file -b --mime '/tmp/8d777f385d3dfec8815d20f7496026dc20170523-16-2afx37.mp4'
[AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
[AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
16 TID-or562cy3c WARN: Av::UnableToDetect: Unable to detect any supported library

icon

mp4ファイルをラップトップのDownloadsにダウンロードしたので余裕があればあとでみてみること

icon

アプリのビルド、AWSだったらlambdaとかでできないのかな?

icon

Rollbar使ってみやう

icon

と思ったらコードに手を入れないとか… (あとにしよう)

icon

あーそうっす

icon

@yukotan 運動する時間なかなか取れませんよね。僕は買い物のとき少し遠くに停めて歩くだけで満足したりしてます。ダメダメw

2017-05-23 06:49:21 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@yukotan マラソン、エントリーだけなら毎年してる!

icon

ぼっちインスタンスは今日も平和だなあ

icon

たまにおおきいインスタンスにでかけてフォローしたい人を探す(仕事しろ)

icon

$ heroku run bash
~ $ ffmpeg
bash: ffmpeg: command not found
~ $ avprobe
bash: avprobe: command not found

そゆことw

icon

動画を投稿しようとしたら500ですってよ、奥さん

method=POST path=/api/v1/media format=html controller=Api::V1::MediaController action=create status=500 error='Av::UnableToDetect: Unable to detect any supported library' duration=153.48 view=0.00 db=12.28

icon

ffmpegパッケージ入れてみた

method=POST path=/api/v1/media format=html controller=Api::V1::MediaController action=create status=500 error='Cocaine::CommandNotFoundError: Cocaine::CommandNotFoundError' duration=94.89 view=0.00 db=12.84

~ $ ffmpeg
ffmpeg: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

先はながい

icon

LD_LIBRARYPATHに少なくとも/app/.apt/lib/x86_64-linux-gnuと/app/.apt/usr/lib/x86_64-linux-gnu/mesaを追加して、libxdamage1パッケージも入れる必要がある。

icon

@ms2sato Federatedで動画メディアがやってきても同様のエラーが出るような気がします〜

icon

@zundan@admins.mstdn.social 通知音が聞こえなくなったかと思ったけど音量下げてるだけでした

icon

Slugは311.3MBにw

icon

Herokuで動画対応できたかな?ちょっとこのインタンスで使ってみよう。

ffmpegなしで259 MBだったslugは動画対応で311 MBまで太りました。

icon

@hamster00 Tuskyからアップロードできるようになりました https://github.com/zunda/mastodon/compare/master...add-ffmpeg-on-heroku

Web site image
Comparing master...add-ffmpeg-on-heroku · zunda/mastodon
icon

PR出すのはちょっと様子みてから

icon

@hamster00 Tuskyではファイルの大きさが4 MBまでという制限がありました。Mastodon本体の制限はまだ確認してません。

icon

ああああああ仕事のメモ、git pullわすれてたあああああ

icon

@hamster00 Mastodon本体 (1.4.0rc3) の制限は8 MBでした

icon

$ heroku pg:info DATABASE
=== DATABASE_URL, PG_HOBBY_BASIC_URL
Plan: Hobby-basic
Status: Available
Connections: 9/20
PG Version: 9.6.1
Created: 2017-04-20 18:31 UTC
Data Size: 64.7 MB
Tables: 29
Rows: 75394/10000000 (In compliance)

icon

@tadd みつけたらおしえてくだちい(あとNexus Oneも!

icon

avprobeコマンドを使うようにするにはlibav-toolsパッケージを足してslugは311.3MB。 https://github.com/zunda/mastodon/tree/add-avprobe-on-heroku

Web site image
GitHub - zunda/mastodon at add-avprobe-on-heroku
icon

avprobeでもffmpegでもPixelで撮った動画は投稿できた様子

icon

屋外で仕事してたら雨降ってきましたよ?

2017-05-23 17:18:44 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Mastodonで動画を扱えるようにするのに、

- ffmpegを使う https://github.com/zunda/mastodon/tree/add-ffmpeg-on-heroku のと
- avprobeを使う https://github.com/zunda/mastodon/tree/add-avprobe-on-heroku

のとどちらが良いかな。どちらもslugは同じくらい太るのですが、メモリにはavprobeの方がやさしい感じ。avprobeの方が依存パッケージの数が少ないのも良さそうです。どうしようかな?

下記のメモリ使用量の変化はv72がffmpeg、v73がavprobeです https://mastodon.zunda.ninja/media/nePp5QeEW1VwEwM-36o

Web site image
GitHub - zunda/mastodon at add-ffmpeg-on-heroku
Web site image
GitHub - zunda/mastodon at add-avprobe-on-heroku
Attach image
icon

俺、メール全部読んだらプルリクエストするんだ…

icon

そうそう、PRマージしてもらってもGitHubでブランチ消さない方が良さそうですよね。リンク先がなくなっちゃう議論がある。

icon

avprobeでPRしてみますたっ https://github.com/tootsuite/mastodon/pull/3274

Web site image
Add libav-tools and LD_LIBRARY_PATHs needed for avprobe by zunda · Pull Request #3274 · mastodon/mastodon
icon

Oops "Scripts in .profile.d/ should only be written by buildpacks. If you need to perform application specific initialization tasks at the time a dyno boots, you should use .profile scripts, which are guaranteed to run after the scripts in .profile.d/." https://devcenter.heroku.com/articles/buildpack-api#profile-d-scripts

icon

@usa 時間が…←

icon

@usa

- avprobe vulnerability 約 513 件 (0.32 秒)
- ffmpeg vulnerability 約 471,000 件 (0.40 秒)

さてG先生を信用してよいものかw

icon

@usa あー。ですね。ありがとうございます。これだとどうだ

https://cve.mitre.org/find/

- ffmpeg: About 449 results (0.26 seconds)
- avprobe: なし
- libav: About 581 results (0.25 seconds)

ふーむー

CVE - Search this CVE Website
icon

@usa おおお、っとありがとうございます。ちょっとPRひっこめようかな…

2017-05-23 21:00:06 zundaの投稿 zundan@mastodon.zunda.ninja
icon

ImageMagickも使ってるし問題ない(なくない)

icon

git push -f いっぱいやったので-20点

icon

@tadd 公式にはサポートしてないのでちょっと微妙なんですよねー。パッケージのつくりによってはインストールしたライブラリを見つけられないこともあるし。

icon

Dockerビルドマシン、電源でかいし、いじったあとに電源切ったか気になるなる。

icon

かっぱ(そろそろおやすに)

icon

Stack Overflow: Helping One Million Developers Exit Vim - Stack Overflow Blog https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-v

Web site image
Stack Overflow: Helping One Million Developers Exit Vim - Stack Overflow
2017-05-23 23:45:26 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-24 06:55:22 zundaの投稿 zundan@mastodon.zunda.ninja
icon

結局ffmpegの方をmergeしてもらいました @usa

masterに追随しますたー!
icon

$ git checkout master
$ git fetch upstream
$ git rev-parse upstream/master
f5c3d20e9cbd2e57d48c6080691eb493be10c7fc
$ git rebase upstream/master
$ git push
$ git checkout zunda-ninja-master-on-heroku
$ git merge master
$ cat .profile.d/mastodon-nodejs-dataurl.sh >> .profile
$ git rm .profile.d/mastodon-nodejs-dataurl.sh
$ git add .profile
$ git commit
$ git push

icon

Merged from tootsuite/mastodon master at f5c3d20e9cbd2e57d48c6080691eb493be10c7fc :)

icon

む?

May 24 18:33:03 zundan-mastodon app/web.1: 16 TID-t75ww WARN: ActiveRecord::RecordNotFound: Couldn't find Status with 'id'=50879

icon

そういえばGitのログはコミットした人のローカル時刻で表示されるなあ

2017-05-24 14:49:49 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-24 14:53:29 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Linuxは! wslじゃないLinuxははいりますか!?

2017-05-24 14:55:25 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@tadd Sidekiqのリトライですかねい

2017-05-24 18:58:57 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-24 18:58:57 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-24 20:32:12 zundaの投稿 zundan@mastodon.zunda.ninja
icon
Web site image
Replace \u2014 with — in HAML template for public page on single mode by zunda · Pull Request #3301 · mastodon/mastodon
2017-05-24 21:52:43 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Mastodon 1.4へのアップデートに苦労してるのってcld3関連かな?Ubuntu 16.04 (Herokuのheroku-16スタック)だと下記のパッケージを追加で入れる必要がありました

- protobuf-compiler
- libprotobuf-dev

icon

Mastodon 1.4 (これは1.3以前もかな?) ついでに下記のパッケージも入れると動画も取り扱えるようになるよ

- ffmpeg
- libxdamage1
- libxfixes3

2017-05-24 23:47:16 zundaの投稿 zundan@mastodon.zunda.ninja
icon

ああもう!

icon

syncにsudoは必要なのだろうか

2017-05-25 04:24:24 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@h12o@blessedgeeks.org デスデス https://github.com/tootsuite/mastodon/pull/3301 (モウマージサレテタ

Web site image
Replace \u2014 with — in HAML template for public page on single mode by zunda · Pull Request #3301 · mastodon/mastodon
2017-05-25 06:49:36 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-25 06:50:30 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-25 07:44:21 zundaの投稿 zundan@mastodon.zunda.ninja
icon

$ HEROKU_APP=zundan-mastodon heroku pg:info DATABASE
=== 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: 66.9 MB
Tables: 29
Rows: 80218/10000000 (In compliance)

icon

\マスターに/ \追随しますたー/

b89ab7e69dd49c68c460488e1d255ba72e8dacab

I'm a little bit worried about bigger slug size of 360.7 MB. What made this increase?

icon

Ran heroku repo:purge_cache and it is now 307.3 MB. Phew.

icon

I think this is for a toot I had to delete... Sorry.

May 25 23:16:23 zundan-mastodon app/web.1: 17 TID-nmc58 WARN: ActiveRecord::RecordNotFound: Couldn't find Status with 'id'=51671

icon
Web site image
Listen Live: Rebuild - Podcast by Tatsuhiko Miyagawa
2017-05-25 16:26:37 zundaの投稿 zundan@mastodon.zunda.ninja
icon

:sadpanda:
Gem::RemoteFetcher::UnknownHostError: timed out

(https://rubygems.org/gems/climate_control-0.2.0.gem)

An error occurred while installing climate_control (0.2.0), and Bundler cannot

continue.

Make sure that `gem install climate_control -v '0.2.0'` succeeds before

bundling.

!

! Failed to install gems via Bundler.

!

icon

:sadpanda:

rake aborted!

KeyError: key not found: "S3_REGION"

icon

Well, actually, I wanted to try CI on my machine and gave up preparing the environment. It is such a hard thing to do correctly :P

icon

$ curl -o - https://get.docker.com > get.docker.com.sh
$ sudo sh get.docker.com.sh
$ sudo usermod -aG docker zunda

ふーむー

icon

78445dd45222: Pull complete
Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.
:
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

おー

icon

/var/lib/dockerを別のディスクのディレクトリへのシンボリックリンクにしてみました

icon

Error: Cannot find module './spec/javascript/setup.js'

うむさきはながいな

2017-05-25 21:19:04 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-25 21:39:52 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-26 07:09:52 zundaの投稿 zundan@mastodon.zunda.ninja
icon

カラオケは行きたいなあ

2017-05-26 07:50:14 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Merged v1.4rc4

2d97c898f281fca9838ed8422e60370428f60ad7

icon

Preping to build Mastodon on Docker. It seems that I have to make a mess on local clone to be able to run `rake secret` before I can run docker-compose build.

$ sudo apt install libpq-dev protobuf-compiler libprotobuf-dev pkg-config nodejs
$ rbenv install 2.4.1
$ rbenv local 2.4.1
$ gem install bundler
$ bundle install --path=vendor/bundle

icon

"The command doesn't need to be run with sudo as it needs no superpowers." hm - Raspberry Pi • View topic - sync vs "sudo sync" https://www.raspberrypi.org/forums/viewtopic.php?t=56171&p=425979

icon

Tokyo is 166 ms away today.

icon

$ sync; sync; sync; sudo reboot

(-人-)<どうしてsyncにはsudoいらんのやろ

2017-05-26 13:23:43 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-26 13:29:04 zundaの投稿 zundan@mastodon.zunda.ninja
icon

一般ユーザーでもsync(2)成功してますね :)

$ strace sync
:
sync() = 0
:
+++ exited with 0 +++

てか失敗しないって書いてあるしw

2017-05-26 15:42:11 zundaの投稿 zundan@mastodon.zunda.ninja
icon

$ docker -v
Docker version 17.05.0-ce, build 89658be

勝ったw (きょういれました。まだつかいかたわかりません)

icon

そうめんはいいなあ

2017-05-27 04:49:56 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-27 04:53:14 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-27 07:40:35 zundaの投稿 zundan@mastodon.zunda.ninja
icon

RC5でたのかな?

2017-05-27 07:42:11 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Compiling webpacker assets 🎉

icon

Merged v1.4rc5

e0e12b0feefd84437f33a3af1290fce65d5b22a0

\RCに/ \追随したらしー/ (くるちい)

icon

どっかでDocker内のインスタンス上げるの大変そうなのを読むと、Herokuよくできてんな、って思う。なんだかもうしわけない。

icon

このインスタンスのソースコードの位置を修正して、AGPLについて明記した

https://github.com/zunda/mastodon/compare/zunda-ninja-master-on-heroku...zunda:source-at-z

Web site image
Comparing zunda-ninja-master-on-heroku...source-at-zunda-under-agpl · zunda/mastodon
icon

$ heroku pg:info DATABASE_URL
=== 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: 68.9 MB
Tables: 29
Rows: 82524/10000000 (In compliance)

icon

@t_trace トレッドミルで「歩き」ながら仕事してる同僚もいます。ちょっとエクストリームw

2017-05-27 11:20:47 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-27 12:06:49 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-27 12:06:50 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-27 12:06:54 zundaの投稿 zundan@mastodon.zunda.ninja
icon

無料期間過ぎたAWSさんとならHerokuさん値段で張りあえるかもと思っていた時期もありましたw

icon

Tokyo is 180 ms away today.

2017-05-27 12:35:36 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-27 16:40:16 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Getting drunk and wanting to write code. (I know it doesn't work as I want it to.)