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.
tty-prompt adds ability to disable menu items
The newest tty-prompt allows disabling menu items and communicating reason back to the user. It handles menu items with content that exceeds terminal width. Enjoy!
Copycats Update - New! SQL Database Tables and ActiveRecord Models for @CryptoKitties
Hello, I’ve put together a (free, open source) SQL database schema / tables and ActiveRecord models for CryptoKitties. Still early and suggestions more than welcome on how to make it better, easier, faster, etc. The models incl. Kitty (of course), Gene, Trait and more. The idea is to make queries easy (thus, all 48 genes of a kitty in a “flat” genes tables along with all others). Find the source at the Copycats project page. Cheers. Prost. PS: You can read-in all 500000+ kitties using the Kitties on the Blockchain public dataset in comma-separated values (CSV) format in blocks of a thousand kitties each.
Cron on heroku in 5 minutes
A quick tutorial to get you started http://antulik.com/2018-03-11-cron-on-heroku-in-5-minutes.html
Write your own scss-compiler
The article about little experience of writing a compiler. read more
New gem trav3 — A Travis CI v3 API abstraction.
trav3 is a lightweight abstraction for accessing Travis CI public builds, jobs, and logs. Future updates will include more of the API. With the current abstraction it’s super simple to add additional API endpoints.
@AwesomeJekyll News Channel - Updates About The World #1 Website Compiler (in Ruby)
Hello, Find the latest and greatest news (updates) about Jekyll and friends at the Awesome Jekyll News Channel on Twitter https://twitter.com/awesomejekyll. Follow along. Latest (re)tweets include: [more inside]
Microservices for Startups: An Interview with Mike Hu of LogDNA
An interview with Mike Hu of LogDNA. Mike offers some great insights on starting with microservices from the beginning and using microservices to avoid any downtime.
Display Complex Object
The putsmethod implicitely calls the to_s method of the object passed as parameter (except for a String).. see more
We demand FaaS for Ruby !
This is an online petition to show that Ruby community is prepared to go Serverless and show Function as a Service providers that there is a value and market potential to support Ruby MRI. [more inside]
Build (Online) Books and Documentation w/ Ruby Tools (Jekyll, Kramdown, Octobook)
Hello, yesterday’s Vienna.rb talk notes titled Build (Online) Books and Documentation w/ Octobook Themes and the Jekyll (Static) Website Compiler. Real-world examples built with the (auto-)magic GitHub Pages build-pipeline incl.: [more inside]
Using Genetic Algorithms in Ruby
With genetic algorithms, you can solve optimization problems using concepts you find in nature (reproduction, survival of the fittest, adaptation to the environment). Jesus Castello shows how they work and how you can implement your own using Ruby. Read here.
I Love Ruby updated
Added Test Driven Development section to I Love Ruby, You can download the book here https://mindaslab.github.io/I-Love-Ruby/
Announcing Settei - manage app config using YAML, yet still being 12-factor compliant
Settei aims to be the successor of Settingslogic and Figaro. YAML is used for storing configuration, but during deploy it will be serialized as one environment variable, in order to be 12-factor compliant.
Refactoring your views with ActiveSupport methods
I talk about some legacy code I had to fix that was radically simplified by using an ActiveSupport utility method (in this case, in_groups_of). [more inside]
Catch Javascript errors in your system tests
How to make your tests fail in case of Javascript errors with capybara and chrome headless [more inside]
Avoid interpolation in heredoc
By default, heredoc accepts interpolation and special characters.. see more
Grpc Tutorial with Ruby
A small tutorial to understand how Grpc works a framework for RPC (Remote Procedure Call) developed by Google, in the tutorial we explore how easy is to create a ruby Grpc server as well a ruby client. Interested? READ MORE
Ruby on Rails - your own slow query log without the sql configuration
Reading slow query log is a great way to detect weak places in any app where you have to refactor code in order to improve performance. What if you can create your own slow query detecting engine and report slow queries to the external reporting system? READ MORE
Ruby 2.5 prints backtrace and error message in reverse order
Ruby 2.5 prints backtrace in reverse order (stack frames first and error last) if STDERR is unchanged and a TTY. This blog post explains it in detail.
kitty - CryptoKitties Offline Genes Reader 'n' Mix Genes (Matron+Sire) Reporter
Hello,
I’ve put together kitty - a new command line tool for CryptoKitties and Copycats - free and open source in ruby that works offline (use datafiles in .csv). 1) Kitty Genes Reader / Report - Pass in the id (e.g. 1, 43, etc.) of the kitty to print a genes report. Example:$ kitty 1. 2) Kitty Mix Genes (Matron + Sire) Report - Pass in two ids for the matron and sire kitties to print a mix genes report. Example: $ kitty 2 43. Enyoy. Cheers. Prost.
Microservices for Startups: An Interview with Stephen Blum of PubNub
An in-depth interview with Stephen Blum of PubNub on how they use Microservices. PubNub provides connectivity for over 350 million mobile devices, which is greater than the population of the United States with over 2 trillion transactions going over our network every month.
RabbitMQ is more than a Sidekiq replacement
I’ve had gripes with Sidekiq because of which I switched to RabbitMQ. Here are my thoughts and experiences after a year of using it in production. [more inside]
Geet - GitHub commandline interface
The geet tool allows to perform the most common operations (PR handling, issues handling, gists creation, milestones listing etc.) entirely via commandline. [more inside]
HABTM to has_many :through
In certain cases, has_many :through permits to declare the join table as model. And so, in order to operate (filter, sort, allow, reject, etc..) at a join table level.. see more
Something about and beyond the code: Ruby on Rails dev house behind the scenes.
A close look at how Ruby on Rails software house runs. Guidebook for those who are interested in working for or with a development agency or those who want to run a software house. [more inside]