Tuesday, December 13, 2011

sudo: cd: command not found

Ever tried this:



Weird isn't it ?
I checked the "/etc/sudoers" and everything looked normal:
toamitkumar   ALL = (ALL) NOPASSWD: ALL
I have sudo access - which means I have access to everything (thats what my understanding was)
Well, I was wrong.

After thinking for a while I felt - 'cd' is not a program, it is built-in for bash shell. So, I had to do:

sudo -s or sudo su or sudo bash

and then 'cd'.

But be careful, that will open a shell for 'root' user.

Tuesday, November 29, 2011

RSpec::Core::Configuration::MustBeConfiguredBeforeExampleGroupsError

Came across this weird error: 







This had happened because I had RSpec 1 way of including spec_helper (in old files):

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

And the other way (in my new files):

require 'spec_helper'

Synching them fixed it :))

Saturday, November 26, 2011

! No such app as radiant-cloud-8241. (Heruko)

While pushing my rails application on heroku I stumbled across a weird error.

Here are the steps:



To look into details of the error, lets dig deep. Below are the steps I followed to resolve the issue.