2017-05-28 06:21:31 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-28 06:21:32 zundaの投稿 zundan@mastodon.zunda.ninja
icon

がちゃぴん先生、なにものなんだろうw

2017-05-28 06:22:30 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-28 06:22:39 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-28 06:25:18 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-28 07:38:31 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-28 08:14:24 zundaの投稿 zundan@mastodon.zunda.ninja
icon

\ビルド中/

$ git checkout master
$ git fetch upstream
$ git rebase upstream/master
$ git push
$ git branch
$ git checkout zunda-ninja-master-on-heroku
$ git merge v1.4rc6
3fa8512474137e84cfaf37682e78a84995e5c862
$ git push

icon

Slug sizeぎりぎりアウト

-----> Compressing...

Done: 308M

-----> Launching...

! Warning: Your slug size exceeds our soft limit (307 MB) which may affect boot time.

Released v52

icon

Merged v1.4rc6 and running smooth :)

3fa8512474137e84cfaf37682e78a84995e5c862

icon

> Release is tomorrow morning

どこタイムゾーンてか誰タイムゾーン?

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: 69.6 MB
Tables: 29
Rows: 83104/10000000 (In compliance)

icon

コピペ間違えてmergeにrev-parseの結果が

icon

Slackが静かな週末、いいんだけど何か不安。

2017-05-28 10:19:27 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-28 12:15:54 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@noritsuna RC6まででしたね〜

icon

Merged v1.4.1. Congratulations for the release!

8963f8c3c2630bfcc377a5ca0513eef5a6b2a4bc

2017-05-28 13:09:29 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Pixelと一緒に持っていたカードキーが使えなくなる(一日ぶり二度目)

icon

git push -fを2回 (-20点)

icon

そうか飛行機に乗るときは電話にUSBでHHKBつなげば作文できるのか(何を書く気だ)

icon

The spike in swap shows ImageMagick worked hard and the spike in cache shows the instance got a media file. I'm still wondering what makes response time higher, possible with higher CPU load. https://mastodon.zunda.ninja/media/LKsykGPpSKKEgGV-5n4

Attach image
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: 70.2 MB
Tables: 29
Rows: 87186/10000000 (In compliance)

icon

WARN: RuntimeError: Subscription attempt failed for <アカウント名>@<ホスト名> (https://<ホスト名>/api/push): HTTP 503

みたいなのやんわり知らせられる方法あったらいいのに

icon

This instance saw a sudden reduction in response time. I'm still wondering what changed. Increase in memory use seems to be triggered by a spike in incoming images which triggered a bunch of execution of ImageMagick commands.

https://mastodon.zunda.ninja/media/30b1IHb8m47Lkx8ywTM

Attach image
icon

LastPassさんGoogleの新しいログインフォームに対応してない(パスワードをコピーしてペーストできるので大きな問題ではない)

2017-05-29 12:31:57 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Dockerつらそう…

2017-05-29 19:36:47 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Dockerだからビルドはどっかー別のところでやっちゃうのも良さそうと思うんだよね(やってみたい)

icon

@hatabowyou 1.3でうまく行っていたようなら、1.4で新しく入ったcld3のビルドに失敗してるんじゃないかと思います。そのエラーの上の方に何をしようとしてたか書いてあるかも。cld3のためにホストにprotobuf-compilerとlibprotobuf-devと2つのパッケージを入れておくと進むのではないかと思います。

icon

@hatabowyou 上じゃなくて下に何をやっていたか表示されてました〜。一番下の行の「An error occurred while installing cld3…」OSの種類によりますが、DebianやUbuntuの場合にはprotobuf-compilerとlibprotobuf-devを入れておけば進むはずです。CentOSなどだとパッケージ名が微妙に違うかもしれません。

icon

Gemでgem native extensionのビルドが失敗したとき何をするべきかGemが教えてくれるといいんだけどなかなか複雑よね

icon

@hatabowyou 64ビット版が入るならそちらのほうが良さそうですね〜(rpmはしばらく触ってないのではっきりしません。すんません) https://unix.stackexchange.com/questions/158244/what-is-the-difference-between-i686-and-x8

2017-05-29 21:01:53 zundaの投稿 zundan@mastodon.zunda.ninja
icon

炒り銀杏は食べたいなあ

2017-05-29 21:17:45 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@chsh 個人向けには微妙な価格ですね〜。僕は家のどっかに転がってたのをビルドマシンに仕立てているところです。使っていないときに電源切るの忘れると電気代がかさむという危険がありますw

2017-05-30 07:24:01 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-30 07:27:37 zundaの投稿 zundan@mastodon.zunda.ninja
icon

お仕事ラップトップ、指が慣れてきた頃にパスワード変えなきゃいけないので、いつまでたっても素早くログインできない。

2017-05-30 10:30:06 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-30 10:30:28 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-30 14:00:58 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Waiting for a treadmill test. I'll finally be able to drink coffee after this.

icon

ヘ社なら30秒単位だよ!

icon

Drunk Pepsi to get energy to grind beans, brew coffee, drink it. Hopefully my brain start working again.

icon

syncをsudoしなくても良い幸せ

icon

selinuxつこてないからたぶんだいじょび←

icon

逃避行動にgo書き始めようとしたら逃げさせてくれなかった。

package context: unrecognized import path "context"

icon

@ykzts Rubyのコードかとおもたw

2017-05-30 17:41:23 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-30 17:42:31 zundaの投稿 zundan@mastodon.zunda.ninja
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: 72.6 MB
Tables: 29
Rows: 89201/10000000 (In compliance)

2017-05-30 18:15:09 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-30 22:04:16 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-30 22:04:19 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-31 00:22:22 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-31 07:29:01 zundaの投稿 zundan@mastodon.zunda.ninja
icon

ちょっとトロントについて調べてみてる。空港から中心街まで電車で40分とか良さそう!

icon

heorku: command not found
スマンカッタ

icon

5月だよね! まじで!!

$ date
Wed May 31 10:52:30 HST 2017

2017-05-31 10:58:47 zundaの投稿 zundan@mastodon.zunda.ninja
icon

ア、ハイ

icon

Rubyのまじで

> require 'date'
> DateTime.now.mjd
=> 57904

icon

\突然の/\git push/
$ git rev-parse master5c6352397257d82e75b90cc5e7de1a3922bde7bd
$ git merge master
$ git push
Counting objects: 8, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 891 bytes | 0 bytes/s, done.
Total 8 (delta 7), reused 0 (delta 0)
remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
To git@github.com:zunda/mastodon.git
8b69c40..d1e09fb zunda-ninja-master-on-heroku -> zunda-ninja-master-on-heroku

icon

/が404になってましたよ。なんぞ。

2017-05-31 12:11:01 zundaの投稿 zundan@mastodon.zunda.ninja
icon

さっき淹れたコーヒー、なぜだかおいしい

icon

v1.4.1: method=GET path=/web/timelines/public format=html controller=HomeController action=index status=200

master: method=GET path=/web/timelines/public format=html controller=HomeController action=index status=404

なんじゃろなー

icon

コード読んでみたいけどシゴトだの

icon

@ykzts RAILS_ENV=productionで、ログインしている時のみ404が返るようです。SINGLE_USER_MODE=trueなので、ログインしていなければ302が返り/users/zundanを通じて/@zundanにリダイレクトしてくれます。

えーん、自分でコード読みたいよう (仕事しろ)

icon

アプリをビルドしたあとにRAILS_ENV変えたら起動してこないのなw (シゴトしろ)

icon

@ykzts ブラウザでは期待どおりの表示になりました! 存在しないユーザーでも、Contact informationに1文字以上入力されていれば期待どおりになるようです。実験用のアプリにはc6352397257d82e75b90cc5e7de1a3922bde7bdのmasterがmergeしてあります。

method=GET path=/web/timelines/public format=html controller=HomeController action=index status=200

1.4.1相当のアプリではContact Informationに何も入力されていなくても期待どおりの動作をするようです。

icon

@ykzts なるほど! HomeControllerのAccount.find_local()でraise(ActiveRecord::RecordNotFound)が上がるようになっちゃったんですねい。

icon

@ykzts ykzts:find-localをmergeしたところ期待どおりの動作にもどりました!

icon

あわわ。実験用のアプリの代わりにこのインスタンスをスケールダウンしておりました。お騒がせしました。

icon

そしてtootするインスタンスをまちがいる

icon

にゃーん

icon

緑色のチェックマークの間違い探しをするだけの簡単なおシゴト (だからユーザースタイルシートを使えと

icon

Ubuntu 17.04

$ go version
go version go1.7.4 linux/amd64
$ go get github.com/mattn/go-mastodon
# github.com/mattn/go-mastodon
go/src/github.com/mattn/go-mastodon/status.go:183: undefined: url.PathEscape

あとひといき (?)

icon

だが時間切れ ※syncにはsudo要らない

$ sync;sync;sync;sudo poweroff

icon

@usa ひとつ https://github.com/systemd/systemd/blob/19fbf49cdec0e12fa0ee13d6ff6f858ea0f27479/src/syste にあったのでpoweroffの外はひとつだけでいいのかも…

Web site image
systemd/src/systemctl/systemctl.c at 19fbf49cdec0e12fa0ee13d6ff6f858ea0f27479 · systemd/systemd
icon

@usa デスヨネーw

icon

@hatabowyou お疲れさまです〜。

bundle installでこけた場合にはエラーメッセージの「To see why this extension failed to compile, please check the mkmf.log which can be found here:」のファイルを解読すれば良さそうですが、僕が以前dockerで試した記録 https://mastodon.zunda.ninja/@zundan/52462 から想像すると、ほかに下記を入れたらいいかもしれません

- ibpq-dev
- pkg-config
- nodejs

Web site image
zunda (@zundan@mastodon.zunda.ninja)
icon

@hatabowyou あ、yum installはインストールしたいRPMパッケージと、そのRPMパッケージが必要とするRPMパッケージをまるっとまとめてインストールしてくれるコマンドです

icon

@hatabowyou たびたびすみません。「ibpq-dev」ではなくて最初に「l」(える)を加えて、「libpq-dev」ですね。

icon

$ time docker-compose run --rm web rake assets:precompile
してみるよー

icon

Compiling webpacker assets 🎉

topで眺めてると1.8 GBくらいまで増えてた

icon
Web site image
undefined: http.ErrAbortHandler · Issue #20 · teambition/gear
icon

https://github.com/golang/go/wiki/Ubuntu ふむふむ

$ sudo apt install golang-1.8-go
$ go version
The program 'go' is currently not installed. You can install it by typing:
sudo apt install golang-go

あれれ?

$ /usr/lib/go-1.8/bin/go version
go version go1.8.1 linux/amd64

ふーむ

export GOPATH=$HOME/go
PATH=$PATH:/usr/lib/go-1.8/bin:$GOPATH/bin

でいっか。

icon

$ sudo poweroff
うりゃ

2017-05-31 20:45:49 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-31 21:27:18 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@hatabowyou エラーメッセージが誤解を招く書き方になっててわかりにくいのですが、pkg-configというコマンドを実行できないのだと思います。単体でpkg-configコマンドを実行してみて、だめだったらpkg-configパッケージがうまくインストールできてるか確認してみてください〜

2017-05-31 23:23:30 zundaの投稿 zundan@mastodon.zunda.ninja