03 Nov 2017
Remote debug Ruby on Rails running in a Docker container using RubyMine
RubyMine brings a sophisticated debugger with a graphical UI for Ruby, JS, and CoffeeScript. You can set breakpoints and run your code step by step with all the information at your fingertips, without having to modify your code as Pry.
This article is written about how one can use RubyMine to remote debug a Ruby on Rails application that even runs inside a Docker container.
Versions of software in our environment
- RubyMine 2017.2.4 (Build #RM-172.4155.44, built on September 26, 2017)
- Ruby inside docker (ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux])
- Ruby SDK and Gems used by RubyMine (ruby-2.4.2-p198)
18 Aug 2017
Add Google reCAPTCHA to Your Website
Google reCAPTCHA is a free service that protects your site from spam and abuse.
You can just follow the steps below to add it to your website.
First of all, go to Google reCAPTCHA, and register your application there. Then you can work on the client and server sides respectively as below:
On the client side (see ref)
First, paste the snippet below
<script...></script> before the closing </head> tag on your HTML template, for example:
Then paste the snippet below
<div...></div> at the end of the <form> where you want the reCAPTCHA widget to appear, for example: