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.
Building a Mocking Library
My talk “Building a Mocking Library” from Ancient City Ruby has been posted. Feedback welcomed. [more inside]
Publish and Subscribe to Activity Feeds
Use ChalkDust to build activty feeds such as followings and friendships without coupling “activity feeds” to your models. It’s flexible, lightweight and allows you to create activites such as “Peter traveled to India”. [more inside]
Announcing Rails Rumble 2013
I’m ridiculously excited to announce that the Rails Rumble is back for 2013! Please help spread the word!
RuboCop 0.9 Is Now Patrolling the Streets!
I just released RuboCop 0.9.0. You might want to check it out.
Hotcell - new sandboxed template language for ruby
Hello there! I’ve got a brand new safe sandboxed template processor for you. Actually, it is the Liquid analogue. It looks like the Mustache, potentially faster then the Liquid, has ruby-like expressions syntax and Ragel with Racc under the hood. [more inside]
Cohort analysis made with SQL and Ruby
In this article cohort analysis for a forum application is described. Post starts with an explanation of what is cohort analysis and how it works and ends with a Ruby script flavored with some SQL and a beautiful plot.
Weak Dependencies
In the past few months, I have experimented with some Pomodoro applications on my mobile phone. These were great, but I don’t actually spend my days staring at my mobile phone. Something was itching me: if the whole point of the technique is to stay focused by avoiding useless context switches, then why should an external device keep stealing my attention just to be more productive? So where do I spend most of my time? In the Unix shell, interacting with the command-line! So I looked for Pomodoro tools that suit my lifestyle and this is how I discovered pomo, a Ruby Pomodoro application for the command-line. Let’s check it out! https://discuss.gemnasium.com/t/weak-dependencies/40
Share some love to our buddies rubyists!
Please check my idea about how we can share more love and motivation to all that great developers, who help us to make our projects happen by their work and their gems. share_some_love
The Future of Computing - An Interview with Yukihiro “Matz" Mats
A while ago I translated an interview with Matz done by a Chinese book publisher. The interview and the translation were well received, so this time I am translating another interview with Matz, done by Ito, the editor-in-chief from Japanese website Engineer Type. [more inside]
Confed Brazil 2013 - From Plain Text Fixtures to Structured Data and HTTP JSON APIs in Minutes
I’ve updated the plain text fixtures for the Confederations Cup 2013 in Brazil. The sportdb gem lets you load the plain text fixtures into your database and lets you use the sportdb models such as Event, Team, Round, Group, Game, and others for web pages (e.g. Confederations Cup 2013 Schedule) or HTTP JSON APIs (e.g. all teams, all rounds, semi final matches e.g. Brazil-Uruguay; Spain-Italy etc.). All data, code and samples public domain. Enjoy. Cheers.
Async Processing in Ruby with beanstalkd: Updates to Beaneater and Backburner
We just released Beaneater 0.3.1 (the official beanstalkd client for ruby) and Backburner 0.4.1 (battle-tested background jobs with beanstalkd) with plenty of bug fixes and features for both. If you are interested in understanding more about why you would use beanstalkd or backburner, you can read more about that at Why Backburner? and Why Beanstalkd?. We put these together because we’d love to see beanstalkd more heavily used in the ruby community.
Make Your Rails Application Multi-Threaded on Heroku
After reading Jesse Storimer’s Working with Ruby Threads book, I took the plunge and reconfigured my blog to be multi-threaded on Heroku
Use a different version of rails other than the default while creating a new rails app
If you have rails 4.0.0 as the default rails version and if at some time you want to create a new rails 3.2 app then you can use the following code: rails 3.2.13 new app_name [more inside]
Practical guide to StatsD/Graphite monitoring
I wrote a practical guide for StatsD/Graphite if you are interested in running your own NewRelic, dig deeper in your data, or want to improve your graphite skills, you might be interested in reading this article. [more inside]
YAML Configuration in Ruby with Settingslogic
Settingslogic is an awesome RubyGem for straightforward access to Ruby application configuration.
The Elements of Style in Ruby #3: Make Sure Something Is an Array
I just posted the third installment of my ongoing blog series on Ruby style.
Wiselinks 0.7
Wiselinks-0.7.0 has just been released.
Here is a list of changes:
– URL variable fix in wiselinks events
– Correctly handle trailing slash
– Added data-include-blank-url-params and data-optimize-url-params params to form processing. Check README for more info.
– Minor changes and fixes (removed most of trailing spaces, replaced attr('data-') with data('')). [more inside]
Fuzzy logic "Fuzzy Associative Memory" package expanded, Gem-ified
The ‘Fuzzy Associative Memory’ package on Github has been significantly expanded: additional fuzzy-set shapes, composite antecedent propositions (with AND/OR), and choices for set weighting/implication. It’s also been packaged as a Gem for easy inclusion in your own game or application. [more inside]
Rails redirects
There are a couple of different ways to do redirects in Rails, it can help the flow of the app and SEO, I blogged about it.
Datamappify - A New Take on Decoupling Domain, Form and Persistence in Rails
I wrote a blog post about Datamappify - a gem I built for decoupling domain, persistence and form objects. :)