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.
Ruby-asterisk - Asterisk Manager Interface in Ruby
A few years ago I wrote a library to interface a ruby application with asterisk, its name is ruby-asterisk (original huh?). I wrote a post to introduce it, hope you enjoy it!
Gradual engagement with Rails
When a visitor reaches your website, you might want to allow them to use some of the functionality of your app without creating an account. This UX technique is called gradual engagement. In this post, we will walk through adding lazy registration to a simple app. http://nithinbekal.com/posts/gradual-engagement-rails/
Only $584 away from bringing ten new contributors to Practicing Ruby
I’m trying to raise some money to pay Ruby community members to produce open source learning materials via Practicing Ruby. If we can rustle up just a few more backers, I can start the search for contributors as early as today. [more inside]
PStore: Ruby's Lesser Known Key/Value Store
I wrote a blog about “PStore”, a feature of Ruby that I feel doesn’t get enough attention despite its usefulness.
Demystifying @tenderlove's homeopathic code optimizations
At the Keep Ruby Weird conference, Aaron Patterson gave a hilarious keynote talk where he talked about homeopathic code optimizations. Read on to find out how that impossible piece of code worked: http://nithinbekal.com/posts/homeopathic-code-optimizations/
Debugging Memory Leaks on Heroku
I recently ran into a problem that looked like a memory leak on Heroku, it took some time to explore and find the root cause of the issue. For a spelunk on debugging memory leaks on heroku: http://gavinmiller.io/2015/debugging-memory-leaks-on-heroku/
Sandi Metz - Nothing is Something
Great talk by Sandi Metz at RailsConf about identifying hidden concepts in your code. Nothing is Something.
Easy Docker event monitoring via the docker-api gem
A howto on monitoring docker events via the docker-api and statsd-ruby Ruby gems.
The Ruby Community: An Introduction
A Sitepoint article on the Ruby Community dealing with the Basics, Primary Community Members, Testing, Frameworks and Rake. [more inside]
active_loaders: preload SQL data for your serializers (AMS) more easily
active_loaders is a gem that takes care of automatically doing “includes” for you when you’re using ActiveModel Serializers, and then also allows you to write queries for more complex preloading logic in a reusable way. It uses your serializer as a manifest to preload the data you need from the DB. It supports ActiveRecord and Sequel. [more inside]
Get Freaky: Browse and download conference videos from the command line.
get_freaky is a ruby gem I built to make it easier to download videos from confreaks.tv. I built this tool because I was interested in saving conference videos from confreaks for viewing later, like when I have time to kill on busses and planes. It could also allow you to do things like automatically download a new conference video once a day or once a month with a cron job or something. [more inside]
The ten most widely read contributed articles in Practicing Ruby
See this list of articles for a good sampling of what Practicing Ruby’s guest authors have been up to over the years.
Code Dojo: Twitter Top Trumps (part 2)
Attempting to build an app in two hours that’ll let us compare two users Twitter followers: https://www.youtube.com/watch?v=A21_nSA4OwU
avgbm gem: Adds Benchmark.avgbm
performs Benchmark.measure multiple times… discards highest/lowest times and averages the remaining times. https://github.com/girishso/avgbm
Unless Or Negative Expressions On Conditionals
It’s amazing our ability to tell histories by negative conditionals. [more inside]
CanCanCan: The Rails Authorization Dance
Meet CanCanCan, a flexible authorization solution for Rails. This project started as CanCan authored by Ryan Bates, the creator of RailsCasts. However, a couple of years ago this project became inactive, so members of the community decided to create CanCanCan, a continuation of the initial solution. http://www.sitepoint.com/cancancan-rails-authorization-dance/
Use TZInfo to send timely emails
If you’ve ever needed to send emails at a specific time in different time zones, TZInfo is a great tool to use. http://bradpauly.com/blog/2015-05-29-how-to-use-tzinfo-to-send-timely-emails.html
Regular expression matching in Ruby with String#[]
Today I discovered that you could do "foobar".[/f../] to extract “foo” from the string. Here’s a short post explaining how to use String#[] to match regular expressions.
Functional programming in Ruby - Part 2
Do you remember the first part of FP in Ruby? Here comes the second one!
Extracting Configuration in Ruby Application
Hi! Today I’m going to present you a little gem that I extracted after solving the same problem over and over again in Rails. But it can also be used in any Ruby application. The gem is called app_configuration… Learn more here
Top 6 Ruby Links for June 4, 2015
Here is a list of Ruby links that I would like to read and use as a reference: Top 6 Ruby Links for June 4, 2015
Working with exceptions in Pry
Pry has some cool features for working with exceptions in development. http://blog.honeybadger.io/working-with-exceptions-in-pry/
PDF Email Attachments with Paperclip and wicked_pdf
A brief tutorial on using Paperclip to attach PDFs (generated by wicked_pdf) to emails https://github.com/thoughtbot/paperclip/wiki/ActiveMailer-PDF-Email-Attachments-with-Paperclip
EmailHunter
A tiny ruby wrapper around Email Hunter API (https://emailhunter.co/) [more inside]
How to reformat CSV files with Kiba ETL?
I just pushed out a fairly detailed hands-on article explaining how to completely remap a CSV file generated by a French system into an US one, using Kiba ETL. [more inside]