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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
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/
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
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.
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
How to index large database tables in Rails without downtime: https://semaphoreci.com/blog/2017/06/21/faster-rails-indexing-large-database-tables.html
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
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
This is a video tutorial showing how to use Google Sheets as the backend for a basic landing page. Check it out on YouTube
Writing API documentation is a boring task, manual updating leads to errors and it’s time consuming. [more inside]
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.
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 :)
Having worked on many teams where Git commit messages have been non-descriptive; hard to reason about what has been committed; inconsistent; and so forth, I’m happy to announce the release of Git Cop 1.0.0. Now you have a tool, like Rubocop, that will help ensure good Git behavior on your feature branches so undesired commits never make it to master! Git Cop can be wired in as a Git Hook or, better yet, be added as part of your build process so feature branch builds fail if commits are bad (recommended). Let feature branch code reviews be focused on architecture and high level discussions while Git Cop takes care of reviewing Git commit behavior. All Git Cop checks are completely customizable for your team’s style guide, see the README for details. [more inside]
Learn to create a multi-tenant application where access to tenants are determined by the subdomain. https://www.driftingruby.com/episodes/working-with-subdomains
Hello, I’ve updated the Dr. Jekyll’s Top 22 Open Source Static Website Themes page. Congrats to #1 Jekyll Now ★ 3653 by Barry Clark; #2 Poole ★ 2178 by Mark Otto; #3 Minimal Mistakes ★ 2068 by Michael Rose and all the runner ups. Happy publishing with Jekyll & friends. PS: Any theme missing? New themes welcome.
How Rails conventions work from first principles. https://medium.com/launch-school/new-book-demystifying-rails-e076b345d484