HappyNewYear.where(:year => 2012).friends.all
Friday, December 30, 2011
Tuesday, September 27, 2011
10 Steps to Install ruby on rails 3 on Ubuntu 10.10 (Maverick)
1. Update ubuntu repositories
sudo apt-get update
2. Install all libraries including mysql, git, curl
sudo
apt-get installbuild-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev autoconf
libmysql-
ruby
libmysqlclient-dev
mysql-client mysql-server mysql-query-browser mysql-administrator openssh-client openssh-server
3. Install rvm
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
4. Set rvm path in bash
source .bashrc
5. Check rvm install or not (you can skip this step)
rvm --version
//OP:
rvm 1.8.4 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
6. Install ruby 1.8.7 or 1.9.2 (according to your need)
rvm install 1.8.7
7. Set default ruby 1.8.7
rvm --default use 1.8.7
8. Create gemset for rails3 application (you can name it as you wish)
rvm gemset create rails3
9. Use the rails3 gemset on ruby 1.8.7
rvm use 1.8.7@rails3
10. Final Step
git clone your_project ; gem install bundle ; bundle check
Manage git repos on S3
Use jgit to manage git repos on Amazon S3
Download jgit.sh from here and put jgit in your $HOME path
Make a .jgit file in your home directory and put
accesskey: *******************
secretkey: ********************
Make a bucket for git repos say git-repos
Now got to your project directory and add a remote for Amazon S3
>cd git_project
>git remote add s3 amazon-s3://.jgit@git-repos/git_project.git
>git push s3 branch
and it's done.
thanks to following bloggers
gabrito
spearce
Download jgit.sh from here and put jgit in your $HOME path
Make a .jgit file in your home directory and put
accesskey: *******************
secretkey: ********************
Make a bucket for git repos say git-repos
Now got to your project directory and add a remote for Amazon S3
>cd git_project
>git remote add s3 amazon-s3://.jgit@git-repos/git_project.git
>git push s3 branch
and it's done.
thanks to following bloggers
gabrito
spearce
Friday, June 3, 2011
Couldn't forward the HTTP response back to the HTTP client: It seems the user clicked on the 'Stop' button in his browser
One day in the morning I got the following error in one of my rails application with passenger on my development machine but other applications are working fine on the same passenger server.
Couldn't forward the HTTP response back to the HTTP client: It seems the user clicked on the 'Stop' button in his browser
After two days i got to know that it is due to mistakenly setting
Rails.env = "production"
for my development mode in Rails.root/config/application.rb
Couldn't forward the HTTP response back to the HTTP client: It seems the user clicked on the 'Stop' button in his browser
After two days i got to know that it is due to mistakenly setting
Rails.env = "production"
for my development mode in Rails.root/config/application.rb
Friday, April 29, 2011
Netbeans CSS help - Missing documentation zip file: docs/css21-spec.zip!
If you got Missing documentation zip file: docs/css21-spec.zip! this in netbeans6.9 on ubuntu machine just download this file
CSS 2.1 spec zip file
and paste it on the following path
/usr/share/netbeans/6.9/nb
and you will get the CSS code help on pressing CTRL + spacebar
CSS 2.1 spec zip file
and paste it on the following path
/usr/share/netbeans/6.9/nb
and you will get the CSS code help on pressing CTRL + spacebar
Subscribe to:
Posts (Atom)