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.
Lazy Refactoring with Ruby's Enumerator
Look over our shoulder as we refactor and optimize a set of queries.
Rubinius 3.0 - The Instructions
Starting to dive a bit deeper about improvements in the Rubinius instruction set.
Rubinius 3.0 - Process
Interesting thoughts and some welcome improvements planned for Rubinius 3.0.
Migrating to Ninefold, A Source of Developer Joy!
One of my first tasks as NY Tech Meetup’s newly minted hacker-in-residence was migrating our application from Heroku to Ninefold. Scary! Or at least it sounded like it would be. But it turned out to be a pretty straightforward and painless process. Here’s what you do…
A nifty service layer for your Rails app
I just launched Services - A nifty service layer for your Rails app and blogged about it. Let me know what you think!
Introducing new Railsed-based Video Distribution Platform
Over last couple of months, our team has helped further develop a unique video distribution platform. Finally, the big launch day has come and we’d love to introduce you to Uscreen: here’s a little cast study about the platform.
Ru - Ruby in your shell!
Ru brings Ruby’s expressiveness, cleanliness, and readability to the command line. It lets you avoid looking up pesky options in man pages and Googling how to write a transformation in bash that would take you approximately 1s to write in Ruby. [more inside]
Hone Your Craft with RubyMine 7
RubyMine 7 is out with support for Chef, Puppet, EditorConfig, and much more
Deploying a Sinatra Application to VPS
Step by step guide for deploying your first sinatra application to VPS running nginx/passenger [Ubuntu 14.04 LTS].
Faster Way to Source Map DOM Elements
A blogpost showing a Faster Way to Source Map DOM Elements for Rails apps.
world.db.codes - 245 Country Codes (Alpha2, Alpha3, TLDs, etc.) - Sinatra Sample Web App
Hello, I’ve put together a small Sinatra sample web app that shows all the world’s country codes (so far alpha 2, alpha 3, internet top level domains and motor vehicle license plates codes are included.) All code and datasets are public domain. See a live country code page on Heroku or check the world.db.codes source on GitHub. Cheers.
Sorting and Reordering Has Many Through Associations with the ActsAsList Gem
There are plenty of reasons users will want to sort and reorder lists, but implementing such a feature when using the has_many :through association isn’t so obvious. In this post I’ll show you how this is possible using the ActsAsList gem, and along the way show you how to load seed data, create a has_many :through relation, and use the great table_print gem. Read the post.
The Psychology Behind SaaS Free Trials
Almost every SaaS product has a free trial period. Why? At first, I thought it’s to get as many people to try the product, but that doesn’t make sense. The real reason is to create an “endowment effect.”
Fun with the `method` method
Have you ever wanted to pass a method to a function that only takes a block? Or figure out which of your object’s superclasses broke the method you’re trying to call? Those things are easy to do with the method method. Use it well, and you can learn about your dependencies, save yourself hours of debugging, and get your code to the places it needs to be.
rb_import 0.1.0 has been released
rb_import adds an import method to the Ruby VM so one can do foo_class = import './foo.rb'.
Eventually name-clashing class/module definitions can now be prevented with this gem.
Introducing the Rubinius Team!
Say hi to the Rubinius Team! News on Rubinius 3.0 coming soon too.
How Raptor's made up to 4x faster than Unicorn, up to 2x faster than Puma, Torquebox
Raptor is a new Ruby web server that’s up to 4x faster than Unicorn, and up to 2x faster than Puma and Torquebox. The most recent blog post describes in high detail how it has been made so fast. It’s the first post from a series that will elaborate on Raptor’s implementation.
Tail Call Optimization in Ruby
Tail call optimization is an optimization where tail recursive functions are transformed into loops by the compiler. A tail recursive function is one where the final statement is a call to the same method. In this post, we will look at what tail recursive functions look like, how tail call optimization helps them, and how to enable TCO in Ruby. [Continue reading]
Let Austen Ito show you how he builds a ...
Let Austen Ito show you how he builds a basic infrastructure with Docker, Chef, and Rails!
Determining User and Location Coordinates with the Geocoder Gem
Location-based web applications calculate distance between objects using the latitudinal and longitudinal coordinates and the Haversine formula. But how does one determine an object’s coordinates given a street address or IP address, let alone calculate the distance between two sets of coordinates? Fortunately the Geocoder gem turns these otherwise complex tasks into a fairly trivial matter. In this post I’ll show you to to integrate Geocoder into your Rails application.
I RAM what I RAM: Smaller App Footprints through Benchmarking
Get a smaller Rails app footprint with two commands. A 36% boot time memory savings for free. Also learn how to benchmark and optimize your own application’s boot size.
Pakyow v0.9 Release
Pakyow, the view-first app framework for Ruby, dropped over the weekend. Release notes + upgrade guide.
liquid-rails v0.1.0 released
liquid-rails allows you to render .liquid templates with layout and partial support. It also provides filters, tags, drops class to be used inside your liquid template.
assets-rails v0.1.0 released
assets-rails allows you to require javascript and stylesheet libraries with the exact version so that your frontend stuffs will continue to work as times passed by. You can use different versions for different templates in a single Rails application.
tty-progressbar v0.2.0 released
tty-progressbar now includes estimated time token, a frequency option to throttle repainting and ability to log during display. Please check it out and let me know your thoughts.