Skip to main content

Mobomo webinars-now on demand! | learn more.

Hyattsville Zombie Run

Mobomo was thrilled to sponsor the third annual Hyattsville Zombie Run 5K on October 13th! The event is hosted by the Hyattsville Elementary School PTA and proceeds support HES, including the purchase of art supplies, musical instruments, coats for students, field trips, teacher professional development, and more.

This Zombie themed 5K race is USATF certified and timed, and the 1 Mile Kids’ Challenge and 1K Family Fun Run are opportunities for everyone to participate. People dressed up as a zombie or any Halloween costume that added to the fun! All races started and finished at Magruder Park. It was a great, family-fun event and it was a great way to start a Saturday. Our CEO, Brian Lacey, left the rest of Mobomo team in the dust and completed his 5k in just over 23 minutes!

We can't wait for next year!

 

Categories
Author

Zombie Run

We were thrilled to sponsor the second annual Hyattsville Zombie Run 5K on October 14th! The Halloween themed 5K race is USATF certified and timed, and the 1 Mile Kids’ Challenge and 1K Family Fun Run are opportunities for everyone to participate. People dressed up as a zombie or any Halloween costume that added to the fun! All races started and finished at Magruder Park.

The event is hosted by the Hyattsville Elementary School PTA and proceeds support HES, including the purchase of art supplies, musical instruments, coats for students, field trips, teacher professional development, and more.

Categories
Tags
Author

You've heard of Pry right? It's a full-featured alternative to the classic IRB shell that we use in Ruby, and it's awesomesauce. If you've ever felt like you wanted a crowbar to pry open your code during runtime... well, Pry is your answer.

Pry is essentially a REPL (read–eval–print loop) tool that you can use to examine and debug your code. One of the best features is that local variables are available to Pry, saving you from recreating them as you normally would in an IRB session.

Installing Pry

I like to install pry into the global gemset since it's a tool even when I'm outside of a Rails project

rvm use @global gem install pry 

Replacing IRB with Pry

In your application initialization, add the following to replace IRB with pry by default. For example, Rails would add this code to config/initializers/pry.rb

begin   require "pry"   IRB = pry rescue   # do nothing if pry fails to load end 

Replacing ruby-debug with Pry

Between different versions of Ruby, installing and requiring ruby-debug can lead to annoying problems. 1.8.7 uses ruby-debug, 1.9.2 requires ruby-debug19, and 1.9.3 blows up when you try to use ruby-debug19. ruby-debug also depends on the linecache gem, which sometimes requires extra work to use with rvm and sometimes fails in environments when the native extensions fail to build.

Instead, skip all that headache with Pry! Anywhere you would use a 'debugger' statement, just call:

binding.pry 

'binding' is a reference to the current local context. Enter 'exit' when you're finished with debugging, and the code will resume executing

Additional features

Pry has a ton of other productivity boosters built in. You can drop into a shell temporarily, browse docs without leaving your shell, edit and reload code, and send code snippets up to gist.

There's a ton of documentation for Pry and a growing community around it; if you're interested in jumping in be sure to start at their Github page for links to tutorials, screencasts, FAQs and a Wiki!

Disclaimer: We love Pry so much we were compelled to donate funds to the project. And write this blog post about it. If you like it, you can support them too!

Categories
Author
1
Subscribe to Sponsor