If you parse this Yaml ... yes: 'Totally' no: 'Nope' ... you get this Ruby hash: { true: 'Totally', false: 'Nope' }

You are probably using Ruby 1.8.7 with a too recent versions of Rubygems. Downgrade your Rubygems to the latest version...

stackoverflow.com

Create, or edit your ~/.irbrc file to include: require 'irb/ext/eval_history' # was 'irb/ext/save-history' for versions prior to Ruby 3.3 IRB.conf[:SAVE...

guides.rubyonrails.org

config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...

github.com

quiet_assets helps with disabling asset pipeline log messages in the development log. When the gem is added, asset pipeline...

When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...

makandra dev

If you once had HTTP Strict Transport Security enabled for a domain, and you want to disable it again, you...

Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.

makandra dev

Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...

makandra dev
menuetos.net

MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...

Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...

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...

If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...

github.com

better_errors is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging...

If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...

linux.die.net

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

If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...

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.

makandra dev
heartbleed.com

The Heartbleed Bug is a serious vulnerability in the popular OpenSSL cryptographic software library. This weakness allows stealing the information...

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...

makandra dev
sitepoint.com

A look at Prawn, PDFKit, and Wicked PDF