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.
How to send private messages with Facebook API
Here’s is how to send private messages with Facebook Chat API.
Desant - Open source landing pages system!
I just launched Desant App - it’s an open source landing pages system in Sinatra + Backbone.js. You can check out its beautiful demo (credentials: admin/pass) or fork it on github. Enjoy!
Do You Back Up Your DNS Records?
At the time of writing, Zerigo DNS is being hit by a DDOS attack and all of my company’s sites went down with them. [more inside]
How we can improve the security of our software projects?
The Ongoing Vigil of Software Security - In this article, James Schorr gives us some practical examples of how we can improve the security of our software projects. By increasing our awareness to the threats that our projects face, we can proactively work towards producing quality, stable software.
Three Months with Sublime Text 2
Sublime Text 2 is a text editor with great responsiveness, flexibility and accuracy for coding. After three months of using it, I discover many amazing features and ways to make it even better. [more inside]
"Deploying with JRuby" released in print
The Pragmatic Bookshelf just released Deploying with JRuby in print. Deploy using the JVM’s high performance while building your apps in the language you love. JRuby is a fast, scalable, and powerful JVM language with all the benefits of a traditional Ruby environment. See how to consolidate the many moving parts of an MRI-based Ruby deployment onto a single JVM process. You’ll learn how to port a Rails application to JRuby, get it into production, and keep it running.
Talks v0.4.0 is out
Talks v0.4.0 is out! New options made it more cool. Useful example for talks and autotesting coffee by @kossnocorp
Heroku add-on for image management in the cloud
This blog post talks about Cloudinary’s Heroku add-on for cloud-based image management. Easy integration with Heroku’s Ruby on Rails stack included.
swift db drivers for postgres, mysql and sqlite3
I just published swift-db drivers for Postgres, MySQL and SQLite3. I intend to use them for the upcoming version of Swift ORM. The drivers primarily target MRI and try to be lightweight & fast. [more inside]
Pluto - Another Planet Generator in Ruby
Lets you build web pages from published web feeds. Pass in one or more planet configuration files to the command line tool e.g. pluto ruby.yml. This will 1) fetch all feeds listed in ruby.yml and 2) store all entries in a local database, that is, ruby.sqlite and 3) generate a planet web page, that is, ruby.html using the builtin blank template. Open up ruby.html to see your planet web page. Voila! More Info.
Latency: The New Web Performance Bottleneck
‘High speed’ connectivity is not all about bandwidth, latency is the new bottleneck for most web browsing applications - especially, for the mobile web. An overview of what latency is, how it affects us, and the current latency numbers for wired and the mobile web.
Introduction to Data Visualization with Javascript for Rails Devs
If you’ve played with rails but you’re still pretty new to javascript come watch some videos and do a quick exercise on how to doData Visualization with Javascript using Rails, of course.
Understanding Rails params and HashWithIndifferentAccess
Do you love Rails minutiae? I do! Here is more than you wanted to know about HashWithIndifferentAccess, heavily cross-referenced with the GitHub source pages. What’s that? It’s how the Rails lets you call params[“sam”] and params[:sam] and they’re the same. It must be utterly simple, right? Right? Not so much.
Devise - Omniauth - Facebook - Getting Extra Permissions
I just launched Devise - Omniauth - Facebook - Getting Extra Permissions When using devise and omniauth for authentication sometimes you need to require more permissions from facebook. This is useful when you want to later use the authentication code from facebook do such things as posting to the users wall. Read More
Custom confirmation dialogs in Rails
Wanna have fancier confirmation dialogs in Rails? Checkout my article on the subject and a live demo.
RubyMine 4.5 is Out!
RubyMine, the most intelligent Ruby on Rails IDE from JetBrains, is officially updated. RubyMine 4.5 includes support for MacRuby, Capistrano, Slim, Sass, Rails Engines, Mongoid, Sinatra, pik, rbenv, and more. With this release JetBrains also introduces a new, more affordable, Academic license. It allows students and teachers to use RubyMine for non-commercial purposes, including education and research. Please read for more details. As usual, a free 30-day trial is available if you want to try RubyMine as your Ruby on Rails IDE.
"Deploying Rails" in print
PragProg just announced that the print version of Deploying Rails (written by me and Tony Burns) is being shipped out. The book dives into Puppet, Capistrano, Vagrant, Nagios, Ganglia, and all that sort of devops-y stuff. Enjoy!
gem TheRole, New authorization lib for Rails
Good news, folks! I just released stabile version of the_role gem. It’s an alternative of CanCan gem, for authorization. The Role it’s Semantic, Flexible, Lightweight solution for autorization. TheRole gem has realtime administrative interface. Bye bye CanCan, I got The Role! P.S.: I need for your issues and feedback.
Automatic backup of user uploaded images using Cloudinary
This blog post explains how in addition to safely storing uploaded images in a cloud based storage, uploaded images can be automatically backed up to a safer location, where no casual API calls can penetrate. Multiple revisions are kept for each uploaded resource for even greater robustness. Ruby sample code included.
Optimizing Rails and Unicorn on EC2
In a recent project, I had the opportunity to explore taking an MVP and turning it into something scalable, ahead of an announcement which would send tons of users to the app at once. I thought I’d share some pointers along with our findings, including which EC2 instance type we found to be most cost-effective as a Rails app server running under Nginx + Unicorn.
Ruby gem for Sisow payment provider
Sisow is a Dutch payment provider that supports online payments via iDEAL (NL), Bancontact/Mistercash (BE), Sofort (DE) and Paypal (international). [more inside]
Liskov Principle & MiniTest
I just wrote how you can use inheritance with MiniTest: Liskov Principle & MiniTest.
Host your own Rails apps
Learn how to host your own Rails apps right in a Virtual Machine. Don’t laugh… it really works.
Refactoring with Hexagonal Rails
I’ve been applying ideas from Matt Wynne’s Hexagonal Rails talk to my app, cleaning up complicated controller actions. I wrote it up: Refactoring with Hexagonal Rails.