24 Nov '13, 12pm

Using GDB to Inspect a Running Ruby Process

Using GDB to Inspect a Running Ruby Process Jon Yurek April 05, 2013 ruby unix This job shouldn't be taking this long! That's not a great thing to have to say, is it? However, I bet you've said it before and may not have immediately know why. With liberal use of puts and maybe pry , you can figure out what a problem might be next time you run it, but sometimes you need to figure out what that problem is right now. As it turns out, and I know this is a shocker, Ruby processes are just regular processes. They can be debugged with gdb . Having recently had the need to find out why a job of mine was running particularly slowly, I found out about this lovely tool the hard way: frantic googling. I found some very useful functions for gdb in a blog post by Rasmus on Ruby callstacks . define redirect_stdout call rb_eval_string("$_old_stdout, $stdout = $stdout, File.open('/tmp/ruby...

Full article: http://robots.thoughtbot.com/using-gdb-to-inspect-a-runni...

Tweets

Stupid Ruby Tricks

robots.thoughtbot.com 26 Nov '13, 6am

At first glance, this barely looks like valid Ruby. But somehow, it just makes sense: it splits up the array. If you're go...

Q: How much do running shoes actually matter? A:

menshealth.com 26 Nov '13, 9pm

If a pair of shoes could make you faster overnight, Adidas stores nationwide would have a line out the door. That’s becaus...

No matter your running experience, slowing down...

runnersworld.com 27 Nov '13, 5pm

WALK SIGNAL: You're fighting fatigue or leg soreness near the end of long runs or races. This often means you've gone out ...

Using Ruby's each_with_object

rubyflow.com 04 Dec '13, 3pm

Using Ruby's each_with_object Posted by bozhidar on December 04, 2013 — 0 comments I just wrote an article about Enumerabl...

Here's why it is NEVER too late to start running:

runnersworld.com 27 Nov '13, 1am

Sometimes research is helpful at confirming common-sense suppositions. Such is the case with a new study that shows that p...

Why It's Never Too Late to Start Running

runnersworld.com 26 Nov '13, 7pm

Sometimes research is helpful at confirming common-sense suppositions. Such is the case with a new study that shows that p...

Ruby 1.9.3-p484 is released

ruby-lang.org 02 Dec '13, 3pm

Now Ruby 1.9.3-p484 is released. This release includes a security fix about Ruby interpreter core: Heap Overflow in Floati...

Five medical tests runners need to ace, because...

runnersworld.com 26 Nov '13, 6am

Chances are you've memorized your personal records, race pace, and maybe even target heart rate. But do you have any clue ...

New post: Running a Laundromat with an Arduino

New post: Running a Laundromat with an Arduino

hackaday.com 26 Nov '13, 12am

Although [Stefan] explains that the boards were defective, perhaps one of our German readers can help us out with a more s...

Ruby is not meant for preventing idiots from sh...

m.onkey.org 30 Nov '13, 10am

However, above are not really the primary reasons I don’t like freeze . It’s the fact that you cannot unfreeze an object w...

Ruby 2.1.0-preview2 is released

ruby-lang.org 03 Dec '13, 3pm

Ruby 2.1.0-preview2 is released We are pleased to announce the release of Ruby 2.1.0-preview2. Please test the new feature...

Ruby and Python Libraries for Yammer's API

robots.thoughtbot.com 25 Nov '13, 5am

Ruby and Python Libraries for Yammer's API Adarsh Pandit November 24, 2013 ruby python We've worked closely with folks at ...

Taking part in our holiday running streak (begi...

runnersworld.com 26 Nov '13, 1am

We've gotten a great response so far to our announcement of our Runner's World Holiday Running Streak—but some people have...

New Blog Post! Last weeks running was way more than I thought and I FINALLY bought my son a six-pack. Sort of.

New Blog Post! Last weeks running was way more ...

theboringrunner.com 26 Nov '13, 12am

In addition to the blog that you're reading, I also tweet my twerk (I think I'm using twerk right there), and I log all of...