Craig Waterman | Technologist, Software Engineer | Syracuse, NY
  • Facebook
  • Twitter
  • Home
  • Portfolio
  • Contact Me

Ruby on Rails

Home» Programming » Ruby on Rails

Coffee-script and ExecJS vs. JRuby redux:

Posted on July 20, 2011 by craig in JRuby, Programming, Ruby on Rails

Great note from one of the ExecJS maintainers on GitHub: Use therubyrhino — that way ExecJS doesn’t marshal out to an external runtime and the whole IO.popen issue disappears.
Works great!
Read full article »

View Post coffee script, execjs, jruby

Coffee script compile fails in Rails 3.1.rc4 (w/ JRuby 1.6.3 –1.9)

Posted on July 20, 2011 by craig in JRuby, Programming, Ruby on Rails

If the title didn’t scare you off, please, continue reading:
I’ve been trying to diagnose why HTTP requests for /assets/application.js are failing with TypeError: can’t convert Hash into String. It works fine under MRI 1.9.2.
After a bout of ruby-debug-ide debugging issues (I’m looking at you Exception in DebugThread loop: undefined method `is_binary_data?’); I believe I have it narrowed … Read full article »

View Post coffee script, execjs, jruby

Debugging JRuby 1.6.3 in Aptana Studio

Posted on July 20, 2011 by craig in JRuby, Ruby on Rails

If you’re following the typical tutorials out there and adding ruby-debug to your Gemfile, you’ll be in for a nice surprise if you’ve also installed ruby-debug-ide and attempt to run the server in debug mode from the IDE.
Both ruby-debug and ruby-debug-ide define RemoteInterface and you’ll get a nasty little type error about a conflicting superclass. … Read full article »

View Post jruby, ruby debugging

Installing JRuby in Ruby 1.9 mode as your default on OS X

Posted on July 19, 2011 by craig in Programming, Ruby on Rails

In this mini tutorial we will be accomplishing the following:

Installing JRuby 1.6.3
Setting JRuby as our default Ruby interpreter
Setting Ruby 1.9 as the default interpreting mode for JRuby.

Open up Terminal.app and let’s get started.

rvm install jruby-1.6.3
rvm use jruby-1.6.3 –default
vi ~/.bash_profile

Once you’re in VI, add the following at the end and save it:

export JRUBY_OPTS=–1.9

You’ll need to close/re-open … Read full article »

View Post jruby, ruby, rvm

Random Portfolio Pieces

About Craig

I'm a seasoned developer who codes, consults, trains and more. Download my resume, or visit my portfolio to learn more.

  Craig's Resume

Twitter Feed


Follow @ckh2oman on Twitter

Categories

  • Cycling
  • Family
  • Flash/Actionscript
  • Git
  • JRuby
  • Link
  • Mac OS X
  • MongoDB
  • Movies
  • MySQL
  • Node
  • PHP
  • Portfolio
  • Programming
  • Random
  • Road to Fitness
  • Ruby on Rails
  • Science & Technology
  • Shell/Unix
  • Weight Lifting
  • WordPress

Archives

  • May 2012 (1)
  • April 2012 (1)
  • March 2012 (4)
  • February 2012 (4)
  • January 2012 (14)
  • December 2011 (4)
  • November 2011 (3)
  • October 2011 (1)
  • August 2011 (2)
  • July 2011 (13)

Obligatory Tag Cloud

.net ajax asp.net cakephp code editing coffee script coldfusion cycling dailymile dblizzy execjs family fitness flash health html/css ide jquery jruby kids lion magnolia mcrypt mini mongo monkey brain mysql os x oxrocket pdf php ruby ruby debugging rubygems rvm shell scripting silverstripe social twitter undefined method website weight weight lifting wordpress xml

(c) 2012 Craig Waterman | Technologist, Software Engineer | Syracuse, NY - Web Design by Jason Bobich