2013年8月14日のブックマーク (3件)

  • Redis administration

    Advice for configuring and managing Redis in production Redis setup tips Linux Deploy Redis using the Linux operating system. Redis is also tested on OS X, and from time to time on FreeBSD and OpenBSD systems. However, Linux is where most of the stress testing is performed, and where most production deployments are run. Set the Linux kernel overcommit memory setting to 1. Add vm.overcommit_memory

    csouls
    csouls 2013/08/14
    重要なこと : RedisはLinux上で稼働させ、vm.overcommit_memory = 1にし、高負荷環境では通常の2倍のメモリ領域を用意し、永続化を有効にしない場合はRDBに保存し、AWS EBSを極力使わず、Xenも使わず、daemonizeは2重に使わない
  • (think)

    Learning OCaml: Verifying tail-recursion with @tailcall 1 minute read How can you be sure that an OCaml function you wrote is actually tail-recursive? You can certainly compile the code and look at the generated assembly code, ... 2023: The Year in Review 5 minute read Life can only be understood backwards; but it must be lived forwards. – Søren Kierkegaard A Bad Year for Blogging 1 minute read La

    (think)
    csouls
    csouls 2013/08/14
    Ruby/Rails style-guide の Bozhidar Batsov さん
  • Rubocopを使ってコーディングルールへの準拠チェックを自動化 - Qiita

    はじめに チーム内でコーディング規約を作っても,ついクセで違う書き方をしたり気にしない人がいたりして形骸化しがちだと思います.またレビュー時に細かい違いを指摘するのも面倒です.そんなときはrubocopを入れましょう インストール これでrubocopコマンドがインストールされ,rubocop foo.rbとするとチェックできます. コマンドラインからいちいち実行したくないので,各エディタのプラグインをインストール.すると,以下のようにコーディングルールに合わない箇所を指摘してくれます. ここでは「bodyが1行のときは後置ifか,&&や||を使え」と言われています. 設定 rubocopが準拠するコーディング規約は同じ開発者が提案しているものですが,.rubocop.ymlファイルを編集することで自分達に合った形に変更することができます. うちではチームで話し合い,10箇所ぐらい変更しま

    Rubocopを使ってコーディングルールへの準拠チェックを自動化 - Qiita
    csouls
    csouls 2013/08/14
    なるほど。チーム内の全員の端末にプラグインを入れてもらえば浸透するのか。