This is a great link to fixing issues around Bundler. Some I have not hit yet, but I have a feeling I could. So, good to know and for anyone else working with Rails 3.

Fixing Common Bundler Problems.

Cheers.

 

So, with Ruby versions coming out so often, well it feels like it. Don’t get me wrong, that is a good thing. The problem is that it requires some testing of existing applications on different versions until it is upgraded. Not only does this apply to Ruby, but also Ruby on Rails as well.

I did my trusty search on Bing! and come across RVM: Ruby Version Manager.

To Install RVM, do the following:

$ gem sources -a http://gemcutter.org/
$ gem install rvm
$ rvm-install
$ echo “if [[ ! -z $HOME/.rvm ]] ; then source $HOME/.rvm ; fi” >> ~/.bash_profile
$ source ~/.rvm/scripts/rvm

Now, you can install the necessary gems, that you want to install. Notice: Also, don’t use sudo as it will mess up the configuration.

Here I install the different Ruby interpreters:

$ rvm install ruby-1.8.7-p160
$ rvm install ruby-1.9.1

Now it’s important to notice that at this point you have separate gem installations for each of the interpreters you’ve installed in the previous step. That said, just go ahead and switch between your interpreters and use your command line scripts – ruby, gem, etc… – as usual.

Now, here is a way to switch between interpreters and install Ruby on Rails versions as well.

$ rvm ruby-1.8.7-p160 #switch to the specified version
$ ruby -v
ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-darwin9.8.0]
$ gem install rails #note I’m not using sudo since the new gem paths point to the user’s home directory

$ rvm ruby-1.9.1 #switch to the specified version
$ ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin9.8.0]
$ gem install rails #note I’m not using sudo since the new gem paths point to the user’s home directory

Okay, you can now switch to a specific interpreter and have multiple rails versions, especially if you are migrating from 2.x to 3.

$ rvm gemset create rails222 rails126
Gemset ‘rails222′ created.
Gemset ‘rails126′ created.

$ rvm 1.9.2-head@rails222
$ gem install rails -v 2.2.2

$ rvm 1.9.2-head@rails126
$ gem install rails -v 1.2.6

There you go, pretty cool!

-Later.

 

After looking around on the Internet, I found a site that provides exactly what I am looking for.
Namely, creating an alias, as I am swapping from different operating systems and still put the wrong commands in.

So, I know how to do an alias, but the step I always forget is to reload my profile settings.

Here is a quick blurb, for those who have not used the command before.

1. First we edit/create a profile. For a normal user do:
pico /etc/profle
…or if you are not a root/superuser do:
pico ~/.profile

2. Add your alias like so to the file:
alias aliasname=’mycommand /path/path’ , I usually put in alias cls=‘clear’ as an example.
(notice no space between equal sign and ‘)

  1. Save your changes and close the file.
  2. Load/reload your profile with:

. /etc/profile
…or if you are not a root/superuser do:
. ~/.profile
*Note: the last file is probably already there as a normal user. Also this is the step I always forget. :-)

  1. If you are using root/sudo you will need to use sudo -i in order to load the profile upon login (more info about this here).

6. Done.

-Later

 

The streaming music recommendation service Pandora is a great example of a native Web application: it stores content in the cloud, it gets better as it adds users, it is personalized, and most recently it has been focused on the mobile experience. So what happens when a Web app hits on all these cylinders? Let’s look at the numbers.

  • In July 2010, Pandora had 60 million listeners registered. This is up from 50 million in April, and 40 million in December. (source)
  • Previously, it took Pandora all of 2009 to double in size from 20 million to 40 million. (source)
  • In December 2009 alone, 3 million new listeners joined Pandora — of which 2.7 million of them activated the service on a device other than a computer. (source)
  • Pandora is available for the iPhone, the Blackberry, the Palm Pre, and devices running Google’s Android and Microsoft’s Windows Mobile operating systems. (source)
  • About 90,000 new people a day activate Pandora on a mobile device and that number is growing (source)
  • Pandora currently has hundreds of thousands of songs in its catalog from over 90,000 different artists. 80 percent of those artists are played each month. (source)
  • Out of 100 hours, 1 hour and 15 minutes of radio is listened to on Pandora. (source)
  • Pandora has 3/4 of a million songs so far; 90 million of those three-fourths were played last month. (source)
  • 1 out of every 4 or 5 songs gets a thumb (whether up or down). (source)
  • On average an individual listens to 17 hours of radio per week. Of the 17 hours of radio listened, 96% are listened to through broadcast radio (so NOT Pandora because it is a unicast radio). (source)

I find this interesting, given not so long ago I got an email from the Founder of Pandora, saying they where in financial trouble.

Thanks to LukeW to providing the numbers.

 

Mothers have found a even better way to humiliate their children than showing baby pictures: becoming a friend on Facebook.

Internet: Teens on Facebook GOL (grumble out loud) as mothers become friends – latimes.com.

 

Great accessories for iphone and ipad.

iPhone Accessories, iPhone Cases, iPod Accessories & Cases: XtremeMac.

 

The first program that I discovered today was Xyle Scope. This application provides a better way of understand CSS.

Here is a screen shot of the capabilities.

wpid-Screenshot_en-2010-05-23-12-141.jpg

The beauty of this application is that it is free!

wpid-carbon_copy_cloner_logo-2010-05-23-12-14.jpg

Another program I came across was Carbon Copy Cloner, this is a backup program, I like it because you can use other macs as the backup destination.

It is free as well, it would be nice to donate to the author as well. Some other features are:

wpid-feat_clone-2010-05-23-12-14.jpg

* A Better Bootable Backup — your data, the operating system’s data, all preserved impeccably on a bootable volume, ready for production at a moments notice
* Simplest method to migrate to a new, larger hard drive
* Support for block-level disk-to-disk clones for super-fast upgrades.

Don’t take my word for it, try it out yourself!

The last program is Anxiety, this program is a simple ToDo program.

wpid-list-window-thumb-2010-05-23-12-14.png

I like this program because it is simple, yet very functional.

Also, this program of course is free too.

 

This is an interesting slides from data to design.

 

Here is some interesting facts about Twitter captured on paper.

wpid-PastedGraphic.h8JgEvP3mU0G.jpg

 

This is a great article on how to sync your Google Calendar on the iPhone Calendar.

via How to Sync Google Calendar With iPhone Calendar.

© 2011 Campbell Gunn Suffusion theme by Sayontan Sinha