JRuby Presentation at RubyConf08

This is an excellent presentation from the JRuby guys. I just downloaded and upgraded my JRuby to 1.1.5 and it’s everything they mentioned in this presentation. By the way, you will have to reinstall all gems for JRuby again unless you separated out the JRuby gems.

Dave Thomas Keynote at RubyConf08

Enjoy!

RubyConf 2008 Video

Confreaks (love those guys!) began posting videos from Ruby Conf 2008. Here’s the link:

http://rubyconf2008.confreaks.com/

Enjoy!

no such file to load — sqlite3 on Rails 2.2

I was getting “no such file to load — sqlite3″ error on my Mac when I tried to “rake db:create” on my brand new app. I couldn’t even load sqlite3 from irb.

Turns out, do_sqlite3 gem that came with Merb caused this problem. The solution is to get rid of this gem by running “sudo gem uninstall do_sqlite3″. However, if you’re running JRuby and have Merb installed, this won’t work.

Rails 2.2 Out!

Rails 2.2 is out and before you do sudo gem update, you have to do sudo gem update –system since it now requires gem 1.3.1.

You can go through the documentation, but I found it easier to watch excellent video from Envycasts. Have fun!

JRuby Part III – Upgrading Gems

Upgrading rubygems is extremely simple. All you have to do is:


sudo jgem install rubygems-update
sudo jruby -S update_rubygems
sudo jruby -S gem update

It brought my gem to version 1.3.1, just the same as my normal gem. However, jgem command no longer worked. It gave me following error:


/opt/jruby/bin/jgem: line 8: require: command not found
/opt/jruby/bin/jgem: line 9: require: command not found
/opt/jruby/bin/jgem: line 10: require: command not found
/opt/jruby/bin/jgem: line 12: required_version: command not found
/opt/jruby/bin/jgem: line 14: unless: command not found
/opt/jruby/bin/jgem: line 15: abort: command not found
/opt/jruby/bin/jgem: line 16: end: command not found
/opt/jruby/bin/jgem: line 21: syntax error near unexpected token `('
/opt/jruby/bin/jgem: line 21: `args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]'

After taking a look at jgem itself, it appears that changing the first line from

#!/opt/jruby-1.1.4/bin/jruby

to

#!/usr/bin/env /opt/jruby-1.1.4/bin/jruby

fixes the problem. jgem command now works great.

Upgrading JRuby’s gem to 1.3.1 now allows me to install merb without a hitch. I haven’t tested it, but at least everything installed without barfing.

Envycasts – Just Amazing!

If you’re really serious about learning and want to improve your skills, please check out Envycasts.

The latest episode has really great set of information on improving performance and scaling. Two other episodes are Advanced ActiveRecord and Rails 2.2 and they’re really really good. I don’t want to sound like a salesperson for them, but I guarantee that you’ll feel the same way after viewing them.

I was extremely impressed with the production value of the whole thing. It’s not just staring at the screen or a slide presentation. You actually see Gregg and Jason along with awesome animations. They also don’t sound like they’re suffering from constipation unlike, well…

The price is $9 per episode but I actually feel bad that they’re not charging more. Yes, it’s that good folks!

JRuby App Demo

Although this screencast is somewhat dated, it demonstrates creating a JRuby on Rails app using NetBeans. It’s also a good demonstration of NetBeans for those still searching for an IDE in Linux environment. Click on the image to view.

Click to view video

Powered by Olark