Drummer Boy · Sunday August 14, 2011
Kylen came out of his room pouting just a little bit.
Mom (noticing he is holding 4 drumsticks): What’s wrong buddy?
Kylen: I only have two hands…
Mom: Too bad you aren’t a monkey. Hey, I could be two of your hands.
Kylen: No, you aren’t good.
Mom: What?
Kylen: I mean, you couldn’t hit it right when I do. I’m pretty good.
Mom: Yeah, you are pretty good.
Installing autotest for Ruby on Rail on Linux · Friday April 1, 2011
Pretty good instructions on how to do this…
Heroku gem installation · Friday April 1, 2011
I was having a problem getting the heroku gem installed. It wouldn’t go to the directory where I have gems installed for some reason. But by using this code:
sudo gem install heroku —install-dir /path/to/install/into
you can specify where to put it. Nice.
Ubuntu apps · Friday April 1, 2011
Just making a list of apps that I’ve downloaded that I’ve found useful.
gedit
gftp
Ruby on Rails - how to start a new app · Thursday March 31, 2011
I’ve got Ruby on Rails installed on my Linux box and I’m going to try to write succinct steps for creating a new app so that next time, I’ll be able to just follow these steps:
$ cd ~/rails_projects
$ rails new app_name -T
$ cd app_name
$ gedit Gemfile
Make sure Gemfile looks like this when you edit it:
Gemfile
$ bundle install
$ rails generate rspec:install
$ git init
$ git add .
$ git commit -m “First commit”
You’ll then want to make a repository on Github. Go to github.com and create the repository. Then:
$ git remote add origin git@github.com:username/app_name.git
$ git push origin master
Ruby on Rails - sample_app · Thursday March 31, 2011
I couldn’t get rails server to run, and then to get the repo from github to work as well. So I scrapped the sample_app folder and started over.
$ cd ~/rails_projects
$ rails new sample_app
$ cd sample_app
$ gedit Gemfile
or instead of gedit (on my Linux box):
$ mate Gemfile
(which is Textmate on the Mac)
I then edited the Gemfile and uncommented the following lines:
#gem ‘nokogiri’
#gem ‘sqlite3-ruby’, :require => ‘sqlite3’
back to the terminal:
$ bundle install
$ git clone git@github.com:username/sample_app.git
That seemed to do it! We’ll see if it still works in a bit…
Ruby on Rails - can't find rack 1.2.1 · Thursday March 31, 2011
This occurred when I tried to install Ruby on Rails in 2 different locations. I was trying to have it so I can work at home and from work on the same project. At work, I forgot to “bundle install” which caused rack 1.2.1 or 1.2.2 to not be installed. Just run $ bundle install from the app’s directory and it should take care of that.
Now onto why nokogiri-1.4.4 can’t be found…
Installing Ruby · Wednesday March 9, 2011
So I decided to try to learn Ruby (and especially Rails).
The first step is to install it on the Mac. It sounded pretty easy, so I downloaded MacPorts:http://www.macports.org/install.php and then got stuck. Great, first step and I’m already stuck. I couldn’t update sqlite3 because I hadn’t installed it yet. But I couldn’t figure out how to install it. So here is the step I learned: in the terminal, type “sudo port install sqlite3”. And that did it.
But then I got stuck again. I had to install rubygems, which I did by typing:
“sudo port install rb-rubygems”
I then followed the rest of the directions in the book and was able to get Rails up and running!