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.
ActiveWarehouse (Ruby ETL) v1.0.0.rc1 is out
If you need to extract data from a system, adapt and transform it to reuse it in another app or a reporting system, while still using Ruby, then look at ActiveWarehouse. Read more
Acts as nested interval, like nested set, only faster!
I just ported Pythonic’s acts as nested interval to Rails 3. Nested interval is like nested set, only it’s inserts are faster. Read more
writing readable ruby
Over on the Highgroove blog, Brian posts some thoughts on writing readable ruby.
Ruby Object Model - S1 set-theoretically
The document at www.atalon.cz now contains an appendix with a superstructure representation that shows how superclass and eigenclass links can be modelled by set inclusion and membership.
Please stop embedding Bootstrap classes in your HTML!
We love Bootstrap at our company, but we hate seeing people hard-code classes like “span6” and “row” into their HTML. This blog post shows you how you can harness the power of Less to keep your HTML semantic while using Bootstrap.
Changing the default Ruby on Ubuntu 12.04 LTS to 1.9
I think it’s worth getting some help with the next LTS version of Ubuntu. It may already be too late to get Ruby 1.9 included but perhaps if we can get the right people helping out quickly enough maybe that could change? Read more
generate Rails app from mind map
I just launched GMindApp. It allows you to generate workflow web applications from mind map drawn from Freemind. Gmindapp will convert the workflow into Ruby on Rails application which you can customize models, views and controllers as usual. It will generate tables and keep track of workflow, security according to the mind map. Read more
Rails 3.2.2 has been released
Rails 3.2.2 has been released. This release contains various bug fixes and two important security fixes. The official announcement advises, “Users are recommended to upgrade as soon as possible.” Here are detailed instructions for Installing Rails 3.2 with advice and tips.
A Taste of Metaprogramming
I’ve posted A Taste of Metaprogramming to rakeroutes.com. It’s a quick look into using define_method and method_missing to dynamically write methods for a class.
How I deceased my rails startup time by 60%
I just blogged about how I deceased my rails startup time by 60% with ruby patches from funny-falcon
TConsole 1.1: Dedicated console for MiniTest suite runs
TConsole 1.1 is out! TConsole is a dedicated environment for running your MiniTest suites, both for Rails test suites and for any other project you’re working on that happens to test with MiniTest. It supports Rails environment preloading if you’re into that kind of thing, and also offers a nice concise syntax for running specific test classes and methods. Check out this quick screencast for a demo, or just check out the project page on GitHub.
Work-Stealing & Recursive Partitioning with Fork/Join
JDK7’s Fork/Join combines a double ended queue (deque) and a recursive job partitioning step to minimize synchronization - a great design pattern to keep in mind for single host and distributed cases! A look under the hood of the Fork/Join framework, and a few JRuby examples which will light up all of your available cores.
Learning from Rails' failures
I compiled a list of things Rails didn’t/doesn’t do right in the hope that we can learn from our mistakes.
Two Factor Authentication Example Rails App
I just pushed code to . A bare bones example Rails 3.2 application and test suite demonstrating the use of the Authlogic gem and custom two-factor authentication (TFA) with Google authenticator support. Feedback on the implementation will be appreciated.
Did you know Ruby 1.9 supports the goto statement?
It turns out The Joke Is On Us: How Ruby 1.9 Supports the Goto Statement.
The great Ruby shootout
Global Ruby benchmark, version 2012.
Jump to method definitions in gems with ctags
Vim and Emacs users can easily jump to any method definition in a project using ctags. You can also configure ctags to let you jump to any method in your bundled gems; this quick post shows you how… Using ctags with bundled gems in Vim
Auto-retry transactions on deadlocks in a db-agnostic way
I recently published transaction_retry gem. It’s like good old deadlock_retry but works across all major databases, is well tested against Rails 3.x and supports all isolation levels (not only the default REPEATABLE READ). The gem was extracted from a large financial application and comes with good test coverage. Give it a try if you see errors like these: Read more
Rails Testing for Zombies
We just launched Rails Testing for Zombies. Play the first level free (you don’t even have to make an account). If you’re unsure about Rails testing, or just want to solidify your knowledge – this course is a blast. Enjoy!
Fun with Rock, Paper, Scissors
Fun with Rock, Paper, Scissors. Today on Rake Routes we dive into Ruby Quiz #16: creating player strategies to win at rock, paper, scissors. We start with the simplest of strategies and work all the way up into players that rewrite the game logic itself to guarantee a win.
Wizard-ify Your Rails Controllers with Wicked
Use Wicked to turn any Rails controller into a step-by-step wizard. To get started read the post or watch the screencast.
Too LESS? Should You Be Using Sass?
As the author of less-rails and less-rails-bootstrap, I would love to explain why you should not be using LESS and Sass instead.
Global Hack Day #2, Thursday 3/8
The idea of having weekly or monthly hack nights has worked great for Ruby users groups all over the world, but the folks at Mendicant University feel like the internet deserves a similiar kind of event. Our next gathering is on Thursday 3/8 from 19:00 - 03:00 UTC. Please join us if you can! You can bring your own project to share and work on, or you can help others by offering code reviews and patches to their projects.
Life in a shade of ruby
I just posted an article about my rendition of Conway’s Game of Life in Ruby, you should read it here.