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.
Taking Stock of JRuby Web Servers
Nick Sieger’s blog post on JRuby web servers helps you decide which server to use to build and deploy your app.
Mneme: Scalable Duplicate Filtering Service (HTTP, Ruby, Redis)
Mneme is an HTTP web-service for recording and identifying previously seen records - aka, duplicate detection. It is powered by Goliath, Redis, and a collection of bloomfilters under the hood. Check out the source on github.
Redis and Rails Guide
A guide of sort on Using Redis with Ruby on Rails
Generate MP3 waveforms with Ruby and R
I used Ruby and R to generate a waveform from an MP3 file to count the number of beeps in the Singapore MRT’s “door closing” warning.
Hello, Lunchy!
Lunchy is a friendy wrapper for OSX’s launchctl, making it easier to start and stop your Homebrew or MacPorts daemons.
MacRuby 0.10 Released
Laurent Sansonetti has released MacRuby 0.10, the latest version of the Mac OS X-focused Ruby implementation. 0.10 is the latest stepping stone on the way to a forthcoming 1.0 release and includes XCode 4 support and an improved macruby_deploy system.
Using Solr and Sunspot to Search Within Words
Following our series on Solr/Sunspot I wrote a blog post showing how you can configure Solr and Sunspot to search within a word. Such as searching for “Awe” within “Awesome”.
Message Expectations on methods that receive multiple messages with RSpec
I just posted this tip which shows a method to avoid MockExpectation errors when specifying methods that are called multiple times within execution. Check it out!
Another Cool Reason Ruby is Slow: implicit super
Some close details of implicit super reveal another example where Ruby is more flexible at the expense of easy optimizations.
A voting extension from scratch for Rails 3 (blog series)
I just started a blog series about building a voting extension from scratch for Rails 3. There will be presumably seven posts in this series. The main focus while putting this gem together will be on current best practices (using Bundler, setting up RSpec, inheriting from ActiveSupport::Concern, setting up generators, …). Here is part 1 - overview and setup. The complete code and installable gem is already available at the make_voteable GitHub repository.
Showing Passenger Stats From Inside Your App
How to show how many active or idle Passenger processes your server has and display them inside your app
Selenium in headless with Xvbf and Ruby
The article describes how to set selenium under headless state with Xvbf and Ruby.
MiniBacktrace - For MiniTest & Rails
MiniBacktrace allows you to take advantage of the Rails.backtrace_cleaner when using MiniTest. This includes everyone using Rails 3 with Ruby 1.9. Just add ‘mini_backtrace’ to your Gemfile’s :test group and your should automatically see a huge difference. Any additions to the Rails.backtrace_cleaner should now work.
Object-oriented CSS Heuristics for Programmers
Creating coherent and cohesive CSS is hard. What starts out as elegant often ends up crufty, with a mixing of conventions, loads of duplication and unused styles as the app grows. [more inside]
A quick look at the annotate gem - Annot...
A quick look at the annotate gem - Annotate Your Models With The Annotate Gem. A great way to give yourself visibility of the properties on your model without having to refer to the schema.rb or object attributes.
MacRuby for the Desktop
Why you should start hacking on MacRuby for desktop applications now.
Rubinius on AppCloud in Alpha
Evan Phoenix announces Rubinius on AppCloud, now available in alpha.
Fixing NGINX Content-Length Header Bug Using Rack
I recently ran into an issue with early versions of NGINX not setting the Content-Length header for 201 responses. I fixed the bug using Rack.
CarrierWave version 0.5.3 released
I’m very happy to release CarrierWave version 0.5.3. It features a new fog storage provider written by @geemus, author of the fog gem. It seamlessly supports Amazon S3, Rackspace Cloud Files, and Google Storage for Developers. There are plenty of other bug fixes and improvements from lots of contributors new and old. You can read the full release notes here. Feedback on this new storage provider is definitely welcome. Enjoy!
Shelltoad - command line interface for your Hoptoad errors
Shelltoad is a command line tool which simplifies your working pipeline with Hoptoad service. It allows to view all exceptions from shell and also provides basic git integration.
Composing Scopes on Multiple Models in Rails 3
Our new blog post on Composing Scopes on Multiple Models in Rails 3.
Teach yourself language hacking
I’ve been putting together some exercises for a workshop to introduce people to language-building. You’re given a parser for a basic Lisp and it’s up to you to write an interpreter for it. I’d love feedback if anyone wants to try it out.
passenger standalone with god on rvm
Searching for new experiences I have tried a new setup - passenger standalone on rvm monitored by god and cron (see Q&A on the end).
Getting RSpec to Work With New and Existing Rails Projects
One of the problems with starting with RSpec is knowing how to even get it setup and getting your first tests to actually run. This blog post helps people do just that: Getting RSpec to Work With New and Existing Rails Projects and yada yada.
Multidimensional data analysis with mondrian-olap gem
If you need to do complex analytical queries on relational database data and if custom SQL is becoming far too complex and unreadable then you might want to check mondrian-olap JRuby gem.