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.
5 April 2023
Hosting After Heroku With Chris Oliver | Rubber Duck Dev Show 79
In this episode, we discuss what to do about hosting after Heroku’s plan adjustments with Chris Oliver: https://www.rubberduckdevshow.com/episodes/79-hosting-after-heroku-with-chris-oliver/
How to Use the rodauth-omniauth Gem in Ruby
Explore how to set up the rodauth-omniauth gem for your Rails application: https://blog.appsignal.com/2023/04/05/how-to-use-the-rodauth-omniauth-gem-in-ruby.html
Llamaste: LLaMA in Ruby
Ruby C extension which wraps llama.cpp, to provide a Ruby binding to GPT-style chat completions. Currently functional, with improvements and upstream fixes on the way. [more inside]
4 April 2023
I published the first issue of the Rails Tricks newsletter today. You can read the we
I published the first issue of the Rails Tricks newsletter today. You can read the web version at this link: https://greg.molnar.io/blog/rails-tricks-issue-1/ Subscribe if you don’t want to miss the next one.
Fixing Thread Safety Bugs With Nate Berkopec
Can you tell if a Ruby gem is really thread-safe or not? And how do you fix a seemingly thread-safety issue that can be something else entirely? [more inside]
Releasing ruby-zint - a gem for the creation of barcodes
Today I’m releasing ruby-zint a FFI binding for libzint. It allows the fast and easy creation of about 50 barcodes (Code 128, UPC A, QR Code, …). Currently is version 2.10.0 (default for Ubuntu 22.04) on Linux, Windows and macOS supported. I will update the gem to to most recent version in the next weeks.
Releasing rails_i18n_manager
rails_i18n_manager
is a Web interface to manage i18n translations helping to facilitate the editors of your translations. Provides a low-tech and complete workflow for importing, translating, and exporting your I18n translation files. Designed to allow you to keep the translation files inside your projects git repository where they should be.
3 April 2023
Transcribing with Artificial Intelligence
In this episode, we look at creating an audio transcription service which allows files uploaded from Active Storage to be transcribed with Artificial Intelligence. However, there are a lot of considerations around the approach from both a performance and thread safety perspectives. https://www.driftingruby.com/episodes/transcribing-with-artificial-intelligence
2 April 2023
[ANN] rodauth-oauth 1.3.0 released - self-signed issued tokens, JARM
rodauth-oauth 1.3.0 has been released. [more inside]
1 April 2023
new release of "rails_performance" gem
https://github.com/igorkasyanchuk/rails_performance is a plug&play solution to monitor the performance of your production Rails application. Similar to NewRelic/DataDog/etc, but self-hosted (works as Rails engine), and using only Redis as a dependency. [more inside]
31 March 2023
Deploying an app with Mrsk onto a single VM
I’ve deployed/migrated one of my apps with rails/mrsk onto a simple single host - with recipes for with asset caching & remote build & sidekiq & cronjobs. [more inside]
30 March 2023
Make your Ruby on Rails app 80x faster with SQL
Recently, I came across a piece of Ruby on Rails code that I rewrote and made 80x faster. Check out how I did it. [more inside]
New gem job_enqueue_logger - logs background jobs enqueued by your application
https://github.com/fatkodima/job_enqueue_logger - idea similar to SQL query tracer, but for background jobs. [more inside]
29 March 2023
Rails 7.1 Improves Support for Custom Namespaces
This patch improves the support for defining custom namespaces while autoloading files.
28 March 2023
RuboCoping with legacy: Bring your Ruby code up to Standard
Pretty much every Rubyist knows RuboCop—it’s the Ruby linter and formatter. But it’s still easy to find projects where style wasn’t enforced from the start (usually large, older projects). Fixing these can be tough. [more inside]
Two Different Approaches to Upgrade Rails by FastRuby.io
In this article I explain how we approach Rails upgrade projects for two different types of applications: [more inside]
27 March 2023
Middleware to block ChatGPT created by ChatGPT :)
https://github.com/railsjazz/chat_gpt_blocker is a bit funny project, assuming it was created by ChatGPT. Some websites should be ready to block access from the bot.
Pairing with GPT-4 on a Ruby Project
I wrote about what it’s like pairing with GPT-4 on a ruby Ruby at https://fly.io/ruby-dispatch/pairing-with-gpt-4/. Turns out the more you know about Ruby, the better your experience will be working with GPT-4 since it can send you down some pretty crazy paths. If you’re starting out, it can still give you pretty good results if you don’t ask it to build stuff for you. Overall, it’s more pleasant than using a search engine for help because you don’t have to wade through ads and SEO content that’s not helpful.