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.
Inside the Punk Art Machinery - How To Generate 10 000 Punks, Algorithmically w/ Ruby
Hello, I added a new chapter to the Programming Crypopunks booklet titled:
Inside the Punk Art Machinery - How To Generate 10 000 Punks (and Punkettes), Algorithmically - Paint by Numbers. It reads: Let’s code the artist known as generate_punk - a method that
returns a (ready-to-save) punk image from the attribute parts coded as
numbers starting at 1. If the code is 0 then the (optional) part gets
skipped… Cheers. Prost.
factbook-codes gem - world factbook countries & codes (by region, by category, etc.)
Hello, CIA.gov has changed… I am trying to catch up and update the world factbook machinery - starting by breaking up the all-in-one “monolith”. The first standalone module is the new factbook-codes gem that lets you (re)use all world facbook countries & codes (by region, by category, etc.). Happy exploring the world. Cheers. Prost.
Rails PWAs using Turbo - HHNPWA #7
What makes any web site a progressive web app? Two small pieces tell the browser to treat your web page as a progressive web app. https://onrails.blog/2021/03/02/rails-pwas-using-turbo-hhnpwa-7/
rails_performance with new features
https://github.com/igorkasyanchuk/rails_performance an updated version of new_relic/datadog alternative for your RoR apps. Using Rails instrumentation + Redis to store info about your performance. [more inside]
Glimmer DSL for SWT Hello, Canvas Data Binding!
Glimmer DSL for SWT v4.18.6.2 just shipped with the new Hello, Canvas Data Binding! sample. [more inside]
Implementing hierarchy categories in Ruby on Rails
Through this article, you are going to be learning a very efficient way of implementing your hierarchical categories in such a way; that no third-party gem is used whatsoever. it will all be done using solid ruby on rails structure and code. https://devhaitham.medium.com/implementing-hierarchical-categories-in-rail-fd47f33b4bba
Read this before deploying a new Rails app to Heroku!
Have you tried deploying a new Rails app to Heroku and gotten strange errors about rake, such as “Could not detect rake tasks”, or “cannot load such file – rake (LoadError)”? This is due to a recent change in Bundler. Read my guide about Understanding Gemfile.lock for the fix. This guide is for both beginners and experienced Rubyists who might not be aware of the Bundler issue.
Migrating Tachyons to Tailwind (in a Rails app)
A little series describing the whole process of migrating our Tachyons styles to Tailwind CSS 2.0 in a Rails app. The initial analysis, the tools used, the issues hit and lessons learned. [more inside]
Glimmer DSL for SWT Canvas Path DSL
Glimmer DSL for SWT finally brings quadratic and cubic bezier curves to the table, adding two new samples: Hello, Canvas Path! and Stock Ticker. [more inside]
'Yo dawg, I herd u liek CMS' - the March 2021 release of ShinyCMS
This month’s big news for ShinyCMS is that the remaining main_app functionality has now been moved into a ‘core features’ plugin, which is a big step towards finalising the ‘pluginification’ of the whole CMS. The end goal is for ShinyCMS to be an entirely modular system that you can bolt into your own web application, rather than a stand-alone CMS - although I’ll still produce a ‘reference’ app that just includes all the plugins, so people can easily install it as a standalone CMS if they want to. There are still some loose ends to tidy up, but it’s nice to have that goal feeling very close now! :) [more inside]
Persist data when rebuilding a Rails development environment
This week in my experiments with Docker, Rails, and developer happiness, I realized that rails db:setup has a nasty side effect of wiping out any existing development data! I stumbled upon a nice workaround for persisting development databases, though, that’s good to know even if you’re not using container-based dev environments.
Rails Best Practices After 10yrs
In this video I go through about 10 Rails best practices which have given me great mileage [more inside]
[ANNOUNCE] - NHI1 - something that writes code for you
INTRO → https://nhi1.selfhost.co/wiki/index.php?title=NHI1_-_the_POWER_of_programming HOME → https://nhi1.selfhost.co/nhi1 RUBY → https://nhi1.selfhost.co/nhi1/rubymsgque/rubymsgqueref.htm COMPANY → https://nhi1.selfhost.co
Glimmer DSL for SWT 4.18.5.4 Nested Shapes with Default Bounds
Glimmer DSL for SWT v4.18.5.3 & v4.18.5.4 got released with support for Nested Shapes, Centering within Parent, Default Auto-Calculated Dimensions, and Shape Data-Binding Hello, Canvas! Sample Changes: [more inside]
Rails introduces new syntax for enum
Hi, My post on Rails introduces new syntax for enum is live on blog.saeloun.com.
Ruby on Rails vs. Express.js. A Ruby Dev Shop Owner Perspective
Ruby on Rails vs. Express.js. A Ruby Dev Shop Owner Perspective [more inside]
Flipper.enable(☁️)
Even when you have a fully functioning product, there are a few hurdles to launching it. Read on to learn how I tackled them. [more inside]