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.
search_flip - v3.0.0 of the elasticsearch client got incredible new features
You can now convert search flip criterias to raw elasticsearch queries for code reuse, which helps to DRY up complex queries. Moreover, you can now use nearly all search flip query methods within its aggregation DSL to make top hits aggregations super simple. search_flip v3 comes with Instrumentation support. Give it a go: https://github.com/mrkamel/search_flip
Ruby vs Python Performance
An ultimate guide on how to choose between Ruby and Python programming languages. See what technology will perfectly fit your business and technical needs.
The Ruby Blend: StimulusReflex, BridgetownRB, RailsBytes, AppLocale.dev, and more
In episode 14 of The Ruby Blend, the guys talk about new and exciting things they’ve been working on. Nate starts out by talking about how he paired up with Jason Charnes of Podia and Remote Ruby, working on some great things on Stimulus Reflex. Andrew discusses a cool project to check out called BridgetownRB. Also, Andrew talks about some new projects he’s been contributing to called “RailsBytes” and “AppLocale.” Also, find out why Nate calls Ron the “Sage Wise One” on the show! You won’t want to skip this one!
Two Commonly Used Rails Upgrade Strategies
In this article I cover two common Rails Upgrade strategies so you can decide which one is the best for your application. [more inside]
Stats Package for Spatial Databases using ActiveRecord/PostGIS
spatial_stats is a gem that provides various statistical methods to Rails apps with a spatial database. It currently supports spatial weighting and global/local hot spot analyses. Point pattern analysis module, regression module, and standalone Ruby support coming soon. [more inside]
The webpack plugin I can't live without
In this post, we’ll take a look at installing and using the webpack-bundle-analyzer, perhaps the most invaluable webpack plugin, to analyze and debug the output of the webpack build in a Rails project configured to use Webpacker. https://rossta.net/blog/webpacker-output-analysis-with-webpack-bundle-analyzer.html
Learn to prepare PPA packages, by setting up a Ruby PPA
Now that the Brighbox PPA is discontinued, it’s time to build one’s own Ruby PPA! … but it’s always a good time to setup a PPA anyway 😄
RuboCop Defaults Survey Results
Here’s a summary of the results from the result survey on RuboCop’s defaults. Several defaults were already updated in version 0.84 and the 1.0 release can happen any day now.
Integrate Rubocop gem with Popular Ruby Text Editors
RuboCop is a very popular gem among ruby developers for the static code analysis of the ruby codebase. It does static code analysis as per the ruby style guide. [more inside]
Using Let's Encrypt in Development with NGINX and AWS Route 53
I wrote an article detailing how you can generate certificates using Let’s Encrypt and pointing DNS records to your local machine using AWS Route 53 so that your NGINX can serve https, including wildcard domains. [more inside]
New schema annotation DSL for ActiveRecord
the_schema_is is a gem that allows annotating database schema in AR models in schema.rb
-compatible DSL, and checks/fixes annotations with custom Rubocop cop. It allows to keep annotations structured, commented, and readable.
Generating JSON Datasets in sport.db (incl. football.db) Scripts & Tools Guide Series
Hello, I’ve written up a little article on Generating JSON Datasets in the sport.db - that includes the football.db :-) - Scripts & Tools Guide Series. You can use the football.json datasets as (static) web services with no API key or signup required ;-), for example. The article kicks off with the English Premier League. Other available datasets incl. the German Bundesliga, the Spanish Primera División (“La Liga”) and others. Enjoy data wrangling and the beautiful game with ruby.
tapping_device 0.5.0 is out!
tapping_device makes your Ruby objects tell you what they do, with just one line of code. With its help, you can spend less time on digging into code, and have more time on fixing the bug.
Don’t set your website language based on user location
You can delight your visitors by translating the website to their preferred reading language rather than the one picked up by geolocating the IP. [more inside]
How to Create Events in Google Calendar from Ruby On Rails Application?
Wondering how to create events in Google Calendar from a Ruby on Rails application? Here’s a simple guide comprising of the steps to do the same. https://www.botreetechnologies.com/blog/how-to-create-events-in-google-calendar-from-ruby-on-rails-application
Scaling Rails: Docker & AWS Beanstalk
Scaling Rails project still can be quite an interesting task. [more inside]
Speeding up Rails with Memoization
Whoever first said that “the fastest code is no code” must have really liked memoization. After all, memoization speeds up your application by running less code. In this article, Jonathan Miles introduces us to memoization. We’ll learn when to use it, how to implement it in Ruby, and how to avoid common pitfalls. Buckle up! https://www.honeybadger.io/blog/ruby-rails-memoization/
Extracting text from image using Google Cloud vision OCR with Ruby
Here we are going to explain a small app which uses the power of OCR technology to read text from images. We are going to use Google Cloud Vision to achieve this. Read more. [more inside]