The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Eventide 1.0: Evented, Autonomous Microservices for Everyone!
The Eventide Project community is excited to announce the 1.0 release of Eventide: the best microservice, autonomous service, event/reactive, and event sourcing toolkit built in Ruby, and one of the best stacks available in any language!
Coverband 3 released, simple fast production code coverage
After lots of benchmarking and refactoring out legacy features and code (+860, -1,606). Coverband 3 is out… Extremely performant Ruby production code coverage. How fast? Around 60X faster! Benchmark details shared.
Ruby Toolbox Community Survey 2018
As we approach the Ruby Toolbox’s 10th anniversary next May, I’ll be working on it as my main project in December and January. I launched a community survey to gather feedback and suggestions - if you have a few minutes, please take the time and check it out, your input is a great help in shaping the future of the Toolbox!
Permission to go faster!
By leveraging native Linux file permissions we are able to deploy quickly, avoid application permission errors, and still maintain file level security! [more inside]
[Screencast] Grab Bag of Ruby and Ruby on Rails Tricks
In this episode, we look at various tips and tricks. https://www.driftingruby.com/episodes/grab-bag-of-ruby-and-ruby-on-rails-tricks
RubyCademy
Some Ruby & Ruby on Rails courses adapted to the developer’s training needs www.rubycademy.com
How to use sklearn machine learning models in your Rails app
Learn how to use machine learning models developed with Python and scikit-learn in your Rails app here.
Efficient Rails DevOps, third edition
I just released the third edition of Efficient Rails DevOps, a complete rewrite sporting more than 40 pages of additional content with lots of improvements, finally supporting both CentOS and Ubuntu operating systems and giving you the choice between MariaDB and PostgreSQL (the discount code “rbflw” still gets you $5 off).
correios-cep bug fix released
correios-cep version 0.6.8 has been released with a parsing bug fix, since Correios API is now omitting "complemento" XML node in its responses. https://rubygems.org/gems/correios-cep/versions/0.6.8 [more inside]
Latest reCAPTCHA v3 + Rails app
https://github.com/igorkasyanchuk/new_google_recaptcha allows integrating the latest reCAPTCHA v3 and your Rails app.
4 Ways to Scale on Heroku
In this 18-minute talk, I explain my approach and mental model for scaling Rails apps on Heroku. Check out the summary here.
2FA google authentication with Active Admin
Have you ever implemented 2FA google authentication on rails app? Well I bet you haven’t with Active Admin. [more inside]
Ruby on Rails Security
Folks still get the basics of Rails security wrong. Here’s a few big ones. I think it comes from too much reliance on assuming a “security engineer” will come in and pay attention. They never come.
Performance of Regular Expressions
Regexps are useful, neat and dangerous. Uncarefully written regular expression may hang both frontend and backend apps severely harming user experience and causing headaches at debugging stage. Read our blogpost on regexp performance to see when it could happen, understand how the regular expression engine work and what to do to optimize regexps. Benchmarks, real-word stories, step-by-step analyses and live examples included!
Building a Ruby C Extension From Scratch
In this edition of Ruby Magic, we’ll show you how to use code written in C from Ruby. This can be used to optimize performance sensitive parts of your code or to create an interface between a C library and Ruby. Read all about it.
Is Rouge the best code highlighting solutions for ruby apps?
We needed to implement the code highlighting solution for our blogs, and after some research we decided to use Rouge. In this article I present the detailed guide how to do that. [more inside]
Working with ActiveRecord Callbacks
This article goes through some helpful tips when working with ActiveRecord callbacks. [more inside]
The Architecture No One Needs
Single-page apps are all the rage these days despite being an awful business decision 99% of the time. The Architecture No One Needs argues why SPAs are a poor investment and offers some alternative solutions.
Forms—Comparing Django to Rails
This article is a short study in web application design, comparing Rails to Django using a simple web form as an example.
Building auto login for fast Rails development with Sorcery
Learn how to build auto login with Sorcery to speed up your development.
Ruby Quiz is Back (Fortnightly)! Challenge #1 - Read Comma-Separated Values (CSV)
Hello,
The Ruby Quiz is now back fortnightly (once every two weeks). Challenge #1 - Read Comma-Separated Values (CSV) from the “Real World”.
Let’s use the test.csv file from Apache Commons CSV Reader. The challenge: Code a parse method that passes the RubyQuizTest :-). Start from scratch or, yes, use any library / gem you can find. To qualify for solving the code challenge / puzzle you must pass the test. Post your code snippets on the “official” Ruby Quiz Channel,
that is, the ruby-talk mailing list. Happy hacking and data wrangling with Ruby.
PS: Thanks to RubyFlow and Peter Cooper for blocking my account. Last post (really only an edit others get blocked). See you in the free world. All the best. Cheers. Prost. PPS: If that’s how you treat your friends - how do you treat your enemies :-)..
Introducing Enkrip
Enkrip is Ruby gem to make your Active Record model seamlessly encrypt and decrypt your desired attributes. Under the hood it uses ActiveSupport::MessageEncryptor for encryption and decryption. https://www.railsmine.net/2018/10/introducing-enkrip.html
Galaaz: Better R for Ruby integration
Using GraalVM, now it is possible to smoothly integrate R invocations into Ruby code: https://towardsdatascience.com/ruby-plotting-with-galaaz-an-example-of-tightly-coupling-ruby-and-r-in-graalvm-520b69e21021
Why the CSV library is broken (Part VI) - Fast, Faster, Fasterer, Fastest
Hello, I’ve written a new (and sixth) episode on why the CSV standard library is broken (and how to fix it). Let’s have a look at fixes in alternative CSV libraries out there: Fixes in Alternative CSV Libraries or Evolve or Die or Fast, Faster, Fasterer, Fastest Questions and comments welcome. Cheers. Prost. PS: If you want to see other (more) CSV formats / dialects pre-configured and supported “out-of-the-box” in the new csv reader, please tell. PS: (Update) Added Part VII or What’s Your Type? Guess. Again. And Again. And Again. Guess What’s a Schema For?