RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Code with me – for free!

2011 has been a good year for me so far – financially as well as in terms of cool work in general. I feel like it’s time to share some of that luck with others and spend a couple of hours per week working pro bono, helping people. Read the blog post for details and spread the word. :-)

This sounds really cool! So how do we contact you?

UUID primary keys with ActiveRecord in Rails 3

Sometimes it is useful to have primary keys in ActiveRecord that are independent from a database’s autoincrement implementation. With ActiveSupport::Concern this can be done smoothly in Rails 3

If you decide to use an opinionated framework you should also adopt the possibi…
a nice solution
Not to rain on anyone’s parade, but it is worth noting that you can use UUIDs a…
be careful… mysql at least assumes your primary keys are integers and makes a l…

The art of product backlog prioritization

As a fan of agile development, and as a member of a 2 person team building a rails web app, I’m sharing my two cents on product backlog prioritization. The blog post is targeted to small teams who like lightweight and iterative processes. Also, many thanks to the ruby and the rails community and all your advice and gems. Launching Sandglaz wouldn’t have been such a success without you.

filepath: 'which' for open files

Tired of mashing tab at the command line or dragging file handles from your favourite text editor so you can reference files in the terminal? It annoyed me sufficiently enough today so I hacked together filepath, which’s little brother. Instead of spec sp[tab]/mo[tab]/it[tab]e[tab][tab][tabtabtabtabtabtab], you can now do spec `filepath` Assuming you just tabbed to your terminal from your editor</code> or spec `filepath textmate` if you want to be more explicit.

Replace sed/awk/grep/wc/... with pure & readable Ruby

Be a instant-commandline-ninja without learning new tools, e.g. number of files by date: ls -al | pru ‘split(“ “)[5]’ ‘grouped.map{|d, f| “#{d} : #{f.size}” }’ try Pipeable-Ruby (pru).

Readable, really?
Wow, my head hurts. Better use traditional Sed/Awk/Grep. Because they are good …
No offense, but imo it is strong candidate to “the most stupid lib of the centu…
Let’s look at this logically. grosser has created a tool that demonstrates tha…

Asynchronous Processing with Actors and girl_friday

I’ve posted an introduction to using Actors for safe and easy concurrency with Ruby and then created a gem, girl_friday, which uses Actors to provide a next generation message queueing system. If you’re thinking of using delayed_job or Resque for your next project, take a look at girl_friday too!

Why did you named it girl_friday?
One more question. Is it ok if i’ll use it with Ruby 1.9.2?
Ivan, both questions are answered in the project README: https://github.com/mpe…

Easy and DRY API responses in Ruby

The gem acts_as_api provides a simple interface to determine the representation of your model data, that should be rendered in your API responses. It’s been around for some months, time to update the documentation: Gem Getting Started Page Wiki

Interesting, I like the approach. Have to think about whether I feel I prefer t…
Thanks for your feedback. :) I’m working on a solution to outsource the templat…

Meta Tools Gem Released

I’ve created the gem “meta_tools”. Blog post: Link, Gem: Link, Git: Link

This reminds me of “Metaid”, by _why. https://github.com/defunkt/metaid/blob/ma…
Yes, the code is by _why. It’s code I’ve had to use many, many times. I’d much …
Loading older posts