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.
P-99: Ninety-Nine Prolog Problems in Ruby
Guys, let’s kick prolog’s ass! Lets solve these problems in Ruby. I’ve already started.
Did You Know That (in Ruby): For Loops and Fields
This edition in Did You Know That (in Ruby) takes a look at another odd feature of for loop variables: the “variables” can be accessor methods, also known as fields!
Statements in Ruby
A recent detour led me to the discovery that Ruby actually has statements! (Kinda)
RubyKaigi 2011 (Japan's Ruby Conference) is open for talk proposals
RubyKaigi is the de-facto authoritative Ruby conference in Japan. This year’s RubyKaigi 2011 will be from July 16-18 at Nerima Culture Center, Tokyo. RubyKaigi 2011 is open for talk proposals until March 27th(JST). Talks on any topic related Ruby are welcome: RubyKaigi 2011 Call for Presentation Proposals.
Meet the Goliath of Ruby Application Servers
I had the opportunity to discuss Goliath with Ilya Grigorik of PostRank and it’s up on InfoQ, Meet the Goliath of Ruby Application Servers. Thanks for taking a look.
state_machine 0.10.0
state_machine 0.10.0, an FSM library, has been released. Highlights include: Mongoid 2.0.0[.rc7]+ / MongoMapper 0.9.0 (rails3) support, transition path analysis, after_failure callbacks, and more.
Introducing the Code Kata project
I just wrote a blog post about a project aimed at making code katas a bigger part of the ruby community. Have a read to see what I think the past barriers have been and how this project and the kata gem help eliminate them. It would also be nice if you have the time to fork the project and contribute in addition to working on the katas as practice exercises.
PDFKit Overview & Advanced Usage
I just fell in love with PDFKit and wkhtmltopdf and wanted to cover many topics that I found difficult at first. Specifically page breaks and custom headers and footers. Critical topics while moving from legacy PDF::Writer code.
Using ActiveRecord with Sinatra (9 Minutes)
We’ve just released the Using ActiveRecord with Sinatra (Link Fixed) screencast. In 9 minutes we show you how to build a URL shortener. Check it out!
Fetch and validate your params
A post about where to best validate POST/GET parameters in Rails. Also introduces some small helper functions I wrote for that task.
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.
Validating JSON with pathy
Simple JSON path validation with the pathy gem.
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!
Steve Klabnik will be Ruby Mendicant University's first visiting teacher.
RMU just announced that Steve Klabnik will be their first visiting teacher. [more inside]
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.
Improving IRB history
I just posted Improving IRB history.
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]