- 更新
2017-05-09
- 作者
@voluntas
- バージョン
3.14
- URL
MQTT をググって調べた人向け
2017-05-09
@voluntas
3.14
MQTT をググって調べた人向け
以下の問いに答えられるようにする。
describe Foo do | |
describe '.process', active_job: true do | |
it 'キューにジョブを2件保存する' do | |
expect { | |
described_class.process | |
}.to change{ActiveJob::Base.queue_adapter.enqueued_jobs.size}.by(2) | |
end | |
end | |
end |
console.log('Loading function'); | |
const https = require('https'); | |
const url = require('url'); | |
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
const slack_url = 'https://hooks.slack.com/services/...'; | |
const slack_req_opts = url.parse(slack_url); | |
slack_req_opts.method = 'POST'; | |
slack_req_opts.headers = {'Content-Type': 'application/json'}; |
Original: 5 mistakes we all make with product feedback
メモリ使用量が増え続ける
最初の山: ruby 2.1.1 + fluentd v0.10.43 + cool.io v1.1.1 + msgpack v0.5.8 # ruby バージョンアップして、他の gem は安定稼働している本番と同じにした(同じ Gemfile.lock を使った)
2つ目の山: ruby 2.1.1 + fluentd v0.10.43 + cool.io v1.1.1 + msgpack v0.5.5 => 安定したかと一瞬思ったが "can't modify frozen String" 例外が出て何も処理できていなかっただけっぽい. v0.5.6 で修正された https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog
3つ目の山: ruby 2.1.1 + fluentd v0.10.43 + cool.io v1.1.1 + msgpack v0.5.6
Edit the Apache2 plist file with whatever editor you like (example using vim):
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist