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.
RJGit 5.10.0.0 for JRuby released
RJGit 5.10.0.0 was just released. It updates both the JGit jar (to jgit-5.10.0.202012080955-r.jar) and Bouncy Castle (to version 168).
The difference between instance_eval and class_eval
This article explores the difference between Ruby’s instance_eval and class_eval methods, and takes a peek into the depths of the Ruby execution context. https://daniel-azuma.com/blog/2021/02/02/should-i-use-instance-eval-or-class-eval
New Gem active_sort_order Released!
Active Sort Order is the “easy-peasy” dynamic sorting pattern for ActiveRecord that your Rails apps deserve. https://github.com/westonganger/active_sort_order
Machine Maintenance With A Bit of Automation
Learn how to keep your Ruby development environment in top condition with a little bit of Bash scripting. 😉
Understanding The bcrypt Hashing Function And Its Role in Rails.
Understand what bcrypt is, how it works and its role in Ruby on Rails for authentication. https://emmanuelhayford.com/understanding-the-bcrypt-hashing-function-and-its-role-in-rails/
Processing a Compressed JSON Feed
A step-by-step walk-through of using ruby to collect events from a firehose of compressed newline oriented JSON. https://dojo4.com/blog/processing-a-compressed-json-feed
Data Science w/ World Factbook - 267 Public Domain (Free) Country Profiles / Datasets
Hello, I’ve updated the factbook.json country profiles using the latest data from the Central Intelligence Agency (CIA) World Factbook. Looking for gold or oil reserves? Find the answer in the “natural resources” or the “proven known crude oil reserves” section, for example. To download all datasets or to rebuild the simplified json for the lastest 2021 CIA.gov website reshuffle / redesign, try the 2021/download.rb and 2021/genjson.rb scripts.Happy exploring the world while staying home. Cheers. Prost. PS: Trivia Quiz: What country has the most proven oil reserves according to the CIA World Factbook?
Why Is Ruby Still A Good Choice in 2021? An Introduction To Ruby 3.0
At the beginning of each year, the technology articles seem to focus on one topic only - trying to answer the question ‘Is insert the technology here still relevant? Ruby on Rails is no different. You might be surprised that even though it is over 15 years old it is not slowing down and still has a great group of supporters and newcomers. [more inside]
When not to use instance variables in RSpec
Let’s explore how RSpec helps developers use instance variables between specs, by restoring them before every spec, and in what kind of scenarios you should and should not use them.
Ruby on Rails Admin Panel - Forest Admin
Forest Admin, a SaaS solution that helps developers build admin panels in a flash, just rolled out official in-app Ruby on Rails support. No code, no hassle — check out the details here: https://www.forestadmin.com/rails/
Glimmer DSL for SWT code_text Widget Adds Support for 205 Programming Languages
Gladiator (Glimmer Editor) has been upgraded with Multi-Programming-Language support by taking advantage of the latest release of Glimmer DSL for SWT, which added multiple language support to the code_text custom widget, now supporting over 205 programming languages in addition to Ruby.
http://andymaleh.blogspot.com/2021/02/gladiator-glimmer-dsl-for-swt-multi.html
Gistory: Know when a gem was updated in your project
Sometimes we need to know when a specific gem was updated in our Ruby project. Gistory makes this easy, just run gistory gem-name and you’ll get something like: [more inside]
🌍 Honua - A library for static geo map images.
A Ruby library to stitch geographic map images based on map tiles provided by a rastered tile server like OSM. Highly inspired by ModestMaps. [more inside]
Admin panel MissionKontrol repo on Github
Hey there, after over 2,000 commits, we’ve just made our open source rails admin panel MissionKontrol public on Github. The self-hosted app allows you to connect to multiple databases (good for microservices envs), has full RBAC user permissions, CRUD tables and drag and drop views. Would love any feedback you might have.
Data Science w/ CryptoKitties - Calculate Cattributes Rarity & Popularity
Hello, I’ve updated the CryptoKitties Cattributes rarity / popularity statitics page using the latest “official” totals, see https://api.cryptokitties.co/cattributes. Cheers. Prosit 2021! PS: Find the cattributes script that builds the page in the kittyverse repo. Or as an alternative see chapter 3 in the “Programming CryptoCollectibles” book(let) for how to create your own up-to-date page or stats from scratch.
CircleCI build with multiple databases and Rubies
https://thibautbarrere.com/2021/01/20/circle-ci-with-multiple-databases-and-rubies I’m sharing my findings setting up a CircleCI build with MySQL, Postgres, and multiple Ruby versions for Kiba Pro. Happy reading!
LQIP in Rails using Thumbor and base64
Use Thumbor and base64 to create tiny image thumbnails for your Ruby on Rails applications. [more inside]
Glimmer Tetris Icon via Image Shape DSL + Instant Down
Glimmer Tetris just got an app icon that shows up in the app switcher and at the bottom dock. The most fantastic thing about this image icon is that it was generated dynamically with the Glimmer Canvas Shape DSL embedded in an image object (Yes! Glimmer now supports painting images). In fact, it is randomized, so as a fun factor, the game will get a different icon every time it runs.
http://andymaleh.blogspot.com/2021/01/glimmer-tetris-icon-via-image-shape-dsl.html
The No-Framework Framework: JavaScript Without React Part I
How to structure JavaScript modularly without resorting to a framework. Video with code examples plus vim action: https://www.youtube.com/watch?v=BpFtR8U_sjw
New Ethereum Examples Using the crypto-lite Gem (Derive the Public Key from Private)
Hello, I added some new ethereum examples on how-to use the crypto-lite gem. New examples include: Derive the (elliptic curve) public key from the private key, Generate the Ethereum Address from the (Elliptic Curve) Public Key, and so on. Happy secure programming with ruby. Cheers. Prosit 2021!
Day 4 - glimmer-dsl-opal Gem - Script Web Widgets w Two-Way Data-Binding - Ruby ♥︎ JS
Hello, lets thank Andy Maleh for the fourth and last write-up in the Ruby Glimmer Days 2021 - Best of Ruby Gems series. Lets welcome “Day 4 - glimmer-dsl-opal Gem - Script Web Widgets with Two-Way Data-Binding - Ruby <3 JavaScript - Thanks to Opal, the Ruby to JavaScript Source-to-Source Compiler”. Cheers. Prosit 2021!