RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
May 10, 2013
The last ticket batch for this year's EuRuKo is live at euruko2013 and it's on until the upcoming Monday at noon UTC. We are preparing a surprise for willing delegates which involves sailing and the deep blue Aegean sea. We'd love to see you in Athens this summer. Rock on!
Description of an obscure problem with Rails STI along with a solution.
Running a Minitest Suite  crashruby.com
An article exploring a few different ways to kick off a Minitest suite.
Short intro blog post. Project on GitHub.
Need a model diagram for your Rails project? I did and found a really easy way to do it using Rails ERD.
I just created gem for sharing content on social networking sites socialshare
Sinatra Vs Ruby on Rails  millwoodonline.co.uk
There often seems to be a lot of questions around which Ruby framework to use, Sinatra or Ruby on Rails? They are very, very different frameworks, and have different use cases. More info on the differences between Sinatra and Ruby on Rails.
attempt to make chef know remote branches  amolnpujari.wordpress.com
amolnpujari.wordpress.com/
May 09, 2013
ContextValidations  reefpoints.dockyard.com
An attempt to solve contextual validation problems in Rails
A few weeks ago, webserver request queueing came under heightened scrutiny as rapgenius blasted Heroku for not using as much autotune as promised in their “intelligent load balancing”. If you somehow missed the write-up (or response), check it out for its great simulations of load balancing strategies on Heroku.

What if you’re not running on Heroku? Well, the same wisdom still applies – know your application’s load balancing and concurrency and measure its performance. Let’s explore how request queueing affects applications in the non-PaaS world and what you can do about it. Read more here.
I wrote about what went down in Portland this year: RailsConf 2013 Review
May 08, 2013
I just upgraded ror_ecommerce to Rails 4 and Ruby 2. I wrote about the upgrade process HERE. This also represents the ror_ecommerce 2.0.0.beta1 tag. 2.0.0 will be released after rails 4 is officially released.
This is my new post: Consuming SOAP WebServices in Ruby.
Steel City Ruby Conference, held in Pittsburgh, opened its registration. Speakers include Konstantin Haase, Angela Harms, Jim Weirich, Avdi Grimm and 8 invited CFP speakers. Register now for just $50.
Sidekiq Pro turns 1.0  sidekiq.org
I just released v1.0 of Sidekiq Pro, my commercial add-on for Sidekiq. To celebrate, I'm giving away 1.0 free licenses, read how to enter the raffle!
I have just blogged about using ActiveRecord and Postgres with Sinatra. A great combination.
Reform gives you a form object that decouples your form from the database. It gives you all the goodies as validation and parameter filtering while working with all form rendering engines like simple_form. Here's the story.
When upgrading from Rails 3 to Rails 4, you need to add a couple of new settings; otherwise, JavaScript and CSS will no longer be minified in production.
Wouldn't it be nice to use your organization and it's teams for user access control? Wouldn't it be nice to add a new employee to your GitHub organization or team in order to grant them access to your app's admin area?

Now you can do that quickly and easily with warden-github-rails, a gem I just released.
May 07, 2013
Continuous Integration and Deployment speeds up your workflow tremendously. In this screencast we will deploy our Ruby on Rails app to Heroku. Hosted testing and automated deployment is provided by the Codeship. Learn more!

Codeship's Testing Tuesday #4: Continuous Integration and Deployment with Cucumber
PaperClipOptimizer is a processor plugin for Paperclip that allows you to losslessly compress and optimize uploaded JPG, PNG or GIF images.
New post on the problems developers run into when using Rails callbacks, why they arise, and how to get around them: The Problem With Rails Callbacks
Ruby, Meet iPhone  slideshare.net
In this presentation, I’ll introduce RubyMotion, the platform’s development tools and workflow, and third-party libraries that push the state of the art in iOS developer tools. I'll also show some example apps and reflect on my experiences building real-world production apps in Ruby.

RubyMotion transports the dynamic language ethos and Ruby language to iOS all at once. The language is flexible and dynamic. Instead of in dialogs, configuration happens in a text file using a simple internal Ruby DSL. Apps running in the simulator include a REPL for code evaluation. There’s even a built-in way to click on object in an app for dynamic introspection and manipulation.
Stafford Brooke writes about his first run in with turbolinks in Rails 4.
Writing a good README  blog.thefrontiergroup.com.au
New blog on writing a good README for Rails projects.
Take a look at how to implement Tagging With ActiveRecord 4 and Postgres.

This is a practical look at how you can use ActiveRecord 4's new support for SQL arrays to build tagging into your application.
May 06, 2013
I’ve seen several articles recently on the evils of single table inheritance in Rails apps. While it can be problematic, I recently tried an approach to STI that I think works well.

Here’s what it boils down to: Put common attributes in a single table, non-shared attributes in separate tables with foreign key references, and use object delegation so that each model transparently pulls what it needs from both.

For details, see this post.
kramdown-man 0.1.4 released!  kramdown.rubyforge.org
kramdown-man is a markdown to man page converter, using the pure-Ruby kramdown markdown library. kramdown-man seeks to support the majority of markdown syntax and roff tags. Unlike ronn or md2man, kramdown-man does not depend on any C extensions, and supports JRuby.

Kramdown exposes the full Abstract Syntax Tree (AST) of the markdown document. This makes it very easy to write markdown Converters.
ITTIA DB SQL's Machine to Machine connectivity allows developers of smart devices to build applications capable of collecting and transferring device data across a diverse ecosystem, ensuring that data is always available. This leading-edge technology comes with all the benefits of standard data management features, such as relational model SQL queries, multithreaded access, and ACID protection.
I've blogged about the new WebSocket library I've been working on that helps you easily add robust WebSocket support on any Ruby I/O stack, and why most protocol libraries fall short of the mark.
Chipmunk Gem, version 6.1.3.0.rc1  spin.atomicobject.com
Release 6.1.3.0.rc1 of the Ruby Chipmunk bindings.
Adequack will help you to be sure that your mocks are in sync with a real objects and you haven't accidentally stub nonexistent method when you do isolation testing.
Phusion Passenger, the most popular Ruby app server, has just released version 4.0.1 with many performance, feature and stability improvements.
May 04, 2013
How mysql utf8 truncates 4 byte characters and what to do about it.
Vim tab completion for RubyMotion  crypt.codemancers.com
A quick rundown on setting up Vim tab completion for RubyMotion.
Roar and Representable got decorator support for all those who didn't like the extend way of creating and parsing representations.
May 03, 2013
In celebration of the upcoming 100th episode of RubyTapas, I'm holding a drawing for a huge stack of Ruby and JavaScript ebooks, course subscriptions, and more. There will be 100 winners in total, and the prizes include books & discounts from Noel Rappin, Pat Shaughnessy, Jesse Storimer, Giles Bowkett, Thoughtbot, and much more--even tickets to the Barcelona Ruby Conference!
AppNeta is excited to announce three important changes to TraceView pricing and product today. First, and most importantly, we are launching a free tier! Project includes all the data we collect on requests, hosts, service calls, JVMs and everything else, and we’re giving it away, free forever. We want you to have this, so we’ve packed everything you need into this version to help you get as much visibility into production as possible. To learn more, read TraceView: Now With Free Tracing (and more)! To Trace for free, get TraceView.
We published a technical report about using generic image processing operations to detect a calibration grid (FigShare). Camera calibration is an important problem in 3D computer vision. However popular algorithms for determining the required correspondences are either semi-automatic (i.e. they require user interaction) or they involve difficult to implement custom algorithms.

Using the HornetsEye Ruby-extension, a robust algorithm for detecting the corners of a calibration grid and assigning the correct correspondences for calibration was implemented (source code here: calibration.rb). The solution is based on generic image processing operations so that it can be implemented quickly. We also present a corner detector based on steerable filters. The corner detector is particularly suited for the problem of detecting the corners of a calibration grid.
ichannel is a channel for interprocess communication between ruby processes on the same machine(or network). The basic premise is that you can "put" a ruby object onto the channel and on the other end(maybe in a different process, or maybe on a different machine) you can "get" the object from the channel. The new release adds support for Redis as a backend(in addition to a unix socket).
This is an irb for use with the webruby project.

xxuejie's webruby is a javascript based implementation of mruby that runs completely in your browser with emscripten/asm.js).

tip: jquery's $() method is aliased to j() in ruby
I just launched a new tutorial about Credit Card Processing with Ruby on Rails.
May 02, 2013
Just wrote an article that explains some of the basic concepts of SSL and how to implement SSL in Ruby

Here
I just released a new version of switch_user. This release includes rails 4 compatibility improvements as well as various bug fixes. switch_user allows you to switch between users without needing to log in using a username and password. This can be a great timesaver in development.

switch_user supports: devise, sorcery, authlogic, clearance, restful-authentication as well as roll-your-own session support.
31 Links from RailsConf Day 3  blog.smartlogicsolutions.com
Lots of links from the lightning talks this time. Feel free to add a link in the comments if it's missing.
I just create a video teaching you how to use Validation Issues. If you have forms that are not converting well and you are thinking about doing an AB test you NEED to use this gem.
May 01, 2013
Solving this annoying error once and for all in your Rails applications.
A hands-on look at how to configure Nginx to transparently deliver and cache WebP assets via Accept negotiation.
9 Links From RailsConf Day 2  blog.smartlogicsolutions.com
If you liked the RailsConf day 1 link roundup, here's day 2. If you're at RailsConf and want to get your link out there, just comment on the post. Normally wouldn't post two days in a row but these seemed to be appreciated yesterday.
Check out xray-rails, a gem that'll show you an overlay of the partials and Backbone views that were used to render your Rails app's UI. Click any of the components to open the file in your editor.