07 Apr '13, 6am

Using GDB to inspect a running Ruby process

April 5, 2013 jyurek ruby debugging unix processes Using GDB to inspect a running Ruby process 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...

Full article: http://robots.thoughtbot.com/post/47202759358/using-gdb-t...

Tweets

Ruby processes are regular processes and can be...

robots.thoughtbot.com 05 Apr '13, 6pm

April 5, 2013 jyurek ruby debugging gdb Using GDB to inspect a running Ruby. This job shouldn’t be taking this long! Well,...

"xml is like violence — if it doesn’t solve you...

nokogiri.org 08 Apr '13, 3am

[shows.xml] <root> <sitcoms> <sitcom> <name>Married with Children</name> <characters> <character>Al Bundy</character> <cha...

"XML is like violence - if it doesn’t solve you...

nokogiri.org 12 Apr '13, 5pm

Nokogiri::CSS::Tokenizer::ScanError Nokogiri::Decorators Nokogiri::Decorators::Slop Nokogiri::EncodingHandler Nokogiri::HT...

Using rbenv to manage rubies and gems

robots.thoughtbot.com 06 Apr '13, 2pm

April 6, 2013 lailawinner rvm rbenv ruby Using rbenv to manage rubies and gems We recently switched from RVM to rbenv for ...

Using Selenium with Webrat and Cucumber | BDDCasts - BDD Screencasts with Cucumber, RSpec and Ruby on Rails

Using Selenium with Webrat and Cucumber | BDDCa...

bddcasts.com 07 Apr '13, 10am

In episode #136 of Railscasts , Ryan Bates showed us how to quickly turn a regular form into one that is submitted with Aj...

Check out this cool @raspberry_pi project to see how much energy you're using! Instructions included.

Check out this cool @raspberry_pi project to se...

element14.com 08 Apr '13, 3pm

My Pi is currently running a Python program named wattcher_cosm.py which is based on ladyada's original TaW wattcher.py pr...

Get Moving With These Editor-Approved Running Sneakers

Get Moving With These Editor-Approved Running S...

refinery29.com 10 Apr '13, 9pm

You might be surprised to hear that at R29, we practically live in our flats come summertime. It’s not that we shun our st...

@andypike yeah that's what I thought. I'm a rub...

fabiokung.com 07 Apr '13, 2pm

Great article! And apparently you are not alone thinking about this in a non-Java world. In Scala people talk about those ...

The classic book Running & Being by @Doc_Sheeha...

runnersworld.com 10 Apr '13, 9pm

The text below has been excerpted from Running & Being by Dr. George Sheehan, which spent more than 14 weeks on the New Yo...

Кстати, список «Concurrent Programming and Thre...

rubyweekly.com 05 Apr '13, 12pm

Securing Your Rails Application: A Webinar (April 9) On Tuesday, April 9th at 9AM Pacific Time, Bryan Helmkamp will be giv...

@gcpursley @padrinorb I'm not sure we all agree...

rubyinside.com 07 Apr '13, 2pm

I'm a huge fan of nested context blocks for testing, but I've never gotten over my dislike of RSpec's .should matchers. So...

API with Ruby on Rails: useful tricks

rubyflow.com 08 Apr '13, 4pm

API with Ruby on Rails: useful tricks Posted by gregolsen on April 08, 2013 — 0 comments I've just published a blog post a...

@cosmo__ ruby '1.9.3' とか。

gembundler.com 05 Apr '13, 2pm

Like gems, developers can setup a dependency on Ruby. This makes your app fail faster in case you depend on specific featu...