Eric Hodel
Ruby, Rails, Test::Rails Cheat Sheet
over 5 years ago by Eric Hodel on Segment7.
A cheat sheet that shows the assertions in Test::Unit, the ones added by Rails, and the ones further added by Test::Rails (part of the ZenTest gem). ...
Subclassing vs include
over 5 years ago by Eric Hodel on Segment7.
In memcached Basics for Rails Rob Sanheim asked: [W]hy make the cached model a class to extend instead of a module? Whether or not a model is cached should...
Memory leaks, cached_model and backend jobs
over 5 years ago by Eric Hodel on Segment7.
One of my long-running problems with Rails (and Ruby in general) is that it’s difficult to debug memory leaks. I’ve had a number of cases where...
ZFS for FreeBSD
over 5 years ago by Eric Hodel on Segment7.
Hi. I started porting the ZFS file system to the FreeBSD operating system. There is a lot to do, but I’m making good progress, I think. [...] You...
Unleashing ri
over 5 years ago by Eric Hodel on Segment7.
Now that ruby 1.8.5 has been released (Changelog) and ri includes a bunch more documentation and integrates with gems you just might be suffering from ri...
Memory Inspector
over 5 years ago by Eric Hodel on Segment7.
I've hacked into gc.c and added an alternative to ObjectSpace.each_object that gives you the contents of every heap slot in Ruby's memory space. $ ./ruby...
Memory Map
over 5 years ago by Eric Hodel on Segment7.
Here’s a picture of my Ruby process’ heap slots: BLACKunknown (char*, VALUE *, struct st_table, etc.) GRAYfree memory REDnodes (code...
Using RubyInline for Optimization
over 5 years ago by Eric Hodel on Segment7.
I wrote an article on using RubyInline for optimization where I take png.rb, sprinkle in a little profiling and a little C and make it go over 100 times...
mem_inspect and png
over 5 years ago by Eric Hodel on Segment7.
I'm pleased to announce to new libraries written by members of the Seattle Ruby Brigade, mem_inspect and png! mem_inspect mem_inspect is ObjectSpace.each_object...
Reducing $SAFE
over 5 years ago by Eric Hodel on Segment7. [Linked from: Ruby Inside]
Ya you are correct, it won't let you change the safe level. I wonder how hard it would be to bypass it though using something like rubyinline? &mdash...
