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.
Use Webadmin to monitor Rails "delayed job" processes (or anything)
Our blog post on how we’re using Webmin to monitor and automatically restart delayed job processes.
Practical Rack middleware examples in Rails
For anybody who heard all the fuzz about Rack middleware in Rails, but is still mystified about how it can be applied in practice, I wrote down two examples of how I have used Rack middleware recently to solve actual problems :-)
Rails 2 and Rails 3 side by side
Quick fix for generating Rails 2 and Rails 3 apps Much better than the command line versioning
gem install encryptor
A simple wrapper for the standard ruby OpenSSL library http://github.com/shuber/encryptor.
Cluster Monitoring with Ganglia & Ruby
An in-depth look at the architecture of Ganglia (performance monitoring) for your cloud service / app, and how connect it to your Ruby application - a new gmetric gem.
Ruby Digest - Simple Aggregator for Rubyists who don't want to miss anything
I just created RubyDigest for myself. It aggregates all major blogs, news sites, podcasts and screencasts. I know there are hundreds of better aggregators, but its just a small project I find useful.
Using Multiple Rubies Seamlessly On The One Machine With Rvm
If you’re into Ruby and are not yet using RVM (ruby version manager) you’re doing yourself a disservice. It’s a great little tool that allows you to easily have multiple Ruby installs on the one machine and will manage all the associated complexity for you. Here is a quick intro to get you started with rvm.
coder.io coming soon (awesome stuff for developers)
I’m (ab)using my founder’s privilege, sorry! My next major project (after Ruby Inside and Ruby Flow) is heading for release soon and since it’s aimed squarely at developers, you guys are my ideal audience! It’s called coder.io. coder.io hasn’t launched yet but please sign up and you’ll get the first look and eventually some discounts and freebies. Also, no spam.. you’ll only ever get up to 3–4 e-mails since it’s just a launch list.
A dead simple proof of concept for a chat the comet way
read about it and get it. Dead simple code that will make you understand how comet works.
Bayesian Classification on Rails
This tutorial explains how to use a simple machine learning technique to teach your Rails app how to recognize tweets you’d be interested in, using the Twitter API.
How to host a static site on Heroku
Cool tip on how to host a static site on Heroku and code.
The Dev Show
If you like hearing Jason and Dan on The Ruby Show you may want to check out The Dev Show which is less Ruby and more generic development oriented.
JRuby for Android
I’ve developed an Android application that provides an interactive JRuby shell, source code editor and script manager, that allows developers to load, edit and run JRuby code interactively on an Android device. The project is hosted at http://code.google.com/p/jruby-for-android/
Rakegrowl - Get Growled when your long running rake tasks finish
Do you recognize this situation? You run a rake task (for example, rake spec), which you know it’s going to take some time (e.g. 3 or 4 minutes). You say “Great moment to check what’s going on on Twitter”. 10 minutes and 3 tabs with blog posts later, you realize you were actually waiting for a task to finish, a task which finished long before. Bye, bye, productivity!! rakegrowl tells you when your rake tasks end via Growl.
Shoulda TextMate bundle
Shoulda TextMate bundle - a project which will be of interest to all those working with TextMate and writing tests using Shoulda. Source code is laid out on Github so all interested can join the project
[ANN] Ruby Programming Challenge for Newbies #6 is now live
The Ruby Programming Challenge for Newbies #6 by John Trupiano is now live. You can submit your solutions before 20th Feb. 2010. No entry fee and you can win attractive prizes.
Demystifying Eager loading with ActiveRecord
I just wrote short post with the goal of clearing up the confusion some Rails beginners may face when first learning about ActiveRecord’s eager loading feature.
Could MacRuby 1.0 Be The "One More Thing"?
Sorry, it’s just humor, but what if MacRuby 1.0 were the “one more thing” during Steve’s tablet keynote? More seriously, native iPhone apps powered by MacRuby would rule, so even GC on the iPhone would be a great addition in the next firmware release.
A Simple Pattern for Ruby's inject method
Ruby’s inject is an often misunderstood method, but you would be surprised at how much it can help you clean up your code. I see many developers skipping over this method in favor of the non-injectified way, mainly because they dont get how to use inject properly. So we’ll take a look at some common examples and then you will be able to see the pattern that read more >>
Introducing static_paths 0.1.0
static_paths is a library to manage the paths of directories containing static-content within multiple libraries. static_paths makes it simple to register, unregister and search through directories containing static-content needed by your libraries. Get the code.
Top coder needed. A Ruby Job In Beijing.
If you do enjoy the life being a Lead Developer and Software Architect, check what they need: you can write brilliant code, and enjoy with us doing it. [more inside]
Head First - OO Analysis & Design fourth chapter review in Ruby code
Check out the fourth chapter of the book review I’m working on regarding O’Reilly’s Head First - Object Oriented Analysis and Design. All native Java code translated to Ruby.
Ruby Singleton Pattern Again
After giving a bad advice on using Ruby Singleton Pattern in my previous post, I decided to remove it, and write new one. Destroy. Erase. Improve.
Are you testing your attr_* methods?
If you do, then you might want to clean up your specs with RSpec attr extensions.