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.
[ANN] Ruby Programming Challenge for Beginners
The eight installment of the Ruby Programming Challenge for Newbies (XML Transformer) is now live. The problem has been set by Jamie van Dyke. There is no entrance fee and registration is optional. You have a chance to win a prize. Hurry, challenge ends on 26th Apr. 2010.
EncryptedCookieStore plugin for Rails 2.3
The old EncryptedCookieStore plugin by ThinkRelevance had gone defunct so we at Phusion rewrote one from scratch. It’s extracted from a client project. Announcement here.
ActiveCMIS and ActiveSP introduction
We released 2 Ruby libraries to access any CMIS compliant repository (ActiveCMIS) or SharePoint(ActiveSP). A gentle introduction to start with activecmis can be found in the following blog post.
Ruby Percent Functions Screencast
Do you have trouble remembering those pesky percent functions? (%q %w %x %r) Here’s a 7 minute video on how they’re used.
SmallRecord - Simple ruby object persistency library for Cassandra
SmallRecord is an ActiveRecord replacement object persistency library written in Ruby. It can be used in Rails projects. This is an extraction from one of our client projects. Work in progress … :)
Coderpath podcast with guest Peter Cooper
An old screencasting series “coderpath” has risen from the dead in the form of a podcast which centres around the Ruby community. Our guest this week is Peter Cooper who, of course, is the big kahuna here at Ruby Flow. Past guests include David Heinemeier Hansson and Ryan Bates. More Rubyists to follow. New episodes every Tuesday.
Defender v1.0.0beta1 - Wrapper for Defensio spam filtering
I just (or, a couple of days ago) launched version 1.0.0beta1 of my Defender library, which is a wrapper for Defensio’s spam filtering API. Feedback is appreciated!
railsapi.com In Google Chrome Extension
I just launched a project to help you install a Chrome extension that lets you view a customized set of SDocs downloaded from railsapi.com Here is the blog post and here is the GitHub page
RESTful AJAX with Forgery Protection (In Rails 3)
Interested in knowing where your forgery protection is coming from in Rails 3 beta2? Perhaps you want to use these in your RESTful AJAX calls? This article builds on my last one that covers just this info.
Redwood: pure Ruby tree data structures and a rewrite of code>tree/code>
Redwood is for creating simple Ruby tree data structures, with a pretty tree-view method and a command-line tool that recreates the Unix tree program.
Isy - new ruby component based state-full web framework
I have just posted first two articles about Isy. Please look at the blog, I would appreciate any feedback.
Ruby v. Haskell, round two: command line scripting
It’s no secret that declarative languages falter when it comes to IO and “side-effects”; so how does Haskell fair against Ruby for a script that converts text files to unix style line endings?
Use Gmail to send emails from Ruby script
A ruby script that shows how to use Ruby to send your emails with Gmail. Check it here.
Under-documented uses of ensure
A quick dive into code and the various ways to use ensure.
ruby v. haskell
an algorithmic showdown by a ruby practitioner with declarative aspirations…
ActiveHelper for Rails!
The framework providing a generic OOP helper API just got a binding for Rails. Go and read how to write those clean, aesthetic helpers in Rails.
Call for illustrations for RubyKaigi 2010!
Freely express your RubyKaigi 2010 image! RubyKaigi 2010 requests submissions of illustrations for novelty items including staff T-shirts. For more detail, please access official information! Call for illustrations for RubyKaigi 2010! | RubyKaigi2010
Paperclip "RecursiveThumbnail" processor (speed up thumbnail generation)
This processor (and patch to Paperclip) sped up thumbnail generation by 8 seconds (originally 12, now 4). RecursiveThumbnail processor.
Rails, Paperclip, -auto-orient, and resizing...
I recently had a situation in which I wanted to generate thumbnail images and have them constrained to 67x50 (specifically “67x50>”). No problem so far, but I also wanted to auto rotate (via Imagemagick’s -auto-orient option) the images as they all come from a digital camera that provides this information. This causes a problem. Namely that some images ended up being 50x67 instead of 67x50. Here is my solution.
Camping 2.0 released - minature rails for stay-at-home moms
See the announcement or go to the homepage.
Get it: gem install camping
Happy camping!
Working with TextMate: April 2010 Edition
I just wrote about classic tips and recent development in the TextMate community. I hope both veteran and new TextMate users will find it useful.
A Mini-Review-Benchmark of Ruby’s Different Testing Frameworks
Ruby has got such amazing testing frameworks that it is such a shame that people still use other languages to test code. The goal of this post is simple – to show you how to test a given code in various different frameworks, so you can choose the one for you. Read the entire post here.
Lightning - Speed For Your Shell
Introducing lightning, a gem which could revolutionize how fast you are on the commandline. The first post explains what it’s capable of. The second post explains how to use it.
With this gem, rubyists may be pleased to know they can apply any command on the commandline to a standard ruby library, less-ruby fileutils.rb, or a gem directory, cd-gem rails-3.0.0.beta, with autocompletion.