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.
[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
Generate API documentation from RSpec examples with the DOX gem
Writing API documentation is a boring task, manual updating leads to errors and it’s time consuming. [more inside]
Basically Basic, Minimal Mistakes, HPSTR & More - Jekyll Themes by Michael Rose
Hello, to celebrate Jekyll passing ★30 000 GitHub stars (the fastest growing web framwork in Ruby today ;-)) - lets also celebrate and thank Michael Rose for the outstanding (free, open source, and well-documented) static website themes incl. Basically Basic, Minimal Mistakes, HPSTR, So Simple & Skinny Bones. PS: You might also enjoy Michael Rose’s classic How I’m Using Jekyll in 2016. Happy publishing w/ Jekyll & friends.
Everyday Rails Testing with RSpec updated for 2017
Hi, I’ve given my book on testing Rails apps with RSpec a major overhaul for 2017. There’s an all-new sample app using RSpec 3.6 and Rails 5.1, expanded coverage of API testing, and general updates to reflect my current testing philosophies. I hope you’ll check it out. It’s a free update for existing readers, and I wouldn’t turn down new readers :)