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.
I've been a busy bee
As well as Sinatra Cookbook, which I am still writing, I’m also building a platform for Freelancers and small agencies to better manage clients, Husk CRM. [more inside]
ArcServer.rb
I just launched arcserver.rb which allows to interact with ESRI ArcGIS Server Restful API.
7 daily use cases of Ruby Hash
In that blog post, I share 7 use cases of Ruby Hash I met often. I hope it will be useful to you.
Why I Wrote the Sucker Punch Gem
I wrote a new post titled Why I Wrote the Sucker Punch Gem. Hope you enjoy!
vienna.rb Talk - Open Football Data - Get Ready for the World Cup in Brazil w/ Ruby
Hello, Last nights slides from the vienna.rb talk titled “Open Football Data - Get Ready for the World Cup in Brazil 2014 w/ Ruby”. Use left/right cursor keys (or space bar) to browse the slides. Or check the all-in-one-page markdown source. Cheers.
RuboCop 0.19 has just landed
RuboCop 0.19 has been released! This is the biggest RuboCop release we’ve done in a while. The highlights include about a dozen new cops, more cop configuration options, improved auto-correct and so many bugfixes. [more inside]
How to automatically migrate all your images to the cloud
This blog post describes a method that combines the advantages of automatic image fetching from existing online locations with the advantages of managing new images directly in the cloud using Cloudinary. This method allows lazy migration to the cloud as well as other powerful origin pulling options. Sample code included for Ruby on Rails.
The "don't use a small gem" fallacy
Much is said about code reuse, when to reuse and how to reuse, but there’s a strong movement about not depending on a gem if it’s small or if you can write one that does the same yourself. Is it really an improvement to write one yourself?
The GC in Ruby 2.1: understand it, see it at work and tune it
I wrote a blog post about the GC in Ruby 2.1, in which I explain how the new GC works, how to read the output of GC.stat, what all those env variables for GC tuning are and how to use them.
Heroku dynos swap to disk before auto restart!
Memory used above quota will swap out to disk, which substantially degrades dyno performance. If the memory size of your dyno keeps growing until it reaches five times its quota (for a 1X dyno, 512MB x 5 = 2.5GB), the dyno manager will restart your dyno with an R15 error. [more inside]
Mock5 — stub remote APIs with Sinatra
I’ve made a new gem called Mock5 that allows to easily create remote API mocks using Sinatra and plug/unplug them at will. Using it, you can test all kind of situations, like API being down or taking too long to respond, responding successfully or with authentication error.
multi-timeout: kill a process and kill -9 if that does not work
We are using this for our crons since the unix timeout command does not support different kill signals [more inside]
Speed Up Your Rails Specs by 10x
One of the Ruby engineers at Originate posted a great article on how to get really fast rails tests by not loading all of rails. He also published the rails_spec_harness gem to make it easy to set up your spec helpers the way he describes in the article.
Stuff I deferred to get my first Rails + Angular app out the door
Since it’s my first Angular / Rails app there’s not much here for experts, but if you are considering doing one here are some things you might be able to put off until later but still get the job done.
Stunned by Sexism
I am a ruby engineer at heart. Those who know me usually see my posts about the ruby tools I have built on here. However today I am sharing a story about sexism that I think everyone should read. Let this be a reminder that as a Ruby community we need to be open and embrace everyone, including the companies we work for.
3 simple tips for Rails / Heroku startup
Three simple and useful advices that I gave to a friend that is new to Rails / Heroku.
Press release of RubyConf Taiwan 2014
RubyConf Taiwan, Taiwan’s biggest event for programming language Ruby will be held on the last weekend of April (April 25th and 26th) at National Yang-Ming University. According to Mu-Fan Teng(@ryudoawaru), organizer of this gathering, many important speakers and distinguished guests have been invited to the conference, known as the most internationalized grand event for programming language and its pursuers. Registration of this event will begin at 12:00 on March 10th. [more inside]
Hierarchical queries builder
I just launched activerecord-hierarchical_query which allows to create recursive queries to traverse trees with single SQL.
Reflecting on RubyMotion Experiences – Part 2
Next post in our Reflecting on RubyMotion Experiences series.
Getting Friendly with Fixtures
After spending so much time testing Rails with factories, I took a look at fixtures again and liked what I saw.
Learn Chef - it's hard but worth it
Having troubles learning Chef? I hope this will keep you motivated
Cucumber, Page-Object and Facebook
Please checkout Cucumber & Page-Object with Facebook home page. UI testing using BDD.
Looping with Fibers—Intercommunication between Ruby Fibers
I needed to loop over a fairly large data set and group it by year and month. In this post I walk through using two Ruby Fibers which communicate between each other in order to do in-loop grouping. The post begins with a brief introduction to Ruby Fibers.