Entries from 2013-04-01 to 1 month

Code document 制作

doxygen+graphviz http://momijiame.tumblr.com/post/23166110981/doxygen-graphvizdoxygen http://blog.s21g.com/articles/1305

git

git

git delete branch http://sessan.hatenablog.com/entry/2012/11/28/103741 リモートのブランチを取得http://wadslab.net/2009/10/git%E3%81%A7%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%E3%81%AE%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%81%8B%E3%82…

memo

ImageMagick brew install imagemagickRMagick install gem install rmagick --no-rdoc --no-riref http://blog.ruedap.com/entry/20110320/mac_ruby_imagemagick_rmagick_install .gitignore ingnore 設定 http://dev.classmethod.jp/etc/git-gitignor/ Rub…

Create DB for Rails application

Create DB for Rails application Connect to DB mysql -u root -pCreate DB and User create database test_development default character set utf8 collate utf8_unicode_ci; grant all on test_development.* to 'test'@'localhost'; set password for '…

Ruby on Rails development with Mac OS X Mountain Lion

Most developers like to spend a bit of time setting up their workspace. I've been experimenting Ruby on Rails for some time now and this is still my preferred setup. My core criteria is simple:Unobtrusive, no modifying core files Flexibili…

Rails schemの値を変更する

type, all は予約語 ref http://d.hatena.ne.jp/zucay/20110120/1295492571 rails generate controller controller_name indexその後 config/route. で resrouce controller_name を書く必要がある 作ったモデル、コントローラの取り消しhttp://shinodogg.co…

Rails 多対多

PostとCategoryの多対多の関係を作成する modelの作成 rails generate scaffold Post title:string content:text rails generate scaffold Category value:string modelの制作 rails generate model モデル名 カラム名:データ型 カラム名:データ型 rails gen…

Mac + unicorn + nginx + Rails 

環境 Mac OSX 10.8.3 Rails 3.2.13 Ruby 2.0.0-p0 Homebew は導入済みとする Unicorn Install gem install unicorn 設定 /config/unicorn.rb を作成 # ワーカーの数 worker_processes 2 # ソケット経由で通信する listen File.expand_path('tmp/sockets/unic…

Hadoop on Mountain Lion

Environment Mac OSX 10.8.3 Homebrew Java 6 Hadoop 1.1.2 Setting up SSH for public key login generate public key in order to login to localhost without password. #ssh-keygen #cd ~/.ssh #cat "id_rsa.pub" >> authorized_keys2 #ssh localhost Se…

Node.jsとWebSocket.IOでチャットアプリを作る

ref http://mawatari.jp/archives/make-a-chat-application-in-node-js-and-websocket-io

Capistrano WP

https://github.com/williamn/wp-cap-example

CakePHP search

ref http://mawatari.jp/archives/introduction-of-cakedc-search-plugin-for-cakephp

MAMPでのmysql操作の仕方

move directry cd /Applications/MAMP/Library/bin Access to mysql ./mysql -u root -p However, it is an inefficient way to type "cd path". Path should be written in zshrc. zshrc export PATH=$PATH:/Applications/MAMP/Library/bin ref http://blog…