タグ

ブックマーク / wota.jp (4)

  • MySQL 文字化け問題を本気で直す

    mysql> status; -------------- mysql Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3 Connection id: 36 Current database: staff2006 Current user: maiha@localhost SSL: Not in use Current pager: lv Using outfile: '' Using delimiter: ; Server version: 4.1.20 Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: latin1 Client char

  • ヽ( ・∀・)ノくまくまー(2007-06-05)

    ● 1. 一戸建てタイプ そのアプリ用に専用のマシンを準備できるケース。例えば、アクセス数が少ないβリリース時などは mongrel を直接80ポートで運用することもあるだろう。そして、負荷の増加、またはマルチコアを活かすという次の段階で、cluster 化した mongrel を扱う必要に迫られた場合、このタイプになる。この場合、フロントの仕事はバック(Rails)への割り振りだけだが、そのためにわざわざ Apache2 を持ち出すのは仰々しいと感じるかもしれない。そんな人にお奨めしたいのが Pound サーバだ。いきなり Apache から話が逸れてしまうが、このケースだとリアルでお奨めである。 Pound + mongrel Pound はリバースプロキシ用のWebサーバであり、特化しているだけあって、必要最低限かつ直感的で簡単な設定で済むため、敷居が低いのが魅力だ。それでいて、デジ

    diary193
    diary193 2007/06/06
    バランサーと複数アプリの設定ごにょごにょ/そもそもそんな運用環境の仕事してみたい
  • ActiveRecord

    Introduction 第1章: for Ruby users (4) ・CRUD operations ・Assocations 第2章: for Rails users (15) ・With Scope ・Scoped Access 第3章: for Rails developers (17) ・Acts As View ・Finder Query CRUD : ActiveRecord Pattern require 'rubygems' require_gem 'activerecord' ActiveRecord::Base.eatablish_connection( :adapter=>"sqlite3", :db=>"db/users.db" ) class Member < ActiveRecord::Base # "members" e

  • ヽ( ・∀・)ノくまくまー Behaviour Driven Development

    ● [Git] 月刊 Github はーい!こちらキューテーブルー♪毎月ご機嫌な Github 情報をお届けしちゃうぜ! まずはレポジトリ情報をチェキラっ!! 2008.10.2付ユーザ数レポジトリ数ディスク使用量 なんかぁ、結構、レポジトリ数の割にユーザ数が少ないっていうかぁー。1人当たり2,3個しか作ってないなんて意外つーかぁー。てことで、ユーザ別の利用レポジトリ数を・・・、カウントダウンっ! github=# select owner, count(*) as count from repositories group by owner order by count desc limit 10; owner | count --------------+------- tekkub | 63 nshah | 41 drnic | 38 dustin | 37 defunkt | 3

  • 1