Aug 24, 2013

Confusion around upgrading ruby using rvm ...

Confusion around upgrading ruby

I have three ruby versions running. For an old open source project, I use ruby 1.8. For many rails tutorials or recent apps, it is ruby 1.9. The latest is ruby 2.0. The version I ran is an early one - ruby 2.0.0-p0. I wanted to upgrade it. So, using RVM's instructions, I tried upgrading.

Basically, I do $ rvm upgrade 1.9.2-p0 1.9.2-pxxx (xxx is version you want to upgrade to)

The command is intended to "migrate gemsets, wrappers, aliases and environment files." It also would remove the 2.0.0-p0 gemset, which I wanted.

Is there a way to isolate single ruby version upgrade?

Thing was once it was done, I couldn't use ruby 1.8 and ruby 1.9 without having to upgrade those versions as well.  Does anyone know how to upgrade a single ruby version in RVM without messing around with the other versions? In the end, I had to upgrade 1.8 and 1.9 as well, which added more needless time to setup upgrade.


As you can guess, I looked on stackoverflow, but didn't find a ready answer. Ended up leaving a question: is it possible to isolate 'rvm upgrade' to single ruby version?

Ruby. Gotta love it.

Aug 19, 2013

Never give in. Never? What's your dream?

Repetition => Pattern Recognition

A friend, who is studying to be a dermato-pathologist related the following story to me.  Paraphrasing:

"As a skin/cell doctor, you basically look at cells under a microscope all day.  And they all look the same (it is frustrating day in and day out).  Then, six/seven months in, something happens.  You begin to see the differences with confidence.  You can tell apart a sick cell from a healthy one, one cancerous type from another ..."

So it goes.  It reminded me of learning English as a second language when I was 10.  At first, everything sounded like the gibberish in a Charlie Brown cartoon.  Wawawa - wawa.  Then, one day (or phase of days), it falls into place.  "And there was light. And it was good."

I wonder what happens if the resident gets discouraged and gives up at month five.  Or what if it takes longer than six months to begin to have the patterns fall into place?  What if it takes longer than a year to learn a foreign language, and you still find yourself among foreigners?

image of pattern
Most patterns in life don't stand out quite so easily
(On a side note, there is a fascinating history with a 1977 Architecture book called A Pattern Language by Christopher Alexander. Some of the patterns we needn't learn from scratch - they have been documented!)

Dream vs. Reality

Of course, one could always give up on a dream - startup dream or dream to sing or whatever.  For a new entrepreneur, there are challenges galore.  Why bother?  Why not re-apply for a comfortable six figure job with a big name company?  Don't you want that nice apartment?  Don't you want that new car? C'mon, it's not giving up - you're just taking the smarter way to success.  So it goes.

Success, however you measure it, is about persistence.  And it is about learning to be resourceful (and resourcefulness can help you sell your first "lemonade").  You start somewhere, and being resourceful, you persist and make it (make what?) better every day.  Then, one day, there was light. And it was good.

As with learning a new language, it seems that sticking around and persisting really leads to result.  And just to be clear, persisting doesn't mean inflexibility.  Truth is, you will be changing your ideas and approaches all the time.  Rather, persistence is about making progress.  And the question may become more about how to optimize progress, rather than whether there will be one. So, when you become discouraged or become tempted to take the easy way out, consider stepping forward rather than stepping back.

"Never give in. Never! Never! Never!"

I admit, I don't speak entirely out of experience. Much of it is out of faith. After all, I am still learning and growing - including how to code. And I am exploring a new venture (calling it Talent Tap for now), after failing with a previous one.

I am comforted by the words of those who had faith before me.  At the risk of being overly dramatic, I find it fun to record Churchill's words from his 1941 speech at the Harrow School:

Churchill exhorting a nation to hang in there.

Doing vs. Thinking

And hitting that tipping point, where patterns come together, where momentum builds is not just about thinking and planning. Instead, it's more about iterating by doing. Sometimes it takes a bit of an attitude shift. And with that, I'm going to try 12 days of building.