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.
Refactoring From Inheritance To Composition To Data
“Prefer composition over inheritance” is a popular saying amongst programmers. In this article, I want to demonstrate what that looks like.
Roadmap for APIQ CMS v1
What to expect and what’s not in upcoming APIQ CMS v1 release - https://www.apiq.io/2017/06/26/apiq-v1-release-plan/
Single file Rails applications
I’ll show you how to create Rails applications that are contained within a single file and walk you through an example: https://christoph.luppri.ch/articles/2017/06/26/single-file-rails-applications-for-fun-and-bug-reporting/
Who's Who - The Biggest (Static) Website Design Stars in Jekyll - New Authors Page
Hello, to highlight all the great open source contributors sharing ready-to-use (ready-to-fork) static website themes & templates for Jekyll ‘n’ friends I’ve put together an authors page ranked by GitHub stars @ Dr Jekyll’s Themes. Congrats to the winners: #1 Mark Otto (3) ★5998 (Poole, Hyde, Lanyon), #2 Michael Rose (5) ★4254 (Minimal Mistakes, Basically Basic, HiPSTeR, …) #3 Barry Clark (1) ★3653 (Now). Happy publishing with Jekyll & friends. PS: Dr Jekyll’s is (of course) built w/ Jekyll ;-) and open source ‘n’ public domain.
[Screencast] Plotting Points on a Map from Scratch
Using the Google Maps Javascript API, learn how to plot markers onto a map. Load markers and info windows through AJAX calls to your Rails JSON API. https://www.driftingruby.com/episodes/plotting-points-on-a-map-from-scratch
SO[L]ID - Liskov Substitution Principle
Learn how to keep objects of the same type and subtypes substitutable http://rubyblog.pro/2017/06/solid-liskov-substitution-principle
Shorten the IRB prompt
I hate to waste real estate on my screen. So here is a 0:43 min mini screencast about how to shorten your IRB prompt. https://twitter.com/wintermeyer/status/878860723304243201
Implementing Classification using Logistic Regression in Ruby
In this blog post we will walk through how to implement a simple classification algorithm in Ruby using logistic regression. We will use the gem liblinear-ruby to help us setup a model, train it and make predictions in a matter of minutes - http://www.practicalai.io/implementing-classification-using-logistic-regression-in-ruby/
HexaPDF 0.5.0 - Support for Advanced Text Layout
This latest release of HexaPDF has gained advanced text layout functionality (like horizontal/vertical alignment, arbitrarily shaped text, kerning/ligatures and more) - https://hexapdf.gettalong.org/news/2017/fifth-release.html
Awesome Ruby Newsletter Issue 58
This week’s weekly issue covers the following topics: [more inside]
Dr Jekyll's Themes Adds Trending Page - Most Starred Static Website Jekyll Themes
Hello, I’ve relaunched the Dr Jekyll’s Themes front page / site. Now showing the top themes, the latest (newest) themes, the trendiest (most starred this month), and the first of all 200+ on the front page. The new trending page shows the most starred (fastest growing) this month. Congrats to Michael Rose’s Minimal Mistakes (⇑377) for the trendiest static website theme. Happy publishing w/ Jekyll. PS: Dr Jekyll’s is (of course) built w/ Jekyll ;-) and open source ‘n’ public domain.
Dynos spinning other dynos with Heroku
Dynamically scaling a single dyno up and down turned out to be a simple, cost-effective solution for doing high-memory, short tasks. https://medium.com/@yoniweisbrod/dynos-spinning-other-dynos-with-heroku-522f3e5083b1
Crystal, TDD and Conway's Game of life
The Game of Life is a cellular automation devised by the British mathematician John Horton Conway in 1970. I’ve been using it as a challenge to learn and teach programming languages in the past 5 years. [more inside]
Html2Docx Gem
Html2Docx gem first relase. This version include paragraph style and inline tags supporting. I will implement table, image, links, heading and table of contents. [more inside]
Rails Quiz: XSS Edition
Think you know all about protecting Rails applications from XSS attacks? Test your knowledge with this mini-quiz!
Faster Rails: Indexing Large Database Tables Without Downtime
How to index large database tables in Rails without downtime: https://semaphoreci.com/blog/2017/06/21/faster-rails-indexing-large-database-tables.html
Private files for your Rails app using S3
Having files on your website to be seen by the world is quite easy. But what if you don’t want them to be available for free? We’ve looked at how to secure them with Paperclip. Now let’s add in S3 and get them off the application server. https://chrisherring.co/posts/private-files-for-your-rails-app-using-s3
The 3 tenets of Service Objects
Service Objects are becoming a staple in the toolbelt to slim down both Controllers and Models. Read about the 3 tenets of Service Objects: https://hackernoon.com/the-3-tenets-of-service-objects-c936b891b3c2
Anyway Config – 12factor-aware configuration for libraries and applications
Anyway Config allows you to easily follow the twelve-factor application principles and adds zero complexity to your development process. [more inside]
How to Create a Landing Page With Google Sheets and Ruby
This is a video tutorial showing how to use Google Sheets as the backend for a basic landing page. Check it out on YouTube