When you need to see the content of a page (i.e. not all the HTML but the relevant text body...

makandra dev

If you need to export data from MySQL to a CSV, you can profit from really fast built-in methods...

makandra dev

If you need to revert only parts of one or several commits the following workflow can help:

makandra dev

A popular ruby idiom I keep stumbling upon is def do_some_thing_for(values) values = Array(values)

When submitting textareas, browsers sometimes include carriage returns (\r) instead of just line feeds (\n) at the end of each...

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...

To run a single test file: rake test:units TEST=test/unit/post_test.rb rake test:functionals TEST=test/functional/posts_controller_test.rb rake test:integration TEST...

gem-session.com

In order to find out whether I'm having a problem with link rot, I wrote a script that goes...

robots.thoughtbot.com

We didn’t want to leave front-end developers in the dark when their Javascript throws errors, so we’ve...

Best results in other decks

How to retrieve connection information from memcached. printf "stats\nquit\n" | nc 127.0.0.1 $MEMCACHED_PORT | grep connection

Despite being a very popular metric for measuring forecast accuracy in forecasting, MAPE certainly has its strengths and limitations...

Search in all decks