Tuesday, May 22, 2012

phpMyAdmin Install

phpMyAdmin : http://www.phpmyadmin.net/home_page/index.php
Installing phpMyAdmin
 The version  requires at least PHP 5.2 and MySQL 5.And then start MySQL.
 You must have MySQL user and password.
$ wget  http://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/
3.5.1/phpMyAdmin-3.5.1-all-languages.tar.gz
$ tar xzvf phpMyAdmin-3.5.1-all-languages.tar.gz
$ cd phpMyAdmin-3.5.1-all-languages
$ vim config.sample.inc.php
   cfg['Servers'][$i]['auth_type'] = 'http';
$ cp config.sample.inc.php config.inc.php
$ mv ../phpMyAdmin-3.5.1-all-languages your_web_site

Friday, May 18, 2012

Ruby on Rails use CRUD

CRUD Steps
 First, you have create database addressbook_development
$ rails new addressbook -d mysql
$ cd addressbook
$ vim Gemfile
   gem 'therubyracer'
   gem 'thin'
$ bundle install
$ rails generate scaffold address name:string address:string
$ vim config/database.yml
$ password: your_password
$ rails s

Monday, May 14, 2012

Ruby on Rails Install

Ruby : http://www.ruby-lang.org/en/
RubyForge : http://rubyforge.org/
Installing libyaml
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$ ./configure --prefix=/usr
$ make
$ make install