Category Archives: General

How to see if current version of a gem is greater than X

I sometimes need to this, and always forget how. I want to see the currently loaded version of a current gem, and see if it’s greater than a certain version X. Mainly because I’ve monkey-patched that gem, and want to … Continue reading

Posted in General | Leave a comment

Handy introspection for debugging Rails routes

I always forget how to do this, so leave this here partly as a note to myself. From Zobie’s Blog and Mike Blyth’s Stack Overflow answer…   If you have an isolated Rails engine mounted, it’s paths seem to not … Continue reading

Posted in General | Leave a comment

GREAT presentation on open source development

I highly recommend Schneem’s presentation on “Saving Sprockets”, which he has also turned into a written narrative. Not so much for what it says about Sprockets, but for what it says about open source development. I won’t say I agree with … Continue reading

Posted in General | Leave a comment

Really slow rspec suite? Use the fuubar formatter!

I am working on a ‘legacy’-ish app that unfortunately has a pretty slow test suite (10 minutes+). I am working on some major upgrades to some dependencies, that require running the full test suite or a major portion of it iteratively … Continue reading

Posted in General | Leave a comment

Commercial gmail plugin to turn gmail into a help desk

This looks like an interesting product; I didn’t even know this level of gmail plugin was supported by gmail. http://www.keeping.com/ Help desk ticketing, with assignment, priorities, notes, and built-in response-time metrics, all within your gmail inbox (support emails are in a … Continue reading

Posted in General | Leave a comment

Sequential JQuery AJAX using recursive creation of Promises

So I’m in JQuery-land. I’ve got an array of 100K ID’s on the client-side, and I want to POST them to a back-end API which will respond with JSON, in batches of 100 at a time. So that’s 1000 individual … Continue reading

Posted in General | Leave a comment

“Apple Encryption Engineers, if Ordered to Unlock iPhone, Might Resist”

From the NYTimes, “Apple Encryption Engineers, if Ordered to Unlock iPhone, Might Resist” SAN FRANCISCO — If the F.B.I. wins its court fight to force Apple’s help in unlocking an iPhone, the agency may run into yet another roadblock:Apple’s engineers. … Continue reading

Posted in General | 1 Comment

Followup: Reliable Capybara JS testing with RackRequestBlocker

My post on Struggling Towards Reliable Capybara Javascript Testing attracted a lot of readers, and some discussion on reddit. I left there thinking I had basically got my Capybara JS tests reliable enough… but after that, things degraded again. But now I think I … Continue reading

Posted in General | Leave a comment

Struggling Towards Reliable Capybara Javascript Testing

You may have reached this blog post because you’re having terribly frustrating problems with Capybara Javascript-driver feature tests that are unreliable in intermittent and hard to reproduce ways. You may think this is a rare problem, since Capybara/JS is such … Continue reading

Posted in General | 3 Comments

A tiny gem: #dig backfill for older rubies

Excited about #dig in MRI 2.3.0?  Want to use it in your gem code, but don’t want your gem to require MRI 2.3.0 yet? I got you covered: https://github.com/jrochkind/dig_rb It’ll add in a pure-ruby #dig implementation if Hash/Array/Struct don’t have #dig … Continue reading

Posted in General | Leave a comment