docopt.org

docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...

So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...

With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...

linux.die.net

Sometimes you may want to print files from the command line, especially when you have lots of them.

Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...

makandra dev
filippo.io

Enter the hostname of a server to test it for CVE-2014-0160.

wiki.macromates.com

When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...

browserstack.com

Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...

Your development machine is usually on a very good network connection. To test how your application behaves on a slow...

If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...

makandra dev

When you call a method on an object, Ruby looks for the implementation of that method. It looks in the...

When you use a belongs_to or has_many macro you might be surprised that the methods that it generates...

Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...

Usually, Cucumber feature files live in features/. When you group them in sub directories, make sure to add -r features...

Tests are about 100% control over UI interaction and your test scenario. Randomness makes writing tests hard. You will also...

I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...

class Book::Page end class MyBook < Book def new_page Page.new # has to be `Book::Page` in development to...

Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...

When you are working with Backbone models and inheritance, at some point you want to overwrite inherited methods but call...

relishapp.com

Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...

makandra dev
github.com

Put the attached file into features/support/. Example usage: When /^I open the task named "(.+?)"$/ do |task_name| task = page.all('.task...

blog.buildbettersoftware.com

Mornings can be rough. To make them a little easier, leave yourself a failing test if your work isn’t...

After I upgraded to Mac OS X Mavericks, I regularly got this error message when running Cucumber features with Selenium...

Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...