…instance_variable_get and instance_variable_set on some objects in an IRB session:
class Thing def initialize @= Object . new end end class OtherThing end thing = Thing . new thing . instance_variables # => [:@value] ivar = thing . instance_variable_get ( :@value ) # => #<Object:0x007fe43a050e30> other_thing = OtherThing . new other_thing . instance_variables # =>  other_thing . instance_variable_set ( :@transplanted_value , ivar ) other_thing . instance_variables …
There's our string with the invalid byte! How do we know for sure? In that IRB session we can simulate a comparable issue by sending a message to the string it won't like - like split or gsub . > "hi \255".split(' ') ArgumentError: invalid byte sequence in UTF-8 from (irb):9:in `split' from (irb):9 from /Users/joel/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>'
Yup. It certainly does not like that.
Let's create a very …
Phusion can optionally disable the process before attaching itself, so that the administrator can debug the process without him being disrupted by traffic. 's live IRB console feature
Whatcan do to improve Out-of-Band Work
It would be great if the Ruby interpreter can provide some sort ofto find out when the garbage collector should be run. That way you can delegate all garbage collection work to the out-of-band phase. The current solution …
I gave a lightening talk about IRB ( Interactive Ruby Shell) at Seattle.rb on 01/08/2013.
Here is my speaker deck: https://speakerdeck.com/monde/seattle-dot-rb-irb-presentation
Here my notes and example irbrc's: http://bit.ly/seattle-rb-irb
The irbtools gem is really massive in all of the features it curates together. As mentioned in the deck, I prefer a more simple setup of:
integrated vim to edit/paste code via the interactive editor gem
…reply.split , the string refused to split on whitespace. Yet if he did "@twellyme film".split in IRB, that was fine.
International man of mystery Will Jessop suggested checking $; (it's a special global variable that defines the default separator for #split ). It was .
In an attempt to look smarter than I am, I suggested reply.method(:split).source_location to see if the String class had been monkey-patched by something annoying. Nope. (Though …
Many libraries have Rake tasks applicable to this step. rake console is a common task that opens an IRB shell with your in-development copy of the library loaded into it. If the library is made available as a gem, there will be a task that builds the gem (e.g. rake build ), and you'll want to make sure this still works after you change things.
Note that while the changes I made to Chronic were in multiple commits, you should really put both the tests and the code that passes …
…webapps and the '' variant includes rolling restarts, a live IRB console, and more.
Contains an important security fix for apps using digest authentication from Action Pack. But 3.2.8 is just around the corner..
Rails 3.2.8 Release Candidate 1 : Final Due on Friday
Phusion Shares A of the 4.0 Roadmap
After a period of radio silence, theguys are back on the …
Roadmap - More on the upcoming version of 2: live IRB console, deployment error resistance, new website . The live debugging looks pretty slick.
Backbone.js: - More internals for your fun and profit. 's Guide Part 2
The - Could it be that the App Store will fail, because apps bought that way are significantly disadvantaged? I think it more likely that a future version of … 's future of irrelevance
You can attach an IRB console to any live, running Ruby application process managed by Phusion Passenger Enterprise. In this console you can inspect the application's state using Ruby code, and modify it in a REPL manner. Just invoke this command: passenger-irb <PID OF THE APP>
Phusion Passenger Enterprise also allows you to attach a ruby-debug console to any Phusion Passenger-managed Ruby process that has the debugging flag turned on. Ruby-debug normally requires …
RubyFiddle - An online IRB session that lets you save and share your code snippets.
Domino - Abstraction layer on top of the for use in your integration tests, with integration.
StatiCloud - Drag a zipped folder to the page, get a static site hosted on .
contracts.ruby - Contracts for defining your ruby method interfaces.
How to build firebug extensions - Part 1 (Getting Started) - Just in case building browser extensions …