I’ve released a simple tool to take a MySQL database and migrate its data to a Mongo database. The tool is simple, it doesn’t bring over indices, follow relationships to create references—it just moves tables to collections.
I started with the “quick and dirty mysql wrapper“, cleaned it up a bit for my needs and just … Read full article »
Coffee-script and ExecJS vs. JRuby redux:
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 »
Coffee script compile fails in Rails 3.1.rc4 (w/ JRuby 1.6.3 –1.9)
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 »
Debugging JRuby 1.6.3 in Aptana Studio
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 »
rvm’d JRuby 1.6.3 + gem update –system gives undefined method `version`
I recently started using JRuby 1.6.3 via rvm and noticed that my RubyGems was only at version 1.5.1. Trying to be a good netizen by keeping my software up-to-date I executed the requisite gem update –system
Instead of fluffy bunnies and ethereal harp music, I was greeted with the horror below:
ERROR: While executing gem … … Read full article »
View Post jruby, rubygems, undefined methodInstalling JRuby in Ruby 1.9 mode as your default on OS X
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