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.
Concurrency with Resque - hacking our way through
I’ve written a blog post on how we use Resque to easily parallelise the execution of certain parts of our applications.
Setting up a freshly installed OS X for ruby development
The flow & tools I use when setting up a freshly installed OS X for ruby development.
RailsApps interview on Ruby Rogues
The backstory about recent changes to the RailsApps project in an interview on the Ruby Rogues podcast.
A Small Case Study in Threading
Chuck Remes saves almost 10 days in a production import job by using real threads on Rubinius.
The Unix Log - Another RubyFlow Inspired Community LinkLog
I love RubyFlow and JSLive but I needed a site to post my unix related articles on. So I built The Unix Log. Please take a look and feel free to post anything unix, linux, or osx related to the site. Help me make this site as great as RubyFlow!
Using Pundit, The Cool Kid of Authorization
Authorization can often be one of the toughest parts of the development process. There are a few different ways to go about creating an authorization system, and there are a few different gems to choose from. This
blog post walks through using the pundit gem, including how to implement policies and scopes.
Internal vs External quality of software
Tips for maintaining the quality of your application, both from a developer’s point of view, and that of the end user.
Free O'Reilly E-Book(let) Download - Static Site Generators (Jekyll and Friends)
Hello, found via Vienna.html - covers Jekyll news - that O’Reilly offers a free E-Book(let) download (email required) for Static Site Generators: Modern Tools for Static Website Development by Brian Rinaldi (50+ pages). Looks at Jekyll (Ruby), Wintersmith (CoffeeScript/JavaScript) and Hugo (Go). Cheers. PS: The author Brian Rinaldi also has a great “Getting Started w/ Jekyll” article and a static site samples repo (for comparing Jekyll, Hugo and friends. What static site generator are you using? Let us know. Cheers.
Ruby 2.2.2 Array Basics : Part 10
Ruby 2.2.2 Array methods such as repeated_permutation, replace, reverse, reverse_each, rindex, rotate, sample, select, shift and shuffle. Watch the video here.
REST Fest 2015, links round up
SmartLogic developer Eric Oestrich went to Greenville, SC for REST Fest 2015. If you missed the weekend or want to catch up on resources you heard about, Eric has you covered with 30 links. Read more
Plain Ruby for generating primitive data structures from object graphs (ruby & rails)
Serial is a light-weight and simple serialization library which helps with serializing your models. It has a very small API surface, and is designed to be easy to reason about. It’s available on GitHub: github.com/elabs/serial
RailsStuff gem
RailsStuff is a collection of small useful modules for Rails apps. There is post with overview of one its features.
When NullObject Meets ActiveRecord
Here’s a gem called SafeFinder. It helps you building model’s Null Object, and whenever your finder methods get nothing, it returns your Null Object instead of nil or raises exception.
Command Line Reporter 3.3.6 Released
Fixes an issue with New Relic installs. Check out the wiki to see examples of nicely formatted tables. As always the gem is available on rubygems.org with source on github. For those not familiar with “the reporter”, it provides a ruby DSL for writing reports with built in features for progress reporting and table formatting. It is very handy for system level and data reporting scripts.
Ruby 2.2.3 Hash Basics : Part 3
Ruby 2.2.3 hash methods such as assoc, key, any?, default and compare_by_identity?. Watch the video here
Using ES6 with Asset Pipeline on Ruby on Rails
Using ES6’s features today is a viable option. And you don’t even have to use builders like Gulp or Grunt. Learn how to integrate Babel.js with Asset Pipeline in this article.
Ruby 2.2.3 Hash Basics : Part 2
Ruby 2.2.3 hash methods such as default, ==, upcase and try_convert is covered in this video
Elasticsearch gems and modules, clearly explained
Ever since the official Elasticsearch tire gem has been split into multiple gems, it’s been unclear to me what they all do. So I wrote this to help understand their responsibilities:
Exploring the new Turbolinks 3 features with Rails
I did a live coding stream checking out the new Turbolinks 3 features.
Sanitizing html input: youtube iframes, css inline styles and customization
Sometimes we give users tremendous power over the content generated on the web platforms that we write. The power to add content using HTML/WYSIWYG editors. There is only one gotcha. We need to make sure that this power is not abused by malicious users. After all, you are a responsible developer, right? Read more
Ruby 2.2.2 Array Basics : Part 9
Ruby 2.2.2 Array methods such as pack, permutation, pop, product, push, rassoc, reject and repeated_combination. Watch it here
How to run Kiba ETL in a Rails environment?
Tonight I spent a bit of time documenting how you can get access to your Rails environment from inside a Kiba ETL script, including ActiveRecord models, database connection etc. Hopefully this will make it easier for you to add data-processing tasks to your Rails app using Kiba.
Parse *.gemspec file
CLI for parsing *.gemspec file. Convert to JSON format. parse_gemspec-cli. Parse *.gemspec file. Convert to Plain Old Ruby Hash Object. parse_gemspec.
Why you should use Rails for your new company
A rebuttal to the “Why I wouldn’t use Rails for a new company” article