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.
Breaking the Rules - Making Java Fun with Mirah (Ruby Syntax => Java Power)
In a vague attempt at furthering the Mirah cause I have written up a little post outlining the major advantages of the application of loverly ruby syntax to the Java infrastructure. It may be an interesting read to people who haven’t yet taken the plunge and tried mirah for themselves, especially those trapped in Java land for the day job.
Gem that partitions arrays
A little gem that gives you partitions of an array into at most k sub-arrays:array_partition. Useful for generating test scenarios and solving certain kinds of optimisation problems.
Rails 3 Slave Database Solutions
More and more Rails sites are scaling to the point where they need support for multiple databases. This blog details some of the key differences between the Rails 3 multi-database poster child, Octopus, and an up-and-comer (seamless database pool) aimed more specifically at supporting slaves with failover and database weighting baked in.
Tips to fix gem update with Rails 2.3
I just blogged Solution for latest gem working with Rails 2.3.X.
Placing geo-coordinates on an image of the world
Want to show some geocoded locations on your own image of the world? Well, here’s a post to guide you through the process.
Index external models with Sunspot/Solr
A short post about how to index models of external gems with Sunspot/Solr.
Mocking Kernel Methods with RSpec
I just launched mocking kernel methods with rspec where i show a method to mock those hard-to-mock Kernel methods!
Ruby Mendicant University is accepting new students
Ruby Mendicant University is now accepting student applications for the May 2011 core skills course. This time around, rather than doing a traditional entrance exam, we’re inviting folks to solve programming problems on our newly created PuzzleNode website. If you like quiz sites like RubyQuiz or Project Euler, you might like PuzzleNode, whether or not you plan to join RMU.
fog 0.7.0 Release: Cloudformation, RDS, VirtualBox, DNSimple DNS
geemus covers key improvements in the fog 0.7.0 release and stuff to be tackled before fog 1.0.
Tweet later with Delayed Job
I wrote a walkthrough on how to schedule jobs for the future using Delayed Job.
Resort - positionless sorting for your Rails 3 models
We just wrote an article about our latest gem to make your Rails 3 models sortable.
pngqr & qrscanner: encode and decode QR codes without Java
QR codes are those 2D barcodes that can store over 1000 characters and even include error correction. [more inside]
Kata 1.0.5 released
A kata is defined as an exercise in programming which helps hone your skills through practice and repetition. Authoring katas is done in blogs but you can’t really test yourself. This gem provides a DSL to author the kata and administer it as a test providing feedback for evaluation. It also provides basic github repo setup so that you can chart solution progress over time. Check it out on github.
Journeta P2P gem v0.2.2, now w/Ruby 1.9.2 and JRuby 1.6 support.
A long-needed update release has just been posted, which includes support for fully-native internal threading for both Ruby 1.9 and JRuby 1.6. [GitHub] [more inside]
Whois 2.0 released
One year after the first major release, almost 2 years after the first commit, 1k commits and 59 versions after, I’m very proud to announce Whois 2.0. You can read more about this release in my blog post.
Twitter, OAuth, and Ruby on Rails integrated cookbook-style in the console
A while ago I put together some no-nonsense, cookbook-style instructions for getting Twitter (and it’s somewhat cumbersome oauth mechanism) integrated into your Rails application. But the Twitter gem changed some oauth things when it went 1.0, so I have updated my instructions to reflect the new authorization steps. [more inside]
Stubbing Class Constants when Testing
I just posted Stubbing Class Constants when Testing that uses a little trick to “stub” class constants when testing with RSpec. Check it out!
Meet Ace: A New Generational Static Sites Generator!
I bet you know Nanoc, Webby and similar tools. Well, forget them and take a look at Ace! Sources of my blog are written in Ace and they are available on GitHub, check them! I also wrote an introduction to Ace, take a look if you want to know more!
rails_best_practices 0.7.2 released
I just released rails_best_practices 0.7.2, it allows writing your own check list, I believe you will like it, see more here.
Slop 1.0.0 is here!
I’ve just released Slop version 1.0.0. Slop is a simple, easy to use option parser. 1.0.0 includes a completely new, cleaner API with a much simpler interface. Here’s an example of the new Slop: https://gist.github.com/872910