11 Apr '13, 8pm

TIL (I hate when my dots are interrupted): # silence_stream($stdout) do <noisy method here> end

Starts a debugging session if ruby-debug has been loaded (call rails server –debugger to do load it). Also aliased as: breakpoint Source: show | on GitHub # File activesupport/lib/active_support/core_ext/kernel/debugger.rb, line 4 def debugger message = "\n***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****\n" defined? (Rails ) ? Rails .logger .info (message ) : $stderr .puts (message ) end

Full article: http://api.rubyonrails.org/classes/Kernel.html#method-i-s...


Eclectic Method - Hackers

Eclectic Method - Hackers

caffination.com 12 Apr '13, 3pm

You don’t use the same password over and over right? Let’s be honest this is the day and age of the hacker. Eclectic Metho...

Cool, found out about the j or jj method in rub...

apidock.com 13 Apr '13, 9pm

strings in a pretty format, with indentation and over many lines.