RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 
April 02, 2013
Published a blog post on how to utilize github gists to make a simple, easy-to-use, static-site (but actually easy to edit) blog with Github-flavored markdown, comments, fast hosting, all for free.
I wrote up a no non-sense, no steps skipped guide to getting a new Rails app running the latest version of Ember.js. There is already great tooling for Ember when it's part of a Rails project.
I just launched lazy_google_analytics, this gem it´s an abstraction around google-api-client gem, to make server to server api calls.

google-api-client gem is a very powerful tool to access the api resources on google. but for me it was not very straightforward, so I came around with a simple way to implement it. that's all.

...and yada yada.
In this blog post I added a Sinatra web interface to the LightwaveRF gem allowing you to control devices in your house with an HTTP GET.
Hello there dear rubyists, I created Conred gem that helps to convert YouTube and Vimeo links to embedded iframes in your Rails app views.
April 01, 2013
state_machine 1.2.0, an FSM library for Ruby and several ORMs, has been released after more than a year of development since 1.1.0! Check out the CHANGELOG for the details. After a long hiatus, development is active again :)
zero_deploy gem has just been released.
This gem makes your deployment fast as hell by improving key actions like gems installation and assets precompilation.
Currently is supports all major tools like Capistrano or Chef.
I'm writing a leanpub book on how to upgrade your Rails 3 application to Rails 4. It covers all new features introduced in Rails 4 and contains the deprecated features as well. You can follow along with the included upgrade checklist to upgrade all breaking changes. Here is the link: https://www.leanpub.com/upgradetorails4. Feedback and suggestions are very welcome.
Any software has configuration, bad simple configuration, just default values for abstract environment.
For. Abstract. Environment.

Myths:
- Expensive hardware = good, cheap = bad
- Trust without visualization
- I don't want to optimize what I don't know

See the full post on coderwall.
Rails find with Airbrake  spin.atomicobject.com
This small issue caused a lot of 404s to be shown to the users and left our application broken without us knowing it was in this state.
March 31, 2013
A just wrote a post about my attempt to decrease Redis memory consumption by Gzipping the data that I was having there. Wanna see how it ends? Click here: Compressing large data sets in Redis - Ruby test case.
The world.db gets another addon. Following the football.db fixtures I have started beer.db for free public domain beer and brewery data in plain text. So far 100+ beers and 30+ breweries listed. Use the beerdb gem to import and reuse ActiveRecord models etc. More info. Cheers. Prost.
March 30, 2013
Just imported an old piece on Procs and Lambdas.
Few days ago I released version 0.2.0 of zeus-parallel_tests. It supports cucumber now!
March 29, 2013
I just launched carrierwave-viewer gem for integration GroupDocs Viewer service with Carrierwave.
Very excited to share this latest library! Image Viewer Rails

It's a rails engine that let's you set up a modal image viewer quickly and painlessly. Using it with forms (for data entry) is where it really shines.

The javascript library that the engine serves is tested in coffee-script, but written in Javascript. View a live demo, and docs via the link at the top of the README. Learned a lot, and had a great time putting this together. Hope you find it useful.
March 28, 2013
We are very excited to announce that Call for Proposals for EuRuKo 2013 is now open and you can send your proposals until April 23rd! We have put a lot of effort in order to create a selection process that will encourage submissions by everyone irrespective of publicity, gender, race, domain, etc, guarantee a high quality conference and at the same time be fun for all participants. The process has been refined with feedback from the community and all the details can be found here.

...and one last thing: you know how hard it is to find a ticket for EuRuKo usually, right? They tend to sell out in seconds. Well, this year, we are reserving a priority line for active participants in the CfP process along some other goodies that may come later.

So, what are you waiting for? Join the party!
If you want a local, searchable copy of Ruby or Rails API docs here are some instructions.
I recently had a chance to upgrade to Rails 4 on jRuby project I've been working on. There's a few gotchas to watch out for.
Please see the website for details wickedgoodruby.com

Early Bird tickets are up for sale and RFPs are now being considered
Immutability can be a useful concept in not just basic data structures, but also your domain model.
I just published Immutability in Ruby Part 2: Domain Models.
I just wrote about how we used git-subtree to share code between LienLog and LienMarket (both are Rails 3.2 applications) in my blog.

http://igor-alexandrov.github.com/blog/2013/03/28/using-git-subtree-to-share-code-between-rails-applications.
Parade is presentation software powered by Sinatra with slides written in Markdown. Version 0.10 brings with it better support for mobile devices and quite a few common slide formats. Parade is a fork of Scott Chacon's Showoff. The work I started was initially to address two of it's shortcomings:

* Lack of GitHub Flavored Markdown
* Static HTML and PDF generation did not inline images and styles

Along the way a number of other remarkable features were added:

* Easy support for themes and plugins
* Better presentation support for smaller form-factor devices
* More default slide formats
March 27, 2013
xpool, a lightweight and flexible process pool, v0.10.0 is out. This release adds new features and also optimizes pool resizing. Please see the ChangeLog.txt for more info.
Michal Papis talks about RVM Autolibs.
I just released LevelUp, a rails engine that let you structure, run and manage asynchronous jobs. Any feedback is welcome!
Android continues gaining attention in mobile and embedded markets. Embedded Android developers using ITTIA DB SQL can now benefit from support for High Availability (HA) and In-Memory data management, offered along other features such as distributed transactions, table snapshots, synchronous commit, replication on commit, single-master replication, multiple master replication and online backup.
I benchmarked some tests run in JRuby that compare the Hamsterdam library using Hamster's immutable Hashes vs Clojure's PeristentHashMap, plus some gotchas. Read it here.
Rails' Insecure Defaults  blog.codeclimate.com
Just published a detailed blog post covering 13 Rails security gotchas, including risky behaviors in Rails 3 and 4.
Following on from our post on Dynamic Error Page in Rails, this week we looked into raising and rescuing custom errors in a Rails application.

Check out the post here.
When using instance_eval in Ruby, the block will behave in a distinctly unclosure-like manner, here we dig deeper to see what happens and try to roll our own instance_eval that allows us to retain the closure semantics we have come to expect from Ruby blocks.
I've just launched my blog and the first actual post is about deploying Fnordmetric. The Bumpy Road to Fnordmetric.
I've added continents to the world.db that includes 196 countries and (new!) 48 territories. Note, you can now configure your own continent mappings e.g. the football.db uses FIFA associations e.g. Australia gets included in Asia, Isreal in Europe, Guyana in the Caribbean etc. More info about the world.db and the world.db gem. Cheers.
March 26, 2013
Easy, unobtrusive API versioning for your Rails app. VersionCake was recently declared stable and bumped to version 1.0.
I just launched messengerjs-rails gem, feel free to check it out.
I just added support for concurrent indexes in PostgreSQL for Rails 4 and postgres_ext
Complete lineup revealed + gourmet meals + cheese & wine tasting session! 2013.la-conf.org
I just published my interview with Brian Shirai (of the Rubinius project) about multi-threaded concurrency in Ruby, myths about the GIL, and the upcoming Rubinius 2.0 release.
March 25, 2013
Introduced in Ruby 1.9, Fibers, are a lightweight concurrency library that puts the scheduling of work into the hands of the developer, and not the VM. As we look into Fibers we will also touch about the Enumerable module and even a bit of Ruby 2.0 goodness.

http://www.metacasts.tv/casts/ruby-fibers

* Subscription required.
If you wonder if you should upgrade or not, here's a sum-up of the last security issues fixed in rails 3.2.13 : http://blog.tech-angels.com/post/46249485212/should-you-upgrade-rails-from-3-2-12-to-3-2-13
Check out my guide here.
Just launched a bootstrap plugin to autocomplete tags for contenteditable div elements. It works in the same way tagging people on Facebook, Twitter or Sandglaz works.
I just launched BasicPresenter, the most simplest presenter pattern implementation in town (
We have just released Padrino 0.11.0 after 9 months of active development and the work of dozens of contributors! Padrino is a powerful agnostic ruby web framework built directly on top of Sinatra. This release includes a totally redesigned admin dashboard, upgrades to the latest Sinatra, CSRF and SafeBuffer support, Gemified and namespaced apps out of the box, and quite a bit more. Read the details in our blog post and in our changelog.
March 23, 2013
Weekend project: Speed up your parallel_tests with zeus using
zeus-parallel_tests
I just mused about immutable objects in Ruby, and why and how one could use them.
[ANN] jsonpp 1.1.0  rubygems.org
`gem install jsonpp`

A simple JSON pretty-printer for your console needs. Supports terminal width detection and ANSI coloring.

Example:

$ curl https://status.github.com/api.json | jsonpp
{
"last_message_url": "https://status.github.com/api/last-message.json",
"messages_url": "https://status.github.com/api/messages.json",
"status_url": "https://status.github.com/api/status.json"
}
March 22, 2013
Class#to_proc  dan-manges.com
Just stumbled upon this pattern in my code, googled it and found a nice blog post by Dan Manges explaining the idea. What do you think?
Ever wanted to find out right away how many repeated rules you have in your CSS stylesheets? Well now you can with csscss. Just run it against a series of stylesheets and it will report how much duplication is going on.

It is installable via rubygems:


$ gem install csscss
$ csscss path/to/styles.css
I just posted stripe integration in rails on my blog.